Google Associate Cloud Engineer Question 211
Select 3Google Cloud PlatformYou are managing an e-commerce application deployed on Google Cloud Platform. The application experiences fluctuating traffic patterns, with peak usage during sales events. To ensure high availability and cost efficiency, which of the following configurations should you implement to automatically adjust the resources based on the traffic demand?
- A
Configure a Horizontal Pod Autoscaler for your GKE cluster to scale the number of pods based on CPU utilization.
- B
Set up a Managed Instance Group with an autoscaler that adjusts the number of VM instances based on average CPU utilization.
- C
Use a Persistent Disk with ReadWriteMany access mode to automatically increase storage capacity during peak times.
- D
Implement a Vertical Pod Autoscaler in your GKE cluster to adjust the resource requests and limits for pods in real-time.
- E
Create a static App Engine instance class to handle increased load during peak times.
Show answer and explanation
Correct answers: A, B, D
Explanation
To manage fluctuating traffic efficiently, it's important to use both horizontal and vertical autoscaling techniques. Horizontal scaling adjusts the number of instances or pods to meet demand, while vertical scaling optimizes resource allocation for existing instances. Options 1, 2, and 4 effectively leverage these strategies within Google Cloud Platform services.
- A. Correct.
Horizontal Pod Autoscaler in GKE scales the number of pods based on resource usage, such as CPU, which helps in handling fluctuating traffic.
- B. Correct.
Managed Instance Groups with autoscaling based on CPU utilization allow the number of VM instances to dynamically adjust according to demand, ensuring cost efficiency and availability.
- C. Incorrect.
Persistent Disks with ReadWriteMany access mode are not designed to automatically adjust storage capacity based on demand; they require manual resizing.
- D. Correct.
Vertical Pod Autoscaler automatically adjusts the CPU and memory requests for pods, helping to optimize resource usage and performance during varying traffic loads.
- E. Incorrect.
App Engine static instance classes do not automatically scale; they are fixed and not suitable for handling fluctuating traffic efficiently.