Google Cloud Associate Cloud Engineer Practice Test – 311 Free Exam Questions with Answers

Google Cloud Associate Cloud Engineer

311 questions · instant answer feedback · concise explanations · free

  1. Question 1 of 311A developer needs to test a script that interacts with a Cloud Storage bucket. The script is designed to run on a VM using a specific service account app-sa@project.iam.gserviceaccount.com. To test locally on their workstation without downloading long-lived keys, the developer wants to impersonate this service account. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Grant the developer the roles/iam.serviceAccountTokenCreator role on the service account and instruct them to use the –impersonate-service-account flag.

    Granting the Token Creator role enables the developer to generate short-lived credentials via impersonation. Downloading JSON or P12 keys introduces severe security risks, while the Service Account User role only allows attaching identities to resources, not local impersonation.

  2. Question 2 of 311You are deploying a workload to GKE that needs to pull private container images from an Artifact Registry repository located in the same project. You want to follow the principle of least privilege and avoid managing static keys. How should you configure access?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Configure Workload Identity to bind the Kubernetes Service Account (KSA) to a Google Service Account (GSA) with the Artifact Registry Reader role.

    Configuring Workload Identity allows pods to securely impersonate a dedicated Google service account without managing long-lived keys. For the exam, always select Workload Identity over static JSON keys or node-level configurations to enforce least privilege in GKE.

  3. Question 3 of 311Your application generates extensive log files stored in a Cloud Storage bucket. These logs are critical for troubleshooting during the first 60 days. After that, they are required solely for regulatory compliance, will likely never be read again, and must be kept for 3 years. You need the most cost-effective storage solution. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Configure a Lifecycle rule to change the storage class to Archive Storage after 60 days.

    Configuring an object lifecycle rule to transition logs to Archive Storage directly minimizes costs for long-term, rarely accessed compliance data. Moving files to Standard Storage or BigQuery increases expenses, as those services are optimized for frequently accessed, active workloads.

  4. Question 4 of 311You are building an IoT platform that ingests sensor data from 100,000 devices. The devices send readings every second, resulting in a massive volume of write operations. You need a database that can handle millions of writes per second with sub-millisecond latency and scale to store 50 TB of time-series data. What should you use?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Cloud Bigtable

    Cloud Bigtable is the correct choice because it handles massive write throughput and time-series workloads with sub-millisecond latency. BigQuery is optimized for analytical reporting rather than real-time ingestion, and Cloud SQL cannot scale efficiently to millions of writes per second.

  5. Question 5 of 311You are the cloud lead for a company running workloads in multiple projects. The finance team needs to perform complex, granular cost analysis using SQL to join billing data with internal business metrics (e.g., "Cost per customer transaction"). They need this data updated automatically. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Enable detailed usage cost data export to BigQuery.

    Enabling detailed usage cost data export to BigQuery automatically streams granular billing data for SQL analysis. Exporting to Google Sheets or downloading CSVs lacks the necessary automation, while using the API requires unnecessary custom pipeline maintenance.

  6. Question 6 of 311Your company operates in a regulated industry with strict data residency requirements. The compliance officer has mandated that all new cloud resources (VMs, Buckets, Databases) must be created ONLY in European regions (europe-west1, europe-west4, europe-north1). This restriction must apply to all projects in the organization. You need to enforce this policy so that developers receive an error immediately if they attempt to create resources in non-compliant regions (e.g., us-central1). What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Configure an Organization Policy with the gcp.resourceLocations constraint and set the allowed values to the European regions.

    Configuring an Organization Policy with the gcp.resourceLocations constraint immediately prevents resource creation outside allowed regions. IAM conditions or deny policies require massive administrative overhead, while reactive deletion functions fail to block non-compliant resources immediately.

  7. Question 7 of 311A data science team is evaluating accelerators for two separate workloads. Workload A is a large-scale transformer model training job using JAX, with fixed input shapes, large batch sizes, and dominated by dense matrix operations. Workload B is early-stage research where engineers frequently experiment with custom PyTorch operations and need the flexibility to iterate quickly without recompiling. Which accelerator mapping is correct?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Workload A: Cloud TPU. Workload B: GPU.

    Cloud TPUs are optimized for large-scale matrix operations with fixed shapes, making them perfect for Workload A. GPUs are the correct choice for Workload B because they handle custom PyTorch operations and rapid iteration without the overhead of graph compilation.

  8. Question 8 of 311Your company runs a nightly batch processing job that takes approximately 3-4 hours to complete. The job requires a specific amount of RAM and CPU to run efficiently. The application has built-in checkpointing, so if it is interrupted, it can resume from the last saved state. You need to migrate this job to Google Cloud with the goal of minimizing compute costs. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Run the job on Compute Engine Spot VMs and use a shutdown script to save the checkpoint.

    Running the job on Compute Engine Spot VMs minimizes costs while handling preemption via checkpointing. Shut down scripts capture the preemption notice to save progress, whereas serverless options like Cloud Run or App Engine lack the cost efficiency for long-running batch jobs.

  9. Question 9 of 311You are designing a global web application that must be deployed in three specific regions: us-central1, europe-west1, and asia-east1. You need a single global IP address that routes users to the closest healthy region and automatically fails over if a region goes offline. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Deploy Managed Instance Groups (MIGs) in each region and add them as backends to a Global External HTTP(S) Load Balancer.

    A Global External HTTP(S) Load Balancer provides a single anycast IP and instantly routes traffic to the closest healthy region. DNS-based routing relies on TTLs causing delays during failover, and Cloud CDN alone lacks the necessary health checking backend routing capabilities.

  10. Question 10 of 311Your security team mandates that junior operators must be able to view the configuration details of Compute Engine instances (e.g., machine type, disk size) but must strictly be prevented from starting, stopping, or deleting them. You need to create a custom role to satisfy this requirement. Which permissions should you include?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. compute.instances.get and compute.instances.list

    Including compute.instances.get and list grants strictly read-only access to view machine configurations. Granting start, stop, or wildcard permissions violates the requirement, while setMetadata is a write operation that could allow unauthorized privilege escalation.

  11. Question 11 of 311You are deploying a 3-tier application with web, application, and database layers. The application VMs are in subnet-a, and the database VMs are in subnet-b. For security compliance, you need to configure a firewall rule that allows traffic to the database on port 5432 only from the specific application VMs, while denying traffic from other VMs in subnet-a. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Create a firewall rule with the target service account of the database VMs and source service account of the application VMs.

    Using service accounts for both source and target filtering ensures only the specific application VMs access the database. Network tags present security vulnerabilities since users could attach them to unauthorized machines, while static IPs break during autoscaling.

  12. Question 12 of 311Your organization's security team requires that all audit logs from your production project be retained for 3 years to satisfy compliance regulations. Additionally, security analysts need to run complex SQL queries against these logs to identify unauthorized access patterns. Cloud Logging currently retains logs for only 30 days. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Create a Log Router sink to export the audit logs to a BigQuery dataset.

    Creating a Log Router sink to BigQuery satisfies both long-term retention and complex SQL analysis requirements. Cloud Storage archives logs but complicates SQL queries, while relying on Cloud Logging's custom retention is expensive and less analytically capable.

  13. Question 13 of 311Your organization has two Google Cloud projects: frontend-proj and backend-proj. Each project has its own Custom VPC network. The frontend application in frontend-proj needs to connect to the database in backend-proj using internal private IP addresses to minimize latency and avoid egress costs. The IP ranges of the two VPCs do not overlap. You want to establish this connectivity with the least operational overhead. What should you configure?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Create a VPC Network Peering connection between the two VPC networks.

    VPC Network Peering provides internal IP connectivity between two networks, keeping traffic on Google's private backbone with minimal latency. Shared VPC requires complex resource migration to a host project, resulting in significantly higher operational overhead than peering.

  14. Question 14 of 311You have just applied a rolling update to a deployment named frontend-app in your GKE cluster. Users immediately report 500 errors. You need to revert the deployment to the previous stable revision as quickly as possible. Which command should you run?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. kubectl rollout undo deployment/frontend-app

    The kubectl rollout undo command instantly reverts a deployment to its previous stable revision using built-in history. Applying an older YAML file works technically but requires locating the exact file, which introduces unnecessary delay during a production outage.

  15. Question 15 of 311Your security team has issued a new mandate for a sensitive Cloud Storage bucket containing financial records. They require that access to objects must be uniform: if a user has access to the bucket, they should have access to all objects within it. Individual object-level permissions (ACLs) must be disabled to prevent accidental data exposure. What configuration should you apply?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Enable Uniform Bucket-Level Access (UBLA) on the bucket.

    Enabling Uniform Bucket-Level Access disables Access Control Lists, ensuring permissions are managed exclusively through bucket-level IAM policies. Setting default object ACLs to private leaves the ACL system active, meaning users could still modify individual object permissions later.

  16. Question 16 of 311You are responsible for the reliability of a Managed Instance Group (MIG) serving a production API. You need to ensure the operations team is notified via email whenever the average CPU utilization of the instance group exceeds 80% for a duration of more than 5 minutes. What should you create?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Configure a Cloud Monitoring Alerting Policy with a metric threshold condition for the MIG, setting the duration to 5 minutes.

    A Cloud Monitoring Alerting Policy natively tracks infrastructure metrics and sends notifications when sustained thresholds are breached. Writing custom Cloud Run Functions to poll APIs duplicates existing managed services and introduces unnecessary code maintenance.

  17. Question 17 of 311You are designing the network architecture for a global media application. The production environment requires the lowest possible latency and high availability for users worldwide. However, the development environment is cost-sensitive and is hosted in a single region. How should you configure the Network Service Tiers?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Use Premium Tier for the production project and Standard Tier for the development project.

    Premium Tier routes traffic over Google's private global backbone using cold-potato routing, providing the lowest latency for your production environment. Standard Tier uses cheaper public ISP routing, making it the most cost-effective choice for your development environment where performance is less critical.

  18. Question 18 of 311Your development team uses Artifact Registry to store Docker container images in a repository called "app-images" in us-central1. The team now wants to also store their Maven Java packages and npm Node.js packages in the same location to simplify artifact management. They ask you to configure the existing "app-images" repository to accept Maven and npm artifacts in addition to Docker images. What should you tell the team?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Create separate repositories for Maven and npm, as each Artifact Registry repository supports only a single format that cannot be changed after creation

    Artifact Registry repositories are immutable and permanently bound to a single format specified at creation. You must create separate repositories for Docker, Maven, and npm packages because Google enforces strict one-to-one mappings between repositories and artifact formats.

  19. Question 19 of 311Your company wants to migrate containerized workloads to Google Kubernetes Engine (GKE). The operations team wants to minimize ongoing maintenance overhead. Specifically, they require a solution where Google manages the node configuration, scaling, security patching, and node health monitoring entirely. You should not be able to SSH into nodes or manage node pools directly. Which GKE mode should you choose?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. GKE Autopilot

    GKE Autopilot is a fully managed mode where Google handles node provisioning, scaling, and security patching. Standard mode fails the requirements because you still manage the underlying node pools and retain SSH access to the nodes.

  20. Question 20 of 311You have configured a Compute Engine VM with a specific application stack, security patches, and custom configuration files. You need to launch 50 identical instances of this VM across three different regions (us-central1, europe-west1, asia-east1) to support a global launch. You need the most efficient and scalable method to achieve this. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Create a custom image from the source VM's boot disk and reference this image in your Instance Templates.

    Creating a custom image from the boot disk lets you reference it globally within instance templates for immediate deployments. Using startup scripts increases boot times because they must download and install dependencies every time a new VM initializes.

  21. Question 21 of 311Your development team needs to deploy a stateless HTTP API. The application receives unpredictable traffic spikes, ranging from 0 requests per minute at night to 1000 requests per minute during the day. To minimize costs, the solution must scale to zero when idle and scale up instantly during spikes. What should you use?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Cloud Run with autoscaling and min-instances set to 0.

    Cloud Run natively supports scaling to zero when idle and rapidly scales up to handle unpredictable traffic spikes. App Engine Flexible cannot scale to zero, and GKE requires additional tooling to achieve similar scale-from-zero behavior.

  22. Question 22 of 311You are managing a fleet of production virtual machines that host critical business applications. Your disaster recovery plan requires daily backups of the persistent disks at 2:00 AM local time. These backups must be retained for exactly 30 days to comply with data retention policies. You need a fully managed solution that minimizes operational overhead and does not require maintaining custom scripts. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Create a Snapshot Schedule in Compute Engine with the required frequency and retention policy, and attach it to the persistent disks.

    Compute Engine snapshot schedules provide native automated backups with configurable frequencies and retention policies, satisfying the requirements without custom scripts. Avoid cron jobs or Cloud Functions, which require you to write and maintain custom code for creation and deletion.

  23. Question 23 of 311Your web application serves a mix of content through an external Application Load Balancer with Cloud CDN enabled. The application serves static assets (images, CSS, JavaScript) that should be cached, but your origin server doesn't currently set Cache-Control headers on responses. You want Cloud CDN to automatically cache these static assets without requiring changes to your origin server configuration. Which Cloud CDN cache mode should you configure for this backend service?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. CACHE_ALL_STATIC – automatically caches static content based on Content-Type, even when origin doesn't set cache headers

    The CACHE_ALL_STATIC mode caches static content based on Content-Type headers even if the origin provides no cache directives. The USE_ORIGIN_HEADERS mode fails here because the origin currently sets no headers, meaning nothing would be cached.

  24. Question 24 of 311You want to enforce strict budget controls on a sandbox project. The requirement is to automatically remove all permissions for the project's developers if the monthly spend exceeds 90% of the budget. You need a solution that requires no manual intervention. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Create a Budget with a Pub/Sub topic, and trigger a Cloud Run Function to remove IAM bindings.

    Cloud Budgets can publish notifications to Pub/Sub when spending thresholds are crossed, allowing an automated Cloud Run Function to revoke IAM permissions. Email alerts fail the requirement because they require manual human intervention to enforce the access changes.

  25. Question 25 of 311Your organization is deploying a large fleet of microservices on Compute Engine. You want to implement firewall rules that automatically apply to VMs based on their identity (Service Account). You want to avoid the operational overhead of manually managing network tags every time a VM is created or destroyed by an autoscaler. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Configure the firewall rules to use Service Accounts as the source and target.

    Using service accounts as targets in VPC firewall rules binds security to VM identity rather than mutable network tags. Tags defined in instance templates work for basic deployments, but service accounts provide stronger cryptographic identity and avoid manual tag management.

  26. Question 26 of 311Your organization wants to centralize SSH access management for all Compute Engine Linux instances. You need to ensure that developers can SSH into VMs using their Google Workspace credentials. You want to avoid managing individual SSH keys in metadata. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Enable OS Login by setting the metadata enable-oslogin=TRUE at the project level, and grant developers the roles/compute.osLogin role.

    Enabling OS Login links Linux accounts to Google Cloud identities, automatically managing SSH keys through IAM without manual metadata updates. While IAP TCP forwarding secures network connectivity, it does not handle operating system authentication, making OS Login the required component.

  27. Question 27 of 311A developer has installed the Google Cloud CLI (gcloud) on a new workstation. They need to authenticate using their user account and ensure that all commands run against the project my-core-app by default. Which TWO commands must they run?

    Select 2 answers.

    Show answer & explanation

    Correct answer: C. gcloud config set project my-core-app · E. gcloud auth login

    Use gcloud auth login to authenticate interactively with user credentials, and gcloud config set project to define the default project. Avoid application-default login because it provisions credentials for application code libraries rather than the CLI itself.

  28. Question 28 of 311Your application running on GKE experiences variable traffic. You need the number of Pod replicas to automatically increase when the average CPU utilization across all pods exceeds 70%, and decrease when it drops below that target. What should you create?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. HorizontalPodAutoscaler (HPA)

    The HorizontalPodAutoscaler automatically adjusts the number of pod replicas based on observed CPU utilization. The VerticalPodAutoscaler fails this requirement because it adjusts CPU and memory requests instead of scaling the replica count horizontally.

  29. Question 29 of 311You have an application running on a Compute Engine instance that needs to write custom metrics to Cloud Monitoring. To follow the principle of least privilege, which identity and role should you use?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Attach a Service Account to the instance with the roles/monitoring.metricWriter role.

    Attach a dedicated service account with the monitoring.metricWriter role to grant write permissions via Application Default Credentials. Avoid downloading JSON keys, as Google recommends against manual key management when native service account attachment is available.

  30. Question 30 of 311Your company's public-facing web application behind an external Application Load Balancer is experiencing frequent DDoS attacks from multiple IP addresses. Security logs show that some attackers are sending over 100 requests per minute from single IP addresses, overwhelming your backend services. You need to protect your application by automatically blocking IP addresses that exceed this threshold while still allowing legitimate traffic through. What is the most effective Cloud Armor configuration for this requirement?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Create a Cloud Armor security policy with a rate-based ban rule that blocks IPs exceeding 100 requests per minute for a specified ban duration

    Cloud Armor rate-based ban rules automatically block IPs exceeding a specified request threshold, mitigating DDoS attacks at the network edge. Manually adding deny rules fails the automation requirement because it is reactive and cannot scale against rapidly changing attackers.

  31. Question 31 of 311A financial services company is building a fraud detection system that processes millions of transactions per second. The architecture requires a messaging system that provides exactly-once delivery guarantees and must be compatible with existing applications using the Apache Kafka API. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Use Google Cloud Managed Service for Apache Kafka.

    Google Cloud Managed Service for Apache Kafka provides native API compatibility and exactly-once delivery semantics without operational overhead. Self-managing Kafka on Compute Engine or GKE fails the operational efficiency requirement because your team must handle all patching and clustering manually.

  32. Question 32 of 311You are setting up a new project my-app-dev for a team of developers. They need full control to create, modify, and delete Compute Engine instances within this specific project. However, for security reasons, they must not have any access to resources in your production projects. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Grant the roles/compute.instanceAdmin.v1 role to the developer group on the my-app-dev project.

    Granting compute.instanceAdmin.v1 on the specific project perfectly enforces least privilege, allowing developers to manage VMs without affecting production. Avoid granting broad primitive roles like Editor, or granting permissions at the organization level, which violates your security boundaries.

  33. Question 33 of 311Your organization assigns costs to different departments using labels (e.g., dept:marketing, dept:sales). You need to see a visualization of the last 30 days of spending, grouped by these labels, directly in the Google Cloud Console. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Use the Reports view in the Cloud Billing Console and group by "Label".

    The Reports view in the Cloud Billing Console provides native visualization of cost trends grouped by labels. Exporting to BigQuery is useful for advanced reporting, but it is unnecessary for quickly viewing a month of spending directly in the console.

  34. Question 34 of 311Your organisation currently has three teams: Finance, Engineering, and Marketing, each with projects in their own folder. A new auditor needs read-only access to all Cloud Storage buckets across the organisation. This access must automatically extend to any new projects created within the existing folders, as well as to any entirely new team folders added to the organisation in the future. What is the most efficient way to grant this access?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Grant the auditor roles/storage.objectViewer at the organisation level.

    Granting roles at the organization level leverages resource hierarchy inheritance, automatically applying permissions to all current and future folders and projects. Granting access at the folder or project level requires repeating the process manually whenever new resources are created.

  35. Question 35 of 311You are migrating a legacy Java application to Google Cloud. The application depends on specific Linux kernel modules and a custom OS configuration that was tuned manually over years. The application is not containerized, and the team does not have the resources to refactor it into containers immediately. What is the most appropriate compute service?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Compute Engine

    Compute Engine provides full administrative control over the operating system, allowing you to install specific kernel modules and customize configurations. Fully managed platforms like Cloud Run or App Engine abstract the underlying operating system and restrict kernel-level access.

  36. Question 36 of 311Your application running on Compute Engine needs to access Cloud Storage buckets in a different project. For security reasons, your organization's policy prohibits downloading and storing service account JSON key files. You need to grant the application temporary access to a service account (storage-admin@other-project.iam.gserviceaccount.com) that has the necessary permissions to the buckets, without using long-lived credentials. What is the recommended approach to provide this access?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Grant the Compute Engine service account the Service Account Token Creator role on storage-admin@other-project.iam.gserviceaccount.com, then use the generateAccessToken API to create short-lived credentials

    Granting the Token Creator role allows the VM service account to impersonate the target account and generate short-lived access tokens. This avoids downloading static JSON keys, which pose security risks, and keeps cross-project access securely auditable.

  37. Question 37 of 311You are managing a VPC network in the us-central1 region for a production application. The current subnet app-subnet has a CIDR range of 10.0.1.0/24, which provides 254 usable IP addresses. You currently have 200 running instances in this subnet. Your team needs to deploy an additional 500 virtual machines into this same subnet to support a new marketing campaign. You must accommodate these new instances without recreating the subnet or disrupting the connectivity of the existing running instances. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Use the gcloud compute networks subnets expand-ip-range command to increase the prefix length to /21.

    The expand-ip-range command lets you increase a subnet capacity in place without disrupting existing running instances. Secondary ranges are only for alias IPs and containers, not for assigning primary internal IPs to new Compute Engine VMs.

  38. Question 38 of 311Your platform engineering team wants to manage Google Cloud resources—such as Cloud SQL instances, Pub/Sub topics, and IAM policies—using the same Kubernetes-style YAML manifests and GitOps workflows they use for their applications. They want to apply these manifests to the GKE cluster using kubectl. What should you install and configure?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Config Connector

    Config Connector is a Kubernetes add-on that lets you manage Google Cloud resources using standard YAML manifests via kubectl. Terraform flows in the opposite direction, while Deployment Manager uses entirely different configuration templates.

  39. Question 39 of 311Your team is developing a high-traffic gaming leaderboard application. The application frequently queries the same database records, causing high load on the primary Cloud SQL instance. You need to implement an in-memory caching layer that supports the Redis protocol to reduce database load and improve response times.

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Deploy a Memorystore for Redis instance and configure the application to cache results there.

    Memorystore for Redis provides a fully managed in-memory caching layer that natively supports the Redis protocol. Self-managing a cluster on GKE or VMs adds unnecessary operational overhead, while Memcached does not support the required protocol.

  40. Question 40 of 311Your finance department uploads monthly PDF invoices to a Cloud Storage bucket. These documents are accessed frequently during the first 30 days for accounting reviews. After 30 days, they are rarely accessed but must be retained for 7 years to meet tax compliance regulations. You want to minimize storage costs automatically without changing how users access the files. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Configure an Object Lifecycle Management rule to downgrade storage class to Nearline after 30 days and to Coldline after 365 days.

    Object Lifecycle Management automatically transitions storage classes based on age, minimizing costs without custom code. Jumping directly to Archive after thirty days incurs early deletion fees if accessed before the mandatory year elapses.

  41. Question 41 of 311Your business intelligence team is experiencing slow query performance on their Looker dashboards that query BigQuery datasets. These dashboards run repeated queries on a few key tables (approximately 5 GB total) throughout the day to display real-time metrics. You want to accelerate these specific dashboard queries without affecting other BigQuery workloads in your project. What is the most effective way to configure BigQuery for this use case?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Create a BI Engine reservation with sufficient memory capacity and designate the key dashboard tables as preferred tables

    Creating a BI Engine reservation with preferred tables accelerates repeated dashboard queries by caching table data in memory. BigQuery result caching only works for exact duplicate queries, whereas BI Engine accelerates similar queries across your preferred tables.

  42. Question 42 of 311A CI/CD pipeline stores temporary build artifacts in a specific Cloud Storage bucket. To save costs, you want to ensure that any artifact older than 90 days is automatically removed. No one needs these files after this period. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Configure a Lifecycle rule with the action Delete and condition Age: 90 days.

    Configuring a Lifecycle rule with a Delete action and an age condition automatically removes old objects without custom scripts. Retention policies prevent deletion for compliance, which is the exact opposite of the required automatic cleanup behavior.

  43. Question 43 of 311Your company uses Okta as its corporate identity provider. Employees need to access the Google Cloud console and run gcloud CLI commands using their existing Okta credentials, without creating separate Google Cloud Identity accounts for each user. Your security policy also prohibits long-lived credentials. Which Google Cloud feature should you configure?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Workforce Identity Federation, by creating a workforce identity pool and an Okta OIDC or SAML 2.0 provider, so employees can use SSO with short-lived tokens and no Cloud Identity accounts are required.

    Workforce Identity Federation allows employees to sign in using external identity providers with short-lived tokens, avoiding separate Cloud Identity accounts. Workload Identity Federation is designed for automated workloads and code pipelines, not interactive human users.

  44. Question 44 of 311A data science team wants to train a custom TensorFlow model on Google Cloud and then serve it as a managed online prediction endpoint for low-latency real-time inference requests. They want the platform to handle the serving infrastructure automatically, with no Kubernetes clusters or VMs to manage. Which service should they use?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Gemini Enterprise Agent Platform, which provides managed custom model training and a fully managed online prediction service that deploys models to endpoints without requiring infrastructure management.

    Vertex AI provides a fully managed environment for custom model training and deploys models to online prediction endpoints without infrastructure management. BigQuery ML is excellent for training models using SQL on structured data but does not serve real-time custom TensorFlow endpoints.

  45. Question 45 of 311You have a web application running on a managed instance group of VMs in subnet-a (10.0.1.0/24). These VMs need to connect to a Cloud SQL database instance located in subnet-b (10.0.2.0/24) using its Private IP. Your security team requires strict control: only the specific application VMs should be allowed to reach the database subnet, not any other VMs that might be deployed in subnet-a in the future. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Apply a specific network tag (e.g., web-app) to the application VMs. Create a VPC firewall rule allowing ingress traffic to subnet-b from the source tag web-app.

    Applying a network tag to your application VMs and using it as the source in a firewall rule provides the required strict access control. Filtering by subnet range is too broad because it would allow future VMs in that subnet to access the database.

  46. Question 46 of 311Your company is migrating a critical on-premises PostgreSQL database to Google Cloud. The database is 5 TB in size and requires extremely high transaction throughput and strong consistency. The application relies on native PostgreSQL extensions and stored procedures. You want a fully managed service that minimizes refactoring. Which service should you choose?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. AlloyDB for PostgreSQL

    AlloyDB for PostgreSQL is fully managed and delivers high transaction throughput while maintaining one hundred percent compatibility with native PostgreSQL extensions. Spanner's PostgreSQL interface lacks support for stored procedures, requiring substantial application refactoring.

  47. Question 47 of 311A developer wants an AI assistant that runs entirely in their terminal, accepts natural-language prompts, can read and write files in their local project, execute shell commands, and help fix bugs or add features to a codebase — all without switching to a browser or IDE. Which Google Cloud tool should they use?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Gemini CLI, an open-source AI agent that runs in the terminal and uses a reason-and-act loop to complete coding tasks, run commands, and manipulate files through natural-language prompts.

    Gemini CLI is an open-source AI agent that runs locally in your terminal to manipulate files and execute commands. Gemini Cloud Assist operates exclusively within the Google Cloud console and cannot interact with your local codebase.

  48. Question 48 of 311You are the Cloud Architect for a startup managing three distinct environments: Development, Staging, and Production. All environments use similar infrastructure definitions but require different resource capacities and project IDs. You want to manage this infrastructure using Terraform while minimizing code duplication and ensuring isolation. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Create separate Terraform directories (or workspaces) for each environment and reuse shared modules for infrastructure resources.

    Using separate directories with shared modules ensures complete state isolation and minimizes code duplication. Monolithic files with conditional logic create a massive blast radius, and using a single project violates the requirement for strict environmental isolation.

  49. Question 49 of 311You have discovered that a service account key for a production project was accidentally committed to a public GitHub repository. You suspect attackers are already using it to launch instances. You need to stop all incurring charges immediately and ensure no new resources can be created. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Disable billing on the project.

    Disabling billing on the project immediately stops all billable services and terminates running compute resources. Deleting the compromised service account halts new authentications, but existing access tokens remain valid for up to an hour, so disabling billing is the fastest way to stop incurring charges.

  50. Question 50 of 311You are configuring a Global External Application Load Balancer to serve traffic for a web application spanning three regions. You need to ensure the load balancer accepts HTTP requests and distributes them intelligently to the closest healthy instance group. Which TWO components must you configure?

    Select 2 answers.

    Show answer & explanation

    Correct answer: B. A URL Map to define routing rules for incoming requests. · D. A Backend Service with a configured health check.

    A backend service distributes traffic by relying on health checks to route requests only to available instances. The URL map is also mandatory because it defines the routing rules that direct incoming requests to the correct backend service.

  51. Question 51 of 311A large retail company is migrating 200 legacy servers to Compute Engine VMs across multiple regions. The operations team requires detailed system metrics (memory, disk utilization) and application logs to be centralized in Cloud Logging and Monitoring. You need to ensure the agents are installed and maintained consistently across the fleet with minimal manual intervention. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Use VM Manager to apply an OS policy that installs and configures the Ops Agent on all VMs.

    Applying an OS policy via VM Manager installs and configures the Ops Agent at scale without manual SSH access. Startup scripts only run during boot, meaning they cannot easily update the agent on already running instances.

  52. Question 52 of 311You are troubleshooting a critical issue on a Compute Engine instance named web-server-1. You need to quickly find all log entries with a severity level of ERROR that occurred in the last 24 hours specifically for this instance. Which filter should you use in the Logs Explorer?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. resource.type="gce_instance" AND resource.labels.instance_id="[INSTANCE_ID]" AND severity="ERROR" (Assume [INSTANCE_ID] matches web-server-1)

    The correct filter uses the exact resource type and the numeric instance ID along with the structured severity field. Filtering by the instance name fails because the labels require the unique numeric identifier rather than the human-readable string.

  53. Question 53 of 311Your application runs in a Google Kubernetes Engine (GKE) cluster and needs to write application logs to a Cloud Storage bucket. You want to follow Google's recommended security best practices for authentication, avoiding the management of long-lived service account keys. What should you configure?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Create a Google Service Account (GSA) with the roles/storage.objectCreator role, bind it to a Kubernetes Service Account (KSA) using Workload Identity, and annotate the KSA.

    Workload Identity federates Kubernetes service accounts with Google service accounts to provide short-lived, automatically rotating credentials. Avoid downloading static JSON keys because managing long-lived secrets introduces severe security risks and violates Google Cloud best practices.

  54. Question 54 of 311You need to backup data from a source bucket in us-central1 to a destination bucket in europe-west1 for disaster recovery. You want to run a batch synchronization job every night at 3 AM to copy only new or changed objects. What should you configure?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Configure a Storage Transfer Service job with a daily schedule.

    Storage Transfer Service natively supports scheduled, incremental syncs between Cloud Storage buckets without managing custom code. Avoid building custom pipelines with Cloud Composer or Cloud Run because they introduce unnecessary operational overhead for a straightforward transfer job.

  55. Question 55 of 311Your team needs to process a large batch of images stored in Cloud Storage every night at 2 AM. The processing task resizes and applies filters to thousands of images, which takes approximately 45 minutes to complete. Once the processing finishes, the task should stop running until the next scheduled execution. The workload does not need to respond to HTTP requests and should execute on a fixed schedule. Which Cloud Run option is most appropriate for this workload?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Deploy a Cloud Run job and schedule it using Cloud Scheduler to run at 2 AM daily

    Cloud Run jobs are specifically designed for run-to-completion batch tasks that don't require HTTP requests, stopping automatically when finished. Pairing them with Cloud Scheduler handles the timing perfectly, whereas Cloud Run services bill continuously for idle compute.

  56. Question 56 of 311You manage three Google Cloud projects (development, staging, and production) using Terraform. Each project requires the same foundational infrastructure (VPC, GKE cluster, Cloud SQL instance) but necessitates different configurations, such as machine types, regions, and read replica counts. You need to organize your Terraform code to ensure maintainability and minimize code duplication. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Create a reusable Terraform module for the shared infrastructure and use separate .tfvars files to supply environment-specific values.

    Using a reusable Terraform module with separate tfvars files prevents duplication while allowing environment-specific customization. Avoid managing all environments in a single state file with conditional logic, as this increases complexity and blast radius.

  57. Question 57 of 311Your data pipeline needs to process 10,000 independent tasks in parallel. Each task takes 5-10 minutes to complete. You want a fully managed service that handles job scheduling, queuing, and automatic scaling of resources without requiring you to manage a cluster. What should you use?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Use Cloud Batch to define the job requirements and let it automatically provision and scale the instances.

    Cloud Batch is a fully managed service that handles resource provisioning, scheduling, and queuing for massive parallel tasks automatically. Deploying a standard Google Kubernetes Engine cluster would violate the requirement by forcing you to manage the underlying infrastructure.

  58. Question 58 of 311Your application running on multiple Compute Engine VMs needs shared access to the same files with POSIX-compliant file locking (e.g., flock). The application was designed for NFS storage and cannot be rewritten. What GCP service should you use?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Use Filestore to provide a fully managed NFS file system mounted to all VMs.

    Filestore provides a fully managed Network File System that natively supports concurrent access and POSIX-compliant file locking. Cloud Storage FUSE lacks robust file locking semantics, making it unsuitable for legacy applications requiring strict consistency.

  59. Question 59 of 311A principal in your organisation has been granted roles/storage.admin on a specific Cloud Storage bucket via an allow policy on that project. Your security team also attaches an IAM deny policy to the folder containing that project, which explicitly denies that principal the storage.objects.delete permission. When the principal attempts to delete an object in the bucket, what happens?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. The deletion is denied, because IAM evaluates deny policies before allow policies, and a deny always overrides a grant.

    Identity and Access Management deny policies are evaluated first and always override allow policies, regardless of hierarchy specificity. A deny policy attached to a parent folder successfully prevents the deletion action, even if the project grants admin rights.

  60. Question 60 of 311Your security team requires that developers can only create Compute Engine instances when they are connecting from the corporate office IP range. Requests from outside this range should be denied. How should you implement this?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Create an IAM Allow Policy with a conditional binding that restricts access based on an Access Level containing the corporate IP.

    Identity and Access Management Conditions evaluate access levels to restrict control plane API calls based on the corporate IP address. VPC firewall rules operate at the data plane and cannot restrict Google Cloud API calls like instance creation.

  61. Question 61 of 311Your company runs non-critical data processing jobs nightly. These jobs take 4-6 hours to complete, run once per day, and can tolerate interruptions because they are designed to resume from checkpoints. You want to migrate these jobs to Compute Engine while minimizing costs. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Use Compute Engine Spot VMs and implement a shutdown script to save the job state to Cloud Storage upon preemption.

    Spot virtual machines offer the deepest compute discounts for fault-tolerant workloads and provide a short termination notice to save state. Committed use discounts are incorrect here because they require paying for continuous capacity you rarely use.

  62. Question 62 of 311Your Organization Administrator wants to block outgoing traffic to port 25 (SMTP) for all projects in the organization to prevent spam, with no exceptions. You need to implement this policy at the top of the resource hierarchy so that it overrides any local allow rules created by project owners.

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Create a Hierarchical Firewall Policy at the Organization level with a "Deny" rule for egress port 25 and set action: deny.

    Hierarchical firewall policies let you create centralized deny rules at the organization or folder level that override lower-level VPC firewall rules. Remember that VPC rules are always evaluated after hierarchical policies, ensuring your organization-wide traffic blocks cannot be bypassed by project owners.

  63. Question 63 of 311Your production application uses Filestore and requires high availability. You need the service to automatically failover to a different zone in the event of a zonal outage, with an RPO (Recovery Point Objective) of zero. What should you configure?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Use the Filestore Enterprise tier.

    Filestore Enterprise tier uses synchronous regional replication across multiple zones, providing automatic failover and a zero recovery point objective. Zonal tiers or manual synchronization tools cannot guarantee zero data loss during an outage, making them unsuitable for strict high-availability requirements.

  64. Question 64 of 311You have a Managed Instance Group (MIG) serving as the backend for an Application Load Balancer. The application takes 30 seconds to fully initialize after boot. However, the MIG keeps restarting instances immediately after they are created, causing intermittent 502 errors for users. What should you configure?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Configure the initial delay (initial-delay-sec) in the MIG's autohealing policy to 45 seconds.

    Setting the initial delay in the managed instance group's autohealing policy gives instances a grace period to boot before health checks begin. Simply increasing the health check interval would slow down the detection of genuinely failed instances across your entire application.

  65. Question 65 of 311You are running a Java-based data processing application on a Managed Instance Group. The application is working correctly, but the compute costs are unexpectedly high. You suspect that a specific function in the code is inefficiently consuming excessive CPU resources. You need to identify the resource-intensive functions to optimize the code.

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Configure the application to use Cloud Profiler.

    Cloud Profiler continuously collects CPU and memory usage data from production applications, mapping resource consumption directly to specific code functions. Cloud Trace is used for analyzing distributed request latency, not for identifying internal code inefficiencies driving up compute costs.

  66. Question 66 of 311You are setting up a new Google Cloud project for the marketing department. You need to link this new project to the company's existing Billing Account. You want to delegate this task to a specific finance colleague. Which combination of roles must they have to complete this action?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Project Billing Manager (roles/billing.projectManager) on the Project AND Billing Account User (roles/billing.user) on the Billing Account.

    Linking a project to an existing billing account requires combined permissions to associate the resources. Project Billing Manager modifies the project's billing association, while Billing Account User grants permission to link projects to the target billing account.

  67. Question 67 of 311You need to quickly see a list of all pods running across all namespaces in your GKE cluster, along with their assigned nodes and IP addresses, to troubleshoot a scheduling imbalance. What command should you use?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. kubectl get pods –all-namespaces -o wide

    Using the wide output format with the all-namespaces flag is the standard kubectl method to list pods across the cluster alongside their assigned nodes and IP addresses. The gcloud command-line tool queries infrastructure rather than Kubernetes objects running inside the cluster.

  68. Question 68 of 311Your application pods in GKE are frequently crashing with "OOMKilled" (Out of Memory) errors. You are unsure of the exact memory requirements and want an automated way to adjust the resource requests and limits to fit the actual usage. What should you use?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Configure the Vertical Pod Autoscaler (VPA) in Auto or Recommendation mode to analyze and adjust the pod resource requests.

    The Vertical Pod Autoscaler analyzes historical usage and automatically adjusts CPU and memory requests to prevent crashes. Remember the scaling axes: Horizontal scales pod count, Vertical scales pod size, and Cluster Autoscaler scales nodes.

  69. Question 69 of 311You have an existing GKE cluster with a default node pool running standard CPU machine types. You need to deploy a new machine learning workload that requires NVIDIA GPUs. You want to add this capacity without disrupting or recreating the existing workloads. What is the best approach?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Create a new node pool with GPU-enabled machine types and use node selectors or taints to schedule the ML workloads onto it.

    Creating a separate node pool with GPU machine types isolates your hardware workloads without disrupting existing applications. GKE automatically taints GPU nodes, ensuring only pods requesting GPUs get scheduled there, preventing wasted resources.

  70. Question 70 of 311You want to deploy a new version of your Cloud Run service but send only 10% of traffic to the new version initially to test it in production. If metrics look good, you'll gradually increase traffic. What should you configure?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Deploy the new revision and use Cloud Run traffic management to route 90% of traffic to the current revision and 10% to the new revision.

    Cloud Run provides native traffic splitting capabilities, allowing you to route exact percentages of requests to different revisions. Revision tags create unique testing URLs but do not provide percentage-based routing on the main service endpoint.

  71. Question 71 of 311Your organization uses Okta as its identity provider and has dozens of on-premises applications across multiple departments that need to access different Google Cloud resources. Each application should only access specific resources based on attributes in their Okta identity (such as department, environment, or application tier). You want to avoid creating and managing individual Google Cloud identities for every external application while enforcing fine-grained access control. What should you configure?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Configure Workload Identity Federation with a Workload Identity Pool that trusts Okta as an external identity provider. Use attribute mappings and attribute conditions to control which applications can impersonate which Service Accounts based on their Okta claims.

    Workload Identity Federation lets external applications use short-lived tokens from providers like Okta to impersonate service accounts. Workforce Identity Federation is for human users, while workload federation handles automated programmatic access.

  72. Question 72 of 311Your Cloud Run service container takes 45 seconds to start because it downloads large dependencies and initializes data models at runtime. This causes request timeouts during scaling events. What is the most effective solution?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Refactor the container image to use multi-stage builds, pre-installing all dependencies and models into the image during the build process.

    Pre-installing dependencies into the container image during the build process eliminates heavy runtime initialization, ensuring fast startup times. Increasing the request timeout does not fix the underlying cold start delay, leaving users waiting.

  73. Question 73 of 311Your stateless web application in GKE needs to automatically scale the number of pods between 3 and 20 based on traffic load. You want to scale up when the average CPU utilization exceeds 70% and scale down when it drops below that target. What should you configure?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Configure a HorizontalPodAutoscaler object with minReplicas: 3, maxReplicas: 20, and targetCPUUtilizationPercentage: 70.

    The Horizontal Pod Autoscaler scales the number of pod replicas up or down based on metrics like CPU utilization. The Vertical Pod Autoscaler adjusts resource requests per pod, while the Cluster Autoscaler provisions underlying nodes.

  74. Question 74 of 311You need to migrate 50 TB of data from your on-premises NAS to Cloud Storage. The data must be transferred securely over your existing VPN connection. You want a managed solution that handles retries, validation, and minimal script maintenance. What should you use?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Use Storage Transfer Service with "Transfer Service for on-premises data" agents.

    Storage Transfer Service with on-premises data agents is the managed solution optimized for moving terabytes of network data, handling retries and integrity checks natively. Use gsutil only for smaller, ad-hoc transfers because it requires custom scripts and manual error handling.

  75. Question 75 of 311Your security team has mandated that no virtual machines (VMs) in your production VPC should have external IP addresses. However, developers still need to establish SSH connections to these VMs to perform debugging tasks. You need to enable this access using the most secure method provided by Google Cloud. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Assign the IAP-Secured Tunnel User (roles/iap.tunnelResourceAccessor) role to the developers and use gcloud compute ssh with the –tunnel-through-iap flag.

    The IAP-secured Tunnel User role grants the exact permission needed to route SSH traffic through Identity-Aware Proxy to private VMs. Avoid the IAP Policy Admin role because it manages overall IAP settings rather than granting the actual access needed to establish tunnels.

  76. Question 76 of 311You are designing a storage strategy for a compliance system that stores audit logs. The logs must be resilient to a region-wide outage (geo-redundant) and will be accessed once immediately after creation, and then potentially once every 2 years for investigations. You want to minimize storage costs. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Create a Multi-region bucket. Configure a Lifecycle Rule to SetStorageClass to Archive after 1 day.

    A multi-region bucket ensures geo-redundancy, while transitioning objects to Archive storage after one day minimizes costs for data rarely accessed. Choose Nearline or Coldline only for more frequent access patterns, like once per month or once per quarter respectively.

  77. Question 77 of 311Your startup needs to optimize cloud costs. You have determined that your customer-facing application requires high performance and reliability, but your internal data processing jobs and non-critical workloads do not have strict latency requirements. Which network tier strategy should you adopt?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Use the Premium Tier for customer-facing services and the Standard Tier for internal or non-critical workloads.

    Premium Tier routes traffic over Google's fast, reliable global backbone, making it optimal for user-facing applications. Standard Tier uses public internet routing, costing less and making it perfect for internal or non-critical workloads where latency is less important.

  78. Question 78 of 311You are the lead SRE for a retail company. You need to grant a new junior engineer access to view metrics, dashboards, and uptime checks in the Google Cloud Console for troubleshooting purposes. The security policy strictly prohibits granting permissions to modify alerting policies or notification channels. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Assign the Monitoring Viewer (roles/monitoring.viewer) role to the engineer.

    The Monitoring Viewer role grants read-only access to dashboards and metrics without allowing changes to alerting policies, satisfying least privilege. Avoid broad primitive roles like Viewer because they grant unnecessary read access across all project resources.

  79. Question 79 of 311You are creating a Cloud Storage bucket to store highly sensitive financial documents. The security team requires that no individual object can be accidentally exposed to the public internet, and that access must be managed solely through IAM roles (disabling legacy object-level permissions). Which two features should you enable?

    Select 2 answers.

    Show answer & explanation

    Correct answer: B. Public Access Prevention · D. Uniform Bucket-Level Access

    Enabling Public Access Prevention blocks any attempt to share the bucket publicly, while Uniform Bucket-Level Access disables legacy object ACLs. Remember that Requester Pays handles billing shifts, not security, and fine-grained ACLs actively contradict the requirement.

  80. Question 80 of 311Your company has two separate requirements. Requirement 1: Software developers employed by your company must be able to sign in to the Google Cloud console and run gcloud commands using their existing Microsoft Entra ID corporate credentials, without provisioning separate Google Cloud accounts for each person. Requirement 2: An automated CI/CD pipeline running on GitHub Actions must be able to push container images to Artifact Registry without storing a long-lived service account key in the repository. Which combination correctly maps each requirement to the appropriate Google Cloud feature?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Requirement 1: Workforce Identity Federation. Requirement 2: Workload Identity Federation.

    Workforce Identity Federation provides syncless, interactive access for human users needing to authenticate with external corporate identity providers. Workload Identity Federation allows external automated pipelines to exchange OIDC tokens for short-lived Google Cloud access, eliminating risky long-lived keys.

  81. Question 81 of 311Your production e-commerce application serves a global customer base and requires the lowest possible latency. However, your development environment runs internal tools accessed only by your team in a single region. You need to configure the Network Service Tiers to meet these requirements. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Configure the Production environment to use the Premium Tier and the Development environment to use the Standard Tier.

    The Premium Tier routes traffic over Google's fast, global backbone network, making it optimal for low-latency, worldwide production applications. The Standard Tier uses lower-cost public internet routing, which is perfectly adequate for regional development environments.

  82. Question 82 of 311Your security team wants to enforce strict firewall rules on "PCI-Compliant" servers across multiple VPC networks in your organization. These rules must be managed centrally by the security team using IAM controls, preventing VM administrators from modifying the tags themselves. Which feature should you use to group these resources?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Use Secure Tags (IAM-governed tags) bound to the VM instances.

    Secure Tags provide IAM governance, ensuring that only authorized principals can attach or modify tags used in firewall policies. Network tags lack IAM controls, allowing VM administrators to bypass security restrictions by altering instance metadata.

  83. Question 83 of 311You are architecting a three-tier web application. The Frontend tier serves users from the internet. The API Backend tier must be accessed only by the Frontend tier. The Database tier is accessed only by the API Backend. Which load balancer configuration adheres to security best practices?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Use an External Application Load Balancer for the Frontend tier and an Internal Application Load Balancer for the API Backend tier.

    An External Application Load Balancer correctly exposes the Frontend tier to the public internet. An Internal Application Load Balancer keeps the API Backend private, ensuring it is only accessible from within the VPC and maintaining proper security segmentation.

  84. Question 84 of 311Your company requires all production Compute Engine VMs to receive security patches automatically every Sunday at 3 AM. However, you want to test patches on development VMs first, applying them on Friday evenings. How should you configure this using VM Manager?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Create two separate patch deployment policies: one with a Sunday schedule filtering for production VMs, and another with a Friday schedule filtering for development VMs.

    Creating separate patch deployment policies allows you to define distinct schedules and target specific VMs using instance filters. Remember that a single policy cannot split schedules dynamically, so separating them by environment is required.

  85. Question 85 of 311You need to create a new GKE cluster named app-cluster. Security policy dictates that the cluster nodes must NOT use the default Compute Engine service account. Instead, they must use a custom service account named gke-sa@my-project.iam.gserviceaccount.com that you have already created with limited permissions. Complete the command below: gcloud container clusters create app-cluster –num-nodes=3 __________________________________________________ –impersonate-service-account=gke-sa@my-project.iam.gserviceaccount.com

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. –service-account=gke-sa@my-project.iam.gserviceaccount.com

    The service account flag configures the specific IAM identity that the cluster nodes use. The impersonate flag only affects the identity running the gcloud command, not the underlying virtual machines being provisioned.

  86. Question 86 of 311Your team maintains a microservices-based e-commerce application running on Google Kubernetes Engine (GKE). Customers are reporting that the "Checkout" process is intermittently slow, taking over 10 seconds. You need to identify exactly which specific microservice or API call in the call chain is causing the latency bottleneck. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Instrument the application to send data to Cloud Trace and analyze the waterfall latency graphs.

    Cloud Trace provides distributed tracing that maps out request waterfalls to isolate exact latency bottlenecks across microservices. Cloud Profiler analyzes CPU and memory consumption, which does not effectively track network or wait delays.

  87. Question 87 of 311Your company operates in a regulated industry where customer data must be permanently and automatically deleted exactly 7 years (2555 days) after it was created. This process must happen without human intervention to ensure compliance.

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Configure an Object Lifecycle Management rule with Action: Delete and Condition: Age: 2555 days.

    Object Lifecycle Management directly automates the deletion of data based on an age condition, permanently removing objects after the specified days. A retention policy only prevents deletion until the period expires, meaning objects will remain unless manually deleted afterward.

  88. Question 88 of 311Your team has deployed a web application on Cloud Run that processes user requests and returns responses quickly (typically under 500ms). After returning the response to users, the application needs to perform background logging and metrics collection tasks that take an additional 2-3 seconds to complete. Currently, these background tasks are failing to complete because they're being interrupted. You need to ensure the background tasks finish executing after each request. Which Cloud Run configuration change will allow background tasks to complete after returning responses?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Change the billing setting to instance-based billing (CPU always allocated)

    Enabling CPU always allocated keeps the CPU available for the container's entire lifecycle, allowing asynchronous background tasks to finish after returning a response. The default request-based billing setting immediately throttles CPU once a response is sent, interrupting execution.

  89. Question 89 of 311Your security team requires that all Linux VMs must have specific security agents installed and firewall configuration files present. You need a solution that enforces this configuration continuously and automatically remediates any drift (e.g., if a user uninstalls the agent). What should you use?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Create an OS policy assignment in VM Manager that defines the desired state (packages and files) and sets the mode to enforcement.

    OS policies in enforcement mode continuously monitor VMs and automatically remediate configuration drift, such as removed packages. Startup scripts only run during boot, so they cannot fix drift that happens later while the VM is running.

  90. Question 90 of 311Your data engineering team has received a massive 10 TB historical dataset in a CSV file stored in Cloud Storage. You need to perform a one-time transformation of this data and load it into BigQuery for analysis. The process must be optimized for high throughput and cost-efficiency, finishing as quickly as possible without idling resources. Which architecture should you choose?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Create a Batch Dataflow pipeline.

    A Dataflow batch pipeline is optimized for bounded datasets, automatically scaling workers for high throughput and shutting down upon completion. Streaming pipelines are designed for continuous, low-latency data and would leave workers idling.

  91. Question 91 of 311Your organization needs to ensure that all Compute Engine VMs running Ubuntu have a specific security monitoring agent installed and running. New VMs are frequently created, and you want to automatically install and configure this agent on all Ubuntu VMs without manual intervention. The agent must remain installed even if someone accidentally removes it. You need a solution that continuously validates and enforces this configuration across your VM fleet. Which VM Manager feature should you use to automatically install and maintain the security agent?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Create an OS policy assignment that installs and validates the agent package on Ubuntu VMs

    OS policy assignments in VM Manager allow you to define a desired state, like required packages, and enforce it continuously. Startup scripts only run once at boot, whereas OS policies actively monitor and remediate drift for the VM's lifetime.

  92. Question 92 of 311You are manually configuring CMEK for a new BigQuery dataset in project-data. The Cloud KMS key lives in a separate project called project-kms. You have created the key ring and CryptoKey in project-kms. The Cloud KMS API is enabled in both projects. Which IAM action must you perform before creating the CMEK-protected dataset?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Grant roles/cloudkms.cryptoKeyEncrypterDecrypter on the CryptoKey in project-kms to the BigQuery service agent for project-data.

    Granting the Cloud KMS CryptoKey Encrypter Decrypter role to the BigQuery service agent allows the backend service to perform cryptographic operations. Remember that the human user creating the dataset needs standard BigQuery permissions, not KMS access, because the service agent handles encryption.

  93. Question 93 of 311Your application runs in a GKE cluster in project-a and needs to access a Cloud SQL instance located in project-b. You are using Workload Identity. How should you configure the IAM permissions to allow this cross-project access?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Create a Google Service Account in project-a, bind it to the GKE workload, and grant this Service Account the roles/cloudsql.client role in project-b.

    The Google Service Account should be created in the same project as the GKE workload. You then grant this service account the Cloud SQL Client role in the project hosting the database. Remember that VPC peering handles network connectivity, not IAM authorization.

  94. Question 94 of 311Your company's security policy requires that GKE cluster nodes must not have public IP addresses to minimize the attack surface. Additionally, the Kubernetes control plane must only be accessible from your corporate network range (10.50.0.0/16). How should you configure the cluster?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Create a Private Cluster with private nodes and configure Master Authorized Networks restricted to 10.50.0.0/16.

    Creating a private cluster ensures that compute nodes only receive internal IP addresses, isolating them from the internet. Configuring Master Authorized Networks restricts control plane access to your specified corporate CIDR block, meeting the network security requirements.

  95. Question 95 of 311You need to create a new Compute Engine instance named web-server-1 using the gcloud CLI. The VM must use the latest Debian 11 image and automatically run a setup script located locally on your computer at ./setup.sh during the first boot. Which command should you run?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. gcloud compute instances create web-server-1 –image-family=debian-11 –image-project=debian-cloud –metadata-from-file=startup-script=./setup.sh

    The metadata-from-file flag reads the local script content and correctly uploads it as startup-script metadata. Using the standard metadata flag simply passes the literal file path string, preventing the script from executing during the boot process.

  96. Question 96 of 311You have defined a JSON file named lifecycle.json containing a policy to delete objects older than 365 days. You need to apply this configuration to an existing Cloud Storage bucket named my-archive-bucket. Which command should you run?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. gcloud storage buckets update gs://my-archive-bucket –lifecycle-file=lifecycle.json

    The gcloud storage buckets update command with the lifecycle-file flag correctly applies configurations to existing buckets. Although older questions might feature gsutil, gcloud storage is the current standard, making it the preferred answer.

  97. Question 97 of 311Your Cloud Run service experiences cold start latency of 3-5 seconds, which impacts user experience. The service receives steady traffic during business hours (9 AM – 6 PM) but minimal traffic at night. You want to eliminate cold starts during the day while minimizing costs. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Set the min-instances to 2 or 3 and use Cloud Scheduler to trigger a job that updates this configuration at 9 AM (scale up) and 6 PM (scale down).

    Setting minimum instances keeps containers warm to eliminate cold starts, and using Cloud Scheduler to automate this schedule minimizes overnight costs. Keeping ten instances permanently active would prevent cold starts but incurs unnecessary off-hours billing.

  98. Question 98 of 311Your CI/CD pipeline deploys a new version of a web application to Google Kubernetes Engine (GKE) using kubectl apply. The pipeline immediately proceeds to the testing stage, but the tests often fail because the new pods are not yet ready. You need to modify the pipeline script to pause execution until the deployment is successfully rolled out and available. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Add the command kubectl rollout status deployment/web-app after the apply command.

    The rollout status command blocks the pipeline until the deployment completes or times out. Using a sleep command is fragile because it uses a hardcoded time rather than checking the actual cluster state.

  99. Question 99 of 311A cloud operator is in the Google Cloud console reviewing a GKE cluster that is experiencing degraded performance. They want to ask an AI assistant, directly within the console, to analyze the cluster's logs, explain the likely root cause, and suggest remediation steps without leaving the console page. Which tool should they use?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Gemini Cloud Assist, which is embedded in the Google Cloud console and provides contextual AI assistance for troubleshooting and optimizing Google Cloud resources on the current page.

    Gemini Cloud Assist is embedded directly in the Google Cloud console and provides contextual troubleshooting and optimization recommendations for your current resource page. The command-line interface operates outside the graphical console and lacks direct contextual awareness of the active webpage.

  100. Question 100 of 311You have a legacy third-party application running on a Compute Engine VM. This application exposes custom internal metrics (like "active_queue_depth") at the endpoint localhost:8080/metrics in standard OpenMetrics format. You need to ingest these metrics into Cloud Monitoring using the Ops Agent. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Edit the /etc/google-cloud-ops-agent/config.yaml file. Configure a prometheus receiver in the metrics section pointing to the local endpoint.

    The Ops Agent uses a prometheus receiver in its metrics configuration to scrape OpenMetrics endpoints and ingest them into Cloud Monitoring. Avoid writing custom API scripts, as the native receiver handles collection automatically and efficiently.

  101. Question 101 of 311You are deploying a 3-tier application (Frontend, Backend, Database) in a single VPC. The Backend instance group autoscales dynamically based on traffic. You need to configure a VPC firewall rule that allows the Frontend instances to communicate with the Backend instances on port 8080. The solution must be secure and automatically handle the changing IP addresses of the autoscaling instances. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Create an ingress firewall rule with action: allow, sourceServiceAccounts: [Frontend-SA], and targetServiceAccounts: [Backend-SA].

    Using source and target service accounts in a firewall rule creates an identity-based security model that seamlessly handles autoscaling. Service accounts are strictly governed by IAM, making them more secure than network tags, which Compute Engine admins can alter.

  102. Question 102 of 311Your SRE team wants to collect Prometheus metrics from workloads running on GKE. They want to use the standard Prometheus data model and Query Language (PromQL) but do not want to manually manage the Prometheus server infrastructure, storage, or scaling. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Enable Google Cloud Managed Service for Prometheus on the GKE cluster.

    Google Cloud Managed Service for Prometheus provides native PromQL querying and managed collection without the operational overhead of maintaining your own storage. Avoid manually installing the Ops Agent on GKE nodes, as cluster monitoring is handled by system agents.

  103. Question 103 of 311You are designing the network architecture for a new high-scale GKE cluster. You need to ensure the cluster follows Google's current networking best practices for scalability, native VPC integration, and pod-level firewall control. Which two networking components/configurations must you select? (Select two)

    Select 2 answers.

    Show answer & explanation

    Correct answer: D. VPC-native cluster (using Alias IPs) · E. Secondary IP ranges for Pods and Services

    VPC-native clusters use alias IP ranges, giving pods natively routable VPC addresses for better scalability and enabling pod-level firewall controls. Defining secondary IP ranges for pods and services within the subnet is a required configuration step when setting up this architecture.

  104. Question 104 of 311Your team has built a production AI agent using the Agent Development Kit (ADK) on Gemini Enterprise Agent Platform. You need to deploy it so it is available to end users at scale. You want a fully managed environment that handles the serving infrastructure automatically, so your team can focus on agent logic rather than managing containers or servers. Which service should you use?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Agent Runtime on Gemini Enterprise Agent Platform, which provides a fully managed, serverless environment for deploying and scaling agents in production.

    Agent Runtime provides a fully managed, serverless environment specifically designed to deploy and scale AI agents in production without infrastructure overhead. While Cloud Run hosts containers, it requires more manual configuration compared to a purpose-built agent runtime.

  105. Question 105 of 311You need to export a large 5 TB BigQuery table to a Cloud Storage bucket in CSV format to share with a partner who does not have Google Cloud access. When you attempt the export operation via the console, you receive an error message stating that the file size exceeds the limit. How should you resolve this?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Use a wildcard URI (e.g., gs://my-bucket/export-.csv) in the export destination to split the data into multiple files.

    BigQuery enforces a strict one-gigabyte limit for single exported CSV or JSON files. Using a wildcard URI in the destination bucket path shards the output into multiple smaller files, bypassing the limit. This is a standard console operation requiring no extra pipelines or quota increases.

  106. Question 106 of 311You are working in a highly regulated financial environment where software supply chain security is critical. Your security team requires that only container images that have been scanned and digitally signed by your specific "Quality Assurance" attester can be deployed to the production GKE cluster. Any attempt to deploy an unsigned image must be blocked by the cluster control plane. What should you configure?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Create a Binary Authorization Policy that sets the "enforcement mode" to ENFORCED_BLOCK_AND_AUDIT_LOG and requires the specific Attestor.

    Binary Authorization enforces deploy-time security by blocking unsigned images at the GKE control plane based on configured attestors. Pipeline verification alone is insufficient because it cannot prevent users with cluster access from manually deploying unauthorized images outside the build process.

  107. Question 107 of 311A project called dev-sandbox currently sits at the top of its own hierarchy with no parent folder. A developer has roles/editor on this project. Your team moves dev-sandbox into a new folder called engineering, where a separate principal already has roles/resourcemanager.folderAdmin. What is the immediate effect on the developer's access after the move?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. The developer retains roles/editor on the project, and additionally inherits any roles that the folder admin or others have granted at the engineering folder level.

    Moving a project into a folder does not remove existing project-level role bindings, so the developer retains their editor role. IAM policies are additive and inherited downward, meaning the developer also gains any permissions granted at the new parent folder level.

  108. Question 108 of 311A team has built a stateless Python microservice that accepts an HTTP POST request, sends the request body as a prompt to the Gemini API, and returns the model's response. The service has no session state, no multi-step reasoning loop, and no tool calls. They want to deploy it as a container with automatic scaling and no server management. Which service should they use?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Cloud Run, which is designed for stateless containerised services that scale automatically and require no infrastructure management.

    Cloud Run is the managed compute service built specifically for stateless HTTP containers that scale to zero. GKE Autopilot adds Kubernetes complexity that is unnecessary for a single containerized microservice.

  109. Question 109 of 311Your security team has identified a risk of "bootkits" (malware that infects the OS bootloader) in your environment. They have mandated a new policy: all Compute Engine VMs must cryptographically verify the digital signature of the kernel and bootloader software before the OS is allowed to start. If the signature is invalid or modified, the boot process must halt.

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Enable Secure Boot in the Shielded VM settings.

    Secure Boot cryptographically verifies bootloader and kernel signatures, halting the VM if modifications are detected. vTPM only records boot measurements for later analysis without actively blocking compromised software.

  110. Question 110 of 311Your application requires a sensitive database password that is securely stored in Google Secret Manager. You want to mount this secret into your GKE pods as a file volume so the application can read it, while keeping it automatically synchronized with the external Secret Manager. You prefer a Google-supported, native integration.

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Enable the Secret Manager add-on for GKE (using the CSI driver). Create a SecretProviderClass referencing the secret, and mount it in the Pod definition.

    The Secret Manager CSI driver mounts secrets directly into GKE pods as file volumes while keeping them synchronized. The External Secrets Operator works but typically syncs to native Kubernetes secrets stored in etcd.

  111. Question 111 of 311Your enterprise company has three distinct departments: Engineering, Marketing, and Sales. Each department creates its own isolated projects for development, staging, and production environments. The security team requires strict isolation where Marketing admins cannot modify Engineering projects, and these IAM policies must be automatically inherited by any future project created within that department. How should you structure your resource hierarchy to meet these governance requirements?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Create a Folder for each department (Engineering, Marketing, Sales) under the Organization, and nest their respective projects inside. Apply IAM policies at the Folder level.

    Folders provide hierarchical isolation and automatic IAM policy inheritance for all nested projects, enforcing governance automatically. Labels are for billing and filtering, not security boundaries, because IAM policies cannot attach to them.

  112. Question 112 of 311You are architecting a global inventory management system for a major logistics firm. The system requires strong consistency (ACID transactions) to prevent selling the same item twice, high availability (99.999%), and the ability to scale write throughput horizontally across multiple regions (North America, Europe, and Asia). Which database service fits these requirements?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Use Cloud Spanner.

    Cloud Spanner uniquely combines ACID transactions with global horizontal scalability for regional write throughput. Cloud SQL is restricted to a single primary instance per region, preventing global write scaling.

  113. Question 113 of 311You manage a multi-tenant GKE cluster and need to onboard a new team of developers. This team requires full control to deploy and manage applications within their specific namespace, dev. However, for security and stability reasons, they must NOT have access to the prod namespace or be able to modify cluster-wide resources like Nodes or PersistentVolumes.

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Create a Role with full permissions in the dev namespace. Bind it to the group using a RoleBinding in the dev namespace.

    Kubernetes RBAC isolates permissions by using a Role and RoleBinding to restrict access strictly to the dev namespace. Google Cloud IAM roles operate cluster-wide and cannot restrict access to individual Kubernetes namespaces.

  114. Question 114 of 311You are maintaining a legacy reporting application hosted on Cloud Functions (1st gen). The application needs to query a Cloud SQL database that is configured with a Private IP address only for security compliance. The function fails to connect because it cannot route traffic to the private network. You need to enable connectivity to the database's private IP.

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Create a Serverless VPC Access Connector in the same region and VPC. Configure the Cloud Function to use this connector.

    First-generation Cloud Functions require a Serverless VPC Access Connector to route traffic to internal IP addresses. While Direct VPC Egress simplifies this task, you must remember that it is exclusively available for second-generation functions and Cloud Run services.

  115. Question 115 of 311Your legal technology firm manages confidential contracts in Cloud Storage. A client needs to download a specific "contract.pdf" file for review, but they do not have a Google account. The download link must work for exactly 15 minutes and then expire. For security reasons, you must not alter the bucket's public access settings or create new IAM users for this temporary need. What is the most secure method?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Generate a Signed URL (V4) for the object with a 15-minute expiration. Give the URL to the user.

    Generating a Signed URL grants time-limited access to a specific object without requiring a Google account or altering IAM. The cryptographic signature ensures the link expires exactly when configured. Sharing service account keys violates security best practices by providing overly broad access.

  116. Question 116 of 311Your data analytics team frequently updates a "daily_sales.csv" file in a central Cloud Storage bucket. This morning, an automated script accidentally overwrote the valid file with corrupted data, halting all reporting pipelines. You need a mechanism that allows you to immediately revert to the previous version of the file from 1 hour ago without complex recovery procedures. What should you have configured beforehand?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Enable Object Versioning on the bucket.

    Object Versioning maintains a history of object generations, allowing instant restoration of overwritten files. This is the correct choice for recovering from accidental data modifications. Soft Delete and Retention Policies protect against deletions, but do not easily rollback overwrites.

  117. Question 117 of 311You are the CTO of "TechStart," a rapidly growing startup that has just acquired the domain techstart.com. You need to establish a central Google Cloud Organization to enforce governance, manage billing, and unify IAM policies across your Development, Staging, and Production projects. You currently have administrative access to the domain's DNS records but no existing Google corporate account. What are the required initial steps to initialize the Organization resource?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Verify domain ownership in the Google Admin console, then create a Cloud Identity or Google Workspace account.

    Verifying domain ownership and creating a Cloud Identity or Workspace account automatically provisions the Organization resource. This root node allows you to centrally manage IAM policies and billing. You cannot build an organization upwards from individual projects using a billing migrate tool.

  118. Question 118 of 311After checking your quotas in the Console, you confirm that your project is currently limited to 24 vCPUs in us-central1, but your upcoming HPC workload requires 200 vCPUs. The launch is time-sensitive, and you need to increase this limit as soon as possible. What is the standard process to request this change?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. In the IAM & Admin > Quotas & System Limits page, select the specific CPU quota, click "Edit Quotas," enter the new limit of 200, and submit the request.

    The standard process for requesting more resources is using the Edit Quotas button on the Quotas page. This built-in self-service workflow is the fastest method and often processes automatically. Filing a critical support ticket is intended for active production outages, not standard capacity planning.

  119. Question 119 of 311Your organization has a strict "Separation of Duties" model. A central "Platform Team" manages the network infrastructure (subnets, firewalls, routes), while 50 different "Application Teams" deploy and manage their own VMs. The App Teams must have full control over their instances but absolutely NO permission to modify network settings. The entire network must be centrally managed in a single host project. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Use Shared VPC. Designate the Platform project as the "Host Project" and the Application projects as "Service Projects".

    Shared VPC allows a host project to share network subnets with service projects without granting network admin rights. Application teams can deploy compute instances using the Network User role but cannot alter firewalls. VPC peering lacks this centralized control and is harder to scale.

  120. Question 120 of 311Your e-commerce platform is building a real-time inventory system. You need to process sequence-critical events: "Item Created", "Item Updated", and "Item Deleted". It is vital that these events are processed in the exact order they occurred for each product ID to avoid data corruption. You want to use a managed service to handle this ingestion. What configuration ensures this ordering?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. When publishing, provide an Ordering Key (e.g., product_id). On the Subscription, enable Message Ordering.

    Providing an Ordering Key and enabling Message Ordering on the subscription guarantees sequence delivery. Pub/Sub handles this natively when configured correctly. Client-side buffering is an unnecessary anti-pattern, and Google Cloud does not use a distinct FIFO topic type like other clouds.

  121. Question 121 of 311Your application architecture involves uploading thousands of small log files (1KB each) to a Cloud Storage bucket every second. During a load test, the application begins crashing, and your logs show a 429: Too Many Requests error. You check your "Total Storage" quota and verify you have plenty of space (TB) remaining. What is the most likely cause of this error?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. You are exceeding the API Rate Quota (requests per second) for write operations on the bucket.

    The 429 error indicates you are hitting the Cloud Storage API write request rate limit. This is a throughput constraint, not a total storage capacity limit. To fix this, you should batch uploads or introduce jitter into your application's upload timing to distribute requests evenly.

  122. Question 122 of 311You are deploying a mission-critical PostgreSQL database for a banking application. The Service Level Agreement (SLA) requires 99.95% availability. You need to ensure that if the primary zone suffers a physical outage, the database automatically fails over to a standby zone without manual intervention and with zero data loss (RPO = 0). What architecture should you select?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Enable High Availability (HA) in the instance configuration. This creates a standby instance in a secondary zone and uses synchronous replication.

    Enabling High Availability in Cloud SQL provisions a standby instance in a secondary zone with synchronous replication, guaranteeing zero data loss. The failover process is entirely automatic during a zonal outage. Read replicas use asynchronous replication and require manual promotion, risking data loss.

  123. Question 123 of 311Your 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 latest Google Cloud native eventing standards for maximum integration capabilities and minimal latency. How should you configure the trigger?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct 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.

  124. Question 124 of 311Your 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 user remains on the same version for their entire shopping session. How should you configure traffic splitting?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct 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.

  125. Question 125 of 311Your 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 leakage. You need to provide a developer with temporary, high-privileged access to run a repair script immediately. What is the most secure method to achieve this without violating the "no keys" policy?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct 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.

  126. Question 126 of 311You 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 the data to the exact state it was in at 9:55 AM (five minutes before the error) to minimize business loss. You also need to verify the integrity of the recovered data before switching live traffic over.

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct 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.

  127. Question 127 of 311Your 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 secure and standard IAM permission model to allow this cross-project access without using long-lived keys or complex networking. Where should you apply the policy?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct 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.

  128. Question 128 of 311You 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 NOT be resolvable from the public internet; it should only exist within your VPC.

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct 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.

  129. Question 129 of 311An 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 without switching between multiple dashboards. Which service should they use?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct 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.

  130. Question 130 of 311Your 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.g., 'Cyber Monday 2023'). The finance team has flagged this dataset as a major cost driver due to expensive full-table scans. You need to restructure the table to minimize query costs (scanned bytes) for these date-based patterns. Which strategy should you use?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct 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.

  131. Question 131 of 311A 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?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct 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.

  132. Question 132 of 311Your 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 cannot find the option when navigating to a specific project in the Google Cloud console. What is the most likely reason, and where should the workforce identity pool be created?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct 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.

  133. Question 133 of 311Your 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 need a method to locate these resources instantly using a single command or query without writing scripts to iterate through project IDs manually. What tool provides this capability?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct 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.

  134. Question 134 of 311You 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 external IP addresses configured. How must you configure the tunnels to meet the 99.99% SLA requirement?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct 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.

  135. Question 135 of 311You 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 because they scan the entire daily partition for every single customer lookup. You need to optimize the performance of these specific queries without changing the existing date partitioning.

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct 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.

  136. Question 136 of 311You 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 to implement this automation using a fully managed, serverless solution with the least amount of operational overhead.

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct 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.

  137. Question 137 of 311A 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 prevent accidentally consuming your entire daily budget in a single run. What instruction should you give them?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct 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.

  138. Question 138 of 311You 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 CPUs incur unnecessary licensing fees. You check the predefined types: n2-standard-4 (4 vCPU, 16 GB) is too small, and n2-standard-8 (8 vCPU, 32 GB) is 30% more expensive than your budget allows. You need to provision this VM while strictly optimizing monthly costs.

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct 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.

  139. Question 139 of 311Your 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 transient error, the message must not be lost and must be retried automatically. You need to configure the function to ensure guaranteed message delivery. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct 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.

  140. Question 140 of 311You 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 zonal outage. This means if Zone A goes offline, the data must be immediately available in Zone B without losing a single committed transaction. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct 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.

  141. Question 141 of 311Your enterprise has a strict governance policy for the "Production" folder in the resource hierarchy. The CISO requires that no principal, not even those with "Organization Admin" or "Owner" roles, be able to delete projects within this folder. You need a preventative control that overrides all existing allow policies to ensure data permanence. How should you enforce this restriction?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Create an IAM Deny Policy attached to the Production folder. Add a rule denying the resourcemanager.projects.delete permission for principalSet: allUsers.

    An IAM Deny policy explicitly overrides any inherited allow policies, ensuring that even Organization Administrators cannot delete the projects. Custom roles fail this requirement because standard IAM permissions are additive, meaning existing Owner rights cannot be subtracted away.

  142. Question 142 of 311Your backend team uses App Engine to host a background worker service that processes video encoding tasks. These tasks are sporadic but intensive, often taking up to 15 minutes to complete. You need a scaling configuration that shuts down idle instances to save costs but allows these long-running requests to finish without timing out. What should you choose?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Use Basic Scaling in the App Engine configuration.

    Basic scaling is the correct choice because it supports long request timeouts up to twenty-four hours, accommodating intensive video encoding tasks. Automatic scaling enforces a strict ten-minute timeout that would kill the process before completion, making it unsuitable for sporadic long-running requests.

  143. Question 143 of 311You are a Cloud Engineer at a healthcare company dealing with highly sensitive patient data. You are configuring a new Cloud SQL for PostgreSQL instance to store medical records. The compliance team has issued a strict directive: to prevent potential attack vectors, the database instance must strictly reside within the private network and must NOT have a public IP address. Your application running in a standard VPC needs to connect to it securely. What networking configuration must you apply?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Enable the Service Networking API. Allocate an IP range in your VPC for Google services. Create a Private Connection (VPC Peering) to the Google service producer. Configure Cloud SQL to use 'Private IP'.

    Enabling Private Service Access allocates an IP range and establishes a VPC peering connection to the Google-managed network, allowing internal traffic. Remember that Serverless VPC Access is only used to connect serverless compute services to your VPC, not to configure database networking.

  144. Question 144 of 311Your enterprise is migrating a massive SAP ERP workload to Google Cloud. The network team requires a dedicated 10 Gbps physical link between your on-premises data center and your Google Cloud VPC to handle the throughput. You have already verified that your routers support single-mode fiber and LACP. You need to initiate the provisioning process to get the LOA-CFA (Letter of Authorization) to hand to your datacenter facility manager.

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Create a Dedicated Interconnect connection. Order a "Cross-Connect" from your colocation provider using the LOA-CFA.

    Ordering a Dedicated Interconnect directly connects your on-premises routers to Google's edge, generating the LOA-CFA needed for physical cross-connects. Use Partner Interconnect when you need lower bandwidth or lack a direct presence in a supported colocation facility.

  145. Question 145 of 311Your legacy application runs on Compute Engine instances created with default settings. You recently updated the Service Account permissions to include roles/storage.objectAdmin to allow the app to upload backups to Cloud Storage. However, the backup script fails with a "403 Insufficient Permission" error despite the IAM role being correct. You need to fix this issue to allow the upload without deleting the VM. What is the most likely cause?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. The VM was created with the default Access Scope (Allow Default), which only allows Read access to Storage. You must verify the scopes.

    Default Compute Engine access scopes restrict Cloud Storage API calls to read-only, overriding any broader IAM write permissions. To fix this without deleting the instance, stop the virtual machine and change its access scopes to allow full API access.

  146. Question 146 of 311Your company uses Cloud Interconnect to link on-premises servers to Google Cloud. You have a Cloud SQL database running in a Google-managed VPC (connected via Private Service Access). Your on-premises servers need to access this database. However, you are facing a "Transitivity" issue where the on-premises network cannot see the Cloud SQL network via the peering link. What is the modern solution to make the database reachable?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Create a Private Service Connect (PSC) endpoint in your VPC that targets the Cloud SQL service attachment. Access the endpoint IP from on-premises.

    Creating a Private Service Connect endpoint maps the managed database to a local IP address in your VPC, bypassing transitive peering limits. While Private Service Access exists, it struggles with complex transitive routing from on-premises environments without custom route exports.

  147. Question 147 of 311Your analytics team runs complex, long-running aggregations on your production Cloud SQL database every afternoon. These queries lock tables and consume CPU, causing significant latency for customers trying to check out on your e-commerce site. You need to isolate this analytical workload from the transactional workload to restore performance for customers.

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Create a Read Replica instance. Configure the analytics applications to connect to the replica's IP address instead of the primary.

    Creating a Read Replica isolates heavy analytical queries from the primary transactional database, preventing CPU and table locking on your production instance. Vertical scaling only provides temporary relief and does not fix the underlying resource contention issue.

  148. Question 148 of 311A junior DevOps engineer is writing a script to deploy a "web-server" instance. The requirement is to deploy the VM in the "us-central1-a" zone using the "e2-medium" machine type. The engineer needs the exact gcloud syntax to avoid execution errors during the automated rollout. Which command correctly specifies the resource path, location, and hardware configuration?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. gcloud compute instances create web-server –zone=us-central1-a –machine-type=e2-medium

    The correct gcloud command follows the standard service, resource, and verb structure, using the zone and machine type flags. A practical exam cue is to verify the resource path and location flag match, because using a region flag for a zonal resource will cause deployment errors.

  149. Question 149 of 311Your team is preparing to launch a high-performance computing (HPC) cluster next week and needs to deploy 500 N2-standard Compute Engine VMs in the us-central1 region immediately. You suspect this large request might exceed your project's default resource limits. What is the most efficient and authoritative way to check your current available capacity for this specific resource before starting the deployment?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Navigate to the IAM & Admin > Quotas page in the Console, and filter by "Service: Compute Engine API" and "Location: us-central1".

    The IAM and Admin Quotas page displays exact resource capacity limits and usage for specific services in a chosen region. Billing reports show historical costs rather than technical capacity, and trial deployments fail without revealing exact limits.

  150. Question 150 of 311Your FinOps team is tasked with identifying waste across thousands of Compute Engine instances. You need a tool that allows non-technical stakeholders to ask questions in plain English, such as "List all VMs that have been idle for more than 30 days," and receive immediate, AI-generated insights and recommendations for cost reduction without writing SQL. Which tool should you use?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Use Gemini Cloud Assist in the Google Cloud Console.

    Gemini Cloud Assist is a console-based assistant that handles natural language queries about infrastructure and cost optimization. Gemini Code Assist is for software development, while BigQuery requires writing SQL, which non-technical stakeholders want to avoid.

  151. Question 151 of 311Your Cloud Run service is experiencing high costs due to the large number of container instances being created to handle incoming traffic. Each request completes very quickly (under 100ms), and your application code is designed to handle multiple simultaneous requests safely using asynchronous processing. You want to reduce costs by allowing each container instance to handle more requests simultaneously, thereby reducing the total number of instances needed. Which configuration change will allow each instance to handle more concurrent requests?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Increase the maximum concurrent requests per instance setting from the default of 80

    Increasing the maximum concurrent requests per instance setting allows each container to process more traffic simultaneously. Raising the minimum instances setting keeps containers warm but actually increases baseline costs rather than optimizing them.

  152. Question 152 of 311You manage a resource hierarchy where "Group A" is granted the roles/storage.admin role at the Folder level for ease of management. However, a specific project within this folder contains sensitive HR data, and you must revoke "Group A's" access to this specific project only. You need to restrict their access without affecting their permissions on other projects in the folder.

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. You cannot remove the access at the project level because IAM policies are additive. You must use an IAM Deny Policy or restructure the hierarchy.

    Cloud IAM allow policies are purely additive, meaning inherited folder permissions cannot be revoked directly at the child project level. To pass this scenario, recognize that you must either restructure the resource hierarchy or apply a specific IAM deny policy.

  153. Question 153 of 311Your platform engineering team is building a CLI automation script to provision new Compute Engine instances. To ensure the script runs successfully, you must identify the absolute minimum parameters required by the API. Which two components are strictly mandatory to define the virtual machine's hardware capacity and the base software environment it will boot?

    Select 2 answers.

    Show answer & explanation

    Correct answer: D. Boot disk image/source (e.g., Debian, Rocky Linux, or custom image) · E. Machine type (e.g., e2-medium, n2-standard-4)

    Specifying a machine type defines the virtual CPU and RAM hardware capacity, while selecting a boot disk image provides the base operating system. External IP addresses and startup scripts are optional configurations, as instances can run privately without internet access or custom boot scripts.

  154. Question 154 of 311Your security team requires that all data in a new Cloud SQL for PostgreSQL instance be encrypted with a customer-managed encryption key (CMEK). The Cloud KMS API and Cloud SQL Admin API are already enabled in all relevant projects. You create a key ring in Cloud KMS and a CryptoKey inside it, then attempt to create the Cloud SQL instance referencing that key. The instance creation fails immediately. What is the most likely cause?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. The Cloud KMS key ring was created in a different region than the Cloud SQL instance.

    The Cloud KMS key ring must reside in the exact same region as the Cloud SQL instance, or instance creation will immediately fail. A key ring cannot be global or multi-regional, though the Cloud SQL service agent inherits its permissions from the key ring level.

  155. Question 155 of 311Your network security team is designing a custom VPC (Virtual Private Cloud) to host a sensitive three-tier application. Since "Custom" mode creates an empty network, you must manually configure the components required for connectivity. Which two components are essential to ensure that instances can be hosted in specific regions and communicate internally?

    Select 2 answers.

    Show answer & explanation

    Correct answer: D. Subnets with IP ranges (e.g., 10.0.1.0/24) · E. Firewall rules (to allow internal/external traffic)

    Subnets provide regional IP addressing for instances, while firewall rules are mandatory to bypass Google's default implied deny ingress policy. Cloud NAT and Cloud Router are only necessary later for outbound internet connectivity or advanced dynamic routing.

  156. Question 156 of 311Your organization is migrating a regulated workload that has strict "physical isolation" requirements. The compliance auditor states that your VMs must run on dedicated physical servers that are NOT shared with any other Google Cloud customers. Additionally, you need to use your existing "per-core" software licenses (BYOL) to avoid repurchasing them. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Provision a Sole-tenant Node Group and launch your VMs onto it.

    Provisioning a Sole-tenant Node Group provides exclusive access to physical servers, satisfying compliance and enabling per-core BYOL reporting. Standard Compute Engine reservations guarantee capacity but still place your virtual machines on shared multi-tenant hardware.

  157. Question 157 of 311You are deploying a microservices application with a "frontend" pod and a "database" pod running in the same GKE cluster. To adhere to Zero Trust principles, you need to ensure that the "database" pod accepts network traffic only from the "frontend" pod and denies traffic from all other pods in the cluster, even if they are in the same namespace. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Create a NetworkPolicy resource selecting the database pods, with an ingress rule allowing traffic only from pods with the label app: frontend.

    Applying a Kubernetes NetworkPolicy restricts pod traffic by selecting specific labels, ensuring the database only accepts ingress from the frontend. VPC firewalls apply to entire nodes rather than individual pods, making them too coarse for microsegmentation.

  158. Question 158 of 311You are deploying a production Google Kubernetes Engine (GKE) cluster that will host internet-facing microservices. You need to implement security best practices to harden the cluster against attacks. Which TWO configurations should you enable?

    Select 2 answers.

    Show answer & explanation

    Correct answer: B. Configure the cluster as a Private Cluster (private nodes). · E. Enable Workload Identity Federation for GKE.

    Private clusters remove nodes from the public internet, and Workload Identity Federation eliminates the security risks of managing static service account keys in pods. For the exam, immediately eliminate legacy GKE authentication options like ABAC and Basic Authentication, as they are deprecated and insecure.

  159. Question 159 of 311Your logistics company is building an automated pipeline to process delivery confirmation photos. When drivers upload images to a specific Cloud Storage bucket, the system must immediately trigger a Python script to resize the image and update an inventory database. The process takes about 15 seconds. You need a serverless, event-driven solution that minimizes operational overhead. What integration should you configure to handle these events?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Deploy a Cloud Function (2nd gen) triggered by Eventarc for Cloud Storage events.

    Cloud Functions triggered by Eventarc provide a fully serverless, event-driven architecture that executes only when files are uploaded. Avoid polling architectures like cron jobs or Cloud Run on a schedule, because they introduce unnecessary latency and incur continuous compute costs.

  160. Question 160 of 311Your software company has scaled its microservices architecture to 50 distinct services within a VPC. The security team mandates a "Zero Trust" model requiring mutual TLS (mTLS) authentication and authorization for every service-to-service request. Managing hundreds of individual firewall rules for this interaction matrix is becoming operationally impossible. What modern networking solution should you implement to manage this security complexity efficiently?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Implement a Service Mesh (like Cloud Service Mesh) to manage mTLS and authorization.

    A service mesh uses sidecar proxies to manage mutual TLS and fine-grained authorization without complex IP-based firewall rules. Traditional firewall policies operate at layers three and four, making them incapable of handling layer seven identity verification needed for zero trust.

  161. Question 161 of 311A compliance officer at your company has directed your team to immediately make a specific BigQuery dataset inaccessible in response to a security event. The dataset is encrypted with a CMEK stored in Cloud KMS. The data must remain recoverable after the investigation concludes. The Cloud KMS API and all relevant permissions are in place. What is the correct action to take?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Disable the specific Cloud KMS CryptoKey version protecting the dataset.

    Disabling the specific Cloud KMS CryptoKey version immediately blocks BigQuery from decrypting the dataset. This approach is preferred because the key version can simply be re-enabled later, ensuring the data remains fully recoverable. Destroying the key would permanently destroy the data.

  162. Question 162 of 311A GitHub Actions workflow needs to read secrets from Secret Manager in your Google Cloud project. Currently the workflow authenticates using a JSON service account key stored as a GitHub Actions secret. Your security team has mandated the elimination of all long-lived credentials. The Cloud KMS API and IAM API are enabled. You want to follow Google-recommended best practices. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Create a workload identity pool and provider in your Google Cloud project, configure it to trust GitHub's OIDC tokens, and grant the GitHub identity roles/iam.workloadIdentityUser on a service account so the workflow exchanges its OIDC token for a short-lived Google Cloud access token.

    Workload Identity Federation allows external systems like GitHub to exchange native OIDC tokens for short-lived Google Cloud access tokens. This eliminates the security risk of storing long-lived service account JSON keys in third-party platforms. Automating key rotation still leaves vulnerable credentials in your pipelines.

  163. Question 163 of 311Your enterprise is migrating a legacy Java application to a Managed Instance Group (MIG) on Compute Engine. The application requires extensive initialization, taking approximately 3 minutes to load libraries before it can accept traffic. Currently, the MIG's health check marks instances as unhealthy after 30 seconds and repeatedly restarts them. What configuration change should you make to stabilize the deployment?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Configure an initialDelaySec (Initialization period) of 240 seconds on the MIG's autohealing policy.

    Setting a high initial delay in the autohealing policy gives the instances enough time to initialize before health checks begin. Increasing the check interval globally is a strong distractor, because it would severely delay detecting legitimate application crashes during normal operations.

  164. Question 164 of 311Your financial trading firm uses a proprietary high-performance database running on Compute Engine. This database communicates via a custom non-HTTP TCP protocol and requires the client's original source IP address for audit logging and access control. To minimize latency, traffic must flow directly to the backend without proxying. Which load balancing solution meets these specific protocol and visibility requirements?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Use an External Passthrough Network Load Balancer.

    An external passthrough network load balancer operates at layer four, routing traffic directly while preserving the client's original IP address. Proxy load balancers terminate connections and mask client IPs, failing the prompt's strict source visibility and low latency requirements.

  165. Question 165 of 311A media production company needs to migrate 100 TB of video archives from an on-premises NAS to a Cloud Storage bucket. The on-premises data center is connected to Google Cloud via a dedicated 10 Gbps Interconnect. You want a managed solution that handles checksum validation, automatic retries, and can be controlled centrally from the Google Cloud Console. What tool should you use?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Install the Storage Transfer Service (STS) agent on-premises and configure a Transfer Job.

    Storage Transfer Service is the managed tool designed for large-scale, on-premises to cloud migrations over a high-speed network. Avoid gsutil for massive migrations because scripting lacks centralized monitoring, managed retries, and built-in checksum validation.

  166. Question 166 of 311Your retail application running on Cloud Run requires an API key to communicate with a third-party payment processor. Security policies strictly demand that this sensitive key must be encrypted at rest, version-controlled, and never exposed as plain text in the Cloud Console or configuration files. You need to provide this key to the application container securely. What is the recommended solution?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Store the key in Secret Manager and expose it to the Cloud Run service as an environment variable or mounted volume.

    Secret Manager natively integrates with Cloud Run to securely inject versioned secrets at runtime. Plain text environment variables fail the requirement because they are visible in the console to anyone with Viewer access, lacking proper encryption and versioning.

  167. Question 167 of 311Your healthcare organization stores patient imaging records in Cloud Storage to meet a 7-year retention compliance mandate. The data is accessed frequently during the first 30 days for diagnosis, occasionally during the next 90 days, and practically never afterwards. You need to minimize storage costs automatically as the data ages, without manual intervention or managing custom scripts. What configuration should you apply?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Configure an Object Lifecycle Management policy to downgrade storage classes based on age (Standard -> Nearline -> Coldline -> Archive).

    Object Lifecycle Management automatically transitions objects to cheaper storage classes based on age, optimizing costs natively. Writing custom Cloud Functions to move files manually introduces unnecessary execution costs and operational complexity compared to the built-in feature.

  168. Question 168 of 311You are tasked with migrating a 2 TB MySQL production database from an on-premises server to Cloud SQL. The business requires the migration to be completed with minimal downtime (less than 5 minutes) to avoid disrupting operations. You need a managed service that handles the complexity of initial data load and continuous replication until the cutover. What is the recommended approach?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Use the Database Migration Service (DMS) for a continuous migration.

    Database Migration Service handles minimal-downtime database migrations by performing an initial dump followed by continuous replication. Using mysqldump requires taking the source offline, resulting in hours of unacceptable downtime during the transfer.

  169. Question 169 of 311A gaming startup is building a new mobile RPG. The game needs to store player profiles, inventory, and save states. A critical requirement is offline resilience: players must be able to continue playing and saving progress while disconnected, with data automatically synchronizing to the cloud once connectivity is restored. You need a database with a native SDK that handles this logic. Which service should you choose?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Use Firestore.

    Firestore provides mobile client SDKs with built-in offline persistence that automatically synchronize local data changes once network connectivity is restored. Memorystore and Spanner are strictly server-side backends, lacking native device-level offline capabilities.

  170. Question 170 of 311Your fintech startup is launching a new application composed of 20 distinct microservices handling high-volume financial transactions. The architecture requires complex orchestration, support for custom non-HTTP network protocols, and the ability to install specific security compliance agents directly on the cluster nodes. You need a solution that handles this complexity while ensuring strict security isolation. What compute platform should you choose to deploy these services?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Deploy the microservices to Google Kubernetes Engine (GKE) Standard clusters.

    GKE Standard grants full administrative access to cluster nodes, enabling the installation of required security agents via DaemonSets. App Engine and Cloud Run completely abstract the underlying infrastructure, preventing you from installing custom compliance tools on the host.

  171. Question 171 of 311Your global logistics company runs a microservices application on Compute Engine across three regions (us-central1, europe-west1, asia-east1). The internal communication between services must be secure, using only private IPs. To ensure high availability, you need a load balancing solution that automatically fails over traffic to the nearest healthy region if a zonal outage occurs. What should you deploy to achieve this global internal distribution?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Deploy a Cross-region Internal Application Load Balancer.

    A Cross-region Internal Application Load Balancer provides a single private IP and instant Layer 7 failover across multiple regions. Using DNS geolocation policies with separate regional load balancers is slower, relying on DNS TTLs rather than instant routing.

  172. Question 172 of 311Your web application running on Compute Engine needs to connect to a backend Cloud SQL database using the Cloud SQL Auth Proxy for secure connectivity. You are configuring the IAM service account for the Compute Engine instance. The security policy dictates that the account must have the absolute minimum permissions required to establish the connection, with no ability to modify the database instance configuration. Which role should you grant?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Grant the service account roles/cloudsql.client.

    The Cloud SQL Client role provides the specific permission needed by the Auth Proxy to establish database connections. Granting Editor or Admin violates the least privilege principle because those roles allow unauthorized modifications to the infrastructure.

  173. Question 173 of 311You are architecting a secure three-tier web application (Web, App, Database) on Compute Engine. You need to configure firewall rules to allow the Web Tier to communicate with the App Tier. The solution must be highly secure, resilient to IP address changes during autoscaling, and easy to manage without relying on mutable tags. What is the Google Cloud best practice for defining this rule?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Create an ingress allow rule on the App Tier targeting the App Service Account, filtering source by the Web Service Account.

    Filtering firewall rules by service account tightly couples network access to IAM identities, dynamically adapting to autoscaling without managing IP addresses. Network tags are less secure because users with basic instance permissions could potentially modify them to bypass restrictions.

  174. Question 174 of 311Your startup is building a multi-cloud analytics platform where an application hosted in AWS needs to query a database in Google Cloud. You need to establish a secure, high-availability (HA) private connection between the clouds quickly. You do not have the budget or time to lease physical colocation space or routers. What is the most efficient connectivity solution?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Configure HA VPN between AWS and Google Cloud.

    HA VPN provides a secure, highly available, and software-only connection between cloud environments without the need for physical hardware. Cross-Cloud Interconnect or Dedicated Interconnect require physical infrastructure, which violates the prompt's budget and time constraints.

  175. Question 175 of 311Your media company is establishing a hybrid connection between its on-premises video archive and Google Cloud. You require a dedicated throughput of 8 Gbps immediately, scaling to 20 Gbps next year for 4K video transfer. The connection must provide consistent, low-latency performance to prevent video frame drops during transfer. Which hybrid connectivity option should you provision to meet these capacity needs?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Provision a Dedicated Interconnect (10 Gbps circuit) now, and add a second circuit later.

    Dedicated Interconnect provides a physical 10 Gbps link that meets the immediate bandwidth requirements and can be scaled by adding circuits. HA VPN relies on the public internet, introducing latency and jitter that would cause video frame drops.

  176. Question 176 of 311You are architecting a massive IoT ingestion platform for a smart city initiative. The system collects telemetry from 50 million sensors, generating millions of write events per second. You need a database that offers single-digit millisecond latency for writes, stores petabytes of historical time-series data, and supports high-throughput key-based lookups. The solution must scale linearly as sensor volume grows. What database should you use?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Use Bigtable.

    Bigtable is a wide-column NoSQL database engineered for high-throughput operational workloads with single-digit millisecond latency. Firestore has strict throughput limits, and Cloud SQL scales vertically, making them unsuitable for massive IoT ingestion.

  177. Question 177 of 311Your healthcare organization stores patient records in Cloud Storage and Cloud SQL. A new compliance regulation requires a granular audit trail identifying exactly which user accessed or viewed specific sensitive data records. The current project has default logging settings enabled, which only capture administrative changes. You need to ensure all read operations are logged for forensic analysis. What specific configuration change must you make?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Go to IAM & Admin > Audit Logs and enable "Data Access" logs for Cloud Storage and Cloud SQL.

    Data Access audit logs capture operations that read configuration or data, such as storage object views or SQL queries. Admin Activity logs are enabled by default but only capture administrative changes, not user data reads.

  178. Question 178 of 311Your e-commerce company is migrating a critical 3-tier web application (Web, App, Database) to Google Cloud. While the database will move to Cloud SQL, the Web tier must remain on virtual machines to minimize immediate refactoring. The Web tier must handle variable customer traffic and continue operating seamlessly even if an entire Google Cloud zone goes offline. What configuration should you deploy for the Web tier?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Deploy the Web tier to a Regional Managed Instance Group (MIG) with an External Application Load Balancer.

    A Regional Managed Instance Group distributes VMs across multiple zones, ensuring high availability during zonal failures. An External Application Load Balancer intelligently routes traffic and works with the group to handle variable customer demand.

  179. Question 179 of 311Your manufacturing company stores proprietary product blueprints in a Cloud Storage bucket within a secure project. You need to prevent authorized employees, who have valid read permissions, from exfiltrating this intellectual property by copying the data to their own personal external Google Cloud projects using gsutil or the Cloud Console. Which security control should you implement to enforce this data perimeter?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Configure a VPC Service Controls (VPC-SC) perimeter around the project and restrict data egress.

    VPC Service Controls define a security perimeter that blocks data exfiltration even if users have valid IAM permissions. Cloud DLP scans for sensitive text but cannot block API calls used to copy data to external projects.

  180. Question 180 of 311Your media company is deploying a public-facing REST API to serve metadata for viral videos. Traffic patterns are highly volatile, spiking to millions of requests in seconds during trends and dropping to zero for hours at night. To maintain profitability, the business requires a solution that scales instantly and incurs zero cost when the API is idle. What compute option best fits these cost and scaling needs?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Deploy the API to Cloud Run.

    Cloud Run automatically scales containers from zero to thousands of instances and charges only for exact compute time. GKE Autopilot and Compute Engine require baseline resources, meaning you pay a constant cost even when traffic drops to zero.

  181. Question 181 of 311Your financial trading platform requires a real-time analytics engine to ingest massive volumes of market data. The system must calculate moving averages with sub-second latency, detect fraud patterns, and handle out-of-order data using advanced windowing and watermarking techniques. The data volume fluctuates wildly throughout the trading day. Which data processing service should you choose to meet these low-latency and advanced processing requirements?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Use Dataflow with Streaming Engine enabled.

    Dataflow with Streaming Engine is the correct choice because it provides a fully managed Apache Beam environment optimized for sub-second latency, advanced windowing, and watermarking. Dataproc is a weaker distractor because managing cluster scaling for wildly fluctuating traffic is slower and more complex.

  182. Question 182 of 311After using Query Insights, you've identified several slow-running queries in your Cloud SQL for MySQL database. The Query Insights dashboard shows that specific queries have high execution times and are consuming significant database resources. You want to get automated recommendations for creating indexes that could improve the performance of these problematic queries without manually analyzing query execution plans. Which Cloud SQL feature provides automated index recommendations with CREATE INDEX commands?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Enable Index Advisor to automatically analyze queries and recommend missing indexes

    Index Advisor is correct because it is the native Cloud SQL feature that analyzes query performance and provides automated CREATE INDEX commands. For the exam, remember that Cloud SQL database flags tune configurations, whereas Index Advisor specifically recommends missing indexes.

  183. Question 183 of 311Your healthcare organization has a strict data residency mandate requiring all cloud resources (VMs, Buckets, Databases) to be deployed exclusively in US regions to comply with federal regulations. You need to enforce this restriction centrally across the entire organization hierarchy, ensuring that no developer—regardless of their project permissions—can accidentally provision resources in non-compliant regions like Europe or Asia. How should you enforce this restriction?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Configure an Organization Policy with the gcp.resourceLocations constraint restricted to US locations.

    The gcp.resourceLocations organization policy is correct because it acts as a preventative guardrail that blocks resource creation outside of allowed regions. VPC Service Controls is a distractor because it secures data exfiltration rather than restricting physical infrastructure deployment.

  184. Question 184 of 311A principal has been granted roles/bigquery.admin at the organisation level. A project owner wants to restrict this principal to read-only access on their specific project. The project owner grants the principal roles/bigquery.dataViewer on the project, hoping this will override the inherited admin role for that project. What is the actual outcome?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. The principal retains full BigQuery admin access on the project, because IAM allow policies are additive — a more restrictive grant at the child level cannot remove permissions inherited from a parent.

    The principal retains admin access because Google Cloud IAM allow policies are additive across the resource hierarchy, meaning child-level grants cannot remove parent permissions. To revoke inherited access, you must use an IAM deny policy instead of adding a more restrictive role.

  185. Question 185 of 311Your development team provisions over 50 short-lived testing environments daily using Terraform. Each environment consists of a web server and database VM, runs for only two hours, and is then destroyed. The current on-demand compute costs are exceeding the budget. You need to significantly reduce costs without rewriting the existing Terraform deployment scripts. What configuration change should you apply to the Terraform code?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Configure the Terraform scripts to provision Spot VMs (Preemptible) for these environments.

    Provisioning Spot VMs is correct because it provides deep discounts for ephemeral, fault-tolerant compute resources with minimal Terraform code changes. Committed Use Discounts fail here because they require long-term commitments unsuitable for short-lived environments.

  186. Question 186 of 311Your software development company manages a critical microservice on Cloud Run. You need to enable a senior developer to deploy new revisions to this production service. For security reasons, the developer must have the ability to deploy code and act as the service identity, but strict governance rules prohibit them from modifying IAM policies or deleting the service instance. Which roles should you grant to achieve this least-privilege configuration?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Grant the user roles/run.developer and roles/iam.serviceAccountUser.

    The roles/run.developer and roles/iam.serviceAccountUser combination is correct because it allows deployment and service account impersonation without granting IAM modification rights. The run.admin role is a strong distractor because it incorrectly includes permission to modify service IAM policies.

  187. Question 187 of 311You are tasked with optimizing cloud spend for a large fleet of Compute Engine instances. You need a native Google Cloud tool that automatically analyzes historical usage metrics (CPU, RAM) over the last 30 days and provides actionable, one-click recommendations to rightsize over-provisioned VMs or identify idle resources.

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Use the Recommender API (Active Assist).

    The Recommender API is correct because Active Assist uses machine learning to analyze historical usage and generate actionable rightsizing recommendations. Cloud Monitoring is a distractor because it only displays raw metrics without providing automated optimization advice.

  188. Question 188 of 311Your financial services firm processes nightly transaction logs using a containerized batch job. The processing takes approximately 4 hours to complete and is computationally intensive. The job is designed to be fault-tolerant and can resume if interrupted. Management has mandated a strict policy to minimize compute costs for this background workload. Which architecture provides the most cost-effective solution for running this nightly job?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Use Cloud Batch to run the job on Spot VMs.

    Cloud Batch with Spot VMs is correct because it is a managed service that automatically handles retries for interrupted, fault-tolerant batch workloads at massive discounts. Cloud Run jobs is a weaker distractor because it lacks deep infrastructure discounting like Spot VMs.

  189. Question 189 of 311Your AI startup is deploying a large open-source Large Language Model (LLM) for a generative text application. The model requires NVIDIA L4 GPUs for inference. Traffic is consistent during business hours but drops significantly at night. You require a fully managed platform that abstracts infrastructure management while providing native GPU support and autoscaling capabilities. What service should you use to deploy this model?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Deploy the model to Cloud Run services with GPU allocation.

    Cloud Run services with GPU allocation is correct because it provides a fully managed serverless platform that natively supports GPUs and autoscaling. GKE is a strong distractor but fails the requirement because managing node pools violates the strict infrastructure abstraction constraint.

  190. Question 190 of 311Your healthcare organization manages sensitive patient data on Compute Engine instances. To comply with HIPAA regulations, the security policy strictly prohibits assigning public IP addresses to any production VM. However, operations engineers still require secure SSH access to these instances for emergency debugging and maintenance from the corporate network. Which connectivity method allows this access without violating the public IP prohibition?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Configure Identity-Aware Proxy (IAP) for TCP forwarding and grant users the roles/iap.tunnelResourceAccessor role.

    Identity-Aware Proxy for TCP forwarding wraps SSH connections in HTTPS, tunneling traffic directly to internal IPs without requiring public IPs. A bastion host is a strong distractor, but it directly violates the strict security policy by requiring a public IP address to function.

  191. Question 191 of 311Your data team manages a private GKE cluster that needs to connect to MongoDB Atlas, a third-party SaaS provider hosted on Google Cloud. Security policy forbids peering your entire VPC with the vendor due to overlapping IP risks and requires the service be accessed via a secure private IP within your network. What configuration enables this specific private connectivity?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Use Private Service Connect (PSC) to create an endpoint for the SaaS provider.

    Private Service Connect maps a specific service from another VPC to an internal IP address without requiring full network peering. VPC Network Peering is a strong distractor, but it connects entire networks and fails due to overlapping IP range restrictions.

  192. Question 192 of 311Your financial institution has hired an external auditor who requires temporary access to a sensitive BigQuery dataset to perform a regulatory compliance check. The contract specifies access for exactly two weeks. You need to ensure their permissions are automatically revoked precisely at the end of the audit period without relying on manual admin intervention or calendar reminders. What IAM configuration should you apply?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Grant the contractor roles/bigquery.dataViewer on the dataset with an IAM Condition request.time < timestamp("2025-XX-XXT00:00:00Z").

    Attaching a temporal IAM Condition using the request.time attribute automatically revokes access precisely at the specified timestamp. A resource.name condition is the strongest distractor, but it only restricts resource scope and fails to expire access after the two-week period.

  193. Question 193 of 311Your fintech startup operates a payment processing application with "Frontend" and "Backend" tiers located in the same VPC subnet. Security compliance dictates a strict micro-segmentation policy where the Backend must strictly accept TCP port 8080 traffic only from the Frontend, regardless of IP changes. You need a secure, identity-based solution. What is the most secure method to enforce this traffic restriction?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Create a firewall rule allowing tcp:8080, targeting the Backend Service Account, with a Source Filter of the Frontend Service Account.

    Using service accounts for target and source filters provides strict, identity-based micro-segmentation that remains secure during IP changes. Network tags are the strongest distractor, but they are legacy strings easily modified by users, making them less secure.

  194. Question 194 of 311Your retail company needs to migrate a legacy Java monolith application from on-premises to Google Cloud within a strict two-week deadline. The application requires a specific older OS kernel version and depends on local persistent disk state that cannot be decoupled. You must perform a "lift-and-shift" migration with minimal code changes while ensuring the application can eventually scale. What compute service should you select to meet these requirements?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Deploy the application to Google Compute Engine (GCE) instances using a Managed Instance Group (MIG).

    Compute Engine with a Managed Instance Group supports specific OS kernels and local state for a direct infrastructure lift-and-shift. GKE is the strongest distractor, but containerizing a stateful monolith requires extensive code changes and violates the deadline.

  195. Question 195 of 311You are migrating a mission-critical PostgreSQL application from on-premises to Google Cloud. The app requires strict "minimal code changes." Currently, running complex analytical queries on the live transactional data causes severe performance bottlenecks. You need a managed solution that maintains full PostgreSQL compatibility while accelerating analytical queries on the same data without impacting transactional throughput (HTAP). What database service should you select?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Migrate to AlloyDB for PostgreSQL.

    AlloyDB for PostgreSQL maintains full compatibility while using a columnar engine to accelerate analytics without impacting transactional performance. Cloud SQL is the strongest distractor, but it lacks specialized analytical acceleration and suffers from bottlenecks.

  196. Question 196 of 311Your global financial institution is re-platforming its core banking ledger to Google Cloud. The system processes payments simultaneously across North America, Europe, and Asia and requires strict external consistency (ACID) to prevent double-spending. The architecture must scale horizontally to handle millions of transactions per second without scheduled downtime for schema updates or capacity changes. Which database service meets these strict consistency and scaling requirements?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Migrate to Cloud Spanner (Enterprise Edition).

    Cloud Spanner is the correct choice because it provides global horizontal scalability while maintaining strict ACID compliance through external consistency. For the exam, remember that Cloud SQL fails this requirement because it only scales vertically and relies on eventually consistent read replicas globally.

  197. Question 197 of 311Your team is migrating a web application to a GKE Autopilot cluster. The development team deployed Pods without specifying any CPU or memory requests in their deployment manifests. After deployment, you notice that the Pods are running but the actual resource allocations are different from what the team expected. You need to understand how GKE Autopilot handles resource requests when they're not explicitly defined. What does GKE Autopilot do when resource requests are not specified in Pod specifications?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Autopilot automatically sets default CPU and memory requests based on pre-configured values

    GKE Autopilot automatically applies pre-configured default resource requests to pods when they are not explicitly defined in the deployment manifest. A practical exam tip is that Autopilot tailors its infrastructure to your exact needs by strictly enforcing resource requests on all deployed workloads.

  198. Question 198 of 311Your analytics platform processes a queue of complex mathematical modeling tasks pushed to a Pub/Sub topic. Each task requires consistent compute resources and takes between 30 to 50 minutes to complete. You need a reliable architecture that scales workers based on the number of pending messages and acknowledges completion only after the task finishes. What compute strategy should you implement?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Deploy the worker application to a GKE Standard cluster using a Horizontal Pod Autoscaler (HPA) with Pub/Sub metrics.

    GKE Standard is ideal for long-running batch tasks, allowing workers to pull messages and process them for up to fifty minutes without platform timeouts. Cloud Functions and App Engine are optimized for short-lived requests, making them vulnerable to timeout failures.

  199. Question 199 of 311You are creating a Cloud Storage bucket to store highly sensitive customer financial data. You need to ensure the data is protected against unauthorized access and complies with strict encryption requirements where you manage the keys. Which TWO features should you enable?

    Select 2 answers.

    Show answer & explanation

    Correct answer: B. Customer-Managed Encryption Keys (CMEK). · D. Uniform Bucket-Level Access.

    Customer-Managed Encryption Keys allow you to control encryption keys via Cloud KMS for compliance. Uniform Bucket-Level Access disables legacy ACLs and enforces IAM policies uniformly across the bucket to prevent accidental data exposure.

  200. Question 200 of 311Your company is migrating a legacy Windows-based HR application to Google Cloud. The application stores employee records on a file server, and Windows employees access these files directly from their workstations using mapped network drives (\server\share). The application requires native Windows ACLs for permission management and Active Directory authentication. Your manager asks you to choose a fully managed solution that minimizes operational overhead. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Provision Google Cloud NetApp Volumes and create an SMB share integrated with Active Directory.

    Google Cloud NetApp Volumes natively supports the SMB protocol required for Windows network drives and native ACLs. Filestore uses NFS, which lacks native Windows UNC path support and standard Windows permission management.

  201. Question 201 of 311Your retail analytics team needs to query 5 petabytes of historical sales data to generate quarterly trend reports. The team consists of business analysts who are proficient in Standard SQL but have no experience managing infrastructure or clusters. You need a solution that scales automatically to handle this data volume without any upfront provisioning or capacity planning. What service should you choose?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Use BigQuery.

    BigQuery is the correct choice because it is a fully managed, serverless enterprise data warehouse that scales automatically to handle petabytes of data using standard SQL. For the exam, remember that Dataproc requires cluster management, while Cloud SQL and AlloyDB face strict storage limits or transactional bottlenecks.

  202. Question 202 of 311Your retail company is launching a massive global e-commerce platform expecting millions of users. You need to secure user data by terminating SSL/TLS traffic at the edge to reduce load on backend VMs. Additionally, marketing requires that static assets like high-resolution product images and CSS files load instantly for users worldwide. What load balancing configuration satisfies these performance and security requirements?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Use a Global External Application Load Balancer and enable Cloud CDN.

    A Global External Application Load Balancer combined with Cloud CDN terminates SSL at the edge and caches static assets for worldwide users. A regional load balancer is a strong distractor, but it introduces high latency for global users by operating in a single region.

  203. Question 203 of 311Your organization is undergoing a security audit. The auditor demands a report identifying the specific email addresses of users who performed SELECT queries against a Cloud SQL database containing sensitive PII. You check the Logs Explorer but find only records of configuration changes, not the actual queries or data access events. What must you do to capture this information?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. You must explicitly enable "Data Access" audit logs for the Cloud SQL API.

    Data Access audit logs capture user queries and must be explicitly enabled because they are disabled by default. Admin Activity logs are the strongest distractor, but they only capture control-plane changes, meaning SQL queries remain completely invisible.

  204. Question 204 of 311A developer on your team needs to test a Python script locally that interacts with Google Cloud APIs. The script is designed to run as a specific service account in production. To adhere to security best practices, you want to enable the developer to test this locally without generating, downloading, or managing risky long-lived JSON service account keys. What is the recommended method to configure this access?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Grant the developer roles/iam.serviceAccountTokenCreator and use gcloud auth impersonate-service-account.

    Granting the token creator role allows developers to impersonate the service account using short-lived access tokens via the gcloud CLI. Downloading a JSON key is the strongest distractor, but it violates security best practices by creating risky permanent credentials.

  205. Question 205 of 311Your organization has a central platform team responsible for auditing the configuration and compliance status of all Google Kubernetes Engine (GKE) clusters across the company hierarchy. This team requires read-only visibility into the clusters and their workloads to verify settings, but they must be strictly prohibited from modifying cluster configurations or deploying any new workloads. Which IAM role should you grant at the Organization level?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Grant roles/container.clusterViewer to the team at the Organization level.

    The container.clusterViewer role is granted because it specifically provides read-only access to Kubernetes API objects like pods and deployments. Note that container.viewer might also be a defensible choice for broad read-only access, which makes this question slightly ambiguous when selecting the single best fit.

  206. Question 206 of 311You are troubleshooting a critical connectivity failure where a VM in your VPC is unable to reach an internal IP address via Cloud VPN. You suspect a routing or firewall issue but need immediate assistance to analyze the configuration. You want to use the integrated AI assistant in the Google Cloud Console to diagnose the root cause.What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Use Gemini Cloud Assist and ask, Why can't VM A connect to IP X.X.X.X?" to trigger a network troubleshooting investigation."

    Gemini Cloud Assist is context-aware and integrated directly into the console to analyze live configurations. The Recommender API focuses on cost and security insights, not interactive troubleshooting or root cause analysis.

  207. Question 207 of 311You are managing a "Sandbox" project for interns with a strictly limited budget. If the monthly costs hit 100% of the allocated budget, you want to automatically stop all running Compute Engine instances in that project to prevent any further overage. The solution must be automated and not rely on human intervention. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Configure a Budget Alert connected to a Pub/Sub topic, which triggers a Cloud Run Function to stop the instances.

    Routing budget alerts through Pub/Sub to trigger a Cloud Function is the standard programmatic pattern for automated cost control. Google Cloud lacks a native hard spending cap, so you must deploy this serverless architecture. Email alerts alone require slow, manual human intervention.

  208. Question 208 of 311You're setting up DNS for a new company domain (example.com) in Cloud DNS. Your requirements are: The main website (example.com) should resolve to your web server at IP address 203.0.113.50. The subdomain www.example.com should point to the same location as the main domain. Email for the domain should be handled by Google Workspace mail servers. Which combination of DNS record types should you create to meet these requirements?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: G. Create an A record for example.com pointing to 203.0.113.50, a CNAME record for www.example.com pointing to example.com, and MX records pointing to Google's mail servers

    An A record maps the apex domain to an IPv4 address, while a CNAME aliases the www subdomain to that apex. MX records are strictly required to route email to the proper mail servers. Remember that CNAME records cannot point directly to IP addresses.

  209. Question 209 of 311You are configuring a new Google Cloud project using the command line. When you attempt to create a virtual machine using gcloud compute instances create, the command fails with an error stating that the Compute Engine API is disabled. You need to enable this API immediately from your terminal. What command should you run?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. gcloud services enable compute.googleapis.com

    The command gcloud services enable compute.googleapis.com activates the Compute Engine API for your project. Remember that API management lives under the gcloud services group, not under the individual compute command groups.

  210. Question 210 of 311You are the Security Administrator for a financial institution. You need to grant a new contractor, ""User A,"" SSH access to a specific Linux instance, finance-vm-01, which has OS Login enabled. For security reasons, User A must not have root privileges (no sudo access) and should not be able to SSH into any other instance in the project. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Grant User A the Compute OS Login role (roles/compute.osLogin) on the specific finance-vm-01 instance.

    Granting the Compute OS Login role at the instance level restricts access to that specific VM without granting sudo privileges. Project-level grants violate the principle of least privilege, and metadata keys are ignored entirely when OS Login is enabled.

  211. Question 211 of 311You are deploying a GKE cluster using Autopilot mode. You need to ensure your Pods have enough CPU to handle heavy computation. You have defined resources.requests.cpu: "500m" in your manifest, but the application is performing poorly. You want to increase the CPU allocated to the Pods. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Increase the resources.requests.cpu value in the Pod manifest.

    Increasing the CPU request in your Pod manifest provisions guaranteed baseline compute for your workloads in Autopilot. You cannot manually configure node pools in Autopilot mode, as Google automatically manages the infrastructure based strictly on your resource requests.

  212. Question 212 of 311You are building an event-driven system where messages published to Pub/Sub must be processed by a Cloud Run service. You want Pub/Sub to automatically deliver messages to your Cloud Run service over HTTPS without your service needing to poll for messages. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Create a push subscription with the Cloud Run service URL as the endpoint.

    A push subscription automatically delivers messages to your Cloud Run service URL over HTTPS, providing a true event-driven architecture. Pull subscriptions require active polling, which directly violates the requirement and adds unnecessary complexity and compute costs.

  213. Question 213 of 311Your company has a static website hosted at https://myapp.example.com that needs to display images stored in a Cloud Storage bucket. When users visit the website, their browsers block the images with CORS errors. The bucket contains public images that should be accessible to the website. You need to configure the bucket to allow the website to load these images. Which solution resolves this issue?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Set a CORS configuration on the bucket allowing GET requests from https://myapp.example.com

    Setting a CORS configuration on the bucket explicitly allows the browser to fetch cross-origin resources securely. Making objects public via IAM only handles authorization, but browsers will still strictly block the requests without the proper CORS headers.

  214. Question 214 of 311You have deployed a Java-based microservice to Cloud Run. The application takes approximately 15 seconds to initialize. Users report that the first request after a period of inactivity is extremely slow (cold start), while subsequent requests are fast. You need to eliminate this latency for the first request while minimizing costs. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Configure the service with Minimum instances set to 1.

    Setting the minimum instances to one ensures Cloud Run keeps a container continuously running, bypassing the cold start entirely. While pinging the service with a scheduler is a common workaround, it is a hack compared to the native min-instances feature.

  215. Question 215 of 311A developer in a new Google Cloud project wants to create a Compute Engine N1 VM with an NVIDIA T4 GPU attached for a machine learning workload. They plan to use a standard Debian public image. The instance creation API call fails immediately. Identify the cause of the creation failure, and the additional step required once the instance is successfully created. Cause: GPU quota was not pre-approved at the organisation level before project creation. Post-creation step: install TPU drivers alongside GPU drivers for the instance to function.

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Cause: the new project has zero default GPU quota and the request exceeds it. Post-creation step: manually install NVIDIA drivers, since standard public images do not pre-install them.

    New Google Cloud projects start with a default GPU quota of zero, so the API immediately rejects the request until you request and are granted quota. Standard Debian images do not include NVIDIA drivers, so you must manually install them after the VM boots.

  216. Question 216 of 311You manage a Google Cloud Organization that contains multiple projects for both North American and European teams. You need to apply a specific Organization Policy constraint only to the European projects. You want to ensure this policy is automatically inherited by any new projects created by the European team in the future. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Create a "Europe" Folder. Move the European projects into this Folder and apply the Organization Policy to the Folder.

    Applying the policy to a folder ensures all projects inside automatically inherit it, covering future European projects. Organization policies cannot be attached to labels or billing accounts, making folders the correct hierarchical grouping mechanism.

  217. Question 217 of 311You are deploying a GKE cluster for a sensitive financial application. The security team requires that the cluster nodes have only private IP addresses and cannot be directly accessed from the internet. However, your CI/CD pipeline, which runs on an external SaaS platform (e.g., GitHub Actions), needs to deploy manifests to the cluster's control plane via kubectl. You want to allow this external access to the control plane while keeping the nodes private and restricting access to the specific IP range of your CI/CD provider. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Create a Private Cluster with private nodes (–enable-private-nodes) and public control plane endpoint enabled. Configure Master Authorized Networks to whitelist the CI/CD provider's IP range.

    Private clusters keep nodes isolated with internal IPs, while enabling the public endpoint lets external pipelines reach the control plane. Configuring Master Authorized Networks restricts this public access strictly to your CI/CD provider's approved IP ranges.

  218. Question 218 of 311A pod running in your GKE cluster uses Workload Identity Federation for GKE to access Google Cloud APIs. The pod calls both the Cloud Storage API and a legacy internal API that does not support federated identity principals. You want to follow the Google-recommended approach for each API call. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Use direct resource access for Cloud Storage and service account impersonation for the legacy API.

    Direct resource access is recommended for supported APIs like Cloud Storage because it provides a cleaner audit trail. For unsupported legacy APIs, you must fall back to service account impersonation to exchange the federated token for an acceptable credential.

  219. Question 219 of 311A developer on your team needs to run a one-time script that requires the Project Editor role to modify resources. You want to grant them these permissions temporarily without permanently attaching the role to their user identity. You have decided to use a dedicated Service Account that already has the necessary permissions. How should you configure the developer's access to allow them to act as that Service Account?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Grant the developer the Service Account Token Creator (roles/iam.serviceAccountTokenCreator) role on the specific Service Account.

    Granting the Service Account Token Creator role allows the developer to impersonate the account using short-lived credentials. The Service Account User role is incorrect because it only allows attaching the account to compute resources, not CLI impersonation.

  220. Question 220 of 311You have built a new container image for your application and pushed it to the Artifact Registry (e.g., us-central1-docker.pkg.dev/my-project/my-repo/my-app:v1). You have also authored a Kubernetes Deployment manifest file named deployment.yaml that references this image. You need to deploy this application to your GKE cluster. You want to use a declarative approach that allows you to manage the configuration in version control and apply future updates (like image tag changes) by simply modifying the file and re-running the command. Which command should you run?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. kubectl apply -f deployment.yaml

    The apply command manages resources declaratively, letting you update configurations by simply rerunning the same command on the file. Imperative commands like create will throw an error if the resource already exists, breaking your update workflow.

  221. Question 221 of 311You are designing the backend for a mobile application that stores user profiles, preferences, and activity history. The application requires: Flexible, hierarchical JSON-like data, Real-time synchronization across devices, Offline support for mobile clients, Minimal infrastructure management. Which Google Cloud data service is the best choice?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Firestore (Native mode), because it supports document-based data with real-time and offline capabilities.

    Firestore in Native mode is purpose-built for mobile and web applications requiring flexible JSON documents and real-time synchronization. Cloud SQL lacks built-in offline caching, and Bigtable is meant for massive analytical throughput, not mobile client syncing.

  222. Question 222 of 311You are responsible for the patch management of a fleet of 50 Compute Engine instances running Linux and Windows. You need to ensure that security and critical patches are automatically applied every Saturday at 2:00 AM. You want to automate this process fully, including a pre-patch script to stop specific applications before patching. Which component of VM Manager should you use?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Create a Patch Deployment and configure it with a recurring schedule for Saturday at 2:00 AM.

    Patch Deployments are the correct component because they support recurring schedules and executing pre-patch scripts automatically. A Patch Job is only a one-time execution, so it cannot handle the required weekly schedule.

  223. Question 223 of 311You have uploaded a large CSV file to a Cloud Storage bucket: gs://sales-data-bucket/2024-sales.csv You need to make this data available for analysis using BigQuery with minimal manual schema configuration. The dataset does not yet exist in BigQuery. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Create a new BigQuery dataset, then use the bq load command with schema autodetection enabled to load the data into a new table.

    Creating a dataset is required first because BigQuery tables must reside inside datasets. Using the load command with autodetect minimizes manual schema configuration by automatically inferring column types from the CSV header.

  224. Question 224 of 311Your security team is investigating a series of unauthorized IAM policy changes that occurred over the past 6 months across multiple projects in your organization. They need to run complex SQL queries to identify patterns, such as "Show all instances where the 'Owner' role was granted to external domains" or "List all service accounts created and then granted elevated permissions within 24 hours." Cloud Logging's Logs Explorer provides basic filtering, but the team requires SQL JOIN operations, aggregations, and the ability to correlate events across time windows. Additionally, your compliance requirements mandate retaining these audit logs for 3 years. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Create a Log Router sink that exports Admin Activity audit logs to a BigQuery dataset.

    Exporting audit logs to BigQuery provides the SQL interface needed for complex joins and long-term retention required for compliance. Cloud Storage is great for cheap archival but lacks native analytical querying capabilities.

  225. Question 225 of 311You have 50 TB of archive data stored on an on-premises NAS appliance. You need to migrate this data to a Cloud Storage bucket. You want a managed solution that handles retries and checksum validation automatically, without requiring you to write custom scripts or keep your own workstation running for days. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Use Storage Transfer Service for on-premises data.

    Storage Transfer Service provides a fully managed solution for large on-premises migrations, handling retries and checksum validation automatically. Command-line tools require writing custom scripts and maintaining compute resources for the duration.

  226. Question 226 of 311Your team is running workloads in Google Cloud and you want to prevent unexpected cost overruns. You need to receive an email alert when monthly spend reaches 80% of your budget for a Cloud Billing account. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Create a Cloud Billing budget and configure an 80% threshold rule with email notifications enabled.

    Cloud Billing budgets with threshold rules are the native way to trigger email alerts when spending reaches a specific percentage. Logging and Monitoring track operational events and uptime, not cumulative spending thresholds.

  227. Question 227 of 311Your company runs a real-time financial trading application serving customers primarily in North America. The application generates transaction logs that must be stored with high availability and minimal data loss risk during regional outages. Your compliance team requires that 100% of transaction data be replicated across regions within 15 minutes to meet regulatory recovery point objectives (RPO). The application processes data from compute resources located in us-central1 and us-east1. Which Cloud Storage configuration best meets these requirements?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Create a dual-region bucket in NAM4 (us-central1 + us-east1) with turbo replication enabled

    Turbo replication on a dual-region bucket guarantees an SLA-backed fifteen-minute recovery point objective across regions. Default replication on either multi-region or dual-region buckets only provides a twelve-hour RPO, failing the compliance requirement.

  228. Question 228 of 311You manage a GKE cluster running a stateful database application. You need to implement a disaster recovery strategy that allows you to restore the entire application, including its Persistent Volume data and Kubernetes manifests, to a new cluster in a different region in case of a disaster. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Use the "Backup for GKE" feature to create a plan that backs up both config and Persistent Volume Claims (PVCs) to a multi-region bucket.

    Backup for GKE captures both application manifests and persistent volume claims in a consistent, managed backup suitable for cross-region restore. Manual disk snapshots lack configuration consistency, and regional disks only protect against zonal failures.

  229. Question 229 of 311Your company is onboarding 50 new software engineers. The security team requires that no source code is stored on local laptops, all developer environments run inside the corporate VPC, and each engineer starts with a consistent pre-approved configuration including specific IDE extensions and internal tooling. Engineers must be able to access their environment from a browser or a local IDE. Which service should you use?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Cloud Workstations, which provides managed, container-defined developer environments running inside your VPC with administrator-controlled configurations applied consistently across all developers.

    Cloud Workstations provides managed, container-defined developer environments that run inside your VPC and support pre-approved configurations. Cloud Shell lacks persistent workspaces, and Compute Engine VMs lack centralized administrative control.

  230. Question 230 of 311You are reviewing the security posture of a production project. You notice that several developers have been granted the Owner primitive role at the project level. To follow Google's best practices and the principle of least privilege, you want to see exactly which permissions these developers are actually using versus what the Owner role provides, so you can transition them to more restricted, predefined roles. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Use the IAM Recommender to view the "Role recommendations" for the project.

    The IAM Recommender automatically analyzes historical permission usage to suggest replacing broad primitive roles with narrower predefined roles. Policy Analyzer only shows current policy bindings without evaluating actual usage over time.

  231. Question 231 of 311A security auditor requires a report showing the exact configuration of all VPC Firewall rules in your project as they existed 10 days ago. The rules have been modified multiple times since then. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Use Cloud Asset Inventory to export the resource metadata to Cloud Storage, specifying the snapshotTime as 10 days ago.

    Cloud Asset Inventory supports time travel, allowing you to export and view the exact resource metadata from a specific historical timestamp. Cloud Logging only records individual change events, not the complete state of all resources at a given time.

  232. Question 232 of 311You are running a large-scale batch processing job that involves analyzing terabytes of image data. The job is fault-tolerant, meaning if a processing node stops, the work can be retried by another node without data loss. You want to run this workload on Compute Engine instances to minimize costs as much as possible. Which provisioning model and configuration should you use?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Create Spot VMs within a Managed Instance Group (MIG). Configure the application to handle potential preemptions by saving checkpoints.

    Spot VMs provide the deepest discounts for fault-tolerant batch workloads, and a Managed Instance Group automatically replaces preempted instances. Remember that Automatic Restart is strictly incompatible with Spot and Preemptible VMs, so relying on a group is necessary.

  233. Question 233 of 311You are configuring autoscaling for a Managed Instance Group (MIG) that serves a high-traffic HTTP application behind a Load Balancer. You want the group to scale out when the incoming request rate exceeds 50 requests per second (RPS) per instance. You have already set the autoscaling mode to "On" and selected "HTTP load balancing utilization" as the signal. However, you notice the option to set "Target utilization" is a percentage (e.g., 80%), not a raw RPS number. What must you do to correctly scale based on the specific RPS target?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Configure the Backend Service with "Rate" balancing mode and "Maximum RPS" of 50. Set the autoscaler to target a utilization percentage of that capacity.

    To scale based on specific requests per second, you configure the Backend Service with a maximum RPS limit, then the autoscaler targets a percentage of that capacity. Simply guessing a utilization percentage fails because the backend needs to know the instance limit.

  234. Question 234 of 311You are using Cloud Build to build container images. Your build process requires access to a private package repository hosted in an on-premises network connected via Cloud VPN. The standard Cloud Build workers cannot reach this private network. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Create a Cloud Build Private Pool peered to your VPC.

    Creating a Cloud Build private worker pool peered to your VPC provides the necessary network route to your on-premises repository. Modifying IAM roles will not solve this because authorization does not establish network connectivity.

  235. Question 235 of 311You need to deploy a streaming data pipeline to process log data from Pub/Sub and write it to BigQuery. You want to use a pre-built Google-provided template to avoid writing custom Java/Python code. You also need to ensure that the pipeline can use a custom container image to install a specific third-party dependency required for a data transformation. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Use a Dataflow Flex Template.

    Dataflow Flex Templates package your pipeline within a custom Docker container, allowing you to include specialized dependencies. Classic Templates are restricted to a fixed runtime environment and cannot load custom system-level dependencies.

  236. Question 236 of 311You are deploying a mission-critical PostgreSQL database on a single Compute Engine instance. The database must have High Availability (HA) storage that can survive a complete zonal outage with an RPO (Recovery Point Objective) of zero (no data loss). If the zone hosting the VM fails, you need to be able to force-attach the disk to a new instance in a different zone immediately. Which storage option should you choose?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Regional Persistent Disk (pd-balanced or pd-ssd) configured with synchronous replication.

    Regional Persistent Disks synchronously replicate data across two zones, achieving an RPO of zero for zonal failover. Local SSDs are ephemeral and snapshot schedules cannot provide immediate recovery without some data loss.

  237. Question 237 of 311Your development team wants to deploy containerized microservices to GKE with serverless features like automatic scaling (including scale-to-zero), traffic splitting between revisions, and HTTP-based routing—without having to directly manage Kubernetes Deployments, Services, or Ingress resources. They want to maintain full control over the GKE cluster and use on-premises infrastructure in the future. Which approach should they use?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Deploy applications using Knative serving on GKE. It provides serverless abstractions on top of Kubernetes with automatic scaling, traffic management, and revision control while running on your own GKE cluster with full portability.

    Deploying with Knative serving on GKE delivers serverless abstractions like scale-to-zero on your own cluster. Fully managed Cloud Run is incorrect here because it abstracts away your cluster control and prevents on-premises deployment.

  238. Question 238 of 311You are deploying a new workload to a Google Kubernetes Engine (GKE) cluster. The container image for the workload is stored in a private Artifact Registry repository named app-repo. The Pods are failing to start, and the status displays an ImagePullBackOff error. You confirm the image path is correct. You need to grant the GKE nodes the minimum permissions required to pull images from this repository. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Grant the Artifact Registry Reader (roles/artifactregistry.reader) role to the GKE Node Service Account on the app-repo repository.

    Granting the Artifact Registry Reader role to the GKE Node Service Account provides the exact permissions needed to pull private images. The Storage Object Viewer role is an outdated legacy approach from the Container Registry era.

  239. Question 239 of 311Your application team reports that their Cloud SQL for MySQL database has been experiencing slow performance during peak hours. They suspect certain queries are consuming excessive resources but don't know which ones are causing the issues. You need to identify the problematic queries and understand their performance characteristics without installing third-party monitoring tools or writing custom logging code. Which Cloud SQL feature should you enable to identify and analyze slow-running queries?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Enable Query Insights to monitor database load and identify resource-intensive queries

    Cloud SQL Query Insights is the native tool that automatically captures query latency and resource consumption without custom code. Relying on Cloud Logging exports to BigQuery requires extensive manual configuration that Query Insights handles natively.

  240. Question 240 of 311You are designing a solution for a microservices application that consists of stateless HTTP containers. The application has highly variable traffic patterns, often dropping to zero requests at night. You want to minimize costs by paying only when the code is actually running and require a fully managed serverless environment that handles scaling automatically. Which compute service should you choose?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Cloud Run configured with the default autoscaling settings.

    Cloud Run automatically scales to zero, ensuring you only pay when code executes. Compute Engine MIGs and App Engine Flexible require baseline instances, incurring costs even without traffic.

  241. Question 241 of 311Your team runs analytical queries against a very large BigQuery table (events_raw) that stores application logs for the last three years. Several users complain that their queries are slow and expensive, especially when they only need data from the last 7 days. You want to improve performance and reduce query costs without changing the application logic. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Recreate the table as a partitioned table based on a timestamp column, and ensure queries filter on the partition column.

    Partitioning a table by timestamp limits data scanned to specific partitions, reducing costs and improving speed. Clustering alone does not reduce query costs since the entire table is still processed.

  242. Question 242 of 311Your organization stores sensitive data in Cloud Storage buckets encrypted with CMEK. Your security policy requires regular key rotation. A junior engineer rotates the Cloud KMS CryptoKey by creating a new primary key version. They then ask whether they can now safely disable the previous key version, since the key has been rotated. What should you tell them?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. No. Rotating the key does not re-encrypt existing objects. Objects written before the rotation are still protected by the previous key version, which must remain enabled until those objects are re-encrypted or deleted.

    Rotating a Cloud KMS key creates a new primary version but does not re-encrypt existing objects. Older objects remain tied to their original version, so disabling it prematurely makes them inaccessible.

  243. Question 243 of 311You want to build an event-driven solution where a Cloud Run service is automatically triggered whenever a new object is uploaded to a Cloud Storage bucket. You want to use a fully managed, native integration without manually managing Pub/Sub topics or writing custom glue code. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Create an Eventarc trigger for Cloud Storage events and configure it to invoke the Cloud Run service.

    Eventarc provides native event routing to Cloud Run, abstracting away underlying infrastructure. Manually configuring Pub/Sub requires writing custom integration logic and managing separate resources.

  244. Question 244 of 311You are deploying a new version of a critical microservice hosted on Cloud Run. To minimize risk, you want to perform a canary release by routing only 5% of production traffic to the new revision, while the remaining 95% continues to go to the stable revision. You want to manage this traffic split natively within Cloud Run without changing your application code or using external load balancers. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Deploy the new revision with the "Serve this revision immediately" setting disabled. In the "Manage Traffic" tab, assign 5% of traffic to the new revision and 95% to the existing revision.

    Cloud Run supports native traffic splitting between revisions for canary deployments. Deploy the new revision without serving traffic, then manually adjust percentages in the console.

  245. Question 245 of 311You are deploying a high-performance database on a C3 series Compute Engine instance. The database workload requires 250,000 IOPS to handle peak transaction volumes. You want to provision this storage performance independently of the disk size because you only need 1 TiB of capacity. Standard Persistent Disks (pd-ssd) would require you to over-provision the size significantly to reach this IOPS level. Which storage option should you use?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Hyperdisk Extreme

    Hyperdisk Extreme provisions IOPS and capacity independently, avoiding disk over-provisioning. Local SSDs are ephemeral, causing data loss on instance stop, making them unsuitable for durable databases.

  246. Question 246 of 311You are managing a Compute Engine instance named data-processor-v1. This instance has a Persistent Disk containing critical business data. You need to configure an automated backup strategy that meets the following requirements: A new snapshot of the disk must be taken every day at 1:00 AM UTC. Snapshots older than 14 days must be automatically deleted to save costs. You want to use a fully managed, native Google Cloud solution without writing custom scripts or maintaining additional compute resources. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Create a Snapshot Schedule resource with a daily frequency and a 14-day retention policy. Attach this schedule to the Persistent Disk.

    Snapshot schedules provide the native, fully managed way to automate persistent disk backups with retention rules. Creating custom Cloud Functions or cron jobs violates the requirement to avoid custom scripts, and Cloud Storage lifecycle rules don't apply to block storage.

  247. Question 247 of 311You need to manage SSH access to your Linux fleet. You want to enforce 2-Step Verification (2FA) for all SSH connections and ensure that when an employee leaves the company, their access is revoked immediately across all VMs. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Enable OS Login on the project and enforce 2-Step Verification in Google Workspace.

    Enabling OS Login ties SSH access directly to Google Workspace identities, enforcing two-step verification and providing immediate revocation. Managing static keys via startup scripts lacks real-time synchronization, creating severe security gaps when employees leave the company.

  248. Question 248 of 311Your company manages 5,000 users and multiple groups in an on-premises Active Directory (AD). You need to provision these users and groups into Cloud Identity so they can be assigned IAM roles in Google Cloud. The solution must automatically synchronize any changes made in AD to Cloud Identity on a scheduled basis. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Install and configure Google Cloud Directory Sync (GCDS) on a server within your on-premises network.

    Installing Google Cloud Directory Sync on an on-premises server securely automates user and group synchronization from Active Directory. SAML only handles authentication, not full lifecycle management, and manual CSV uploads fail to meet the automated synchronization requirement.

  249. Question 249 of 311You are managing a Managed Instance Group (MIG) that currently uses an instance template named web-server-v1. You need to update the group so that all new and existing instances use a new configuration with a larger boot disk and a different startup script. You have already created the new instance template, web-server-v2. What should you do to apply this change to the entire group with minimal disruption?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Use the gcloud compute instance-groups managed set-instance-template command to set the new template, then start a Rolling Update.

    Setting a new instance template and initiating a rolling update applies changes with minimal disruption. Instance templates are immutable, so editing them is impossible, and deleting the entire group causes a complete service outage.

  250. Question 250 of 311You have deployed a Cloud SQL instance for PostgreSQL in your test environment. An application running on a private GKE cluster needs to connect to this database, but the connection from the application to Cloud SQL is failing. You notice that the Cloud SQL instance only has a public IP configured and no private IP. Which of the following best explains the correct configuration to allow your GKE workloads (in the same VPC) to connect securely without exposing the database over the internet?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Enable private IP for the Cloud SQL instance so it can be accessed via the VPC's internal network, and configure VPC Private Services Access if needed.

    Enabling a private IP address routes traffic internally through your VPC without exposing the database to the internet. Authorized networks fail because private GKE pods lack predictable public IPs, and the Auth Proxy still requires underlying network connectivity to function.

  251. Question 251 of 311Your organization runs a PostgreSQL database for a mission-critical financial application that requires both high-volume transactional processing and real-time analytical queries on the same data. You need 4x faster transactional performance than standard PostgreSQL, plus the ability to run analytical queries up to 100x faster without impacting transaction performance. Which database solution should you choose?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Deploy AlloyDB for PostgreSQL. It provides a built-in columnar engine for HTAP workloads, separates compute and storage for independent scaling, and delivers 4x faster transactions with up to 100x faster analytics compared to standard PostgreSQL.

    AlloyDB is the designated solution for hybrid transactional and analytical workloads, offering the requested four times transactional and one hundred times analytical speed improvements. Cloud SQL read replicas cannot match this performance because they lack a columnar engine.

  252. Question 252 of 311Your organization runs a multi-tenant GKE cluster where three different application teams (payments, orders, and shipping) need to expose their services externally. The platform team wants to maintain centralized control over TLS certificates, domain policies, and load balancer infrastructure, while allowing each application team to independently manage their own routing rules without coordinating with other teams or requiring cluster admin permissions. The solution should avoid vendor-specific annotations and support advanced traffic management like header-based routing and traffic splitting. Which approach best meets these requirements?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Deploy a shared Gateway resource in an infrastructure namespace with HTTPRoute resources in each team's namespace

    Using a shared Gateway resource separates infrastructure management from application routing, allowing teams to attach independent HTTPRoutes. Traditional Ingress relies on vendor-specific annotations for advanced traffic splitting and requires consolidating routing rules.

  253. Question 253 of 311You are troubleshooting a deployment in your GKE cluster. The Pods for a specific application named data-processor are repeatedly crashing and restarting. When you inspect the Pod status, you see the reason is OOMKilled. You determined that the application attempts to use 600 MiB of RAM during peak processing, but the current manifest defines a memory limit of 512 MiB. You need to resolve the issue while ensuring the container does not consume unlimited cluster resources. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Update the deployment manifest to increase the resources.limits.memory to at least 600 MiB.

    Increasing the memory limit resolves the Out of Memory crash while still preventing the container from consuming unlimited node resources. Remember that Kubernetes uses requests for scheduling, but enforces hard shutdowns based strictly on the configured limits.

  254. Question 254 of 311You need to grant a developer permissions to deploy new versions and configure traffic splitting for an App Engine application using a SINGLE predefined role. The developer must not have permission to view or modify other resources in the project. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Grant the developer the roles/appengine.appAdmin role on the project, and grant roles/iam.serviceAccountUser on the App Engine service account.

    The App Engine App Admin role allows deploying versions and configuring traffic, but it must be paired with Service Account User for deployments. Note that the wording asks for a single predefined role, yet correctly deploying requires granting an additional role.

  255. Question 255 of 311You are working on a security-sensitive project where the predefined IAM roles are too broad. For example, the Cloud Functions Developer role allows users to delete functions, but you want your junior developers to only be able to create and edit functions without the ability to delete them. You decide to create a Custom Role. What is a critical consideration regarding the lifecycle of permissions in a Custom Role?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Permissions in a Custom Role might stop working if the underlying API features are deprecated or if the permissions are renamed by Google.

    Permissions in custom roles might break if Google deprecates or renames the underlying APIs. Unlike predefined roles that Google maintains automatically, you must manually update custom roles when permissions change.

  256. Question 256 of 311Your team needs to deploy a complex multi-tier application to GKE that includes a web frontend, application backend, Redis cache, and PostgreSQL database. You want to use pre-packaged, version-controlled deployment templates that can be easily customized with environment-specific values and support rollback capabilities. Which approach should you use?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Deploy the application using Helm charts. Helm provides package management for Kubernetes with templated manifests, versioned releases, customizable values files, and built-in rollback capabilities.

    Helm packages Kubernetes applications into versioned charts with templated manifests and rollback support. Plain kubectl lacks built-in lifecycle management, making rollbacks error-prone.

  257. Question 257 of 311You are developing a backend application that will run on a Compute Engine virtual machine. The application needs to read files from a specific Cloud Storage bucket and write metadata to a Cloud SQL database. Following security best practices, you want to ensure the application has only the necessary permissions and that you do not have to manage or store long-lived credentials like JSON keys within the VM. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Create a user-managed Service Account with the required IAM roles. Assign this Service Account to the Compute Engine instance during creation or while stopped.

    Attaching a dedicated service account to the VM provides temporary tokens via the metadata server, eliminating long-lived keys. The default service account violates least privilege due to broad permissions.

  258. Question 258 of 311A platform engineering team wants to create a library of pre-approved, reusable application infrastructure patterns on Google Cloud. Each pattern should be designable on a visual canvas, generate Terraform-backed code, and be shareable with development teams who can deploy governed applications from those templates without writing infrastructure code from scratch. Which service should they use?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Application Design Center, which lets platform teams create and share Terraform-backed application templates on a visual canvas so developers can deploy governed applications from pre-approved designs.

    Application Design Center is the correct service because it provides a visual canvas for creating shareable Terraform-backed templates. Standard Terraform requires writing code manually, which directly violates the requirement to provide pre-approved designs for developers.

  259. Question 259 of 311You have migrated your container images from Container Registry (gcr.io) to a new Artifact Registry repository named app-repo located in the us-east1 region. You need to configure your local Docker client to use the gcloud credential helper to authenticate push requests to this specific repository host (us-east1-docker.pkg.dev). Which command should you run?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Run gcloud auth configure-docker us-east1-docker.pkg.dev.

    The correct command explicitly passes the registry's hostname to the credential helper. On the exam, remember that omitting the hostname only configures the legacy Container Registry, while passing the specific domain connects your Docker client to Artifact Registry.

  260. Question 260 of 311You are designing a caching layer for a global e-commerce application using Google Cloud Memorystore for Redis. The application requires high availability. If the primary Redis node fails, you need the system to automatically failover to a replica in a different zone with minimal application downtime. Which tier should you choose?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Standard Tier

    Memorystore for Redis Standard Tier provides high availability through automatic cross-zone replication and failover. Basic Tier offers no replication, meaning a node failure results in complete cache loss.

  261. Question 261 of 311You are deploying a mission-critical web application on Compute Engine in the us-central1 region. The application must remain available and continue serving traffic even if a single zone (e.g., us-central1-a) experiences a complete infrastructure outage. You want to manage the fleet of instances as a single logical entity. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Create a Regional Managed Instance Group (MIG) in us-central1 and select "Multiple zones" for the target distribution.

    A regional Managed Instance Group distributes instances across multiple zones within a region, providing the high availability and single logical management required here. Zonal groups fail entirely if their specific zone goes down, making them incorrect for strict resilience requirements.

  262. Question 262 of 311You are the Organization Administrator for your company. You notice that any user in your domain can currently create new Google Cloud projects, leading to resource sprawl and governance issues. You need to restrict project creation privileges so that only members of the specific group cloud-admins@example.com can create new projects. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. On the Organization resource, remove the Project Creator role (roles/resourcemanager.projectCreator) from the domain-wide principal and grant it to the cloud-admins group.

    To restrict project creation, you must modify IAM roles on the organization node by removing default domain-wide access and granting the role to specific administrators. The organization policy constraint mentioned in another option does not exist for this purpose.

  263. Question 263 of 311Your company has three Google Cloud projects: prod-app (production environment), staging-app (staging environment), and dev-app (development environment). The SRE team needs to create dashboards and alerting policies that display metrics from all three projects in a unified view. They want to query metrics from a single location without switching between projects. What should the SRE team configure to achieve centralized multi-project monitoring?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Create a new Google Cloud project called monitoring-hub. Configure a Metrics Scope on monitoring-hub and add prod-app, staging-app, and dev-app as monitored projects. Grant the SRE team the Monitoring Viewer role on monitoring-hub. All dashboards and alerts created in monitoring-hub will automatically query metrics from all three projects.

    A Metrics Scope allows you to view metrics from multiple projects simultaneously within a single host project. Networking controls like VPC peering handle private connectivity and are completely separate from cloud monitoring data aggregation.

  264. Question 264 of 311You are in the planning phase for a new data warehousing project. You need to estimate the monthly cost of a proposed architecture that includes BigQuery, Cloud Storage, and several large Compute Engine instances. You want to share this estimate with your finance team for approval before creating any resources. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Use the Google Cloud Pricing Calculator to model the resources and generate a shareable estimate URL.

    The Google Cloud Pricing Calculator models costs for proposed architectures and provides a shareable link before deployment. Provisioning actual resources to estimate pricing wastes money, while migration tools target on-premises lift-and-shift scenarios.

  265. Question 265 of 311You are configuring a Cloud Monitoring alert policy for a group of Compute Engine instances running a mission-critical web server. You need to be notified via email whenever the CPU utilization of any single instance exceeds 90% for more than 5 minutes. You want to use the standard metric provided by the hypervisor without installing any additional agents. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Create an Alert Policy. Select the metric compute.googleapis.com/instance/cpu/utilization. Set the condition to "is above 90%" for a duration of 5 minutes.

    The compute dot googleapis dot com slash instance slash utilization metric reflects CPU usage from the hypervisor without requiring an agent. The agent-based metric violates the no-agent rule, while uptime checks only test external reachability.

  266. Question 266 of 311You are deploying a fleet of Compute Engine instances to host a highly sensitive application. Your security compliance team requires that the instances strictly prevent the loading of any unsigned drivers or malicious bootloaders during the startup process. If the digital signature verification of any boot component fails, the instance must halt immediately and fail to boot. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Enable Secure Boot in the Shielded VM options.

    Secure Boot halts the boot process entirely if it detects unsigned drivers or unauthorized boot components. Integrity monitoring and virtual TPM modules measure and report system state but do not actively block the system from booting.

  267. Question 267 of 311You are configuring a Cloud DNS managed zone for an internal application named intranet-app. The application must be accessible via the hostname app.corp.internal from Compute Engine instances in your prod-vpc network. This hostname should not be resolvable from the public internet. You need to configure the DNS zone to meet these requirements. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Create a Private managed zone with the DNS name corp.internal.. In the zone details, select the prod-vpc network as a visible network.

    A private managed zone restricts DNS resolution to authorized VPC networks, hiding your internal records from the internet. Public zones expose records globally, while peering zones only forward queries to another VPC.

  268. Question 268 of 311You are architecting a new healthcare application for a hospital network located exclusively in Germany. Your organization has a general policy to deploy all workloads in the us-central1 region to minimize costs and maximize Carbon-Free Energy (CFE) usage. However, strict local data sovereignty laws (GDPR) require that all patient data must be stored and processed physically within German borders. You also need to ensure the lowest possible network latency for the hospital staff. Which region should you choose?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. europe-west3 (Frankfurt) to satisfy the data residency laws and latency requirements.

    Legal compliance laws like GDPR act as hard constraints, forcing you to choose specific geographical regions for data residency. Ignoring strict data sovereignty rules to save money or improve sustainability in another country violates legal requirements.

  269. Question 269 of 311You are the Organization Administrator for a financial company. You need to ensure that no Virtual Machine instances in the "Internal-Apps" folder can ever be assigned an external public IP address, to strictly prevent direct internet exposure. You want to enforce this restriction centrally so that even Project Owners cannot override it by creating new instances with external IPs. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Configure an Organization Policy on the folder with the constraint "Define allowed external IPs for VM instances" (constraints/compute.vmExternalIpAccess) and set the policy to Deny All.

    Setting the compute external IP access organization policy to deny all prevents instances from acquiring public addresses, overriding IAM permissions. Firewall rules block traffic but still allow the public IP assignment you must prevent.

  270. Question 270 of 311You manage two projects, project-a and project-b. You need to connect their VPC networks (vpc-a and vpc-b) so that virtual machines in both networks can communicate using internal IP addresses. You have just run the following command in project-a: gcloud compute networks peerings create peer-ab –network=vpc-a –peer-network=vpc-b –peer-project=project-b However, when you inspect the peering connection, the status is INACTIVE, and traffic is not flowing. What must you do to establish the connection?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Run the equivalent gcloud compute networks peerings create command in project-b to peer vpc-b with vpc-a.

    VPC peering requires creating matching configurations on both networks because Google Cloud uses a decentralized model without an accept request. The status remains inactive until the reciprocal peering connection is created in the second project.

  271. Question 271 of 311You have deployed a new Compute Engine instance named data-loader to process files. You attached a user-managed Service Account to the instance and granted it the Storage Object Admin IAM role. However, when the application on the instance tries to upload a file to a Cloud Storage bucket, it fails with a "403 Insufficient Permission" error. You suspect the issue is related to the legacy Access Scopes configuration. You need to resolve this issue while following Google's recommended best practices for modern access management. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Stop the instance. Edit the configuration to set the Access Scopes to "Allow full access to all Cloud APIs". Restart the instance.

    Setting access scopes to allow full access to all Cloud APIs resolves the token restriction while strictly relying on IAM roles to enforce least privilege. Granular per-API scopes are considered legacy because they add operational overhead and limit IAM effectiveness.

  272. Question 272 of 311You are the Organization Security Administrator. You need to strictly enforce a security requirement across all projects residing in the "Finance" folder. Specifically, you must ensure that no Virtual Machine in any of these projects can receive ingress traffic on TCP port 21 (FTP). You want to implement this centrally so that Project Owners cannot override this restriction by creating their own allow rules. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Create a Hierarchical Firewall Policy containing a deny rule for tcp:21. Associate the policy with the Finance folder.

    Associating a hierarchical firewall policy containing a deny rule enforces centralized security at the folder level. Standard VPC firewall rules are ineffective here because project owners can easily override or delete them.

  273. Question 273 of 311You are writing a shell script to automate the provisioning of new environments for your development team. You need to create a new Google Cloud project with the ID dev-app-2024 and place it directly inside a specific Folder (ID 123456789012). You want to use the standard gcloud CLI command to achieve this in a single step. Which command should you run?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. gcloud projects create dev-app-2024 –folder=123456789012

    The gcloud projects create command accepts the project ID as a positional argument and uses the folder flag to set the parent. Remember that gcloud commands generally require the resource ID positionally rather than using flags, making the first option invalid.

  274. Question 274 of 311You are managing a Compute Engine instance named backend-vm that is deployed in a private subnet without an external IP address. The instance needs to download security patches and updates from a public repository on the internet. You must provide outbound internet access to this instance while ensuring it remains completely inaccessible from inbound internet connections. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Create a Cloud NAT gateway and a Cloud Router in the same region as the instance.

    Cloud NAT provides outbound internet access for private instances without exposing them to inbound connections. Private Google Access only connects your VPC to Google APIs, not the public internet, making it a frequent distractor for patching scenarios.

  275. Question 275 of 311You are the Data Engineer for Project A (data-producer), which generates critical analytics events. You publish these events to a Pub/Sub topic named analytics-events. A separate development team working in Project B (data-consumer) has deployed a Cloud Function that needs to trigger whenever a message is published to your topic. The team in Project B cannot modify your project. You need to configure access to allow the data-consumer team to subscribe their Cloud Function to your topic. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. In Project A, grant the Pub/Sub Subscriber role (roles/pubsub.subscriber) to the Project B service account on the analytics-events topic.

    Granting the Pub/Sub Subscriber role on the topic in the producer project provides the exact permission needed to attach a cross-project subscription. This adheres to least privilege, whereas granting project-level editor roles would be overly permissive.

  276. Question 276 of 311Your company hired an external contractor to help with a production incident for 2 weeks. The contractor needs the Compute Instance Admin role to troubleshoot VM issues in the production project. For security and compliance reasons, you want to ensure the contractor's access automatically expires on March 15, 2026 at midnight UTC, without requiring manual revocation. What is the recommended approach to grant this temporary access?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Grant the Compute Instance Admin role with an IAM Condition that includes an expiration timestamp. After March 15, 2026, the role binding still exists in the IAM policy but the condition evaluates to false, preventing any access.

    IAM Conditions allow you to bind a role with a time limit, automatically denying access once the specified timestamp passes. For temporary contractor access, rely on this native expiration feature rather than custom Cloud Scheduler jobs or manual revocation.

  277. Question 277 of 311You need to grant a group of developers SSH access to a specific fleet of private Compute Engine instances that do not have external IP addresses. You have decided to use the "SSH" button in the Google Cloud Console, which uses Identity-Aware Proxy (IAP) TCP forwarding. The developers already have the Compute Instance Admin (v1) role, but they receive a "Permission Denied" error regarding the tunnel when attempting to connect. You want to follow the principle of least privilege. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Grant the IAP-secured Tunnel User role (roles/iap.tunnelResourceAccessor) to the group.

    Using the console SSH button for private instances routes traffic through Identity-Aware Proxy, which requires the IAP-secured Tunnel User role. Compute Instance Admin allows VM management but lacks the specific permission to establish the IAP tunnel.

  278. Question 278 of 311You are migrating a legacy database server to Compute Engine. The application configuration hardcodes the database IP address as 10.128.0.55. You need to launch a new instance that uses this specific internal IP address, and you must ensure that this IP remains reserved for this server even if the instance is deleted and recreated later. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Navigate to VPC Network > IP addresses. Click Reserve internal static IP address, specify 10.128.0.55, and select this reserved address when creating the instance.

    Reserving a static internal IP address decouples the IP from the VM lifecycle, ensuring it remains available even if the instance is deleted. Custom ephemeral IPs are released upon deletion, making them unsuitable for persistent legacy configurations.

  279. Question 279 of 311You are troubleshooting a complex microservices application running on Google Kubernetes Engine (GKE). Users are reporting that specific "Place Order" requests are taking over 5 seconds to complete. You suspect that a backend service is causing the bottleneck, but you don't know which one. You need to visualize the exact flow of a single request across all microservices and see the latency of each step in a "waterfall" view to pinpoint the delay. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Use Cloud Trace to view the distributed traces. Select a trace for the "Place Order" request and analyze the waterfall view.

    Cloud Trace captures distributed request flows across microservices and displays them in a waterfall view to pinpoint latency bottlenecks. Cloud Monitoring shows aggregate metrics, whereas tracing is required to analyze the individual hops of a single request.

  280. Question 280 of 311You are setting up a new VPC network that will connect to your on-premises data center via Cloud VPN. To strictly prevent IP address overlap with your on-premises network (10.0.0.0/8), you need full control over which IP ranges are used in Google Cloud. You also want to ensure subnets are only created in the regions where you actually deploy resources. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Create a Custom mode VPC. Manually define subnets with non-overlapping IP ranges in the specific regions you need.

    A custom mode VPC prevents automatic subnet creation, giving you exact control over CIDR ranges to safely avoid overlapping your on-premises network. Auto mode VPCs automatically use 10.128.0.0/9, which risks immediate conflicts, and firewall rules never fix routing issues caused by overlapping IPs.

  281. Question 281 of 311You are looking to optimize costs for your Google Cloud project. You suspect that several reserved static external IP addresses are not currently attached to any resources and that some Compute Engine instances have been running with extremely low utilization for the past two weeks. You need a tool that automatically identifies these specific idle resources and provides actionable suggestions to release or stop them. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Navigate to Active Assist (Recommender) in the Google Cloud Console.

    Active Assist uses machine learning to automatically identify idle resources and provide actionable recommendations to reduce waste. While budgets alert you to high-level spending increases, they do not automatically identify the specific idle virtual machines or unused IP addresses.

  282. Question 282 of 311You are trying to connect to a Linux instance named db-server using the SSH button in the Google Cloud Console. The instance resides in a private subnet and does not have an external IP address. The connection fails with a timeout error after a few seconds. You need to configure the VPC firewall to allow Identity-Aware Proxy (IAP) to forward the connection. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Create an ingress allow rule for traffic from the source range 35.235.240.0/20 on TCP port 22.

    Creating an ingress allow rule from the 35.235.240.0/20 CIDR block permits traffic specifically from the Identity-Aware Proxy to your private instance. Opening port 22 directly to the internet fails because private VMs lack external IPs and bypasses IAP security.

  283. Question 283 of 311You are the Shared VPC Admin for your organization. You manage a Host Project named net-host that contains a Shared VPC with subnets in us-central1 and europe-west1. You need to authorize a developer, Sam, to deploy virtual machines in a specific Service Project (app-dev) using only the us-central1 subnet. Sam already has the Compute Instance Admin role on the app-dev project. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Grant Sam the Compute Network User role on the us-central1 subnet in the net-host project.

    Granting the Compute Network User role on the specific subnet allows Sam to deploy virtual machines while adhering to least privilege. Granting broader project-level access would unnecessarily permit deployments in other regions.

  284. Question 284 of 311You are architecting a hybrid connectivity solution to connect your on-premises data center to Google Cloud. Your requirements are: Capacity: You need a dedicated throughput of 20 Gbps. Security: Data must not traverse the public internet. Availability: You must achieve a 99.99% uptime SLA. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Provision four 10 Gbps Dedicated Interconnect connections across two separate metropolitan areas (2 per metro).

    Provisioning four 10 Gbps Dedicated Interconnect connections across two metropolitan areas guarantees the 99.99% uptime SLA and ensures private connectivity. Two connections in a single city only provide a 99.9% SLA.

  285. Question 285 of 311You are managing a fleet of Compute Engine instances hosting a web application. You need to create a Cloud Monitoring alert policy that triggers when the Memory utilization or Disk space usage on any instance exceeds 85%. However, when you attempt to create the policy, you cannot find these specific metrics in the metric explorer; you only see CPU and Network metrics. You need to collect these missing metrics using the recommended standard practice. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Install the Ops Agent on each instance.

    Installing the Ops Agent on your instances enables the collection of guest-level metrics like memory and disk utilization. For the exam, remember that Compute Engine only provides hypervisor-level metrics like CPU and network by default.

  286. Question 286 of 311You are debugging a production application that interacts with the Compute Engine API. You suspect that the API is returning a high number of 5xx server errors, causing the application to fail. You need to confirm this by viewing the near real-time error rate and traffic volume specifically for the Compute Engine API in the Google Cloud Console. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Navigate to APIs & Services > Dashboard, locate the Compute Engine API, and view the "Errors" and "Traffic" graphs.

    The APIs and Services Dashboard provides near real-time traffic, latency, and error rates for enabled APIs. Quotas only track allocation limits, not specific HTTP response codes like 5xx server errors.

  287. Question 287 of 311Your company runs critical production workloads across multiple Google Cloud projects using Compute Engine, Cloud SQL, and GKE. The SRE team wants a centralized dashboard to view ongoing Google Cloud service disruptions and incidents that are relevant to their specific projects, including incident status, impacted products, and affected regions. What should the SRE team use to access this project-specific incident information?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. View the Personalized Service Health dashboard in the Google Cloud Console. It automatically filters and displays incidents relevant to your projects, showing impacted products, regions, and incident status.

    The Personalized Service Health dashboard automatically filters global Google Cloud incidents to show only those relevant to your active projects. The public status dashboard lacks this filtering, which often causes unnecessary alert fatigue.

  288. Question 288 of 311Your organization's security team has two requirements for all new Cloud Storage buckets created under a specific folder: (1) every bucket must use a CMEK key, and (2) the CMEK key must come only from a designated key management project named kms-central. You want to enforce both requirements using Organization Policy. The Cloud KMS API is enabled in all relevant projects. Which combination of organization policy constraints should you apply to the folder?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Apply constraints/gcp.restrictNonCmekServices listing Cloud Storage, and apply constraints/gcp.restrictCmekCryptoKeyProjects listing the kms-central project.

    You must apply both organization policy constraints to the folder to enforce your requirements. The restrictNonCmekServices constraint forces CMEK usage, while the restrictCmekCryptoKeyProjects constraint limits those keys to the designated project.

  289. Question 289 of 311You are a Cloud Engineer working on two separate projects: bi-analytics-dev (hosted in us-central1) and bi-analytics-prod (hosted in europe-west3). You frequently switch between these contexts in your terminal to run commands. You want to switch the active project and its default region/zone properties in a single command without re-entering configuration data each time. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Create two named Configurations using gcloud config configurations create. Set the specific project and region properties for each, then switch using gcloud config configurations activate.

    Creating and activating named configurations allows you to instantly switch grouped settings like project, region, and zone. Running interactive setup wizards or exporting individual environment variables is inefficient for frequent context switching.

  290. Question 290 of 311You are preparing to deploy a complex microservices application to a Google Kubernetes Engine (GKE) cluster. The application consists of multiple Deployments, Services, and ConfigMaps that must be versioned and managed as a single release. You want to use the industry-standard package manager for Kubernetes to define, install, and upgrade this application. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Package your application manifests into a Helm chart and use helm install to deploy it to the cluster.

    Packaging manifests into a Helm chart allows you to version, install, and upgrade complex applications as a single release. While applying raw files works, it lacks native package management features like dependency tracking and simple rollbacks.

  291. Question 291 of 311A research team is running a large-scale physics simulation across hundreds of compute nodes. Each node must read and write shared dataset files concurrently with sub-millisecond latency and aggregate throughput in the terabytes-per-second range. The workload is POSIX-compliant and requires a persistent, high-performance shared file system. Which storage service should they use?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Google Cloud Managed Lustre, a fully managed parallel file system with sub-millisecond latency and TB/s-scale throughput, purpose-built for HPC and AI workloads requiring concurrent multi-node access.

    Managed Lustre is the correct choice because it is a fully managed parallel file system specifically built for high-performance computing workloads requiring massive concurrent access. For the exam, remember that standard Filestore handles general NFS workloads, while Managed Lustre targets sub-millisecond HPC throughput.

  292. Question 292 of 311You are the Billing Administrator for your company. You need to monitor the monthly costs of a critical production project, prod-app, to ensure it stays within a $5,000 limit. You want to receive email notifications when the project's spending reaches 50%, 90%, and 100% of this limit. You must ensure that the application resources remain online and active even if the budget is exceeded. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Configure a Budget in the Billing section. Set the amount to $5,000 and define threshold rules for 50%, 90%, and 100%.

    Configuring a budget with specified threshold rules correctly tracks spend and sends email alerts without disrupting your resources. A key exam cue is that Google Cloud budgets are purely for monitoring and alerting, as there is no native feature to automatically cap billing or shut down resources.

  293. Question 293 of 311You are a Data Analyst using the bq command-line tool to analyze a massive dataset in BigQuery. You have written a complex SQL query and want to verify exactly how many bytes it will process before running it, to ensure it doesn't exceed your daily cost quota. You want to see this estimate without incurring any charges. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Run the command bq query –dry_run [QUERY_STRING].

    Using the dry run flag with the BigQuery command-line tool returns the exact byte count a query will process without actually executing it or incurring costs. Remember that pricing calculators estimate general monthly costs, but they cannot parse a specific SQL statement to predict its exact scan size.

  294. Question 294 of 311You are administering a Cloud SQL for PostgreSQL instance that serves a production application. A developer accidentally ran a script that dropped a critical table at 14:30 UTC today. You need to recover the table to its state at 14:29 UTC. You want to ensure the current production instance remains online and unaffected during the recovery process. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Use the Clone feature to create a new instance from the source instance, specifying a Point-in-time of 14:29 UTC.

    Creating a clone with a specific point-in-time timestamp allows you to recover the lost table while keeping the production database online and unaffected. On the exam, remember that standard automated backups overwrite the existing instance and cause downtime, whereas cloning preserves the original instance.

  295. Question 295 of 311You are architecting a global financial ledger application that will process payments for users in North America, Europe, and Asia. The application has the following strict requirements: Global Strong Consistency: Financial transactions must be ACID-compliant and instantly consistent across all global regions to prevent double-spending. 99.999% Availability: The system must meet a "five nines" SLA for uptime. Horizontal Scalability: The database must scale horizontally to handle millions of concurrent read/write operations and petabytes of data without manual sharding. SQL Support: The development team requires a relational schema with SQL query capabilities. Which Google Cloud database service should you choose?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Cloud Spanner with a multi-region instance configuration.

    Cloud Spanner with a multi-region configuration provides the required global strong consistency, relational SQL interface, and a 99.999 percent availability service level agreement. Cloud SQL lacks horizontal scalability, while Bigtable and Firestore are NoSQL solutions that do not offer external consistency.

  296. Question 296 of 311You manage a Custom Mode VPC network named prod-vpc with a subnet named app-subnet in the us-central1 region. The subnet's primary IP range is 10.1.0.0/24, and it is nearly exhausted of IP addresses due to a growing number of Compute Engine instances. You need to double the number of available IP addresses in this specific subnet without deleting the subnet or disrupting the existing instances. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Edit the subnet details in the Google Cloud Console and change the IP range to 10.1.0.0/23.

    Expanding the primary IP range of an existing subnet is the non-disruptive method to increase available addresses without recreating resources. Secondary ranges are strictly for alias IPs like Kubernetes pods, so they cannot expand the primary address pool needed for standard virtual machines.

  297. Question 297 of 311You are the IAM Administrator for a rapidly growing organization. You need to grant the Compute OS Login role to 50 new developers who joined this week. You expect to hire 20 more developers every month. You want to follow Google Cloud best practices to manage these permissions efficiently with minimal manual effort when staffing changes occur. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Create a Google Group for the developers. Grant the role to the group email address. Add the developers' accounts to the group.

    Creating a Google Group and granting it the IAM role is the recommended practice, allowing you to manage access simply by adjusting group membership. Assigning roles to individual users creates massive policy bloat, and granting access to the entire domain violates the principle of least privilege.

  298. Question 298 of 311You frequently use Google Cloud Shell to manage your resources. You recently used sudo apt-get install to install a specific third-party Linux CLI tool required for your workflow. However, when you logged back in the next day, you found that the tool was missing and had to be reinstalled. You need to ensure that this tool is automatically available in your Cloud Shell environment every time you start a new session. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Create a script named .customize_environment in your $HOME directory and add the installation commands there.

    The customize environment script in your home directory is the designated mechanism for installing system-wide packages that need to run once when Cloud Shell starts. Placing the command in your bash profile runs it inefficiently on every new terminal tab instead of just once per virtual machine boot.

  299. Question 299 of 311You are deploying an application on AWS EC2 that needs to read data from a private Google Cloud Storage bucket. You want to avoid managing long-lived Google Service Account keys (JSON files) on the AWS side due to security risks. You need to configure the authentication so that the AWS EC2 instance exchanges its AWS credentials for a short-lived Google Cloud access token. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Create a Workload Identity Pool and an AWS Provider in Google Cloud. Grant the Workload Identity User role to the AWS IAM role ARN on the Google Service Account.

    Creating a Workload Identity Pool establishes the necessary trust to let AWS identities exchange their credentials for short-lived Google Cloud access tokens. Long-lived service account keys are a security risk, and Workload Identity Federation is the modern, keyless best practice for cross-cloud authentication.

  300. Question 300 of 311You are developing a Python application that runs on a Compute Engine instance. You need to track a custom business metric named active_queue_depth that measures the number of items currently waiting to be processed. This value fluctuates up and down throughout the day. You want to view this metric in Cloud Monitoring dashboards. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Use the Cloud Monitoring API client library in your application to define a custom metric and write the gauge values periodically.

    Using the Cloud Monitoring API to write a custom gauge metric is correct because a gauge represents values that fluctuate up and down over time. A counter metric only increases, making it unsuitable for tracking a dynamic queue depth.

  301. Question 301 of 311You are auditing a legacy VPC network to identify and remove unused firewall rules. You plan to use the Hit count column in the Google Cloud Console to identify rules that have processed zero traffic in the last six weeks. However, when you view the firewall rules list, the Hit count data is missing or not populated for the rules in question. What must you do to make this data available?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Enable Firewall Rule Logging on the individual firewall rules.

    Enabling Firewall Rule Logging on the individual rules is correct because the console uses this specific feature to populate the hit count and last used metrics. VPC Flow Logs sample network traffic at the subnet level but do not populate firewall columns.

  302. Question 302 of 311A developer is familiar with attaching NVIDIA GPUs to existing N1 Compute Engine VMs. They now want to use a Cloud TPU for a JAX training job and assume the workflow is the same: create a standard VM first, then attach a TPU to it afterward. Which statement correctly describes how Cloud TPU provisioning actually works?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. You provision a TPU VM directly via Compute Engine, GKE, or Gemini Enterprise Agent Platform, where the TPU chips and the host VM are a single integrated unit. You cannot attach a TPU to an existing arbitrary VM.

    Cloud TPU VMs are provisioned as an integrated unit of host hardware and TPU chips, completely unlike attaching a GPU to an existing N1 VM. For the exam, remember that network-attached TPU nodes are legacy architecture; modern TPU usage relies entirely on the unified TPU VM model.

  303. Question 303 of 311You are deploying a global gaming application that uses UDP for high-speed, real-time player communication. The application is deployed across multiple regions (US, Europe, Asia) to minimize latency. You need a load balancing solution that routes traffic to the closest available region and supports UDP traffic. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Configure a Regional External Passthrough Network Load Balancer in each region. Use Cloud DNS with a Geolocation routing policy to direct traffic.

    Deploying regional passthrough network load balancers with a Cloud DNS geolocation policy correctly handles global UDP routing. Google Cloud lacks a global load balancer supporting raw UDP traffic, and proxy or application load balancers only handle TCP or HTTP protocols.

  304. Question 304 of 311Your organization uses Google Kubernetes Engine (GKE) extensively. To unify your operational workflows, you want to manage your Google Cloud infrastructure (such as Cloud SQL instances, Pub/Sub topics, and IAM policies) using the same Kubernetes-style declarative configuration (YAML) that you use for your applications. You want to apply these configurations to your cluster and have a controller automatically provision the Google Cloud resources. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Install and configure Config Connector on your GKE cluster.

    Config Connector is a Kubernetes add-on that lets you manage Google Cloud resources using standard declarative YAML manifests. Terraform is incorrect because it uses HashiCorp Configuration Language rather than Kubernetes-native configuration files.

  305. Question 305 of 311Your company is migrating a Windows-based enterprise application to Google Cloud. The application requires SMB/CIFS file sharing for user home directories and shared storage for Microsoft SQL Server. The application also needs advanced data management features like snapshots, volume cloning, and cross-region replication for disaster recovery. Which file storage solution should you use?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Google Cloud NetApp Volumes. It supports both NFS and SMB/CIFS protocols, provides enterprise data management features like snapshots and replication, and offers three performance tiers (Standard, Premium, Extreme) with built-in data efficiency.

    Google Cloud NetApp Volumes is the correct choice because it natively supports SMB and CIFS protocols required for Windows workloads. Filestore only supports NFS, making it incompatible with native Microsoft application requirements.

  306. Question 306 of 311You manage a sandbox project used for experimental development with a strict monthly budget of $100. You want to receive an automated alert 3 days in advance when Google Cloud forecasts that spending will exceed the budget by month-end, giving your team time to review and optimize resources before hitting the limit. Standard threshold-based alerts are reactive and don't provide advance warning. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Configure a Budget of $100 with forecast-based thresholds enabled. Connect it to a Pub/Sub topic and deploy a Cloud Run Function triggered by the topic that sends notifications to your team's Slack channel when forecasted spend exceeds 100%.

    Configuring a budget with a forecasted spend threshold and a Pub/Sub topic provides proactive alerts before exceeding your limit. Cloud Monitoring does not expose billing forecast metrics, so you must use the native budget programmatic notifications.

  307. Question 307 of 311You are deploying a 3-tier application with frontend and backend Managed Instance Groups that autoscale dynamically. You need to configure a VPC Firewall rule to allow the frontend instances to communicate with the backend instances on TCP port 8080. You want to use the most secure method that strictly ties access to the instance's identity, preventing arbitrary access changes by users who only have instance modification permissions. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Create specific Service Accounts for the frontend and backend pools. Create a firewall rule allowing traffic where the Source Service Account is the frontend SA and the Target Service Account is the backend SA.

    Using specific service accounts in your firewall rules securely ties network access to virtual machine identity, preventing users with basic instance admin rights from altering tags to bypass controls. Network tags are less secure because anyone who can edit an instance can modify them.

  308. Question 308 of 311You configure Workload Identity Federation for a GitHub Actions pipeline using GitHub as the OIDC provider. After testing, a colleague points out that any GitHub Actions workflow across all of GitHub — not just your company's repositories — could potentially exchange a token for Google Cloud credentials. You need to restrict access to only workflows from your company's GitHub organisation. What is the correct way to fix this?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Add an attribute condition to the workload identity pool provider that checks the repository_owner_id claim against your organisation's numeric ID.

    Adding an attribute condition to the pool provider is correct because it validates specific claims within the incoming token to restrict access. Modifying the issuer URL fails because GitHub uses a single, global issuer endpoint for all organizations.

  309. Question 309 of 311Your security team wants to analyze Cloud SQL audit logs to identify all database connection attempts that resulted in authentication failures over the past 30 days. They need to run SQL queries to aggregate and group this data by user and time. The Logs Explorer's filter-based queries are insufficient for this complex analysis. What is the recommended approach to enable SQL-based log analysis?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Upgrade the log bucket containing the Cloud SQL audit logs to use Log Analytics. Once upgraded, you can write SQL queries directly in the Log Analytics page to query log views and aggregate data without additional BigQuery costs for storage or ingestion.

    Upgrading a log bucket to use Log Analytics enables native SQL queries directly within Cloud Logging without requiring BigQuery exports. While Log Analytics is heavily marketed, exporting to BigQuery remains a valid, common architectural choice for complex queries.

  310. Question 310 of 311Your organization is setting up a new Google Cloud environment from scratch. You need a turnkey, open-source solution that uses Terraform to bootstrap a complete, production-ready landing zone. This includes the resource hierarchy (Organization, Folders), networking, and security foundations, all pre-configured according to Google's enterprise best practices. What should you use?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. The Fabric FAST (Foundational Architecture Solution for Terraform) repository.

    Fabric FAST provides a turnkey, open-source Terraform blueprint to bootstrap a production-ready landing zone aligned with enterprise best practices. Deployment Manager is Google's deprecated infrastructure-as-code service and is not recommended for new landing zones.

  311. Question 311 of 311You are responsible for managing a large fleet of Cloud SQL and AlloyDB instances across multiple projects in your organization. You need a unified, AI-powered dashboard to proactively identify operational risks, such as databases that are missing automated backups, lack high availability (HA) configurations, or are over-provisioned. What should you do?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Enable Database Center and view the Fleet Health dashboard.

    Database Center provides a unified dashboard to proactively identify fleet-wide operational risks like missing backups. Cloud Monitoring tracks performance metrics, whereas this tool specifically evaluates configuration health and optimization.

More free practice tests at certpunch.com and new video rounds on @CertPunch.

Scroll to Top