Google Professional Cloud Network Engineer Question 408
Select 3Google Cloud PlatformYour company runs a web application on Google Cloud using a global external HTTP(S) Load Balancer. The application requires session affinity to ensure that users are consistently routed to the same backend instance while maintaining high availability. The backend service also needs to handle a sudden spike in traffic while adhering to its serving capacity limits. What steps should you take to configure the Load Balancer to meet these requirements?
- A
Enable session affinity on the backend service and configure it to use 'Client IP' as the affinity type.
- B
Set a connection draining timeout on the backend service to handle traffic spikes gracefully.
- C
Configure the backend service with a maximum RPS (requests per second) that matches the serving capacity of the backend instances.
- D
Use a custom session affinity key to ensure that requests are distributed evenly across all backend instances.
- E
Increase the serving capacity of the backend service by adding more instances and ensuring autoscaling is enabled.
Show answer and explanation
Correct answers: A, C, E
Explanation
To meet the requirements, session affinity must be enabled (using 'Client IP' in this case) to ensure consistent routing for users. Configuring the backend service to respect serving capacity (e.g., by setting a maximum RPS) prevents backend instances from being overwhelmed. Additionally, increasing the serving capacity by adding instances and enabling autoscaling ensures the system can handle traffic spikes while maintaining high availability.
- A. Correct.
Correct. Enabling session affinity ensures that requests from the same client are routed to the same backend instance, which is a requirement in this scenario.
- B. Incorrect.
Incorrect. While connection draining is useful for gracefully handling backend shutdowns, it is not required for handling sudden traffic spikes or ensuring session affinity.
- C. Correct.
Correct. Configuring the backend service with a maximum RPS ensures that the backend instances are not overwhelmed and can handle the traffic within their serving capacity.
- D. Incorrect.
Incorrect. A custom session affinity key is not required for this scenario and does not ensure consistent routing to the same backend instance.
- E. Correct.
Correct. Increasing the serving capacity of the backend service by adding more instances and enabling autoscaling helps handle sudden traffic spikes while maintaining availability.