Google Professional Cloud Network Engineer Question 173
Single answerGoogle Cloud PlatformYou are configuring a Google Cloud Load Balancer for a multi-tier application. The backend of the application is hosted on Compute Engine instances in two different regions, and you want to ensure traffic is routed based on the HTTP 'Host' header. Which Google Cloud feature should you use to achieve this?
- A
URL maps
- B
Backend buckets
- C
Target pools
- D
SSL policies
Show answer and explanation
Correct answer: A
Explanation
URL maps are a core feature of Google Cloud external HTTP(S) Load Balancers. They allow you to configure routing rules based on HTTP attributes, such as 'Host' headers or URL paths. In this scenario, using a URL map will enable you to direct traffic to the appropriate backend services based on the 'Host' header, ensuring proper routing for your multi-tier application.
- A. Correct.
URL maps allow you to route traffic to different backends based on HTTP attributes such as 'Host' headers or URL paths, making it the correct choice for this scenario.
- B. Incorrect.
Backend buckets are used to serve static content stored in Cloud Storage and are not related to routing traffic based on HTTP 'Host' headers.
- C. Incorrect.
Target pools are associated with legacy HTTP load balancers and do not offer functionality for routing traffic based on HTTP 'Host' headers.
- D. Incorrect.
SSL policies are used to configure SSL settings for HTTPS traffic but do not influence how traffic is routed based on HTTP attributes.