Professional Cloud Developer · Free Practice Question Hard

Question 34

An application is being managed on a Compute Engine instance, alongside multiple backend services that are run on stand-alone Docker containers in Compute Engine instances. These Compute Engine instances supporting the backend services are scaled by managed instance groups across several regions. In order to ensure a loosely coupled calling application, it is necessary to be able to invoke individual service implementations which are selected based on the value of an HTTP header located within the request.


What is the appropriate Google Cloud feature to activate the backend services?

  • A Anthos Service Mesh
  • B Traffic Director
  • C Service Directory
  • D Internal HTTP(S) Load Balancing
Reveal correct answer

Correct answer: B

Explanation

To invoke distinct service implementations that are chosen based on the value of an HTTP header found in the request, the best option is to use Traffic Director. Traffic Director is a fully managed service mesh control plane for Google Cloud that enables you to manage traffic across multiple regions and different types of services. The backend services in this scenario are scaled by managed instance groups in multiple regions, so an internal HTTP(S) load balancer, which is a regional service, would not be the best option. Traffic Director works with Cloud Load Balancing to provide a managed ingress experience, allowing you to set up an external or internal load balancer and configure it to send traffic to your microservices. With Traffic Director, you can configure traffic splitting based on HTTP headers, among other features, providing the loose coupling required in this scenario.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need