Google Professional Cloud Network Engineer Question 404
Single answerGoogle Cloud PlatformYou are designing a multi-region web application hosted on Google Cloud. The application uses a global external HTTP(S) load balancer to distribute traffic across backend services in multiple regions. Each backend service is associated with regional instance groups. You want to configure the load balancer to prioritize instance groups based on their CPU utilization while ensuring that traffic is distributed evenly if all instance groups are performing optimally. Which load balancing method should you configure for the backend services?
- A
Rate-based (RPS) balancing
- B
CPU utilization-based balancing
- C
Round robin balancing
- D
Capacity-based balancing
Show answer and explanation
Correct answer: B
Explanation
CPU utilization-based balancing is the correct choice because it prioritizes backend services with lower CPU utilization, ensuring optimal resource usage. This method also allows traffic to be distributed evenly when all instance groups are performing optimally, meeting the requirements of the scenario.
- A. Incorrect.
Rate-based (RPS) balancing distributes traffic based on the number of requests per second to each backend, but it does not prioritize based on CPU utilization.
- B. Correct.
CPU utilization-based balancing prioritizes backend services with lower CPU utilization, making it suitable for scenarios where resource usage is a key factor in distributing traffic.
- C. Incorrect.
Round robin balancing distributes traffic evenly across all backends, irrespective of their resource utilization, which does not align with the requirement to prioritize CPU utilization.
- D. Incorrect.
Capacity-based balancing distributes traffic based on predefined capacity settings for backends, but it does not dynamically adjust based on CPU utilization.