Google Cloud Professional Cloud DevOps Engineer — Question 52
You support a stateless web-based API that is deployed on a single Compute Engine instance in the europe-west2-a zone. The Service Level Indicator (SLI) for service availability is below the specified Service Level Objective (SLO). A postmortem has revealed that requests to the API regularly time out. The time outs are due to the API having a high number of requests and running out memory. You want to improve service availability. What should you do?
Answer options
- A. Change the specified SLO to match the measured SLI
- B. Move the service to higher-specification compute instances with more memory
- C. Set up additional service instances in other zones and load balance the traffic between all instances
- D. Set up additional service instances in other zones and use them as a failover in case the primary instance is unavailable
Correct answer: C
Explanation
The correct answer is C because adding more service instances in different zones and load balancing traffic can distribute the load effectively, reducing timeouts and improving availability. Option A is incorrect as changing the SLO does not solve the underlying issue of capacity. Option B only addresses the memory issue of a single instance, and option D does not improve availability under high load, as it only provides redundancy.