GCP ACE Free Quiz
No account or credit card needed — your score shows right here.Your company has one Google Cloud organization. A developer created a custom role, projects/app-a/roles/deployReader, in project app-a. Both app-a and app-b are in this organization. You now need to give a group in project app-b the same permissions, and future projects will need them too. You want to maintain one role definition. What should you do?
Correct Answer
A custom role is like a keycard printed by one office. It only opens doors in that office; to open doors across the whole company, it must be issued by headquarters.
A custom role can only be granted inside the project or organization where it was created.
- An organization-level custom role can be granted on the organization and on any resource inside it.
- app-b and future projects are all inside the organization, so one definition covers them.
- This meets the goal of maintaining a single role definition.
- A
- A project-level custom role cannot be granted on other projects.
- app-a's role is only usable in app-a and its resources.
- B
- The folder sits outside project app-a, where the role was created.
- A custom role can only be granted within the project or organization in which it was created.
- C
- Launch stages such as GA are informational only.
- They track readiness and do not change where a role can be granted.
- Assuming a project-level custom role works anywhere in the organization, or that a GA launch stage widens its scope.
- Custom roles are limited to 300 per organization and 300 per project.
- Project-level custom roles cannot contain permissions usable only at the folder or organization level.
- Setting the launch stage to DISABLED makes a granted custom role have no effect.
- A deleted custom role's ID cannot be reused until the 44-day deletion process completes.
- You are responsible for maintaining custom roles; Google updates only predefined roles.
Answered
0/10
Correct
0
Score
0%
An engineer accidentally deleted the service account [email protected]. Undelete is not possible, so they create a new service account with the same name in the same project. A day later, calls made as the new account to a Cloud Storage bucket are still denied. The bucket's IAM policy still shows the old role binding, now listed with the prefix deleted:. What explains the denied access?
Correct Answer
It is like a new employee getting a former employee's old desk name tag. The badge system still checks the employee number, and the new hire has a different number.
IAM (Identity and Access Management) role bindings follow a service account's unique ID, not its email address.
- Each service account gets a unique ID in IAM (Identity and Access Management) when it is created.
- Internally, role bindings use that ID, not the email address.
- The new account has a new ID, so the old binding marked deleted: does not apply to it.
- The fix is to grant the roles to the new service account.
- B
- Bindings are not immediately deleted.
- They stay in the policy with the deleted: prefix, as the scenario shows.
- C
- The source states both accounts have the same email address.
- The email is not the problem; the internal unique ID is.
- D
- The 60-second delay is about read operations being eventually consistent after creation.
- The engineer waited a day, so this delay cannot explain the denial.
- Assuming the same name and email means the same identity. IAM (Identity and Access Management) binds roles to the unique ID created with each account.
- Deleted accounts appear in role bindings with the prefix deleted:.
- If you delete a service account by mistake, try to undelete it before creating a new one.
- A recreated account with the same name is also not attached to the resources the old one was attached to.
- For Compute Engine, you can change the instance's attached service account; for other resources, you must delete and recreate the resource.
- Google recommends using a new, unique name for every service account to avoid this behavior.
Answered
0/10
Correct
0
Score
0%
A team uses an instance template named web-tmpl to create VMs. The template sets the machine type, boot disk image, labels, and a startup script. The team now wants future VMs to use a larger machine type and keep every other setting the same. What should they do?
Correct Answer
A template is like a printed stencil. You can't redraw it, so you trace a new stencil from the old one and change the one part you need.
You can't update an instance template after it is created; you make a new one instead.
- Instance templates can't be updated after they're created.
- The documented fix is to create a new template, including one based on an existing template.
- Basing it on web-tmpl keeps the image, labels, and startup script, and changes only the machine type.
- A
- Editing and saving the existing template is an update, and templates can't be updated after creation.
- C
- Stopping VMs doesn't change the rule; the template itself still can't be updated.
- D
- Regional versus global changes only where the template can be used.
- Neither scope makes a template editable.
- Assuming a template works like a saved settings file you can edit, when it is fixed after creation.
- An instance template saves machine type, boot disk image, labels, startup script, and other VM properties.
- To create a MIG of identical VMs, you must use an instance template.
- You can also create VMs that override a template's properties instead of making a new template.
- Google recommends regional templates unless you need to reuse one across multiple regions.
- There is no additional charge for instance templates; you pay for the resources created from them.
Answered
0/10
Correct
0
Score
0%
A team uses a newly created Cloud Billing account. Their region has a quota of eight in-use IP addresses. They create a regional GKE Standard cluster with public nodes and the default node pool, and creation fails because too few in-use IP addresses are available. They cannot wait for a quota increase, and the control plane must stay regional. What should they do?
Correct Answer
It is like a hotel giving you three rooms on each of three floors by default. If your budget covers only eight rooms, you book one room per floor instead.
A regional Standard cluster's default node pool uses nine nodes (three per zone), but you can reduce it to one node per zone.
- The default regional Standard node pool has nine nodes across three zones.
- With public nodes, that consumes nine in-use IP addresses, which exceeds the quota of eight.
- One node per zone across three zones uses three IP addresses and keeps the control plane regional.
- A
- Autopilot clusters are always regional, not zonal.
- C
- Zones for Standard node pools must be in the same region as the control plane.
- Moving nodes also does not reduce the nine IP addresses consumed.
- D
- After creating a regional cluster, you cannot change it to a zonal cluster.
- The requirement also says the control plane must stay regional.
- Assuming the only fix is a quota increase or a mode change, instead of reducing the default nine-node pool to one node per zone.
- Newly created Cloud Billing accounts get only eight IP addresses per region.
- If too few in-use IP addresses are available, cluster creation fails.
- Regional Standard clusters need more regional quota than similar zonal or multi-zonal clusters.
- Regional clusters replicate the control plane across multiple zones, so a single-zone outage does not affect the control plane.
- Cross-zone node-to-node traffic in regional clusters incurs charges.
Answered
0/10
Correct
0
Score
0%
A company has two projects in separate Google Cloud organizations. Each project uses its own auto mode VPC network, created with default settings. An engineer tries to connect the two networks with VPC Network Peering so VMs can talk over internal IPs. The plan is rejected during design review. What is the reason?
Correct Answer
It is like two houses on different streets that both have the address "10 Main St". The mail carrier can't link them because the addresses clash.
Auto mode VPC (Virtual Private Cloud) networks all use the same predefined 10.128.0.0/9 ranges, so they can't be connected to each other by peering or Cloud VPN (Virtual Private Network).
- Auto mode networks get one subnet per region from predefined ranges in 10.128.0.0/9.
- Every auto mode network uses that same set of ranges, so the two networks overlap.
- Because of this, auto mode networks can't be connected to one another with VPC (Virtual Private Cloud) Network Peering or Cloud VPN (Virtual Private Network).
- B
- Firewall rules are never shared among networks, including peered networks.
- Each network keeps its own rules, so sharing is not a peering requirement.
- C
- VPC (Virtual Private Cloud) Network Peering can connect networks in different projects or different organizations.
- D
- VPC (Virtual Private Cloud) networks, with their routes and firewall rules, are global resources.
- Only subnets are regional, so region placement is not the blocker.
- Blaming organization boundaries or regions, when the real blocker is the identical predefined IP ranges of auto mode networks.
- Auto mode subnet ranges fit within 10.128.0.0/9, and new regions get new subnets automatically.
- Custom mode networks are recommended when you plan to connect your VPC (Virtual Private Cloud) network to another network.
- Switching from auto mode to custom mode is one-way; custom mode can't go back to auto mode.
- Auto mode networks, including the default network, don't support subnets with IPv6 ranges.
- With peering, subnet ranges using private IPv4 addresses are always exchanged.
Answered
0/10
Correct
0
Score
0%
A team needs a custom image of the boot disk of a production Linux VM. The VM must stay running. The engineer has paused app writes and run sudo sync. They then run gcloud compute images create with --source-disk and --source-disk-zone, but the command will not create the image while the instance is running. What should the engineer change so the image is created without stopping the VM?
Correct Answer
It is like photocopying a document someone is still writing on. The copier refuses unless you press an override button, so ask them to pause writing first.
gcloud blocks image creation from a running instance's disk unless you add the --force flag.
- By default, gcloud cannot create images from running instances.
- The --force flag is the optional flag that allows creation from a running instance.
- The VM must stay up, so stopping it is not an option; --force is the only fix offered.
- Pausing writes and running sudo sync first makes the image more reliable.
- A
- Disabling auto-delete only stops the disk being deleted when the VM is deleted.
- It does not lift the default block on running instances.
- B
- --storage-location only picks the region or multi-region where the image is stored.
- It is optional and has no effect on capturing from a running VM.
- D
- --family only sets which image family the new image belongs to.
- The sources describe no family setting that permits live capture.
- The sources say images can come from a disk 'even while attached', baiting you to assume gcloud allows running instances by default.
- In the REST API, the forceCreate parameter defaults to FALSE.
- In the console, you select 'Keep instance running' to confirm image creation from a running VM.
- Before imaging a running VM, pause writing apps, flush app data, stop writes, and run sudo sync.
- You can create a disk image once every 10 minutes, or at most 6 requests in 60 minutes in a burst.
- With no storage location set, Compute Engine stores the image in the multi-region closest to the source.
Answered
0/10
Correct
0
Score
0%
A Cloud Storage bucket stores application logs in Standard storage. It has no Object Versioning, no object holds, and no retention policy. An engineer adds three lifecycle rules, and each one uses only the condition age = 90: - Rule 1: SetStorageClass to Nearline - Rule 2: SetStorageClass to Coldline - Rule 3: Delete What happens to a log object once it meets the age condition?
Correct Answer
If three notes say "move this box to the shed," "move it to the attic," and "throw it out," all for the same day, the mover just throws it out.
When several lifecycle rules match one object at the same time, only one action runs, and Delete beats any SetStorageClass.
- All three rules share the same condition, so they are satisfied at the same moment.
- Cloud Storage performs the action of only one rule in that case.
- Delete takes precedence over any SetStorageClass action, so the object is deleted.
- No hold or retention policy exists to block the Delete action.
- A
- Lowest-price storage class wins only among SetStorageClass actions.
- A matching Delete rule outranks every SetStorageClass rule.
- C
- Matching rules do not run in sequence.
- Only one rule's action is performed when conditions are met simultaneously.
- D
- A 400 error comes from an invalid configuration, such as a nonexistent action or condition.
- Delete, SetStorageClass, and age are all valid, so the configuration is accepted.
- Assuming the cheapest storage-class rule wins, forgetting that Delete outranks every SetStorageClass action.
- An object must match all conditions in a rule for that rule's action to run.
- Among SetStorageClass rules, the class with the lowest at-rest storage price wins.
- Delete does not take effect while an object hold or unmet retention policy applies.
- Lifecycle configuration changes can take up to 24 hours to go into effect.
- Actions run asynchronously, so there can be a lag after conditions are met.
Answered
0/10
Correct
0
Score
0%
A small startup is launching a new web application on Google Cloud. The team has no in-house server administration expertise. They want to write code in their preferred language and framework. They want the platform to scale automatically as traffic grows, and to spend as little effort as possible maintaining baseline systems. Which hosting choice best fits these requirements?
Correct Answer
Choosing Cloud Run is like using a ride-hailing service instead of buying and servicing your own car. You just say where to go, and more cars appear when more people need rides.
Where feasible, prefer a fully managed service that scales automatically to minimize operational effort.
- Cloud Run is a fully managed serverless platform that scales automatically.
- It lets the team use their favorite language and framework.
- Fully managed services minimize the risk, time, and effort of maintaining baseline systems.
- This fits a team with no server administration expertise.
- A
- Creating your own infrastructure manually on Compute Engine leaves the team managing baseline systems.
- That conflicts with the goal of minimal maintenance effort.
- B
- A VPS runs on a limited number of machines with a defined resource amount.
- It lacks the inherent scalability of cloud hosting.
- C
- Shared hosting confines each site to the resources of just one server.
- This limits scalability as traffic grows.
- Picking Compute Engine because it offers more control, ignoring that the team lacks expertise and wants minimal maintenance.
- Compute Engine can deploy a complete web-serving stack from Google Cloud Marketplace or be built manually.
- Cloud hosting is often pay-as-you-go, so costs scale with usage.
- Shared hosting is the most economical option but limits scalability.
- A stateless architecture lets applications scale up quickly with minimum boot dependencies.
- For new workloads, start simple with an MVP and resist the urge to over-engineer.
Answered
0/10
Correct
0
Score
0%
Your company uses a Google Cloud organization. All Engineering projects sit in an Engineering folder, which has subfolders for each team. New Engineering projects are created every week. The Engineering platform team needs the same IAM role on every current and future Engineering project, with no manual work per project. They must not get this role on projects outside Engineering. Where should you grant the role?
Correct Answer
Giving someone a key to a department's building opens every office inside it. A key to the whole campus opens too much, and a key to one office opens only that office.
IAM (Identity and Access Management) roles granted on a folder are inherited by every project and folder inside it.
- Roles granted on a folder flow down to all projects and subfolders in that folder.
- New projects created in the folder inherit the role automatically, so no per-project work is needed.
- The grant stays inside the Engineering folder, so projects outside Engineering are not affected.
- B
- Per-project grants require manual configuration for every new project.
- The scenario requires no manual work per project.
- C
- Roles granted at the organization level are inherited by every resource in the organization.
- That gives the team the role on non-Engineering projects, which the scenario forbids.
- D
- Inheritance flows down the hierarchy, from parent to child.
- A project contains service resources, not other projects, so a grant there does not reach sibling projects.
- Picking the organization because it is the top node; it covers every project in the company, not just Engineering.
- An organization resource is required to use folders.
- Folders can contain projects and other folders, so subfolders can model teams and applications.
- The effective policy for a resource combines policies set on it and policies inherited from its ancestors.
- Allow, deny, and organization policies are all inherited through the hierarchy.
- The initial IAM (Identity and Access Management) policy of a new project grants the owner role to its creator.
Answered
0/10
Correct
0
Score
0%
Your team runs a production project linked to Cloud Billing account A. Finance asks you to move it to Cloud Billing account B on May 15. Some usage from May 13 and 14 has not yet appeared in the transaction history. How will May's project charges be billed?
Correct Answer
It is like moving a utility bill to a new roommate mid-month. Usage before the switch date stays on the old name's bill.
After a project changes billing accounts, charges incurred before the move stay with the former account.
- Charges incurred before the move are billed to the former account (A).
- Charges incurred after the move are billed to the new account (B).
- This matches the documented May 15 example exactly.
- A
- Pre-move charges are not transferred to the new account.
- Account B only pays for usage after the move.
- B
- The switch does not wait for the next billing cycle.
- Charges from May 16 onward are billed to account B.
- D
- Pre-move charges stay with the former account even if not yet reported in transaction history.
- Reporting delay does not change which account pays.
- Assuming late-reported charges follow the new link, when the incurred date decides the paying account.
- Switching a project's billing account shouldn't cause service interruption or server downtime.
- Depending on the service, charges can take up to two days to reach the transaction history.
- You need permission to unlink from the current account and link to the target account.
- Projects with Cloud Marketplace purchases can't be migrated until those purchases are transferred.
- Resource-based CUDs start applying to the new account at midnight US and Canadian Pacific time (UTC-8).
Answered
0/10
Correct
0
Score
0%
You got of 10 correct.
Get your full breakdown by email
Per-question review, weak spots to study, and explanations.
The full GCP ACE question bank with complete explanations is part of the Exam Pass.