Google Professional Cloud Developer Question 240
Select 3Google Cloud PlatformYou are building a cloud-native application on Google Cloud and need to ensure the application is highly available and scales automatically based on demand. Which of the following considerations should you prioritize during the design and deployment of your application?
- A
Use managed services like Cloud Run or App Engine to minimize operational overhead.
- B
Implement horizontal scaling using Compute Engine managed instance groups.
- C
Store application state locally on instance disks for faster access.
- D
Design the application to be stateless wherever possible.
- E
Manually adjust virtual machine sizes to handle peak traffic.
Show answer and explanation
Correct answers: A, B, D
Explanation
Building a cloud-native application on Google Cloud requires focusing on managed services, stateless design, and automated scaling solutions. Managed services like Cloud Run and App Engine reduce operational complexity, while horizontal scaling with managed instance groups ensures demand is met efficiently. Stateless design further enhances scalability and reliability, making these considerations essential for highly available and scalable applications.
- A. Correct.
Using managed services like Cloud Run or App Engine allows you to focus on application development while Google Cloud handles scaling, availability, and infrastructure management, making it an essential consideration.
- B. Correct.
Horizontal scaling with Compute Engine managed instance groups ensures that your application can automatically scale out or in based on demand, improving availability and cost-efficiency.
- C. Incorrect.
Storing application state locally on instance disks ties the application state to a single instance, which can lead to issues with scalability and failover in case of instance failure. This is not recommended for highly available applications.
- D. Correct.
Designing the application to be stateless enables better scalability and resilience since any instance can handle any request without dependency on others.
- E. Incorrect.
Manually adjusting virtual machine sizes is error-prone, time-consuming, and does not align with the goal of automatic scaling, making it a poor choice for handling demand fluctuations.