nerdexam
Google

PROFESSIONAL-CLOUD-DEVELOPER · Question #294

Your team has created an application that is hosted on a Google Kubemetes Engine (GKE) cluster. You need to connect the application to a legacy REST service that is deployed in two GKE clusters in…

The correct answer is A. Use Traffic Director with a sidecar proxy to connect the application to the service. C. Configure the legacy service's firewall to allow health checks originating from the sidecar proxy. Traffic Director with a sidecar proxy (Envoy) is GCP's managed service mesh control plane. It provides cross-cluster, cross-region load balancing and resilience features (retries, circuit breaking, failover) out of the box, satisfying the resiliency requirement with minimal…

Managing APIs and Microservices

Question

Your team has created an application that is hosted on a Google Kubemetes Engine (GKE) cluster. You need to connect the application to a legacy REST service that is deployed in two GKE clusters in two different regions. You want to connect your application to the legacy service in a way that is resilient and requires the fewest number of steps. You also want to be able to run probe-based health checks on the legacy service on a separate port. How should you set up the connection? (Choose two.)

Options

  • AUse Traffic Director with a sidecar proxy to connect the application to the service.
  • BSet up a proxyless Traffic Director configuration for the application.
  • CConfigure the legacy service's firewall to allow health checks originating from the sidecar proxy.
  • DConfigure the legacy service's firewall to allow health checks originating from the application.
  • EConfigure the legacy service's firewall to allow health checks originating from the Traffic Director

How the community answered

(48 responses)
  • A
    63% (30)
  • B
    6% (3)
  • D
    8% (4)
  • E
    23% (11)

Explanation

Traffic Director with a sidecar proxy (Envoy) is GCP's managed service mesh control plane. It provides cross-cluster, cross-region load balancing and resilience features (retries, circuit breaking, failover) out of the box, satisfying the resiliency requirement with minimal configuration steps. The sidecar proxy is what actually performs health checks, so the legacy service's firewall must allow health check traffic originating from the sidecar proxy (C). Option B (proxyless Traffic Director) does not support HTTP/REST services well and cannot perform sidecar-based probe health checks on a separate port. Option D is incorrect because health checks flow from the sidecar, not the application pod directly. Option E is incorrect because Traffic Director's control plane does not generate health check traffic itself - the data-plane sidecar does.

Topics

#Traffic Director#Service Mesh#GKE Networking#Health Checks

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVELOPER Practice