Google Professional Cloud Developer Question 26
Select 3Google Cloud PlatformYou are developing a latency-sensitive application that uses Google Cloud services. The application must ensure low latency for users across different regions while maintaining high availability. Which combination of strategies would best achieve this goal?
- A
Deploy the application to multiple regions and use a global load balancer to route requests based on user proximity.
- B
Host the application in a single region and use zonal services to optimize costs.
- C
Use a multi-region Cloud Spanner instance for the database to ensure high availability and low latency for global users.
- D
Deploy resources in a single zone to minimize deployment complexity.
- E
Leverage Cloud CDN to cache static content at edge locations closer to users.
Show answer and explanation
Correct answers: A, C, E
Explanation
To ensure low latency and high availability for a global user base, a combination of deploying the application in multiple regions with a global load balancer, leveraging multi-region Cloud Spanner for databases, and using Cloud CDN for static content is ideal. These strategies ensure user proximity, data consistency, and fast delivery of static assets while maintaining resilience.
- A. Correct.
Deploying the application to multiple regions and using a global load balancer ensures that user requests are routed to the nearest region, reducing latency while providing high availability.
- B. Incorrect.
Hosting the application in a single region and relying on zonal services may reduce costs but compromises both latency and availability for users in distant regions.
- C. Correct.
Using a multi-region Cloud Spanner instance is a good choice for global databases because it provides low-latency reads and writes across regions while ensuring high availability.
- D. Incorrect.
Deploying resources in a single zone simplifies deployment but introduces a single point of failure and does not address latency for users in other regions.
- E. Correct.
Cloud CDN caches static content at edge locations close to users, significantly reducing latency for static assets, which is crucial for latency-sensitive applications.