Google Cloud Associate Cloud Engineer — Question 161
You have developed an application that consists of multiple microservices, with each microservice packaged in its own Docker container image. You want to deploy the entire application on Google Kubernetes Engine so that each microservice can be scaled individually. What should you do?
Answer options
- A. Create and deploy a Custom Resource Definition per microservice.
- B. Create and deploy a Docker Compose File.
- C. Create and deploy a Job per microservice.
- D. Create and deploy a Deployment per microservice.
Correct answer: D
Explanation
The correct answer is D because a Deployment in Kubernetes is designed to manage the lifecycle of applications and allows for scaling of individual microservices. Options A and C do not provide the necessary scaling capabilities, while B is not suitable for orchestrating multiple microservices in a Kubernetes environment.