
Answer-first summary for fast verification
Answer: Upload the image to Artifact Registry and create a Kubernetes Deployment referencing the image.
Cloud Storage is not a preferred place for storing Docker images, which eliminates options A and B. Artifact Registry is used for storing container images and integrates well with Google Kubernetes Engine. A Kubernetes Service is responsible for networking and connectivity between pods and external entities, therefore it cannot be used for deploying Docker images, eliminating option C. The correct approach is to upload the image to Artifact Registry and create a Kubernetes Deployment, which will manage the deployment and scaling of your application pods, making D the correct answer.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
You have created an application and successfully packaged it into a Docker image. Your next goal is to deploy this Docker image as a workload onto Google Kubernetes Engine (GKE), which is a powerful platform for automated orchestration, management, and scaling of containerized applications. How should you proceed to achieve this deployment?
A
Upload the image to Cloud Storage and create a Kubernetes Service referencing the image.
B
Upload the image to Cloud Storage and create a Kubernetes Deployment referencing the image.
C
Upload the image to Artifact Registry and create a Kubernetes Service referencing the image.
D
Upload the image to Artifact Registry and create a Kubernetes Deployment referencing the image.