Google Professional Cloud Network Engineer Question 448
Select 3Google Cloud PlatformYou are a Cloud Network Engineer setting up an Application Load Balancer (ALB) in Google Cloud for a microservices-based application. The application has two services: 'Service A' for old users and 'Service B' for new users. You need to implement traffic splitting where 70% of traffic is routed to 'Service A' and 30% to 'Service B'. Additionally, you want to rewrite all incoming requests with the path '/dashboard' to '/home'. What steps should you take to meet these requirements?
- A
Create two backend services for 'Service A' and 'Service B', and configure a traffic-splitting policy with weights 70 for 'Service A' and 30 for 'Service B'.
- B
Set up a URL rewrite policy on the Application Load Balancer to rewrite '/dashboard' to '/home'.
- C
Set up a traffic mirroring policy to mirror 30% of the traffic from 'Service A' to 'Service B'.
- D
Configure a host-based routing rule to split traffic between 'Service A' and 'Service B'.
- E
Ensure that the health checks for both 'Service A' and 'Service B' are properly configured in their respective backend services.
Show answer and explanation
Correct answers: A, B, E
Explanation
To implement traffic splitting and URL rewriting, you need to configure backend services with specific traffic-splitting weights and set up a URL rewrite policy on the Application Load Balancer. Additionally, proper health checks must be configured to ensure traffic is only routed to healthy backend services. Traffic mirroring and host-based routing are not applicable in this scenario.
- A. Correct.
Correct: Creating two backend services and configuring a traffic-splitting policy is the correct approach for distributing traffic between 'Service A' and 'Service B' with specific weights.
- B. Correct.
Correct: Setting up a URL rewrite policy can rewrite the path '/dashboard' to '/home' as required.
- C. Incorrect.
Incorrect: Traffic mirroring is used to duplicate traffic for testing purposes, not for splitting traffic between two services.
- D. Incorrect.
Incorrect: Host-based routing is used to route traffic based on the hostname in the URL, not for traffic splitting.
- E. Correct.
Correct: Proper health checks ensure that traffic is only routed to healthy backend services, which is critical for a functioning Application Load Balancer.