Google Professional Cloud Developer Question 28
Select 3Google Cloud PlatformYou are developing a globally distributed application on Google Cloud that must minimize latency for users in multiple regions while ensuring data is consistently stored and processed in a specific region. Which of the following design decisions align with these requirements?
- A
Use a multi-regional Cloud Storage bucket to store user-uploaded files for faster access across regions.
- B
Deploy a Cloud Run service in multiple regions and use a load balancer to route traffic to the nearest region.
- C
Use a regional Cloud Spanner instance to store application data and ensure it is processed in a specific region.
- D
Host your application on a zonal Compute Engine instance to minimize costs and latency globally.
- E
Leverage Cloud CDN with a global external HTTP(S) load balancer to cache static content closer to users.
Show answer and explanation
Correct answers: B, C, E
Explanation
To minimize latency for a globally distributed application, you should deploy services closer to users using multiple regions and load balancing, cache static content at edge locations using Cloud CDN, and ensure consistent data storage and processing by using region-specific services like Cloud Spanner. These decisions collectively address both latency and regional data requirements.
- A. Incorrect.
Multi-regional Cloud Storage buckets are designed for high availability and redundancy but do not guarantee data consistency in a specific region, which contradicts the requirement of ensuring data is processed in a specific region.
- B. Correct.
Deploying Cloud Run in multiple regions and using a load balancer to route traffic ensures low latency for users by directing them to the closest instance.
- C. Correct.
A regional Cloud Spanner instance ensures data consistency and processing within a specific region, meeting the requirement for regional data processing.
- D. Incorrect.
Zonal Compute Engine instances are cost-efficient but do not provide global low-latency access or regional redundancy, making them unsuitable for globally distributed applications.
- E. Correct.
Cloud CDN with a global external HTTP(S) load balancer caches static content closer to users, reducing latency and improving performance for static resources.