PROFESSIONAL-CLOUD-DEVOPS-ENGINEER · Question #30
Some of your production services are running in Google Kubernetes Engine (GKE) in the eu- west-1 region. Your build system runs in the us-west-1 region. You want to push the container images from…
The correct answer is C. Push the images to Google Container Registry (GCR) using the eu.gcr.io hostname. To maximize bandwidth for transferring container images to GKE clusters in eu-west-1, push images to Google Container Registry using the eu.gcr.io regional hostname.
Question
Options
- APush the images to Google Container Registry (GCR) using the gcr.io hostname.
- BPush the images to Google Container Registry (GCR) using the us.gcr.io hostname.
- CPush the images to Google Container Registry (GCR) using the eu.gcr.io hostname.
- DPush the images to a private image registry running on a Compute Engine instance in the eu-
How the community answered
(50 responses)- A6% (3)
- B14% (7)
- C78% (39)
- D2% (1)
Why each option
To maximize bandwidth for transferring container images to GKE clusters in eu-west-1, push images to Google Container Registry using the eu.gcr.io regional hostname.
Pushing to gcr.io (multi-regional) might distribute copies, but doesn't guarantee that the image will be pulled from the nearest endpoint for eu-west-1 with maximized bandwidth as effectively as a specific regional endpoint.
Pushing to us.gcr.io would store images in a US region, resulting in cross-continent pulls for GKE clusters in eu-west-1, which increases latency and egress costs, and does not maximize bandwidth efficiency for the European cluster.
To maximize bandwidth and minimize latency for image pulls to GKE clusters in eu-west-1, the images should be stored in a regional GCR endpoint that is geographically closest to the clusters. Using eu.gcr.io ensures the images are stored within a Google Cloud region in Europe, allowing GKE clusters in eu-west-1 to pull them efficiently over Google's high-speed internal network.
Running a private image registry on a Compute Engine instance introduces additional operational overhead for management, scaling, and security compared to using a fully managed service like GCR, and may not provide the same level of optimized network performance.
Concept tested: Google Container Registry regional endpoints
Source: https://cloud.google.com/container-registry/docs/push-containers#gcr_regions
Topics
Community Discussion
No community discussion yet for this question.