Your company uses Cloud VPN (HA VPN) to connect to Google Cloud. You need to achieve a 99.99% SLA for the VPN connection. What configuration is required?
A.One VPN gateway with four tunnels to different on-premises devices
B.Two VPN gateways, each with two tunnels, totaling four tunnels
C.Two VPN gateways, each with one tunnel, using two different edge availability domains
D.One VPN gateway with two tunnels to the same on-premises device
AnswerB
This is the required configuration for 99.99% SLA.
Why this answer
HA VPN provides a 99.99% SLA when configured with two VPN gateways (each with two tunnels) for a total of four tunnels, and the tunnels are configured to use two different edge availability domains in Google Cloud and two different interfaces on the on-premises VPN device.
A company needs to protect an HTTPS load-balanced web application from OWASP Top 10 attacks, including SQL injection and cross-site scripting. Which GCP service should they enable?
A.Cloud NAT
B.Cloud CDN
C.Identity-Aware Proxy
D.Cloud Armor
AnswerD
Why this answer
Cloud Armor provides WAF capabilities that can be attached to HTTPS Load Balancers to filter requests based on OWASP signatures.
A company is planning a migration from on-premises to Google Cloud. They want to ensure minimal downtime and the ability to roll back quickly if issues arise. Which deployment strategy should they use?
A.Blue/green deployment
B.Big bang migration
C.Phased migration
D.Canary deployment
AnswerC
Phased migration gradually moves parts of the workload, allowing rollback if needed, minimizing downtime.
Why this answer
Phased migration involves moving workloads in stages, allowing testing and rollback at each phase. This minimizes risk and downtime. Blue/green and canary are more suited for application updates, not infrastructure migration.
A developer wants to deploy a stateless web application that automatically scales based on HTTP traffic. The application should be cost-effective and require minimal configuration. Which compute option is best?
A.App Engine Standard Environment
B.Cloud Functions
C.Compute Engine managed instance group
D.Cloud Run
E.Google Kubernetes Engine
AnswerD
Correct. Cloud Run scales automatically and is simple to deploy.
Why this answer
Cloud Run is the best choice because it automatically scales to zero when idle, scales up to handle HTTP traffic spikes, and requires minimal configuration—just deploy a container. It is cost-effective as you pay only for resources used during request processing, and it supports stateless web applications natively without managing servers or clusters.
Exam trap
The trap here is that candidates often confuse Cloud Run with Cloud Functions, thinking both are equivalent for web applications, but Cloud Functions is limited to event-driven triggers and cannot serve a full web app with persistent HTTP connections.
How to eliminate wrong answers
Option A is wrong because App Engine Standard Environment, while serverless, has more restrictive runtime environments and may require code modifications to fit its sandbox, whereas Cloud Run offers more flexibility with any container. Option B is wrong because Cloud Functions is designed for event-driven, short-lived functions, not for a full stateless web application that handles continuous HTTP traffic. Option C is wrong because Compute Engine managed instance groups require manual configuration of autoscaling policies, instance templates, and health checks, and do not scale to zero, leading to higher costs during idle periods.
Option E is wrong because Google Kubernetes Engine requires cluster management, node configuration, and more operational overhead, making it less minimal in configuration compared to Cloud Run's fully managed serverless container platform.
A financial services company runs workloads on GKE and wants to ensure only container images that have been approved by the security team can be deployed. The approval process involves signing images after vulnerability scanning. Which GCP service should be integrated with GKE to enforce this policy?
A.Cloud Key Management Service (Cloud KMS)
B.Cloud Build
C.Artifact Registry
D.Binary Authorization
AnswerD
Binary Authorization allows only signed images from approved authorities to be deployed.
Why this answer
Binary Authorization enforces that only signed container images from trusted authorities can be deployed on GKE. It integrates with Cloud KMS for signing and can be configured with attestors.
A Cloud Router BGP session is flapping. The logs show 'Interface flapping due to changes in the underlying network'. What is the most likely cause?
A.MTU mismatch across the network path.
B.BGP MD5 authentication failure.
C.Incorrect local AS number in Cloud Router configuration.
D.BGP timer misconfiguration between peers.
AnswerA
MTU mismatch can cause intermittent packet loss, leading to BGP session flapping.
Why this answer
The log message 'Interface flapping due to changes in the underlying network' indicates that the BGP session is unstable because the physical or logical interface is going up and down. An MTU mismatch across the network path can cause packet fragmentation issues, leading to intermittent connectivity and interface flaps as the router detects and recovers from the problem. This is the most likely cause because it directly affects the stability of the underlying network path.
Exam trap
The trap here is that candidates often associate BGP flapping with timer misconfigurations or authentication issues, but the specific log message about 'changes in the underlying network' points directly to a Layer 2 or path-level problem like MTU mismatch, not BGP protocol errors.
How to eliminate wrong answers
Option B is wrong because BGP MD5 authentication failure would generate authentication error messages, not interface flapping logs, and would prevent the session from establishing rather than cause intermittent flaps. Option C is wrong because an incorrect local AS number in Cloud Router configuration would cause a BGP open message error and the session would fail to establish entirely, not flap due to interface changes. Option D is wrong because BGP timer misconfiguration (e.g., hold time or keepalive) would cause the session to time out and reset, but the log specifically mentions 'changes in the underlying network', not timer expiry.
You are responsible for incident management for a production service. You want to reduce manual toil during the initial response to common issues like high latency. What is the best approach?
A.Use Cloud Monitoring to trigger a Cloud Function that performs automated checks and rolls back the last deployment if latency spikes.
B.Set up Cloud Monitoring alerts with email notifications to the on-call engineer.
C.Create detailed runbooks and require the on-call to follow them step by step.
D.Enable Cloud Logging and set up a custom dashboard for the on-call.
AnswerA
Automated actions reduce manual toil and speed up response.
Why this answer
It directly reduces manual toil by automating the initial response to common issues like high latency. Cloud Monitoring triggers a Cloud Function that performs automated checks and, if latency spikes, rolls back the last deployment, eliminating the need for human intervention during the critical first response phase.
Exam trap
Google Cloud often tests the distinction between 'alerting' (which still requires manual action) and 'automated remediation' (which reduces toil), so candidates mistakenly choose options that provide visibility or documentation instead of automation.
How to eliminate wrong answers
Option B is wrong because email notifications alone still require the on-call engineer to manually investigate and respond, which does not reduce toil; it merely alerts them. Option C is wrong because requiring the on-call to follow runbooks step by step still involves manual effort and does not automate the response, leaving toil unchanged. Option D is wrong because enabling Cloud Logging and setting up a custom dashboard provides visibility but does not automate any action, so the on-call must still manually diagnose and respond to the issue.
A cloud architect is designing a CI/CD pipeline for a microservices application. Each service is deployed to Cloud Run. They want to use Cloud Build to automate building and deploying services only when changes occur in their respective directories. Which Cloud Build feature should they configure?
A.Build steps in cloudbuild.yaml
B.Build triggers with included files filter
C.Cloud Build's 'includedFiles' option in the build configuration
D.Artifact Registry triggers
AnswerB
Correct: Cloud Build triggers can filter by file paths to trigger builds only on changes to specific directories.
Why this answer
Cloud Build triggers can be configured with regular expressions to match changed files in specific directories, so builds are only started for relevant changes. Build steps define actions but not triggers; cloudbuild.yaml is the build configuration file; Artifact Registry is a storage service.
A company runs a stateful workload on GKE that requires at most one pod per node. They want to survive a zonal failure with minimal downtime. The application can be restarted on a new node. Which configuration should they use?
A.Use a StatefulSet with pod anti-affinity required and a regional cluster
B.Use a Deployment with a PodDisruptionBudget set to maxUnavailable=0
C.Deploy a Deployment with a nodeSelector for one zone
D.Use a DaemonSet with node affinity
AnswerA
StatefulSet provides stable storage and network identity; anti-affinity ensures one pod per node; regional cluster spreads nodes across zones.
Why this answer
A StatefulSet with pod anti-affinity required ensures one pod per node. A regional cluster with nodes in multiple zones allows rescheduling in another zone. A single-zone cluster would not survive a zonal failure.
PDB limits disruption but does not handle zone failure.
A company is designing a highly available web application on Google Cloud. The application consists of stateless compute instances behind a global HTTP(S) Load Balancer. The compute instances must be able to handle sudden spikes in traffic. Which TWO strategies should the company implement? (Choose two.)
Select 2 answers
A.Use Cloud CDN to cache all responses from the application servers.
B.Use a managed instance group with autoscaling based on CPU utilization.
C.Use a single Compute Engine instance in a single zone with a large machine type.
D.Use a global HTTP(S) Load Balancer with backends in multiple regions.
E.Use vertical scaling by selecting a machine type with more vCPUs and memory.
AnswersB, D
Autoscaling handles spikes by adding instances.
Why this answer
A managed instance group with autoscaling based on CPU utilization automatically adjusts the number of stateless compute instances in response to traffic spikes, ensuring the application can handle sudden load increases without manual intervention. This aligns with the requirement for stateless instances behind a global load balancer, as autoscaling adds or removes instances based on real-time CPU metrics, providing elasticity and high availability.
Exam trap
The trap here is that candidates often confuse caching (Cloud CDN) with compute scaling, or assume vertical scaling (larger machine types) is sufficient for sudden spikes, ignoring the need for horizontal elasticity and multi-zone redundancy in a highly available architecture.
A company wants to automatically move data from Cloud Storage Standard to Nearline after 30 days and to Archive after 90 days. Which approach should they use?
A.Write a custom script using Cloud Functions triggered by Pub/Sub to move objects
B.Use Object Versioning to automatically change storage class
C.Set up a Cloud Storage lifecycle policy with rules to transition to Nearline after 30 days and to Archive after 90 days
D.Enable Requester Pays on the bucket to reduce storage costs
AnswerC
Lifecycle policies automate tiering based on age.
Why this answer
Cloud Storage lifecycle policies can automatically transition objects between storage classes based on age or other conditions. This is the simplest and most cost-effective method. Manually moving data is not practical.
Object versioning helps with retention but not automatic tiering. Requester pays shifts costs but does not move data.
A company runs a critical application on a Compute Engine instance. They want to ensure that the application remains available even if the instance crashes. Which two GCP features should they use? (Choose two.)
Select 2 answers
A.Regular snapshots of the persistent disk.
B.A load balancer distributing traffic to a single instance.
C.Instance template with automatic restart.
D.Managed Instance Group with autohealing.
E.A Cloud CDN to cache static content.
AnswersC, D
Automatic restart restarts the instance on host failure.
Why this answer
An instance template with automatic restart enables Compute Engine to automatically restart a VM instance if it crashes or is terminated due to a non-user-initiated failure. This feature is configured at the instance level and ensures that the application recovers quickly without manual intervention, improving availability for a single-instance workload.
Exam trap
The trap here is that candidates often confuse automatic restart (which handles VM crashes) with autohealing (which handles application-level failures), or incorrectly assume a load balancer alone provides high availability without a redundant backend.
Your organization uses Cloud Spanner for a customer database with a 99.999% availability SLA. You need a Disaster Recovery plan that ensures data consistency with zero RPO in case of a region failure. What should you do?
A.Use a single-region instance configuration and enable read replicas.
B.Export the database periodically to Cloud Storage and set up a cross-region load balancer.
C.Configure daily backups and store them in Cloud Storage in a different region.
D.Use a multi-region instance configuration (e.g., nam-eur-asia) for the Spanner instance.
AnswerD
Multi-region configs use synchronous replication across regions, providing automatic failover with zero RPO.
Why this answer
Cloud Spanner multi-region instance configurations (e.g., nam-eur-asia) provide synchronous replication across multiple regions, ensuring strong global consistency and zero RPO. This architecture uses Paxos-based replication to commit writes only after they are durably stored in a majority of regions, so a region failure does not lose any committed data. The 99.999% availability SLA is met by automatic failover within the multi-region setup without manual intervention.
Exam trap
Google Cloud often tests the misconception that read replicas or periodic exports can achieve zero RPO, but only synchronous multi-region replication (as in Spanner's multi-region configurations) guarantees no data loss during a region failure.
How to eliminate wrong answers
Option A is wrong because single-region instance configurations with read replicas are not supported in Cloud Spanner; Spanner uses writable replicas, not read replicas, and a single-region setup cannot survive a full region failure, thus cannot achieve zero RPO. Option B is wrong because exporting the database periodically to Cloud Storage introduces a non-zero RPO (the time between exports) and does not guarantee data consistency at the point of failure; cross-region load balancers do not handle Spanner's transactional consistency. Option C is wrong because daily backups stored in a different region provide point-in-time recovery with a minimum RPO of 24 hours (or more), not zero RPO, and cannot ensure data consistency for transactions in flight at the time of failure.
An organization wants to receive alerts when their Cloud SQL instance's CPU utilization exceeds 80% for 5 minutes. They want to send the alert to both email and a Pub/Sub topic for further processing. What should they do?
A.Configure a Cloud Scheduler job to check CPU utilization and publish to Pub/Sub
B.Create a log-based alert for CPU utilization using Logging and route to email and Pub/Sub
C.Create a Cloud Monitoring alerting policy with a metric threshold condition on CPU utilization and add both email and Pub/Sub notification channels
D.Use Cloud Functions to poll the Cloud Monitoring API every minute and send notifications
AnswerC
This is the correct approach. Metric threshold conditions trigger on CPU utilization, and multiple notification channels can be added.
Why this answer
In Cloud Monitoring, an alerting policy can have multiple notification channels (email, Pub/Sub, PagerDuty, SMS). The CPU utilization metric is available via the 'cloudsql.googleapis.com' metric type.
A developer needs to deploy a containerized application on Google Kubernetes Engine (GKE) with minimal operational overhead. They want to automatically scale the number of pods based on CPU utilization. Which GKE feature should they use?
A.Horizontal Pod Autoscaler.
B.Node auto-repair.
C.Vertical Pod Autoscaler.
D.Cluster Autoscaler.
AnswerA
HPA scales pods based on metrics like CPU.
Why this answer
The Horizontal Pod Autoscaler (HPA) is the correct choice because it automatically scales the number of pod replicas in a GKE deployment based on observed CPU utilization (or other custom metrics). This directly meets the requirement of scaling pods with minimal operational overhead, as HPA is a native Kubernetes resource that requires no manual intervention once configured.
Exam trap
Google Cloud often tests the distinction between horizontal scaling (HPA) and vertical scaling (VPA), where candidates mistakenly choose VPA when the question explicitly asks for scaling the number of pods based on CPU utilization.
How to eliminate wrong answers
Option B (Node auto-repair) is wrong because it automatically repairs unhealthy nodes in the node pool, not scales pods based on CPU utilization. Option C (Vertical Pod Autoscaler) is wrong because it adjusts the CPU and memory requests/limits of existing pods (vertical scaling), not the number of pod replicas (horizontal scaling). Option D (Cluster Autoscaler) is wrong because it adds or removes nodes from the cluster based on pod scheduling needs, not directly scaling pods based on CPU utilization.
A company wants to protect a web application from SQL injection and cross-site scripting (XSS) attacks. They also need to block traffic from specific geographic regions. Which three features of Cloud Armor should they use? (Choose THREE).
Select 3 answers
A.Rate limiting
B.WAF rules
C.Geographic restrictions
D.Cloud CDN
E.Adaptive Protection
AnswersA, B, C
Can mitigate DDoS attacks by limiting request rates.
Why this answer
WAF rules (preconfigured rules for SQLi, XSS), rate limiting (optional), and geographic restrictions (geo-based access control) are all features of Cloud Armor.
A company uses BigQuery for analytics. They have a large partitioned table that is queried frequently. The query performance has degraded over time. Which optimization should they try first?
A.Create a materialized view for each frequent query.
B.Increase the number of slots for the project.
C.Apply clustering on frequently filtered columns.
D.Denormalize the table to reduce joins.
AnswerC
Clustering sorts data, reducing scanned data for filters.
Why this answer
Clustering on frequently filtered columns reorganizes the data within partitions based on the values of those columns, which allows BigQuery to prune blocks more effectively during queries. This directly addresses the performance degradation by reducing the amount of data scanned, without requiring additional storage or compute resources.
Exam trap
Google Cloud often tests the misconception that adding more slots (Option B) is the default performance fix, when in reality the first step should be to reduce data scanned through clustering or partitioning optimization.
How to eliminate wrong answers
Option A is wrong because creating materialized views for each frequent query would increase storage costs and maintenance overhead, and they are not the first optimization to try for a partitioned table with degraded performance; clustering addresses the root cause of excessive data scanning. Option B is wrong because increasing the number of slots only improves concurrency and throughput, not the efficiency of individual queries; it does not reduce the amount of data read per query. Option D is wrong because denormalizing the table to reduce joins is a schema design change that may help with join-heavy workloads, but it does not address the core issue of scanning too many rows in a large partitioned table; clustering is a more targeted and less disruptive first step.
A developer needs to deploy a stateful application that requires persistent storage across pod restarts in Google Kubernetes Engine. Which resource should they use?
A.ConfigMap
B.EmptyDir
C.Secret
D.PersistentVolumeClaim
AnswerD
Provides persistent storage that remains across pod restarts.
Why this answer
A PersistentVolumeClaim (PVC) is the correct resource because it allows a pod to request persistent storage that survives pod restarts. In GKE, a PVC binds to a PersistentVolume (PV), which can be backed by Compute Engine persistent disks, ensuring data remains available even if the pod is rescheduled or restarted.
Exam trap
The trap here is that candidates confuse ephemeral volumes (EmptyDir) with persistent storage, or assume ConfigMaps/Secrets can store application data, when in fact they are for configuration and secrets only.
How to eliminate wrong answers
Option A is wrong because a ConfigMap is used to inject configuration data (e.g., environment variables, files) into pods, not for persistent storage. Option B is wrong because an EmptyDir volume is ephemeral—it is created when a pod starts and is deleted when the pod is removed, so data does not persist across pod restarts. Option C is wrong because a Secret is designed to store sensitive data (e.g., passwords, tokens) and is not a storage volume for application data.
A global e-commerce site uses an external HTTPSload balancer with a backend service pointing to a managed instance group. Some users report 503 errors during peak traffic. The backend instances are healthy and not overloaded. What is the most likely cause?
A.The CDN cache is not warming up properly
B.The backend service's health check interval is too short
C.The SSL certificate is expired
D.The load balancer's max rate per backend is configured too low
AnswerD
The load balancer enforces a rate limit at the backend level; exceeding it produces 503.
Why this answer
A 503 error from an external HTTPSload balancer with healthy backends typically indicates that the load balancer is throttling requests. The 'max rate per backend' setting limits the number of requests per second that the load balancer forwards to each backend instance. When this limit is exceeded, the load balancer returns 503 errors even though the instances themselves are not overloaded, which matches the scenario of peak traffic.
Exam trap
Google Cloud often tests the misconception that 503 errors always indicate backend overload or health check failures, when in fact the load balancer's rate limiting configuration can cause 503s with perfectly healthy instances.
How to eliminate wrong answers
Option A is wrong because CDN cache warming affects cache hit ratios and latency, not 503 errors from the load balancer; a cold cache would cause more origin requests but not throttling. Option B is wrong because a health check interval that is too short could cause flapping or false unhealthy status, but the question states backend instances are healthy and not overloaded, so health checks are passing. Option C is wrong because an expired SSL certificate would cause TLS handshake failures (e.g., ERR_CERT_DATE_INVALID) and 502 or connection errors, not 503 errors from the load balancer itself.
A DevOps engineer needs to automate the deployment of a containerized application to Google Kubernetes Engine (GKE) using a CI/CD pipeline. The pipeline should build a Docker image, store it in Artifact Registry, and then deploy it to a GKE cluster. Which two Google Cloud services should be used together to achieve this?
A.Cloud Build and Cloud Run
B.Artifact Registry and GKE alone
C.Cloud Source Repositories and Compute Engine
D.Cloud Build and Cloud Deploy
AnswerD
Correct: Cloud Build builds and pushes the image, Cloud Deploy handles deployment to GKE.
Why this answer
Cloud Build can build the Docker image and push it to Artifact Registry. Cloud Deploy can then deploy the image to GKE using a delivery pipeline. Cloud Run is for serverless containers, not GKE.
Cloud Source Repositories is a code repository, not a deployment service. Compute Engine is not needed for this use case.
A team wants to collect and analyze logs from multiple projects into a centralized BigQuery dataset for long-term retention and SQL querying. They want to exclude health check logs to reduce costs. Which approach should they use?
A.Use Cloud Monitoring to exclude health check logs
B.Create a log metric for health check logs and filter in BigQuery
C.Create a log sink to BigQuery and add a log exclusion filter for health check logs
D.Set up a Cloud Function to delete health check logs from BigQuery
AnswerC
Log sinks export logs to a destination; exclusion filters prevent matching logs from being ingested or exported.
Why this answer
Log sinks can route logs to BigQuery, and exclusion filters can be applied to filter out specific logs before they are ingested.
A company wants to minimize egress costs for data transferred between Compute Engine instances in the same region but different zones. What is the best practice?
A.Use a VPN connection.
B.Use internal IPs and ensure they are in the same VPC.
C.Use Cloud NAT.
D.Use external IPs for all instances.
AnswerB
Internal IP traffic within the same VPC and region is free.
Why this answer
B is correct because data transfer between Compute Engine instances in the same region but different zones uses internal IP addresses within the same VPC, which incurs no egress costs. Google Cloud does not charge for traffic between instances using internal IPs within the same region, regardless of zone, as long as they are in the same VPC network. This is the most cost-effective approach for minimizing egress costs.
Exam trap
The trap here is that candidates often confuse 'different zones' with 'different regions' and assume egress costs apply, or they mistakenly think that using external IPs or NAT is necessary for inter-instance communication, when in fact internal IPs within the same VPC and region are free and optimal.
How to eliminate wrong answers
Option A is wrong because using a VPN connection introduces additional complexity and does not reduce egress costs; VPN traffic still traverses the internet or uses Cloud VPN tunnels, which incur egress charges. Option C is wrong because Cloud NAT is used for outbound internet access from private instances and does not affect inter-instance traffic costs within the same region; it would add unnecessary overhead and potential costs. Option D is wrong because using external IPs for all instances forces traffic to go through the internet or Google's external network, incurring egress charges even within the same region, which is the opposite of minimizing costs.
A data engineering team wants to ingest streaming data from Pub/Sub, transform it using Apache Beam, and load it into BigQuery for real-time analytics. They need a fully managed solution that handles autoscaling and does not require managing servers. Which TWO Google Cloud services should they use?
Select 2 answers
A.Cloud Dataproc
B.Cloud Dataflow
C.Cloud Dataprep
D.Cloud Composer
E.Cloud Pub/Sub
AnswersB, E
Dataflow runs Beam pipelines with autoscaling and serverless processing.
Why this answer
Dataflow is the fully managed service for executing Apache Beam pipelines, with autoscaling and serverless execution. Pub/Sub is the ingestion service. Cloud Composer is Airflow, not streaming; Dataproc is for Spark/Hadoop; Dataprep is for data preparation.
A company runs a critical application on Compute Engine with a 1-year commitment for cost savings. They want to also optimize for performance by using machine types with more memory. They plan to update to a different machine series during the commitment term. Which committed use discount type allows this flexibility?
A.Preemptible discount
B.Sustained use discount
C.Spend-based committed use discount
D.Resource-based committed use discount
AnswerC
Spend-based discounts provide commitment to a dollar amount, allowing flexible selection of machine types as long as the spend is maintained.
Why this answer
Spend-based committed use discounts apply to a dollar amount of spend on eligible instance types, allowing flexibility to change machine types as long as the spend commitment is met. Resource-based committed use discounts are tied to specific machine types (e.g., n1-standard-4) and cannot be changed without breaking the commitment.
Refer to the exhibit. A Deployment Manager template deploys a GKE cluster and a job that publishes to Pub/Sub. The job fails with a permission error. Which change would fix the issue?
A.Set the job's serviceAccountName to the default compute service account.
B.Change the oauthScopes to include https://www.googleapis.com/auth/cloud-platform.
C.Add dependsOn: [my-job] to the cluster resource to ensure the cluster is ready.
D.Add a serviceAccount field to nodeConfig with a custom service account that has roles/pubsub.publisher.
AnswerD
This ensures the nodes (and thus the job) have the required Pub/Sub publish permission.
Why this answer
The node pool's service account needs the Pub/Sub Publisher role. The exhibit shows the nodes are using the default compute engine service account with only pubsub scope (no roles). The fix is to assign a service account with the necessary IAM role.
A company runs a microservices application on GKE Autopilot. They want to implement canary deployments where a new version of a service receives 10% of traffic. Which approach should they use?
A.Use Istio VirtualService to split traffic between two subsets of the same Service
B.Use a Kubernetes Service with label selectors pointing to two Deployments (stable and canary) and scale the number of replicas to achieve 10% traffic
C.Deploy the canary version using a separate Service with a different DNS name and configure the application to split traffic
D.Use Cloud Deploy with a rollout strategy that sets traffic percentage to 10% for the canary
AnswerB
This is a standard Kubernetes canary pattern: a Service routes traffic to pods matching labels from both Deployments. By scaling replicas, you can approximate traffic percentage.
Why this answer
GKE Autopilot supports canary deployments using Kubernetes native features like multiple Deployments with a Service selector using a common label, and adjusting replica counts to control traffic. Istio or Traffic Director are not required. Cloud Deploy can be used but the simplest approach is to use a single Kubernetes Service with label selectors pointing to both Deployments and scaling replicas.
A company is running a containerized application on Cloud Run and needs to handle long-running requests that may exceed Cloud Run's default timeout. They also need to use WebSocket connections. What should they do?
A.Use Cloud Functions with a HTTP trigger and increase the timeout to 60 minutes.
B.Deploy the application on Google Kubernetes Engine (GKE) with a NodePort service to handle WebSocket natively.
C.Move WebSocket connections to Compute Engine and adjust Cloud Run timeout to 60 minutes for long requests.
D.Increase the Cloud Run container timeout to the maximum (60 minutes) and enable WebSocket support by setting an environment variable.
AnswerC
Cloud Run timeout can be set to up to 60 minutes; WebSocket is not supported, so use Compute Engine for WebSocket.
Why this answer
Cloud Run allows configuring request timeout up to 60 minutes. However, WebSocket support is limited; Cloud Run does not support WebSocket connections natively. For WebSocket, they should consider GKE or Compute Engine.
Thus, the correct answer is to adjust Cloud Run timeout max and move WebSocket to another service.
An organization needs to meet a RTO of 1 hour for a critical application running on GCE with persistent disks. What is the most cost-effective approach?
A.Use regional persistent disks.
B.Replica of compute instance in another zone.
C.Frequent disk image exports.
D.Regular snapshots to a regional bucket.
AnswerA
Synchronous replication, fast failover.
Why this answer
Regional persistent disks (PD) provide synchronous replication of data between two zones in the same region, enabling automatic failover for a GCE instance without manual intervention. This meets the 1-hour RTO by allowing the instance to be recreated or failed over to the secondary zone quickly, and it is more cost-effective than maintaining a full replica instance because you only pay for the disk storage and replication, not for an idle compute instance.
Exam trap
The trap here is that candidates often confuse regional persistent disks with snapshots or image exports, assuming that any backup method can meet a strict RTO, but they overlook the synchronous replication and automatic failover capability of regional PDs that make them the most cost-effective for this requirement.
How to eliminate wrong answers
Option B is wrong because maintaining a replica of the compute instance in another zone incurs additional compute costs for the idle replica, which is less cost-effective than using regional PDs that only replicate the disk. Option C is wrong because frequent disk image exports are time-consuming (exporting an image can take longer than 1 hour) and incur storage costs for each image, making it impractical for a 1-hour RTO and not cost-effective. Option D is wrong because regular snapshots to a regional bucket provide asynchronous backup, not synchronous replication; restoring from a snapshot requires creating a new disk and instance, which can exceed the 1-hour RTO due to snapshot export and disk creation times.
An organization has deployed a multi-region Cloud Spanner instance for a global application. The application is experiencing high latency for read requests from a specific region. The team has verified that the application is using stale reads and the data distribution is even. What is the most likely cause of the high latency?
A.The number of read replicas in the region is insufficient to handle the read volume.
B.The Spanner instance has too few nodes, causing contention.
C.The application is using read-write transactions instead of read-only transactions.
D.The Spanner instance does not have a read replica in a location close to the clients.
AnswerD
Adding a read replica in the region reduces network round-trip time, lowering read latency.
Why this answer
Cloud Spanner uses a single global configuration with regional read replicas. If the instance does not have a read replica in the region where the clients are located, read requests must traverse the network to a replica in another region, causing higher latency. Even with stale reads, the physical distance to the nearest replica directly impacts read latency.
Exam trap
Google Cloud often tests the misconception that adding more nodes or read replicas solves regional latency, when the real issue is the absence of a local replica in the specific region.
How to eliminate wrong answers
Option A is wrong because Cloud Spanner does not have a concept of 'read replicas' in the same way as traditional databases; it uses a single set of nodes per instance, and read capacity scales with the number of nodes, not with separate read replicas. Option B is wrong because the team has verified that data distribution is even, and the question states the issue is specific to a region, not global contention; too few nodes would cause high latency across all regions, not just one. Option C is wrong because the team has already verified that the application is using stale reads, which are read-only transactions by definition; read-write transactions would not be used in this scenario.
A company has a Cloud SQL for MySQL instance with automated backups enabled. They need to recover the database to a specific point in time within the last hour. Which feature should they use?
A.Failover replica
B.Point-in-time recovery (PITR)
C.Automated backup restore
D.Import using the mysqldump file
AnswerB
PITR allows restoring to any point within the retention period.
Why this answer
Point-in-time recovery (PITR) restores a Cloud SQL instance to a specific time, using binary logs. Automated backups alone restore to the backup time, not arbitrary points. Failover replica is for high availability.
An organization requires that all container images deployed to GKE be signed and verified before deployment. Which GCP service should be used?
A.Container Registry vulnerability scanning
B.Binary Authorization
C.Cloud Build
D.Artifact Registry
AnswerB
Binary Authorization enforces attestation-based policies for deploying only signed container images.
Why this answer
Binary Authorization enforces deployment policies that require images to be signed by trusted authorities (e.g., using Cloud KMS) and verified before being deployed to GKE.
A startup wants to run a containerized web application that scales to zero when not in use and charges only for request processing time. Which compute service is most appropriate?
A.Google Kubernetes Engine (Autopilot)
B.Compute Engine with preemptible VMs
C.Cloud Run
D.App Engine Standard
AnswerC
Cloud Run is a serverless container platform that scales to zero when idle, charging only for request processing and compute time.
Why this answer
Cloud Run is a fully managed serverless container platform that scales down to zero and charges per request, making it ideal for variable workloads that need to minimize cost when idle.
Which THREE are valid Google Cloud Dedicated Interconnect connection options?
Select 3 answers
A.High availability (HA) with two 10 Gbps circuits.
B.10 Gbps single circuit.
C.IPsec VPN tunnel as a backup to the interconnect.
D.Partner Interconnect offering via a service provider.
E.100 Gbps single circuit.
AnswersA, B, E
HA option provides redundancy.
Why this answer
Google Cloud Dedicated Interconnect supports high availability configurations using two 10 Gbps circuits to provide redundancy and meet SLA requirements. This setup ensures that if one circuit fails, traffic can be rerouted through the other, maintaining connectivity.
Exam trap
Google Cloud often tests the distinction between Dedicated Interconnect and Partner Interconnect, and the fact that IPsecVPN is a separate backup option, not a connection type for Dedicated Interconnect.
An organization wants to implement a canary deployment in GKE, directing 5% of traffic to a new version and 95% to the stable version. They want to use Google Cloud's managed service mesh for traffic splitting. Which approach should they use?
Answer options not yet available.
Why this answer
Anthos Service Mesh (based on Istio) can be used for fine-grained traffic splitting using VirtualService and DestinationRule resources. Cloud Deploy also supports canary deployments but is primarily for continuous delivery, not traffic splitting at the mesh level. For managed service mesh, Anthos Service Mesh is the correct choice.
An organization uses Cloud Storage to store critical documents. They want to protect against accidental deletion or overwriting of objects. Which feature should they enable?
A.Uniform bucket-level access
B.Object lifecycle management rules
C.Object versioning and retention policies
D.Customer-managed encryption keys (CMEK)
AnswerC
Versioning retains previous versions; retention policies prevent deletion. Together they protect against accidents.
Why this answer
Object versioning and retention policies together protect against accidental deletion and overwrites. Versioning keeps multiple versions of objects, and retention policies prevent deletion until a specified time. Uniform bucket-level access is for access control, not protection.
Object lifecycle management automates transitions/deletion, not protection. Encryption protects data at rest.
A company wants to migrate a MySQL database running on-premises to Cloud SQL with minimal downtime. Which GCP service should they use?
A.Migrate for Compute Engine
B.Storage Transfer Service
C.Transfer Appliance
D.Database Migration Service
AnswerD
DMS provides minimal-downtime migration for MySQL to Cloud SQL.
Why this answer
Database Migration Service (DMS) supports homogeneous migrations for MySQL, PostgreSQL, and SQL Server with minimal downtime using continuous replication. Migrate for Compute Engine is for VM migration, Transfer Appliance for bulk data, and Storage Transfer Service for object storage.
Which TWO strategies should a company implement to optimize costs for a production GKE cluster? (Choose two.)
Select 2 answers
A.Use Istio for traffic management.
B.Use a regional cluster.
C.Enable GKE usage metering.
D.Use cluster autoscaler with preemptible node pools.
E.Use node local DNS cache.
AnswersC, D
Usage metering helps allocate costs per namespace and identify waste.
Why this answer
GKE usage metering provides detailed cost allocation by breaking down cluster resource consumption (CPU, memory, storage) per Kubernetes namespace or label, enabling teams to track and optimize spending across different projects or departments. Option D is correct because using cluster autoscaler with preemptible node pools reduces costs: the autoscaler adjusts the number of nodes based on workload demand, preventing over-provisioning, while preemptible VMs offer significant discounts (up to 60-91%) compared to regular instances, though they can be terminated at any time, making them suitable for fault-tolerant workloads.
Exam trap
Google Cloud often tests the distinction between cost optimization and other operational goals like high availability or performance; candidates mistakenly choose regional clusters (high availability) or Istio (traffic management) as cost-saving measures when they are not.
A company wants to enforce that only approved container images can be deployed to GKE. They also want to ensure images are scanned for vulnerabilities before deployment. Which two GCP services should they use? (Choose TWO).
Select 2 answers
A.Container Analysis API
B.Cloud Security Command Center
C.Container Registry vulnerability scanning
D.Cloud Build
E.Binary Authorization
AnswersA, E
Container Analysis provides vulnerability scanning and can be integrated with Binary Authorization.
Why this answer
Binary Authorization enforces deployment policies based on image signatures. Container Analysis (or vulnerability scanning) identifies vulnerabilities in images.
A company is building a microservices architecture on Google Kubernetes Engine (GKE) and needs to ensure each microservice can only access specific Cloud Storage buckets. IAM permissions should be assigned at the pod level, not at the node level. What is the recommended approach?
A.Store service account keys in Kubernetes secrets and mount them into each pod
B.Use a CSI driver to mount IAM credentials into pods
C.Use Workload Identity to bind a Kubernetes service account to a GCP service account
D.Assign a service account to each node pool and configure pod security policies
AnswerC
Workload Identity enables per-pod IAM permissions by mapping Kubernetes service accounts to GCP service accounts.
Why this answer
Workload Identity is the recommended approach because it allows you to bind a Kubernetes service account (KSA) to a Google Cloud service account (GSA), enabling pods to authenticate to Google Cloud APIs without managing or storing service account keys. This satisfies the requirement for pod-level IAM permissions, as each pod can inherit the GSA's roles (e.g., roles/storage.objectViewer) for specific Cloud Storage buckets, while avoiding node-level assignment.
Exam trap
A common misconception tested on the Google PCA exam is that storing service account keys in Kubernetes secrets (Option A) is acceptable for production. However, the trap here is that Workload Identity eliminates the need for static keys entirely, aligning with Google's security best practices and the requirement for pod-level identity.
How to eliminate wrong answers
Option A is wrong because storing service account keys in Kubernetes secrets and mounting them into pods introduces security risks (key exposure, rotation complexity) and violates the principle of avoiding static credentials; it also does not leverage GKE's native identity integration. Option B is wrong because while a CSI driver can mount secrets or certificates, there is no standard CSI driver for mounting IAM credentials directly into pods; this approach is not a recommended or supported pattern for GKE identity management. Option D is wrong because assigning a service account to each node pool and configuring pod security policies grants permissions at the node level, not the pod level, which contradicts the requirement and can lead to over-privileged pods sharing the same node-level identity.
Your company has a production Cloud SQL for PostgreSQL instance in us-central1 with automated backups enabled. You need to ensure that if the zone fails, the database automatically fails over to a standby in a different zone with minimal downtime. What should you do?
A.Enable deletion protection on the instance.
B.Create a cross-region read replica and manually promote it during a failure.
C.Configure the instance as a highly available (regional) instance.
D.Enable point-in-time recovery (PITR) and keep 30 days of transaction logs.
AnswerC
HA configuration creates a standby in a different zone and enables automatic failover.
Why this answer
Cloud SQL high availability (HA) configuration creates a standby instance in a different zone. The primary and standby use synchronous replication, and automatic failover occurs if the primary zone fails. Enabling deletion protection does not provide HA.
Read replicas are for read scaling, not automatic failover. Automated backups alone do not provide failover.
A cloud architect is implementing a CI/CD pipeline for a microservices-based application on Google Kubernetes Engine (GKE). The team needs to deploy new versions of the services with zero downtime and the ability to quickly roll back if issues are detected. Which two strategies should the architect consider? (Choose two.)
Select 2 answers
A.Shadow deployment
B.Rolling update
C.Blue/green deployment
D.Canary deployment
E.A/B testing deployment
AnswersC, D
Correct: blue/green allows instant rollback by switching traffic back to the old version.
Why this answer
Blue/green deployment (C) and canary deployment (D) are two strategies that provide zero downtime and quick rollback. Blue/green deploys new version to a separate environment and switches traffic; canary gradually shifts traffic and allows easy rollback. Rolling update (B) also provides zero downtime but rollback requires a new update, not immediate.
Shadow deployment (A) mirrors traffic for analysis but doesn't serve users. A/B testing (E) is a method for comparing features but not a deployment strategy.
A multinational e-commerce company needs a globally distributed database that provides strong consistency and transactional support for order processing. Which Google Cloud database service should they use?
A.Cloud SQL
B.Cloud Spanner
C.Cloud Bigtable
D.Cloud Firestore
AnswerB
Cloud Spanner provides global distribution, strong consistency, and full transactional support, making it ideal for order processing.
Why this answer
Cloud Spanner is the correct choice because it is a globally distributed, horizontally scalable relational database service that provides strong consistency and full ACID transactional support across regions. Unlike other Google Cloud databases, Spanner uses synchronous replication and the TrueTime API to guarantee external consistency, making it ideal for order processing systems that require both global scale and transactional integrity.
Exam trap
The trap here is that candidates often confuse Cloud Spanner with Cloud SQL, assuming that a traditional relational database like Cloud SQL can be scaled globally by adding replicas, but they miss that Cloud SQL replicas are read-only and cannot provide the strong consistency and write scalability needed for a globally distributed transactional system.
How to eliminate wrong answers
Option A is wrong because Cloud SQL is a regional, single-writer database that cannot scale horizontally across multiple regions, and it does not provide the global strong consistency needed for a globally distributed order processing system. Option C is wrong because Cloud Bigtable is a NoSQL wide-column database designed for high-throughput analytical workloads, not for transactional order processing that requires strong consistency and ACID transactions. Option D is wrong because Cloud Firestore is a NoSQL document database that offers eventual consistency by default (unless using transactions in a single region) and is not designed for the complex, strongly consistent transactional workloads of a global e-commerce order processing system.
A company uses Cloud Deploy for continuous delivery. They have a delivery pipeline with multiple targets: dev, staging, and prod. They want to require manual approval before deploying to prod. How should they configure this?
A.Add a Cloud Build trigger that pauses and waits for approval
B.Use IAM conditions to restrict deployment to prod
C.Configure an approval gate on the prod target in the delivery pipeline
D.Set up a Pub/Sub notification and a Cloud Function to approve
AnswerC
Approval gates are natively supported in Cloud Deploy delivery pipelines.
Why this answer
Approval gates in Cloud Deploy are configured as phases within a delivery pipeline, where a required approval step blocks progression until manually approved.
A team wants to enforce that only container images signed by their CI/CD system can be deployed to GKE. They have enabled Binary Authorization with a policy that requires an attestor. What additional step must they take to bind the attestor to the image signing process?
A.Create a Container Analysis note and grant the attestor service account the containeranalysis.notes.attacher role
B.Add the attestor to the Binary Authorization policy as a required attestor
C.Create a Cloud Build step that signs the image and stores the signature in Cloud Storage
D.Configure the GKE cluster to require Binary Authorization with the --no-enforce flag
AnswerA
This binds the attestor to the Container Analysis note, allowing it to create attestations for signed images.
Why this answer
After creating the attestor, you must create an AttestationAuthority note in Container Analysis and grant the attestor service account permission to bind attestations. Configuring Cloud Build to sign images is part of the process but not the binding step.
An administrator is configuring firewall rules in a VPC. Two rules apply to the same traffic: rule 1 allows ingress from 0.0.0.0/0 on TCP 80, rule 2 denies ingress from 10.0.0.0/8 on TCP 80. Rule 1 has priority 1000, rule 2 has priority 500. What is the effective behavior for traffic from 10.0.0.1?
A.The result is unpredictable without knowing the rule creation order.
B.Traffic is allowed because allow rules override deny rules.
C.Traffic is denied because rule 2 has higher priority.
D.Traffic is allowed because rule 1 has a lower priority number.
AnswerC
Rule 2 (priority 500) has higher priority than rule 1 (priority 1000), so deny applies.
Why this answer
In Google Cloud VPC firewall rules, rules are evaluated in priority order, with lower numbers having higher priority. Rule 2 (priority 500) is evaluated before rule 1 (priority 1000), and since rule 2 explicitly denies ingress from 10.0.0.0/8 on TCP 80, traffic from 10.0.0.1 is denied. Google Cloud firewall rules are stateful, and the first matching rule determines the outcome; there is no implicit override between allow and deny.
Exam trap
Google Cloud PCA often tests the misconception that allow rules override deny rules or that rule creation order matters, but the trap here is that candidates confuse priority numbers (lower = higher priority) and assume a higher number means higher priority.
How to eliminate wrong answers
Option A is wrong because rule creation order does not affect evaluation; only the priority number matters. Option B is wrong because allow rules do not inherently override deny rules; the rule with the highest priority (lowest number) that matches the traffic is applied. Option D is wrong because a lower priority number means higher priority, not lower; rule 1 has a higher priority number (1000) and thus lower priority, so it is not evaluated before rule 2.
A company runs a multi-tier application on Google Cloud: a frontend on App Engine Standard, a backend on Cloud Run, and a Cloud SQL database. The application experiences intermittent 500 errors when users submit forms. The errors correlate with high CPU usage on the Cloud SQL instance (db-n1-standard-2, 7.5 GB memory). The Cloud Run service has a concurrency setting of 80 and a maximum of 10 instances. The App Engine service uses automatic scaling. The team has verified that the application code is not the issue. They suspect the database is hitting connection limits. Current max_connections on Cloud SQL is 250. The Cloud Run service uses a connection pool of 10 connections per instance. The App Engine service uses a connection pool of 5 connections per instance. They also have a few batch jobs that run occasionally, using up to 10 connections. The team wants to resolve the errors with minimal cost and complexity. Which course of action should they take?
A.Increase the maximum number of Cloud Run instances to 20 to handle more requests.
B.Upgrade the Cloud SQL instance to db-n1-standard-4 (15 GB memory) to handle more connections.
C.Increase the max_connections parameter on Cloud SQL to 500.
D.Reduce the concurrency setting on Cloud Run from 80 to 40.
AnswerC
This directly addresses the connection limit issue with minimal cost and no code changes.
Why this answer
The intermittent 500 errors are caused by the Cloud SQL instance hitting its max_connections limit of 250. With Cloud Run using 10 connections per instance and up to 10 instances (100 connections), App Engine using 5 connections per instance (unknown instance count but likely significant), and batch jobs using up to 10 connections, the total can easily exceed 250. Increasing max_connections to 500 directly addresses the connection limit without changing instance size or scaling behavior, which is the simplest and most cost-effective fix.
Exam trap
Google Cloud often tests the misconception that upgrading the instance tier (more memory/CPU) automatically increases connection limits, when in fact max_connections is a configurable parameter that can be increased independently without changing the instance size.
How to eliminate wrong answers
Option A is wrong because increasing Cloud Run instances to 20 would increase the total number of connections (up to 200 from Cloud Run alone), worsening the connection limit issue and potentially causing more 500 errors. Option B is wrong because upgrading to db-n1-standard-4 increases memory but does not change the default max_connections limit (which is based on tier, not memory alone); the current bottleneck is the connection count, not CPU or memory, so this adds cost without solving the problem. Option D is wrong because reducing concurrency on Cloud Run from 80 to 40 would decrease the number of concurrent requests per instance but does not reduce the number of connections per instance (still 10), and could lead to more instances being spun up, potentially increasing total connections.
You are investigating a Vertex AI Workbench instance (instance-2) that is showing UNHEALTHY status. Based on the exhibit, what is the most likely cause of the issue?
A.The container image gcr.io/my-project/my-image:latest does not exist, or the service account used by the Workbench instance does not have storage.objectViewer access to the container registry.
B.The container registry endpoint is blocked by a firewall rule that does not allow egress to gcr.io.
C.The instance's underlying Compute Engine resources are exhausted, causing the container creation to timeout.
D.The Workbench instance is using an outdated custom image that is not compatible with the latest runtime version.
AnswerA
The container image gcr.io/my-project/my-image:latest does not exist, or the service account used by the Workbench instance does not have storage.objectViewer access to the container registry. This would prevent the instance from pulling the image, causing an UNHEALTHY status.
Why this answer
The UNHEALTHY status in Vertex AI Workbench typically occurs when the instance fails to start its container. Option A is correct because the most likely cause is that the specified container image (gcr.io/my-project/my-image:latest) does not exist in Container Registry, or the service account attached to the instance lacks the storage.objectViewer role on the registry bucket. Without this permission, the instance cannot pull the image, leading to a container creation failure and an UNHEALTHY state.
Options B, C, and D are less likely given the focus on the container image in the exhibit.
Exam trap
Google Cloud often tests the distinction between container image availability/permissions and network-level issues; the trap here is that candidates may assume a firewall or resource exhaustion is the cause, but the exhibit's focus on a specific container image points directly to a missing image or insufficient IAM permissions on the Container Registry.
How to eliminate wrong answers
Option B is wrong because while a firewall blocking egress to gcr.io could cause a pull failure, the exhibit does not mention any firewall rules, and the question asks for the 'most likely' cause based on the exhibit—lack of image existence or permissions is a more common and direct issue. Option C is wrong because Compute Engine resource exhaustion (e.g., CPU/memory) would typically cause a timeout or error during instance creation, not a persistent UNHEALTHY status after the instance is running; Vertex AI Workbench handles resource allocation separately. Option D is wrong because an outdated custom image would likely cause compatibility warnings or startup failures, but the exhibit shows a specific container image reference (gcr.io/my-project/my-image:latest), not a custom image issue; the UNHEALTHY status is tied to container pull failures, not image version mismatches.
A company wants to control which resources can be accessed by a service account in a specific project. Which IAM policy binding approach should be used?
A.Use VPC Service Controls to restrict the service account
B.Grant the service account a role at the project or resource level
C.Add the service account to a Cloud Identity group and grant the group a role
D.Grant the service account a role at the organization level
AnswerB
IAM roles at the project or resource level restrict access to that scope.
Why this answer
IAM roles are bound to members (including service accounts) at the resource, project, folder, or organization level. The correct approach is to grant the service account an IAM role at the project or resource level.
You are designing a CI/CD pipeline for a containerized application on Google Cloud. The application is built with Cloud Build, stored in Container Registry, and deployed to GKE. The team wants to ensure that only images that pass vulnerability scanning are deployed. What should you do?
A.Add a step in Cloud Build that runs a vulnerability scanner on the image and fails the build if vulnerabilities exceed a threshold.
B.Configure Container Analysis to automatically scan images in Container Registry and block deployment via a webhook.
C.Enable Binary Authorization on the GKE cluster and configure a policy to require an attestation from a trusted authority.
D.Use Security Command Center to detect vulnerabilities and alert the team to manually block deployments.
AnswerA
This integrates scanning into the pipeline, preventing vulnerable images from being pushed.
Why this answer
Cloud Build can include a custom step that runs a vulnerability scanner (e.g., using the Google Cloud `gcloud container images list-tags` with the `--show-occurrences-from` flag or a third-party tool like Trivy) and then evaluates the results against a threshold. If the scan finds vulnerabilities exceeding the defined threshold, the build step exits with a non-zero status, causing the Cloud Build pipeline to fail and preventing the image from being pushed to Container Registry or deployed. This directly enforces the requirement that only images passing vulnerability scanning proceed in the CI/CD pipeline.
Exam trap
The trap here is that candidates often confuse Binary Authorization (which requires attestations but does not perform scanning) with vulnerability scanning, or they assume Container Analysis can directly block deployments via a webhook, when in fact it only generates metadata that must be consumed by another policy engine.
How to eliminate wrong answers
Option B is wrong because Container Analysis automatically scans images in Container Registry, but it does not have a built-in webhook mechanism to block deployment; it only generates vulnerability occurrences that must be consumed by another service (e.g., Binary Authorization) to enforce policy. Option C is wrong because Binary Authorization enforces deployment policies based on attestations from trusted authorities, but it does not itself perform vulnerability scanning; it relies on an external attestor to verify the image, and the question requires that only images passing vulnerability scanning are deployed, not that an attestation is required. Option D is wrong because Security Command Center is a security and risk management platform that provides visibility and alerts, but it does not automatically block deployments; it requires manual intervention or integration with other tools to stop a deployment.
A company is designing a highly available architecture for a stateful application on Compute Engine. They need to protect against zonal failures. Which THREE steps should they take?
Select 3 answers
A.Store session state in memory
B.Use a global load balancer with health checks
C.Use a single zone instance group
D.Use persistent disks with regional persistent disks
E.Use a managed instance group across multiple zones
AnswersB, D, E
Distributes traffic and fails over.
Why this answer
A global load balancer with health checks distributes traffic across healthy instances in multiple zones, automatically routing requests away from failed zones. This ensures that if a zone fails, traffic is redirected to instances in other zones, maintaining availability for the stateful application.
Exam trap
A common misconception is that in-memory session state (Option A) is sufficient for high availability, but it fails because state is lost on instance failure; instead, external session stores (e.g., Cloud Memorystore or Cloud Spanner) are needed for stateful applications on Google Cloud.
A developer runs the command above and sees the output. The cluster has one node pool with 3 nodes, each of type e2-standard-4 (4 vCPU, 16 GB RAM). The application requires at least 2 GB of memory per pod and the cluster has 10 pods that need to be scheduled. The developer also notices that the node pool autoscaling is enabled with a minimum of 1 and maximum of 5 nodes. However, the cluster is unable to schedule all pods. What is the most likely cause?
A.The cluster is running an older version of Kubernetes that does not support node auto-scaling.
B.The node pool autoscaler is not properly configured to scale up based on pod resource requests.
C.The node auto-repair feature is disabled, causing a node to be unhealthy.
D.The pod resource requests exceed the allocatable resources on the existing nodes after accounting for system reservations.
AnswerD
System reservations (kube-reserved, eviction threshold) reduce allocatable CPU and memory, and the pod requests may exceed what is available.
Why this answer
The cluster has 3 e2-standard-4 nodes, each with 4 vCPU and 16 GB RAM. After accounting for system reservations (e.g., kubelet, OS, daemonsets), the allocatable memory per node is typically around 13-14 GB. With 10 pods each requesting 2 GB, the total memory request is 20 GB, but the total allocatable memory across 3 nodes is only about 39-42 GB.
However, the autoscaler can only scale up to 5 nodes, and even then, the total allocatable memory would be around 65-70 GB, which is sufficient. The most likely cause is that the pod resource requests exceed the allocatable resources on the existing nodes, preventing scheduling, and the autoscaler may not have triggered yet or is constrained by other factors like CPU or node limits.
Exam trap
Google Cloud often tests the distinction between pod resource requests and limits, and the fact that the Cluster Autoscaler scales based on requests, not limits, leading candidates to overlook system reservations or assume autoscaling is misconfigured.
How to eliminate wrong answers
Option A is wrong because older Kubernetes versions (e.g., 1.15+) do support node autoscaling via the Cluster Autoscaler; the version is unlikely to be the issue. Option B is wrong because the node pool autoscaler is configured to scale based on unschedulable pods, and it does consider pod resource requests; the issue is that the autoscaler may not have scaled up sufficiently or the requests exceed the current node capacity. Option C is wrong because node auto-repair is unrelated to scheduling; it handles node health issues, not resource insufficiency.
A developer is trying to deploy a Compute Engine instance from a Cloud Build step. The build fails with the above error. What is the problem?
A.The project has exceeded its service account quota.
B.The Cloud Build service account lacks 'compute.instances.create' permission.
C.Cloud Build does not have the 'iam.serviceAccounts.actAs' permission on the default compute service account.
D.The developer's personal account does not have permission to use Cloud Build.
AnswerC
When Cloud Build creates a VM, it must act as the VM's service account.
Why this answer
The error occurs because Cloud Build needs to impersonate the Compute Engine default service account to create a VM instance. The Cloud Build service account requires the 'iam.serviceAccounts.actAs' permission on the target service account to delegate its identity. Without this permission, the build step fails even if the Cloud Build service account has 'compute.instances.create' permission.
Exam trap
Google Cloud often tests the subtle distinction between having resource-level permissions (like 'compute.instances.create') and the 'actAs' permission required to impersonate a service account, leading candidates to incorrectly choose the missing resource permission.
How to eliminate wrong answers
Option A is wrong because service account quotas are separate from IAM permissions; exceeding a quota would produce a different error (e.g., 'quota exceeded'), not a permission denied error. Option B is wrong because the error message specifically indicates an 'actAs' permission issue, not a missing 'compute.instances.create' permission; if that were the problem, the error would reference 'compute.instances.create' directly. Option D is wrong because Cloud Build uses its own service account for execution, not the developer's personal account; the error is about the Cloud Build service account's permissions, not the developer's.
A developer needs to grant a Compute Engine instance the ability to read from a Cloud Storage bucket. The instance does not have a service account attached. What should the developer do?
A.Create a service account and assign it the Storage Object Viewer role, then attach the service account to the instance.
B.Add the instance's external IP to the bucket permissions.
C.Generate a JSON key for a user account and store it on the instance.
D.Create a firewall rule to allow access to Cloud Storage.
AnswerA
This is the recommended approach.
Why this answer
The best practice is to create a service account with the required roles (e.g., Storage Object Viewer) and attach it to the instance. This avoids managing keys and follows IAM best practices.
A multinational corporation has deployed a web application across multiple Google Cloud regions using an external HTTPSload balancer with backend services in each region. They recently added a new region (asia-southeast1) and updated the load balancer configuration. After the update, some users in that region report high latency and occasional connection timeouts when accessing the application. The load balancer health checks show all backends as healthy. The network team confirms that the backend instances in asia-southeast1 are correctly configured and can be accessed directly via their external IPs. What should the architects investigate next?
A.Check the Cloud CDN cache settings for the new region
B.Verify that the backend service in asia-southeast1 has the correct timeout settings for the load balancer
C.Ensure that the firewall rules allow traffic from the load balancer's health check ranges to the instances
D.Review the Cloud Armor security policy rules that might be blocking traffic from that region
AnswerD
Cloud Armor geo-filtering may block traffic from that region while allowing health checks from Google IPs.
Why this answer
Cloud Armor security policies can block traffic based on geographic location. If the new region (asia-southeast1) was added but the Cloud Armor policy was not updated to allow traffic from that region, requests from users in asia-southeast1 could be denied or rate-limited, causing high latency and timeouts even though health checks (which originate from Google's health check ranges, not user IPs) show backends as healthy. The direct access via external IPs works because it bypasses the load balancer and its associated Cloud Armor policy.
Exam trap
Google Cloud often tests the misconception that health check success implies full end-to-end connectivity, but health checks bypass Cloud Armor and firewall rules that apply to user traffic, so healthy backends do not guarantee user traffic is allowed.
How to eliminate wrong answers
Option A is wrong because Cloud CDN cache settings affect content delivery speed and cache hit ratio, not connection timeouts or high latency caused by traffic blocking; CDN would not cause timeouts if the origin is reachable. Option B is wrong because timeout settings on the backend service control how long the load balancer waits for a response from the backend, but since health checks pass and direct access works, timeouts are not the issue; incorrect timeouts would affect all users, not just those in the new region. Option C is wrong because firewall rules for health check ranges are already correctly configured (health checks show all backends as healthy), and the issue is with user traffic, not health check probes; the network team confirmed backend instances are reachable via external IPs, indicating no firewall blockage.
A company uses Cloud Spanner in a multi-region configuration. They want to ensure the highest availability with an SLA of 99.999%. Which configuration supports this?
A.Single-region configuration
B.Multi-region configuration with three regions
C.Dual-region configuration with read replicas
D.Multi-region configuration with two regions
AnswerB
Spanner multi-region configurations with three regions (e.g., nam3) are designed for 99.999% availability.
Why this answer
Cloud Spanner multi-region configurations are designed for 99.999% availability. The default multi-region setups (e.g., nam3, eur3) include three regions with automatic failover. A single-region configuration offers 99.99%.
Multi-region with two regions does not provide the same SLA.
Which THREE Google Cloud services can be used to implement a zero-trust architecture for network security? (Choose three.)
Select 3 answers
A.Cloud Armor
B.Access Context Manager (ACM)
C.Identity-Aware Proxy (IAP)
D.VPC Networks
E.Cloud VPN
AnswersA, B, C
Cloud Armor provides WAF and DDoS protection at the edge, enforcing security policies.
Why this answer
Cloud Armor is correct because it provides web application firewall (WAF) and DDoS protection at the edge of Google's network, enforcing security policies based on IP addresses, geo-locations, and Layer 7 attributes. This aligns with zero-trust principles by inspecting and filtering traffic before it reaches the application, ensuring that only authorized requests are allowed, regardless of the network perimeter.
Exam trap
The trap here is that candidates often confuse network-level connectivity services (like VPC Networks and Cloud VPN) with security controls, mistakenly thinking that encrypting traffic or segmenting networks alone satisfies zero-trust requirements, when zero-trust actually demands identity- and context-aware access enforcement at the application layer.
A company needs to run batch processing jobs that can tolerate interruptions. They want to minimize costs. Which TWO compute options should they consider? (Choose TWO.)
Select 2 answers
A.Sole-tenant nodes
B.Committed use discounts
C.Preemptible VMs
D.Standard (on-demand) VMs
E.Spot VMs
AnswersC, E
Preemptible VMs are low-cost, can be terminated, suitable for batch jobs.
Why this answer
Preemptible VMs and Spot VMs are short-lived, low-cost instances that can be terminated at any time. They are ideal for fault-tolerant batch jobs. Committed use discounts are for predictable workloads, not for interruptible jobs.
Standard VMs and Sole-tenant nodes are more expensive and not intended for interruptible workloads.
A financial services company wants to migrate a legacy monolithic Java application to Google Cloud with minimal changes to the code. They plan to containerise the application but want to avoid managing Kubernetes clusters. The application requires persistent storage and must be reachable via an internal IP address within the VPC. Which compute service should they use?
A.Compute Engine with Docker installed
B.Cloud Run (fully managed)
C.Google Kubernetes Engine (GKE) Autopilot
D.App Engine Flexible Environment
AnswerB
Serverless container platform; supports internal traffic via Serverless VPC Access and persistent storage via Cloud NFS.
Why this answer
Cloud Run (fully managed) supports containers, can be configured for internal traffic only, and provides persistent storage via Cloud NFS or other volume mounts. It abstracts away cluster management.
Alice needs to read objects in the bucket 'secret-bucket'. Based on the IAM policy, what is her effective access?
A.Alice cannot read objects because the deny rule overrides all allow bindings.
B.Alice can read objects only if she also has objectCreator role.
C.Alice can read objects because objectAdmin grants read access and is not denied.
D.Alice cannot read objects because the deny rule removes objectViewer and she has no other read access.
AnswerC
objectAdmin includes read, and the deny only applies to objectViewer.
Why this answer
The IAM policy grants Alice the objectAdmin role, which includes read access to objects in the bucket. The deny rule specifically removes the objectViewer role, but objectAdmin is a separate role that provides its own read permissions. Since the deny does not explicitly target objectAdmin, the allow binding for objectAdmin remains effective, giving Alice read access.
Exam trap
A common mistake on the Google PCA exam is thinking a deny rule blocks all access to a Cloud Storage bucket. In reality, GCP IAM deny rules only deny the specific permissions listed. If the deny rule removes objectViewer but the user has objectAdmin (which includes read), the allow remains effective.
How to eliminate wrong answers
Option A is wrong because deny rules only override allow bindings for the specific permissions they target; here, the deny removes objectViewer, not objectAdmin, so the allow for objectAdmin still grants read access. Option B is wrong because objectCreator role is not required; objectAdmin already includes read access without needing an additional role. Option D is wrong because the deny rule only removes objectViewer, not all read access; objectAdmin provides independent read permissions that are not denied.
A company is designing a disaster recovery strategy for a Cloud SQL for PostgreSQL database with a Recovery Point Objective (RPO) of 1 hour and a Recovery Time Objective (RTO) of 2 hours. They are using the Regional Cloud SQL tier. Which TWO actions should they take? (Choose TWO.)
Select 2 answers
A.Increase the number of CPUs on the primary instance.
B.Create a read replica in the same region.
C.Configure cross-region replication by creating a cross-region replica.
D.Enable deletion protection on the database.
E.Enable automated backups and point-in-time recovery.
AnswersC, E
Cross-region replica enables failover to another region, achieving RPO < 1 hour.
Why this answer
Cross-region replication (replica) provides failover to another region with an RPO < 1 hour. Automated backups with point-in-time recovery can restore within RTO if the replica is also used. Enabling deletion protection is a safety measure but not DR.
A read replica in the same region does not help cross-region. Scaling CPU does not affect DR.
A service account needs to be able to start and stop Compute Engine instances in a specific project. Which IAM role should be assigned at the project level?
A.roles/iam.serviceAccountUser
B.roles/editor
C.roles/compute.viewer
D.roles/compute.instanceAdmin.v1
AnswerD
Grants necessary permissions to start and stop instances.
Why this answer
Roles/compute.instanceAdmin.v1, because this role grants the necessary permissions to start, stop, and manage Compute Engine instances, including operations like instances.start and instances.stop, at the project level. This role is specifically designed for managing compute resources without granting broader project-level access like editing all resources.
Exam trap
Google Cloud often tests the distinction between primitive roles (like roles/editor) and predefined roles (like roles/compute.instanceAdmin.v1), where candidates mistakenly choose the broader role due to its apparent convenience, overlooking the principle of least privilege and the specific permissions required for the task.
How to eliminate wrong answers
Option A is wrong because roles/iam.serviceAccountUser grants permission to impersonate service accounts, not to manage Compute Engine instances; it allows attaching a service account to a resource but does not include compute.instance.start or compute.instance.stop. Option B is wrong because roles/editor is a broad, primitive role that grants full edit access to all resources in the project, including Compute Engine, but it violates the principle of least privilege by providing excessive permissions beyond what is needed for instance management. Option C is wrong because roles/compute.viewer only provides read-only permissions to view Compute Engine resources (e.g., compute.instances.list, compute.instances.get) and does not include any write or action permissions like starting or stopping instances.
A development team uses BigQuery for analytical queries. They want to reduce query costs for a large table that is frequently filtered by a date column and a customer_id column. Which TWO table design strategies will reduce the amount of data scanned? (Choose 2)
Select 2 answers
A.Partition the table by date.
B.Create an index on customer_id.
C.Use wildcard tables with date suffixes.
D.Normalize the table into multiple tables.
E.Cluster the table on customer_id.
AnswersA, E
Date partitioning allows queries to scan only relevant partitions.
Why this answer
Partitioning by date limits scans to relevant partitions. Clustering on customer_id further organizes data within partitions for efficient filtering. Both reduce data scanned.
Indexes and normalization are not applicable in BigQuery.
Refer to the exhibit. A GKE cluster named 'prod-cluster' has network policy enabled with Calico. A deployment in the cluster uses a ServiceAccount that needs to pull images from a private Container Registry in the same project. Despite correct configuration of ImagePullSecrets, pods fail to pull images with 'AccessDenied' errors. What is the most likely cause?
A.The ImagePullSecret is not correctly base64-encoded.
B.The network policy blocks egress traffic to the Container Registry's endpoints.
C.The cluster's private cluster feature prevents access to external registries.
D.The node service account lacks storage.objectViewer role on the registry bucket.
AnswerD
The node's OAuth scopes include devstorage.read_only, but that only grants access to Storage objects if the service account has the necessary IAM permissions. The node's default service account may not have the required roles.
Why this answer
The node's service account (the GCE default service account or the one assigned to the cluster nodes) must have the `storage.objectViewer` role on the Container Registry's underlying Cloud Storage bucket. Even with correct ImagePullSecrets, the kubelet on each node uses the node's service account to authenticate with the registry when pulling images. Without this role, the node cannot read the image layers from the bucket, resulting in 'AccessDenied' errors.
Exam trap
Google often tests the distinction between pod-level authentication (ImagePullSecrets) and node-level authorization (IAM roles on the node's service account), leading candidates to focus on the pod's credentials while overlooking the node's permissions.
How to eliminate wrong answers
Option A is wrong because ImagePullSecrets are already base64-encoded when stored as a Kubernetes Secret; if they were incorrectly encoded, the error would be 'Unauthorized' or 'ImagePullBackOff' with an authentication failure, not 'AccessDenied'. Option B is wrong because network policies in GKE with Calico are namespace-scoped and do not block egress to external endpoints by default; even if a restrictive policy existed, it would cause a timeout or connection refused, not an 'AccessDenied' error from the registry. Option C is wrong because private clusters can still access external registries via Cloud NAT or VPC peering; the 'AccessDenied' error is an authorization issue, not a network connectivity issue.
Your company wants to implement a canary deployment for a microservice running on GKE. You need to gradually shift traffic from the stable version to the canary version while monitoring error rates. Which THREE components or practices should you use? (Choose 3)
Select 3 answers
A.Cloud Deploy with an automated canary strategy and verification
B.Cloud Monitoring to track error rates and trigger rollback
C.Cloud CDN for caching responses
D.Feature flags in the application code
E.Istio for traffic splitting between versions
AnswersA, B, E
Cloud Deploy orchestrates canary deployments with rollback.
Why this answer
A canary deployment on GKE typically uses a service mesh like Istio for fine-grained traffic splitting, Cloud Monitoring for observability, and automated rollback via a progressive delivery tool or manual intervention. Cloud Deploy also supports canary strategies. Cloud CDN is for content delivery, not internal traffic splitting.
Feature flags are for feature toggles, not traffic shifting.
A company stores sensitive data in Cloud Storage and wants to enforce encryption at rest using customer-managed keys. Which Google Cloud service should they use to manage the keys?
A.Cloud HSM
B.Secret Manager
C.Cloud KMS
D.IAM
AnswerC
Manages customer-managed encryption keys for Cloud Storage.
Why this answer
Cloud KMS (Key Management Service) is the correct choice because it is the native Google Cloud service for managing cryptographic keys, including customer-managed encryption keys (CMEK). It allows you to create, rotate, and control access to keys used to encrypt data at rest in Cloud Storage, and it integrates directly with Cloud Storage's CMEK feature. Cloud HSM is a hardware-backed key management option but is built on top of Cloud KMS, not a separate service for key management.
Exam trap
The trap here is that candidates confuse Cloud HSM as a separate key management service, but Cloud HSM is actually a hardware-backed key storage option that requires Cloud KMS for key management, not a replacement for it.
How to eliminate wrong answers
Option A is wrong because Cloud HSM is a hardware security module service that provides FIPS 140-2 Level 3 validated key storage, but it is an add-on to Cloud KMS, not a standalone key management service; you still use Cloud KMS to manage the keys stored in HSM. Option B is wrong because Secret Manager is designed to store and manage secrets such as API keys, passwords, and certificates, not for managing encryption keys used for data at rest in Cloud Storage. Option D is wrong because IAM (Identity and Access Management) is a service for managing access control and permissions, not for creating, storing, or managing encryption keys.
An organization wants to export their Cloud Logging logs to a centralized BigQuery dataset for long-term analysis. They also need to exclude logs from a specific source (e.g., a test project) to reduce costs. How should they set this up?
A.Disable logging in the test project
B.Create a log sink to BigQuery and add a log exclusion filter that excludes the test project's logs
C.Create two separate sinks: one for production logs to BigQuery and another for test logs to Cloud Storage
D.Create a log sink to BigQuery and use IAM to restrict access to the test project's logs
AnswerB
Exclusion filters can be applied to the sink or the log bucket to drop certain logs.
Why this answer
A log sink exports logs to BigQuery. To exclude logs from a test project, create a log exclusion filter that matches the test project's logs and apply it to the sink or the project's logs bucket.
A company runs a web application on Google Kubernetes Engine (GKE) that experiences sudden spikes in traffic. They need to automatically scale the number of pods and also ensure that the cluster itself can scale by adding new nodes when needed. Which TWO components should they configure to achieve this?
Select 2 answers
A.Cluster Autoscaler
B.Vertical Pod Autoscaler (VPA)
C.Horizontal Pod Autoscaler (HPA)
D.Node Auto-Repair
E.Pod Disruption Budget (PDB)
AnswersA, C
Cluster Autoscaler adds or removes nodes as needed when pods are pending.
Why this answer
Horizontal Pod Autoscaler (HPA) automatically scales the number of pods based on CPU utilization or other metrics. Cluster Autoscaler automatically adjusts the size of the GKE cluster by adding or removing nodes when pods are unschedulable or nodes are underutilized. Together they provide pod-level and node-level scaling.
Vertical Pod Autoscaler (VPA) adjusts resource requests but does not scale pods or nodes. Node Auto-Repair handles node health, not scaling. Pod Disruption Budget (PDB) protects pods during maintenance.
Only options A and C are correct.
Exam trap
The question explicitly asks for THREE, but only two options are correct. Do not select a third incorrect option just to fill the count.
You manage a batch data processing workload on Compute Engine that runs daily on a single VM. The VM uses a standard persistent disk (pd-standard) for input data and output results. Recently, the VM crashed due to a hardware failure, and the job failed. You need to implement a solution that automatically recovers from VM failures with minimal data loss. The job is idempotent and can restart from the beginning if necessary. Which solution should you choose?
A.Take a snapshot of the persistent disk every hour and create a new VM from the latest snapshot on failure
B.Use Cloud Scheduler to restart the VM every hour until the job completes
C.Add a startup script to the existing VM to rerun the job on boot, and enable automatic restart
D.Create a managed instance group (MIG) with an instance template that includes a startup script to run the job, and enable autohealing
AnswerD
Correct: MIG autohealing recreates VM on failure.
Why this answer
A managed instance group (MIG) with autohealing automatically recreates a VM instance when it fails, and the startup script ensures the idempotent job reruns from the beginning on the new VM. This minimizes data loss by using the same persistent disk (or a fresh one) and leverages Compute Engine's health check mechanism to detect failure and trigger recovery without manual intervention.
Exam trap
The trap here is that candidates confuse automatic restart (which only works for transient failures on the same VM) with autohealing (which recreates the VM after hardware failure), leading them to pick Option C instead of D.
How to eliminate wrong answers
Option A is wrong because hourly snapshots introduce up to 1 hour of potential data loss and require manual steps to create a new VM from the snapshot, which does not provide automatic recovery. Option B is wrong because Cloud Scheduler restarting the VM every hour does not detect actual VM failure; it blindly restarts on a schedule, which could interrupt a running job and does not address hardware failure recovery. Option C is wrong because enabling automatic restart on a single VM only recovers from transient failures (e.g., host maintenance), not from hardware failures that destroy the VM; the VM must be recreated, and a startup script on a dead VM cannot execute.
An application running on Compute Engine frequently makes connection requests to a Cloud SQL for PostgreSQL instance. The connections are short-lived and many are created per second. What should be implemented to reduce latency and connection overhead?
A.Deploy PgBouncer on the application server or as a sidecar
B.Increase the number of vCPUs on the Cloud SQL instance
C.Enable connection scaling in Cloud SQL
D.Use Cloud SQL Auth Proxy with private IP
AnswerA
PgBouncer acts as a connection pooler, maintaining a pool of persistent connections to the database and reusing them for application requests, reducing latency and overhead.
Why this answer
Connection pooling reuses database connections instead of creating new ones for each request. PgBouncer is a lightweight connection pooler for PostgreSQL. Cloud SQL Auth Proxy is for secure connections but does not pool.
An e-commerce platform uses Cloud Spanner for order processing. Recently, latency spikes have occurred during flash sales. The team suspects hot spots due to monotonically increasing order IDs. Which table design change would best solve this?
A.Remove the primary key and let Spanner auto-generate it.
B.Use interleaved tables to store orders under customers.
C.Add a random prefix to the order ID primary key.
D.Create a secondary index on the timestamp column.
AnswerC
Randomizing the first part of the key distributes writes across splits.
Why this answer
Monotonically increasing primary keys (like sequential order IDs) cause hot spots in Cloud Spanner because all writes are directed to a single split (tablet), overwhelming that node. Adding a random prefix (e.g., a hash of the customer ID) distributes writes across multiple splits, eliminating the hot spot and reducing latency spikes during high-throughput flash sales.
Exam trap
Google Cloud often tests the misconception that secondary indexes or interleaved tables can fix write hot spots, when in reality only primary key distribution strategies (like hash prefixes) address the root cause of split-level contention.
How to eliminate wrong answers
Option A is wrong because removing the primary key and relying on auto-generation still produces monotonically increasing values (e.g., Spanner's auto-generated keys are sequential), which does not solve the hot spot issue. Option B is wrong because interleaved tables organize child rows under a parent row, but if the parent key is monotonically increasing, writes still concentrate on the same split, failing to distribute load. Option D is wrong because a secondary index on the timestamp column does not affect the distribution of primary key writes; it only helps query performance, not write hot spots.
Which TWO actions reduce egress costs when transferring data from Compute Engine to the internet? (Choose 2)
Select 2 answers
A.Use Cloud NAT for outbound traffic
B.Use Cloud CDN to cache content
C.Move instances to a lower-cost region
D.Use Premium Tier networking
E.Compress data before sending it
AnswersB, E
Reduces origin egress by serving from edge caches.
Why this answer
Cloud CDN caches content at edge locations, reducing the amount of data served from the origin Compute Engine instance, thus lowering egress costs. Compressing data before transfer reduces the volume of data sent, directly decreasing egress costs. Cloud NAT does not affect egress costs; it only provides outbound connectivity.
Moving instances to a lower-cost region does not reduce egress costs because egress pricing is similar across regions. Premium Tier networking typically increases costs due to higher per-GB charges.
Exam trap
Candidates often think Cloud NAT reduces egress costs, but it only enables outbound traffic without public IPs—it doesn't change data volume or pricing. Also, compression is sometimes overlooked because it may introduce latency, but it is a valid cost-saving method.
An e-commerce application uses Firestore for product catalog. They need to run complex analytical queries on the catalog data, such as aggregations and joins, without impacting production performance. What is the best approach?
A.Create a second Firestore database for analytics
B.Use Cloud SQL to query Firestore directly
C.Use Firestore `!=` operator to filter data
D.Export Firestore data to BigQuery for analytics
AnswerD
BigQuery is designed for analytical workloads and integrates with Firestore via exports.
Why this answer
Firestore is not designed for analytical queries. Exporting to BigQuery allows running complex analytics without impacting Firestore performance. Using a second Firestore database increases cost but doesn't improve analytics.
Cloud SQL does not natively integrate with Firestore. Using the `!=` operator doesn't solve analytical needs.
An application running on Compute Engine instances behind a load balancer experiences intermittent failures. Health checks show instances passing, but some users get errors. What should be the first troubleshooting step?
A.Increase instance size.
B.Review the application logs for errors.
C.Enable HTTP health checks.
D.Check the load balancer's backend service configuration for session affinity.
AnswerB
Logs reveal application-level errors.
Why this answer
The correct first step is to review the application logs (Option B) because the issue is intermittent failures despite healthy load balancer health checks. Since health checks confirm the instances are reachable and responding correctly at the health check endpoint, the problem likely lies within the application itself—such as request handling errors, timeouts, or resource contention. Application logs provide the most direct evidence of what is happening when users encounter errors, enabling targeted debugging before modifying infrastructure.
Exam trap
The trap here is that candidates assume health check failures are the cause of user errors, but Cisco tests the distinction between infrastructure-level health (passing) and application-level errors (logged), leading them to incorrectly adjust health checks or backend configuration instead of inspecting application logs.
How to eliminate wrong answers
Option A is wrong because increasing instance size addresses resource constraints (CPU/memory) but does not target the root cause of intermittent errors when health checks pass; it is a reactive scaling action, not a diagnostic step. Option C is wrong because enabling HTTP health checks (if not already enabled) would only change the health check protocol from TCP to HTTP, but the instances are already passing health checks, so the issue is not with health check configuration. Option D is wrong because checking the load balancer's backend service configuration for session affinity is premature; session affinity (sticky sessions) could cause uneven load distribution but would not explain intermittent errors if health checks are passing—this is a configuration review step, not the first troubleshooting action.
A company is designing a disaster recovery strategy for a critical application. They need to ensure that if the primary region fails, the application can fail over to a secondary region with a Recovery Point Objective (RPO) of 1 hour and a Recovery Time Objective (RTO) of 15 minutes. The application uses Cloud Spanner. Which Cloud Spanner configuration meets these requirements?
A.Multi-region configuration (e.g., nam3)
B.Single-region configuration
C.Backup and restore in another region
D.Dual-region with asynchronous replication
AnswerA
Multi-region configurations replicate data synchronously across regions, providing automatic failover with RPO=0 and RTO<15 minutes, meeting the requirements.
Why this answer
Cloud Spanner multi-region configurations provide automatic replication across regions with synchronous replication, achieving RPO near zero and RTO in seconds. Single-region configurations do not provide geographic failover. A two-region setup like nam3 (US Central + US East) or eur3 (Europe) provides synchronous replication with strong consistency.
Active/active is the default. Multi-region configs are recommended for DR.