
Answer-first summary for fast verification
Answer: Upload the image to Container Registry and create a Kubernetes Deployment referencing the image.
The correct answer is D. To deploy a Docker image as a workload on Google Kubernetes Engine (GKE), you should upload the image to the Container Registry and create a Kubernetes Deployment referencing the image. A deployment is responsible for keeping a set of pods running, while a service enables network access to the pods. Thus, the appropriate approach is to use a Deployment for maintaining the application's running state.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You are developing an application that has been encapsulated in a Docker image to ensure ease of deployment and consistency across different computing environments. Now, you aim to deploy this Docker image as a Kubernetes workload on Google Kubernetes Engine (GKE). What steps should you take to achieve this deployment successfully?
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 Container Registry and create a Kubernetes Service referencing the image.
D
Upload the image to Container Registry and create a Kubernetes Deployment referencing the image.
No comments yet.