

































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


































This 120-question practice exam covers the five official exam domains: Designing highly scalable, available, and reliable cloud-native applications, Building and testing applications, Deploying applications, Integrating applications with Google Cloud services, and Managing deployed applications. MULTIPLE CHOICE. SECTION 1: DESIGNING HIGHLY SCALABLE, AVAILABLE, AND RELIABLE CLOUD-NATIVE APPLICATIONS (Questions 1–43)
A. Pub/Sub with Dataflow and exactly-once processing, writing to Cloud SQL B. Cloud Tasks with Cloud Functions C. Direct writes to Firestore from the web frontend D. Cloud Scheduler with batch processing Answer: A. Pub/Sub with Dataflow and exactly-once processing, writing to Cloud SQL Rationale: Pub/Sub provides at-least-once delivery. Dataflow supports exactly-once processing semantics when reading from Pub/Sub and writing to sinks. This combination guarantees no duplicate order processing. Cloud Tasks and Cloud Functions do not provide exactly-once guarantees. Direct Firestore writes lack transactional order processing.
increasing key causes hotspotting. A high-cardinality prefix distributes writes across multiple nodes. This is the recommended practice for high-write workloads.
C. Immediately exit on SIGTERM D. Use a cron job to check for termination Answer: B. Handle SIGTERM by draining connections, finishing in- flight requests, and then exiting Rationale: Compute Engine sends SIGTERM before terminating an instance. Applications should handle SIGTERM by draining connections, completing in-flight requests, and then exiting gracefully. This prevents data loss and connection errors.
C. No security controls D. Only IAM policies Answer: A. Network policies and mTLS with Cloud Service Mesh Rationale: Kubernetes Network Policies control pod-to-pod traffic. Cloud Service Mesh provides mTLS for service-to-service authentication and encryption. Together they secure microservices communication.
A. Cloud Armor with rate limiting rules B. Apigee with rate limiting policies C. Cloud Endpoints with quotas D. All of the above Answer: D. All of the above Rationale: Cloud Armor provides rate limiting at the load balancer level. Apigee provides API management with rate limiting policies. Cloud Endpoints supports quotas and rate limiting. The choice depends on the API management approach.
asynchronous. Firestore in Datastore mode provides eventual consistency. Bigtable provides eventual consistency.
D. Neither Answer: A. gRPC for internal microservices (performance, streaming), REST for mobile clients (compatibility) Rationale: gRPC provides better performance and streaming for service-to-service communication. REST is more compatible with mobile clients and browsers. A hybrid approach is often optimal.
API and custom networking. Which should they choose? A. Cloud Run B. GKE C. Both are equal D. Neither Answer: B. GKE Rationale: GKE provides full Kubernetes API access and custom networking capabilities. Cloud Run is serverless and abstracts away the infrastructure but limits control over the runtime environment.
C. Both are equal D. Neither Answer: B. GKE Rationale: GKE provides full Kubernetes API access and custom networking capabilities. Cloud Run is serverless and abstracts away the infrastructure but limits control over the runtime environment.
Answer: A. Use Cloud Run jobs for batch processing Rationale: Cloud Run jobs are designed for batch processing workloads. They run to completion and can process multiple items in parallel. Cloud Run services are for request-driven workloads. SECTION 2: BUILDING AND TESTING APPLICATIONS (Questions 44–71)
B. Cloud Storage only C. BigQuery D. Cloud SQL Answer: A. Artifact Registry Rationale: Artifact Registry stores and manages container images and other build artifacts. It integrates with Cloud Build and provides vulnerability scanning.