Google Cloud Associate Cloud Engineer — Question 303
You have created an application that is packaged into a Docker image. You want to deploy the Docker image as a workload on Google Kubernetes Engine. What should you do?
Answer options
- 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.
Correct answer: D
Explanation
The correct answer is D because deploying a Docker image requires utilizing Kubernetes Deployments, which manage the application lifecycle. Uploading to Container Registry is the appropriate choice for storing images meant for Kubernetes, while Cloud Storage is not designed for this purpose, making options A and B incorrect. Option C incorrectly suggests using a Kubernetes Service instead of a Deployment.