Cloud Engineer sample questions: 5 examples

Updated November 23, 2026

Here are five original scenario questions in the style of the Associate Cloud Engineer exam, spread across its four sections. Pick an answer before you read the explanation, since the reasons the wrong options fail are the useful part. They are written from the public exam guide and are not real exam questions.

Question 1. A contractor needs to view Compute Engine instances in a single project for two weeks and must not be able to change anything. What is the best way to grant access?

  • A. Grant the Owner role on the project
  • B. Grant a read-only Compute Engine role on that project to the contractor account
  • C. Grant the contractor a viewer role on the organization
  • D. Create a service account key and email it to the contractor
Show answer

Answer: B

Predefined roles at the narrowest scope that fits give least privilege. A viewer-type role on the one project meets the need and is easy to remove later. Owner is far too broad, granting a role on the whole organization exposes unrelated projects, and sharing a service account key creates an unmanaged long-lived credential.

Want more questions like this? Full Cloud Engineer practice tests →

Question 2. A team wants to run a stateless HTTP container that scales to zero when idle and needs no cluster management. Which service fits best?

  • A. Google Kubernetes Engine Standard cluster
  • B. A managed instance group with an autoscaler
  • C. Cloud Run
  • D. A single Compute Engine VM
Show answer

Answer: C

Cloud Run runs containers serverlessly, scales on request load and can scale to zero. GKE Standard requires managing nodes, a managed instance group of VMs does not scale to zero, and a single large Compute Engine VM stays billed while idle.

Want more questions like this? Full Cloud Engineer practice tests →

Question 3. Log archive objects in a Cloud Storage bucket are read about once a year and must be kept for five years at the lowest storage cost. What should you configure?

  • A. Use the Archive storage class, with a lifecycle rule for the retention period
  • B. Keep objects in Standard and review them yearly
  • C. Use Nearline and delete objects after 30 days
  • D. Copy the objects to a persistent disk
Show answer

Answer: A

Archive is the lowest-cost class for data accessed less than once a year, and a lifecycle rule can move or delete objects automatically. Standard costs more for cold data, Nearline suits roughly monthly access, and deleting after 30 days would break the five-year retention requirement.

Want more questions like this? Full Cloud Engineer practice tests →

Question 4. Web servers tagged web-tier in a custom VPC must accept HTTPS from the internet, but every other inbound port must stay closed. What is the correct firewall setup?

  • A. An ingress allow rule for all protocols from 0.0.0.0/0
  • B. An ingress deny rule for port 22 only
  • C. An egress allow rule for TCP 443
  • D. An ingress allow rule for TCP 443 targeting the web-tier tag
Show answer

Answer: D

VPC firewall rules are stateful and deny ingress by default, so you only add an allow rule for the needed traffic, here TCP 443 targeted at the web-tier tag. Allowing all protocols is overly broad, a deny rule on its own opens nothing, and an egress rule does not control inbound requests.

Want more questions like this? Full Cloud Engineer practice tests →

Question 5. You must keep audit logs for several years and let analysts query them with SQL. Which approach fits?

  • A. Rely on the default Logs Explorer view
  • B. Create a log sink that exports to BigQuery
  • C. Download logs to a laptop each month
  • D. Route logs to a Pub/Sub topic with no subscribers
Show answer

Answer: B

A log sink can route entries to BigQuery, where analysts run SQL, and the dataset can keep data for the required period. Viewing logs in the console only works within the log bucket retention, exporting to a local laptop is unmanaged, and Pub/Sub is a messaging service, not a queryable archive.

Want more questions like this? Full Cloud Engineer practice tests →

Keep going

Review the setup and environment and access and security pages, then lay out your preparation with the study plan.