Home / Google Cloud Associate Cloud Engineer / Mock exam
Google Cloud Associate Cloud Engineer Exam-style mock test

Google Cloud Associate Cloud Engineer (ACE) Practice Exams|Practice test

Full explanations Exam format Pass line 70%
33 USD One-time · lifetime access
Enroll →

Sample questions

Example1 · Setting up a cloud solution environment
A retail bank is onboarding onto Google Cloud. The platform team must organize resources so that the payments division and the lending division administer their own projects, while security policies set by the central team apply to everything. How should they structure the resource hierarchy?
✓Create one organization with a folder per division, and place projects under each folder
Correct. Folders under a single organization delegate per-division administration while organization-level policies still apply everywhere.
・Create a separate organization for each division and maintain duplicate security policies
Incorrect. Two organizations split governance and force the central team to maintain the same policies twice.
・Put all projects directly under the organization and group divisions with project labels
Incorrect. Labels help reporting but delegate no administration and enforce no policy boundaries.
・Create one project per division and separate the workloads with VPC subnets inside it
Incorrect. Subnets separate networks, not administrative ownership, and one project cannot delegate per-division control.
Explanation
A single organization with folders per division keeps central policy inheritance intact while each division administers the projects inside its own folder.
Example2 · Planning and implementing a cloud solution
A fintech team packages its card-fraud scoring API as a container. Traffic is spiky around shopping events, the service should scale to zero at night, and nobody wants to manage clusters, nodes, or VMs. Which compute option fits?
✓Cloud Run
Correct. Cloud Run runs containers serverlessly, scales with request load, and scales to zero with no infrastructure to manage.
・A Compute Engine managed instance group
Incorrect. A managed instance group still means managing VM images and cannot scale to zero for request-driven serving.
・A GKE Standard cluster with node pools
Incorrect. GKE Standard requires operating the cluster and its node pools.
・A sole-tenant Compute Engine node group
Incorrect. Sole-tenant nodes are dedicated hosts for licensing or isolation, the opposite of hands-off serverless.
Explanation
For a containerized, request-driven workload with no infrastructure management and scale-to-zero, Cloud Run is the matching compute choice in the exam guide's compute selection objective.
Example3 · Ensuring the successful operation of a cloud solution
During an incident, an engineer must quickly list the Pods of the settlement service in the payments namespace of a GKE cluster, including which node hosts each Pod. Which command shows this?
・kubectl describe namespace payments --show-events=true
Incorrect. Describing the namespace shows namespace metadata, not its Pods and their nodes.
✓kubectl get pods -n payments -o wide
Correct. kubectl get pods with -o wide adds the NODE column, showing where each Pod in the namespace runs.
・kubectl get nodes --selector=app=settlement -o wide
Incorrect. Listing nodes does not map Pods to nodes, and app labels select Pods, not nodes.
・kubectl logs -n payments deployment/settlement --all-containers
Incorrect. Logs show application output, not Pod placement.
Explanation
Viewing running GKE inventory is day-to-day kubectl work: get pods -o wide reveals Pod status plus the hosting node in one command.
Example4 · Configuring access and security
The database group [email protected] needs to connect to Cloud SQL instances in project hx-claims-prod. The admin must add only this one grant without disturbing any existing bindings. Which command is right?
・gcloud projects set-iam-policy hx-claims-prod policy.json --format=json
Incorrect. set-iam-policy replaces the entire policy from a file, risking the loss of existing bindings.
✓gcloud projects add-iam-policy-binding hx-claims-prod --member=group:[email protected] --role=roles/cloudsql.client
Correct. add-iam-policy-binding appends a single member-role pair to the project policy, leaving every other binding untouched.
・gcloud iam roles create cloudsqlClient --project=hx-claims-prod --permissions=cloudsql.instances.connect
Incorrect. This defines a new custom role; no one is granted anything by creating it.
・gcloud iam service-accounts add-iam-policy-binding [email protected] --role=roles/cloudsql.client
Incorrect. This edits the policy on a service account resource, and the member here is a group, not a service account.
Explanation
Additive IAM changes use gcloud projects add-iam-policy-binding, which safely appends one binding, whereas set-iam-policy overwrites the full policy and is reserved for deliberate wholesale updates.
Example5 · Setting up a cloud solution environment
A hospital network is onboarding onto Google Cloud. Radiology, cardiology, and pharmacy each need their own dev and prod projects, and IT must apply department-specific IAM roles and organization policies in one place per department. How should the resource hierarchy be organized?
・Create a separate Google Cloud organization for each department and manage its policies independently
Incorrect. Separate organizations fragment identity and billing management and prevent shared policy inheritance.
・Keep every project directly under the organization and encode the department in each project's name
Incorrect. Projects sitting directly under the organization have no department-level node from which policies can be inherited.
・Use one shared project for all departments with a department label applied to every resource
Incorrect. A single project cannot isolate departments, and labels carry no IAM or organization policy.
✓Create a folder per department under the organization and move that department's projects into it
Correct. Folders group each department's projects so IAM roles and organization policies are applied once per department and inherited.
Explanation
Folders are the grouping nodes of the resource hierarchy: placing each department's projects in its own folder lets administrators grant IAM roles and apply organization policies once at the folder, with inheritance to every project below.
Example6 · Setting up a cloud solution environment
A pharmaceutical company's security standard states that no Compute Engine VM in any current or future project may receive an external IP address. A cloud engineer must enforce this centrally rather than project by project. What should the engineer do?
✓Enforce the compute.vmExternalIpAccess organization policy constraint at the organization node
Correct. The vmExternalIpAccess constraint enforced at the organization node denies external IPs on VMs in all current and future descendant projects.
・Create an ingress deny firewall rule for 0.0.0.0/0 in every project's default network
Incorrect. Firewall rules filter traffic but do not prevent an external IP from being assigned to an instance.
・Deploy a scheduled Cloud Run job that strips external IPs from instances every five minutes
Incorrect. A cleanup job is reactive, leaves a window of exposure, and must be deployed into every project.
・Grant engineers a custom role that omits the compute.addresses.create permission everywhere
Incorrect. Instances receive external IPs through access configs, so omitting one address permission does not enforce the standard.
Explanation
Organization policy constraints such as compute.vmExternalIpAccess are enforced preventively down the resource hierarchy, so a single enforcement at the organization node covers every current and future project.
Example7 · Setting up a cloud solution environment
An online marketplace runs dozens of projects under one organization. The security team must prevent engineers from assigning external IP addresses to VMs everywhere, except in a folder that hosts a legacy price-crawler. How should this be enforced?
✓Set the compute.vmExternalIpAccess organization policy to deny at the organization node and override it on the exception folder
Correct. Organization policy constraints inherit down the hierarchy, and a folder-level override carves out the legacy crawler cleanly.
・Create a VPC firewall rule in every project that blocks all ingress traffic except within the crawler folder's network ranges
Incorrect. Firewall rules filter traffic to existing interfaces; they do not stop anyone from assigning an external address.
・Grant the Compute Network Admin role only inside the exception folder so other teams cannot attach external addresses
Incorrect. IAM controls who can act, but engineers with compute roles in their own projects could still assign external IPs.
・Create a Cloud Monitoring alert that pages the security team whenever any VM receives an external IP address
Incorrect. An alert detects the violation after the fact instead of preventing the assignment in the first place.
Explanation
Organization policy constraints are preventive guardrails that inherit through the resource hierarchy; denying compute.vmExternalIpAccess at the organization with a folder-level exception enforces the rule everywhere it should apply.
Example8 · Setting up a cloud solution environment
During a weekend flash sale, a fashion retailer's managed instance group stops scaling and new VMs fail with a QUOTA_EXCEEDED error for CPUs in region us-central1. What should the cloud engineer do to restore scaling capacity?
・Convert the instance group to Spot VMs, because Spot capacity is exempt from regional CPU quota checks
Incorrect. Spot VMs consume their own preemptible CPU quota; they are not exempt from quota enforcement.
✓Request an increase for the regional CPUs quota on the Quotas page and provide the justification for approval
Correct. CPU limits are enforced per region per project; the fix is to assess the quota and request an increase with justification.
・Create an additional billing account for the project, since quota limits scale with each billing account added
Incorrect. Quotas are set per project and service, and adding billing accounts does not raise compute limits.
・Move the managed instance group into a different zone of us-central1 to receive a fresh allocation of CPUs
Incorrect. The CPUs quota is regional, so every zone in us-central1 draws from the same exhausted pool.
Explanation
Compute Engine CPU quotas apply per region; when autoscaling hits the ceiling, the engineer requests a quota increase rather than changing zones or billing structure.
Example9 · Setting up a cloud solution environment
A department-store chain manages employees in on-premises Active Directory. New warehouse staff need Google Cloud console access, and HR wants accounts created and disabled without manual work in the Admin console. What is the recommended approach?
・Export the Active Directory users to a CSV file each month and bulk-import the list in the Admin console
Incorrect. Monthly CSV imports are manual, lag behind joiners and leavers, and defeat the automation requirement.
・Issue one service account per employee and let each person authenticate with its downloaded JSON key
Incorrect. Service accounts represent workloads, not people, and distributing their keys to humans is an anti-pattern.
・Have employees register personal Gmail addresses and grant those identities IAM roles on the projects
Incorrect. Personal consumer accounts sit outside company lifecycle management and cannot be centrally disabled.
✓Run Google Cloud Directory Sync so Cloud Identity accounts mirror the Active Directory users automatically
Correct. Directory Sync automates provisioning and deprovisioning of Cloud Identity users from the existing directory.
Explanation
Cloud Identity users can be managed manually or automated; Google Cloud Directory Sync keeps Cloud Identity aligned with an on-premises directory so the joiner-leaver lifecycle needs no console work.
Example10 · Setting up a cloud solution environment
An automotive parts manufacturer is adopting Google Cloud. Its stamping, welding, and assembly plants must each administer their own projects, while the central OT security team applies organization-wide policies from a single place. How should the resource hierarchy be structured?
・Create a separate Google Cloud organization for each plant and replicate the central security policies into every one
Incorrect. Multiple organizations fragment governance and force the security team to maintain identical policies in several places.
・Place every project directly under the organization node and encode the owning plant in each project ID
Incorrect. Project IDs carry no administrative delegation, and there is no plant-level node on which to grant roles once.
✓Create one folder per plant under the organization and grant each plant's administrators roles on their folder
Correct. Folders delegate per-plant administration while organization-level policies set by the central team are inherited by everything below.
・Use a single shared project for all three plants and separate the workloads with one VPC subnet per site
Incorrect. A single project cannot delegate administration per plant, and subnets separate networks rather than ownership.
Explanation
A single organization with one folder per plant lets central organization policies inherit downward while each plant's administrators receive IAM roles on their own folder.
Example11 · Setting up a cloud solution environment
A robotics firm's simulation team needs 64 additional NVIDIA L4 GPUs in us-central1 for finite-element models, but instance creation fails with a QUOTA_EXCEEDED error. What should the cloud engineer do?
・Upgrade the billing account to a higher tier, because accelerator quotas scale automatically with higher spending commitments
Incorrect. Quotas do not change with billing tiers; increases are requested and reviewed explicitly.
・Retry the instance creation in a different zone of us-central1, because accelerator quotas are enforced per zone
Incorrect. GPU quotas are regional, so switching zones inside us-central1 hits the same limit.
✓Request an increase for the regional GPU quota from the Quotas page and wait for Google's approval
Correct. GPU capacity is governed by a regional quota; the supported path is to review usage and file a quota increase request.
・Delete and recreate the project so that its default accelerator quotas are reset to higher starting values
Incorrect. Recreating a project resets nothing upward; new projects start with default or lower quotas.
Explanation
Assessing current quota usage and submitting a quota increase request for the regional GPU quota is the standard remedy for QUOTA_EXCEEDED errors.
Example12 · Setting up a cloud solution environment
A national digital agency hosts projects for twelve ministries under one Google Cloud organization. A new data-sovereignty law requires that every resource in every ministry project be created only in the country's own region. What should the agency's platform team do?
✓Set an organization policy with the resource locations constraint at the organization node
Correct. The gcp.resourceLocations organization policy constraint, set once at the organization node, is inherited by every ministry project and blocks out-of-region resource creation.
・Grant each ministry administrator a custom IAM role that omits foreign-region permissions
Incorrect. IAM roles control who can act, not where resources may be created; permissions are not region-scoped this way.
・Create a VPC firewall rule in every project that blocks traffic leaving the country
Incorrect. Firewall rules filter network traffic and have no effect on which region a resource is provisioned in.
・Apply a label such as region=domestic to each project and audit placements monthly
Incorrect. Labels are metadata for reporting; they enforce nothing, so a monthly audit only finds violations after the fact.
Explanation
Organization policies such as the resource locations constraint are applied at a node of the resource hierarchy and inherited downward, enforcing where resources can be created across all ministry projects.
Example13 · Setting up a cloud solution environment
A prefectural emergency-alert platform runs on Compute Engine and expects a 50x traffic surge during typhoon season. The engineer is concerned the project will hit its regional vCPU quota when autoscaling kicks in. What is the appropriate preparation?
・Do nothing, because Compute Engine quotas rise automatically whenever an autoscaler needs capacity
Incorrect. Quotas do not raise themselves on demand; an autoscaler that hits the quota simply fails to add instances.
・Open a billing support case asking Google to remove all quota limits from the project
Incorrect. Quotas protect both the customer and the platform and are not removed wholesale on request.
・Plan to recreate the managed instance group in a different region each time the quota is reached
Incorrect. Moving regions mid-incident adds latency and operational risk and still leaves the new region's quota untested.
✓Review current usage on the Quotas page and submit a quota increase request before the season
Correct. Assessing quota consumption and requesting an increase ahead of predictable demand is the designed workflow; approvals can take time, so it must happen before the surge.
Explanation
Quota headroom should be assessed and an increase requested through the Quotas page in advance of a predictable seasonal surge, because autoscaling cannot exceed the project's quota.
Example14 · Setting up a cloud solution environment
A multi-tenant SaaS vendor discovers that developers have been granting IAM roles on tenant-data projects to personal Gmail accounts. Compliance demands a preventive control ensuring that only identities from the company's own Cloud Identity domain can ever be added to IAM policies anywhere in the estate. What should the administrator configure?
✓Set the domain-restricted sharing organization policy at the organization node, allowing only the company domain
Correct. The iam.allowedPolicyMemberDomains constraint applied at the organization rejects bindings to identities outside the allowed domains at request time, everywhere in the hierarchy.
・Run a weekly script that scans every project's IAM policy and removes any external member it finds
Incorrect. A cleanup script is detective and leaves a window during which external accounts hold access.
・Grant roles/resourcemanager.organizationAdmin only to trusted staff so external grants become impossible
Incorrect. Limiting who holds Organization Admin does not stop project owners from adding outside members to their own projects.
・Enable Cloud Asset Inventory so that each external IAM binding is recorded for the quarterly audit
Incorrect. Asset Inventory records what exists; it neither blocks nor removes an external grant.
Explanation
The domain-restricted sharing constraint (iam.allowedPolicyMemberDomains), applied at the organization, is the preventive organization policy for keeping outside identities out of IAM policies.
Example15 · Setting up a cloud solution environment
Ahead of a televised live event, a video-streaming company must confirm how much regional in-use external IP address and CPU quota remains in europe-west1 for the ingest project. Which command shows the project's current quota limits and usage for that region?
・gcloud compute project-info describe --format="value(name)"
Incorrect. This formatting selects only the project name and would omit the quota data regardless.
✓gcloud compute regions describe europe-west1 --project=ingest-prod
Correct. Describing the region returns its quotas block, listing each regional quota's limit and current usage for the project.
・gcloud compute zones describe europe-west1-b --project=ingest-prod
Incorrect. Zone describe covers a single zone's properties; regional CPU and address quotas are reported at the region.
・gcloud compute instances list --filter="zone ~ europe-west1"
Incorrect. Listing instances shows consumption indirectly at best and never shows the quota limits themselves.
Explanation
gcloud compute regions describe prints the quotas array—metric, limit, and usage—which is the direct way to assess remaining regional quota before a traffic spike.
▶ Try 10 free questions (graded)
Measure your readiness with a full mock exam
All questions · full explanations · lifetime access
Enroll(33 USD)