ACE — Associate Cloud Engineer practice exam
Hands-on Google Cloud administration: setting up projects, billing and the resource hierarchy, deploying Compute Engine, GKE and Cloud Run, choosing storage, data and networking products, running and monitoring them, and managing IAM and service accounts. Includes gcloud and kubectl commands. Written to the current exam guide. The real exam has 50 to 60 multiple-choice and multiple-select questions in 2 hours, and Google doesn't publish a pass mark. Our mock uses 50 questions in 120 minutes, with 70% as the target.
- Questions
- 50
- Time limit
- 120 min
- Pass target
- 70%
Exam topics
- 1.0 Setting up a cloud solution environment20%
- 2.0 Planning and implementing a cloud solution30%
- 3.0 Ensuring the successful operation of a cloud solution30%
- 4.0 Configuring access and security20%
Free ACE sample questions
Try these 5 questions from the practice bank, then show the answer to see the explanation.
1. You created a new project and run `gcloud compute instances create web-1 --zone=europe-west2-a`. It fails, saying the Compute Engine API has not been used in the project. What should you do first?
- A.Grant yourself the Viewer role on the project
- B.Change the zone to a region in the United States
- C.Create a new billing account for the project
- D.Run gcloud services enable compute.googleapis.com
Show answer
Correct answer: D. Run gcloud services enable compute.googleapis.com
Most Google Cloud APIs are disabled in a new project until you enable them. Enable the Compute Engine API with:
gcloud services enable compute.googleapis.comor from APIs & Services in the console. Billing must be linked to the project too, but the error here names the API. The Viewer role would give you less access, not more, and the zone isn't the problem.
2. You need to run a stateless containerised API that has spiky traffic and sits idle overnight. The team doesn't want to manage clusters or VMs. Which compute option fits BEST?
- A.A GKE Standard cluster with three nodes
- B.Cloud Run
- C.A Compute Engine managed instance group
- D.A sole-tenant node group
Show answer
Correct answer: B. Cloud Run
Cloud Run runs containers serverlessly: it scales automatically with requests, scales to zero when idle, and there are no servers or clusters to manage.
Option Choose when Cloud Run Stateless containers, HTTP or events, minimal ops Cloud Run functions Small single-purpose functions triggered by events GKE Many services needing Kubernetes features and control Compute Engine Full control of the OS, or software that needs a VM 3. A VM has no external IP address. You need to SSH to it from your laptop without opening port 22 to the internet. What should you do?
- A.Copy your private SSH key into the VM's startup script metadata field
- B.Add an external IP and a firewall rule allowing tcp:22 from 0.0.0.0/0
- C.Create a public Cloud DNS record that points at the VM's internal IP address
- D.Use gcloud compute ssh with --tunnel-through-iap, and allow IAP's range on tcp:22
Show answer
Correct answer: D. Use gcloud compute ssh with --tunnel-through-iap, and allow IAP's range on tcp:22
IAP TCP forwarding tunnels SSH through Identity-Aware Proxy, so the VM needs no external IP:
gcloud compute ssh web-1 --zone=europe-west2-a --tunnel-through-iapYou need:
- A firewall rule allowing ingress on
tcp:22from IAP's range, 35.235.240.0/20 - The IAP-secured Tunnel User role
Access is controlled by identity and IAM, not by exposing port 22 to the world.
4. A user was granted Editor on a folder. On one project in that folder, you grant them only Viewer. What access do they have on that project?
- A.Owner, because two grants combine into a higher role
- B.Editor, because policies are inherited and access is the union of grants
- C.No access, because conflicting grants cancel each other out
- D.Viewer, because the more specific project-level grant overrides the folder grant
Show answer
Correct answer: B. Editor, because policies are inherited and access is the union of grants
IAM allow policies are inherited down the hierarchy: organisation → folder → project → resource. A user's effective access is the union of all their grants, so a narrower role lower down doesn't remove a broader inherited role.
Here the user still has Editor on the project. To restrict them, remove the folder-level grant, or use an IAM deny policy, which is evaluated before allow policies.
5. Security requires that no VM in any project under the Production folder can have an external IP address, including projects created in future. What is the BEST way to enforce this?
- A.Ask each project owner to remove any external IPs on the first of each month
- B.Set the compute.vmExternalIpAccess organization policy on the folder
- C.Add a VPC firewall rule that denies all ingress traffic
- D.Grant everyone the Compute Viewer role on the folder
Show answer
Correct answer: B. Set the compute.vmExternalIpAccess organization policy on the folder
Organization policies apply constraints across the resource hierarchy, and they're inherited by every project beneath the node where they're set, including new ones.
The
constraints/compute.vmExternalIpAccesslist constraint controls which VMs, if any, can have external IPs. Setting it to deny all on the Production folder enforces the rule centrally.Firewall rules control traffic, not whether an external IP can be assigned. IAM controls who can act, while org policies control what configurations are allowed.
Want the other 45 questions? Try ACE free for 7 days
Full-length timed mock exams in exam or practice mode, with a hint tab, an explanation for every answer and progress tracking. No credit card needed.