Google Cloud Associate Cloud Engineer Practice Exam Questions and Answers – Part 8/9

Practice for the Google Cloud Associate Cloud Engineer exam with 18 exam-style practice questions, instant answer reveals, and concise explanations of every correct answer. Topics include: Your media company is building a modern image processing pipeline using Cloud Run Functions. You require the function to. Follow @CertPunch and visit certpunch.com for more certification practice exams and study content.

Prefer hands-on? Take this round as an interactive practice test — answer every question, get instant feedback, and see your score: Start the Google Cloud Associate Cloud Engineer practice test →

What you will practice

  • Your media company is building a modern image processing pipeline using Cloud Run Functions. You require the…
  • Your e-commerce platform is deploying a major frontend update (v2) to App Engine. You need to perform a canar…
  • Your DevOps team is responding to a critical production outage that requires "Project Owner" privileges to re…
  • You are the database administrator for a busy e-commerce platform. At 10:00 AM, a lead developer accidentally…
  • Your data analytics platform runs in "Project-A" using a dedicated Service Account. This application needs to…
  • You have a fleet of application VMs running in a private VPC. They need to communicate with a database using…

Answers and explanations

Tap a question to expand the answer and the exam reasoning. Try to commit to your own pick first.

Q1. Your media company is building a modern image processing pipeline using Cloud Run Functions. You require the function to execute immediately whenever a user uploads a file to a specific Cloud Storage bucket. The architecture must use the l…

Answer: C. Create an Eventarc trigger filtering on the google.cloud.storage.object.v1.finalized event type for the specific bucket.

Eventarc is the native eventing standard for second-generation Cloud Run Functions, providing direct, managed integration with Cloud Storage without requiring manual Pub/Sub configuration. While Pub/Sub notifications remain valid for legacy architectures, Eventarc is the modern, unified approach expected for native integrations.

Q2. Your e-commerce platform is deploying a major frontend update (v2) to App Engine. You need to perform a canary release where 10% of traffic is routed to v2. To ensure a consistent user experience, it is a hard requirement that a specific u…

Answer: B. Configure Traffic Splitting by Cookie (GOOGAPPUID). Set version v2 to 10% and v1 to 90%.

Splitting traffic by cookie guarantees session affinity by issuing a unique tracking cookie to the client, ensuring a user remains on the same version. IP address splitting is imprecise because corporate proxies and mobile networks cause IP changes, breaking session consistency.

Q3. Your DevOps team is responding to a critical production outage that requires "Project Owner" privileges to resolve. Security policy strictly forbids creating or downloading long-lived Service Account keys due to the risk of credential leak…

Answer: A. Grant the developer the Service Account Token Creator role on the privileged Service Account. Instruct them to use gcloud auth print-access-token –impersonate-service-account.

Granting the Service Account Token Creator role enables impersonation, allowing the developer to generate short-lived access tokens without handling static keys. Generating a temporary key violates the strict policy because the downloaded JSON file risks leakage and persists until manually deleted.

Q4. You are the database administrator for a busy e-commerce platform. At 10:00 AM, a lead developer accidentally ran a DROP TABLE orders command in the production Cloud SQL for MySQL instance, causing an immediate outage. You need to recover…

Answer: B. Initiate a Point-in-Time Recovery (PITR) to a new Cloud SQL instance, specifying the timestamp 9:55 AM. Once verified, export the data and import it back to the primary, or promote the new instance.

Point-in-time recovery creates a new Cloud SQL instance using transaction logs, allowing you to verify the data integrity before routing traffic. Performing recovery on the existing instance is destructive and prevents forensic analysis of the current production database state.

Q5. Your data analytics platform runs in "Project-A" using a dedicated Service Account. This application needs to read raw dataset files located in a Cloud Storage bucket in a separate project, "Project-B". You need to configure the most secur…

Answer: C. In Project B, grant the roles/storage.objectViewer role to the member serviceAccount:app-sa@project-a.iam.gserviceaccount.com.

IAM policies attach directly to the resource being accessed, so grant the service account from Project A the Object Viewer role inside Project B. Granting roles in Project A only grants access to resources within Project A.

Q6. You have a fleet of application VMs running in a private VPC. They need to communicate with a database using the hostname db.internal.example.com which resolves to a private internal IP (10.0.0.5). For security reasons, this hostname must…

Answer: A. Create a Cloud DNS Private Zone for internal.example.com. Add an A record for db. Authorize the zone for your VPC.

Cloud DNS private zones provide managed internal resolution restricted to your VPC. Public zones publish records to the internet, while IAM roles only control administrative edits, not DNS query visibility.

Q7. An SRE needs a single place in the Google Cloud console to see active Google Cloud service incidents, open Cloud Monitoring alerts, application deployment failures, and quota usage — all consolidated for their project and applications with…

Answer: C. Cloud Hub, which provides DevOps and SRE teams a centralized view of active events, health data, deployment status, and resource insights for Google Cloud projects and applications.

Cloud Hub is the correct Google Cloud service for SREs to view consolidated operational data, including incidents, alerts, and deployment statuses. Cloud Monitoring is excellent for metrics but lacks this unified operational single-pane view.

Q8. Your data analytics team manages a massive 500 TB dataset of historical web server access logs spanning from 2020 to 2025. Data analysts frequently run SQL queries to analyze traffic trends, usually filtering for specific days or weeks (e…

Answer: D. Create a Partitioned Table based on the timestamp column.

Partitioning a table by timestamp physically segments the data, allowing BigQuery to prune entire partitions and drastically reduce bytes scanned during date-filtered queries. Clustering helps organize data within partitions but lacks the same hard billing guarantees.

Q9. A machine learning engineer is evaluating which of the following four workloads is least suitable for Cloud TPU and should instead run on a GPU. Which workload should they route to a GPU?

Answer: C. A real-time object detection model that processes video frames with variable input resolutions, producing tensors with dynamic shapes at each step.

Cloud TPUs require ahead-of-time graph compilation, making them poorly suited for workloads with dynamic tensor shapes. GPUs handle variable input resolutions natively without recompilation, avoiding severe performance bottlenecks.

Q10. Your organization wants to configure Workforce Identity Federation so that contractors from an external partner can access Google Cloud resources across multiple projects. An administrator attempts to create the workforce identity pool but…

Answer: C. Workforce identity pools are an organization-level resource and must be created at the organization node, not inside a project. The administrator should navigate to the organization in the console and create the pool there.

Workforce identity pools are organization-level resources, not project-level resources. For the exam, remember that federated identity pools are created at the organization node so they can be used across multiple projects. Creating them inside a folder or project will fail.

Q11. Your Chief Information Security Officer (CISO) requires an immediate report of all virtual machines across the entire organization that are tagged with the label "environment:legacy". The organization contains hundreds of projects, and you…

Answer: B. Use Cloud Asset Inventory with the gcloud asset search-all-resources command and a query filter.

Cloud Asset Inventory lets you search resources across an entire organization with a single command. Scripting loops through hundreds of projects is inefficient and hits API limits, whereas Deployment Manager only tracks resources it deployed.

Q12. You are configuring a High Availability (HA) VPN connection between your headquarters and Google Cloud. The business requires a 99.99% Availability SLA. Your on-premises VPN device is capable of supporting multiple tunnels and has two exte…

Answer: C. Create one HA VPN Gateway in Google Cloud. Configure four tunnels: Interface 0 to on-prem IP 1, Interface 0 to on-prem IP 2, Interface 1 to on-prem IP 1, and Interface 1 to on-prem IP 2.

Configuring a full mesh of four tunnels provides the required 99.99 percent uptime SLA for an HA VPN. A two-tunnel configuration only provides a 99.9 percent SLA, because losing one path leaves no redundancy for subsequent failures.

Q13. You have a BigQuery table of retail sales data that is already Partitioned by transaction_date. Your analysts frequently run queries filtering by customer_id to generate user-specific history reports. These queries are currently slow becau…

Answer: A. Apply Clustering to the table on the customer_id column.

Applying clustering to the table on the customer ID column physically sorts data within partitions to speed up filtered queries. Partitioning by a high cardinality column like customer ID exceeds the maximum partition limit, making clustering the correct optimization.

Q14. You manage a raw event table raw_events that is updated continuously. To support a dashboard, you need to run a SQL aggregation query every night at exactly 2:00 AM to summarize the day's data and overwrite a daily_report table. You want t…

Answer: A. Create a Scheduled Query in the BigQuery console that runs the SQL query.

Scheduled Queries handle SQL-to-SQL transformations with minimal operational overhead. Dataflow is for complex ETL pipelines, while Cloud Run functions require writing custom code and managing multiple resources for a simple scheduled task.

Q15. A junior data scientist on your team has written a complex SQL query involving multiple joins across several multi-terabyte tables. Before they execute the query, you want to ensure they verify exactly how much data will be processed to pr…

Answer: A. Instruct them to use the –dry_run flag in the CLI or view the 'Query Validator' estimate in the Console before running.

Using the dry run flag or Query Validator in BigQuery calculates exact data processing volumes without executing the job. Adding a LIMIT clause is a common trap because BigQuery still scans the full column before applying the limit.

Q16. You are a Cloud Architect migrating a legacy monolithic inventory application to Compute Engine. The application's documentation states it requires exactly 6 vCPUs and 20 GB of RAM to function correctly; less RAM causes crashes, and more C…

Answer: D. Create a Custom Machine Type with 6 vCPUs and 20 GB of RAM.

Creating a Custom Machine Type provisions the exact hardware needed. For the exam, remember that billing relies on provisioned resources, so startup scripts masking CPUs won't lower costs, and CUDs merely discount existing configurations rather than eliminating waste.

Q17. Your fintech startup processes real-time credit card transactions using Cloud Run Functions triggered by Pub/Sub messages. It is critical that every transaction is processed successfully; if the function crashes or times out due to a trans…

Answer: C. Configure the Cloud Run Function with a Pub/Sub Trigger (Push Subscription). Ensure the function returns a 200 OK status only upon success and a 500 error on failure.

Using a Pub/Sub trigger with a push subscription natively handles retries. If the function returns a non-200 status code, Pub/Sub automatically redelivers the message. Avoid pulling messages manually inside an ephemeral Cloud Run Function, as it introduces complex lifecycle management.

Q18. You are deploying a self-managed PostgreSQL database cluster on Compute Engine for a financial trading platform. The disaster recovery policy is strict: you must achieve a Recovery Point Objective (RPO) of zero in the event of a total zona…

Answer: C. Attach a Regional Persistent Disk to the primary instance.

Attaching a Regional Persistent Disk synchronously replicates data across two zones, achieving a zero Recovery Point Objective. You can force attach the disk to a standby instance in the secondary zone during an outage. Standard snapshots or local SSDs cannot provide immediate, zero-loss failover.

More Google Cloud Associate Cloud Engineer drills and other practice exams are on @CertPunch. New rounds drop every few days at certpunch.com.

Scroll to Top