Google Associate Cloud Engineer Question 58
Single answerGoogle Cloud PlatformYou are tasked with deploying a web application on Google Cloud Platform that experiences variable traffic but requires high availability. The application is expected to handle high spikes during promotional events. Which compute option should you choose to efficiently manage costs while meeting these requirements?
- A
Google Compute Engine with a fixed number of VM instances
- B
Google Kubernetes Engine with horizontal pod autoscaling
- C
Google Cloud Functions
- D
Google App Engine Flexible Environment with autoscaling
Show answer and explanation
Correct answer: B
Explanation
Google Kubernetes Engine with horizontal pod autoscaling is the optimal choice for a web application with variable traffic and high availability requirements. It provides automatic scaling of pods based on the application's load, ensuring that resources are efficiently utilized and costs are managed effectively. It also offers the flexibility to handle high traffic spikes, such as during promotional events, without manual intervention.
- A. Incorrect.
Google Compute Engine with a fixed number of VM instances is not ideal for handling variable traffic efficiently as it does not scale automatically to manage spikes and could lead to either over-provisioning or under-provisioning resources.
- B. Correct.
Google Kubernetes Engine with horizontal pod autoscaling is well-suited for applications with variable traffic as it can scale the number of pods automatically based on the load, ensuring high availability and cost efficiency.
- C. Incorrect.
Google Cloud Functions is suitable for event-driven architectures but might not be the best fit for a web application that requires consistent high availability and management of stateful connections.
- D. Incorrect.
Google App Engine Flexible Environment with autoscaling can manage variable traffic and provides high availability, but it might not offer the same level of cost efficiency and granular control over scaling as Google Kubernetes Engine.