Google Cloud Professional Cloud Developer — Question 357
You manage an application that runs in a Compute Engine instance. You also have multiple backend services executing in stand-alone Docker containers running in Compute Engine instances. The Compute Engine instances supporting the backend services are scaled by managed instance groups in multiple regions. You want your calling application to be loosely coupled. You need to be able to invoke distinct service implementations that are chosen based on the value of an HTTP header found in the request. Which Google Cloud feature should you use to invoke the backend services?
Answer options
- A. Traffic Director
- B. Service Directory
- C. Anthos Service Mesh
- D. Internal HTTP(S) Load Balancing
Correct answer: A
Explanation
Traffic Director is the correct choice because it provides advanced traffic management capabilities, allowing for the selection of service implementations based on HTTP headers. The other options, while useful, do not offer the same level of traffic control and service invocation functionality needed for this specific scenario.