Google Professional Cloud Developer QUESTIONS
AND ANSWERS | VERIFIED AND WELL DETAILED
ANSWERS | PLUS RATIONALES | GUARANTEED PASS
| LATEST EXAM UPDATE | EXAM PREP | STUDY
GUIDE | PRACTICE TEST
, Domain 1: Designing Highly Scalable, Available, and Reliable Applications (20 Questions)
1. You are designing a new application on Google Cloud that must be highly available across multiple regions.
The application's state must be globally consistent. Which database service should you choose?
A) Cloud SQL for PostgreSQL
B) Cloud Spanner
C) Cloud Firestore
D) Bigtable
Answer: B
Rationale: Cloud Spanner is a globally distributed, horizontally scalable, strongly consistent database service.
Cloud SQL is regional, Firestore is eventually consistent for some operations and not globally strongly consistent
in the same way, and Bigtable is eventually consistent and not designed for global strong consistency.
2. Your application runs on Compute Engine and needs to store and retrieve files. You need a shared file
system that can be mounted by multiple VM instances simultaneously. Which service should you use?
A) Cloud Storage
,B) Persistent Disk
C) Cloud Filestore
D) Local SSD
Answer: C
Rationale: Cloud Filestore is a managed file storage service (NFS) that can be mounted by multiple Compute
Engine instances. Cloud Storage is object storage, Persistent Disk is block storage for a single VM (or read-only
for multiple), and Local SSD is ephemeral.
3. You are deploying a containerized application to Google Cloud. You need a serverless platform that
automatically scales based on traffic and can scale to zero. Which service should you choose?
A) Google Kubernetes Engine (GKE)
B) Cloud Run
C) Compute Engine
D) App Engine Flexible Environment
Answer: B
, Rationale: Cloud Run is a serverless container platform that automatically scales and can scale to zero. GKE
requires node management, Compute Engine requires VM management, and App Engine Flexible does not
scale to zero.
4. You need to design a system that processes messages asynchronously. The messages must be processed
in order and exactly once. Which service should you use?
A) Cloud Pub/Sub
B) Cloud Tasks
C) Cloud Scheduler
D) Eventarc
Answer: B
Rationale: Cloud Tasks is a fully managed service that allows you to manage the execution, dispatch, and
delivery of a large number of distributed tasks. It guarantees at-least-once delivery and supports ordered
execution. Pub/Sub is for high-throughput messaging but does not guarantee ordering by default (though
ordering keys exist) or exactly-once processing.
5. You are designing a multi-tier application. The web tier needs to be globally accessible with low latency.
Which service should you use to distribute traffic?
A) Cloud Load Balancing
AND ANSWERS | VERIFIED AND WELL DETAILED
ANSWERS | PLUS RATIONALES | GUARANTEED PASS
| LATEST EXAM UPDATE | EXAM PREP | STUDY
GUIDE | PRACTICE TEST
, Domain 1: Designing Highly Scalable, Available, and Reliable Applications (20 Questions)
1. You are designing a new application on Google Cloud that must be highly available across multiple regions.
The application's state must be globally consistent. Which database service should you choose?
A) Cloud SQL for PostgreSQL
B) Cloud Spanner
C) Cloud Firestore
D) Bigtable
Answer: B
Rationale: Cloud Spanner is a globally distributed, horizontally scalable, strongly consistent database service.
Cloud SQL is regional, Firestore is eventually consistent for some operations and not globally strongly consistent
in the same way, and Bigtable is eventually consistent and not designed for global strong consistency.
2. Your application runs on Compute Engine and needs to store and retrieve files. You need a shared file
system that can be mounted by multiple VM instances simultaneously. Which service should you use?
A) Cloud Storage
,B) Persistent Disk
C) Cloud Filestore
D) Local SSD
Answer: C
Rationale: Cloud Filestore is a managed file storage service (NFS) that can be mounted by multiple Compute
Engine instances. Cloud Storage is object storage, Persistent Disk is block storage for a single VM (or read-only
for multiple), and Local SSD is ephemeral.
3. You are deploying a containerized application to Google Cloud. You need a serverless platform that
automatically scales based on traffic and can scale to zero. Which service should you choose?
A) Google Kubernetes Engine (GKE)
B) Cloud Run
C) Compute Engine
D) App Engine Flexible Environment
Answer: B
, Rationale: Cloud Run is a serverless container platform that automatically scales and can scale to zero. GKE
requires node management, Compute Engine requires VM management, and App Engine Flexible does not
scale to zero.
4. You need to design a system that processes messages asynchronously. The messages must be processed
in order and exactly once. Which service should you use?
A) Cloud Pub/Sub
B) Cloud Tasks
C) Cloud Scheduler
D) Eventarc
Answer: B
Rationale: Cloud Tasks is a fully managed service that allows you to manage the execution, dispatch, and
delivery of a large number of distributed tasks. It guarantees at-least-once delivery and supports ordered
execution. Pub/Sub is for high-throughput messaging but does not guarantee ordering by default (though
ordering keys exist) or exactly-once processing.
5. You are designing a multi-tier application. The web tier needs to be globally accessible with low latency.
Which service should you use to distribute traffic?
A) Cloud Load Balancing