
Answer-first summary for fast verification
Answer: Create and deploy a Deployment per microservice.
The correct answer is D. In Kubernetes, a Deployment is a resource that allows you to define, create, and manage the desired number of replicas of your application. Each microservice can be independently managed and scaled using its own Deployment. This approach provides the flexibility to scale individual microservices as needed and manage their lifecycle effectively. Options A, B, and C do not fit the requirement as well as Option D. Custom Resource Definitions create new resource types, Docker Compose is not a Kubernetes tool, and Jobs are meant for specific tasks rather than managing microservices.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You have developed an application architecture composed of several microservices. Each microservice is encapsulated within its own Docker container image, enabling isolation and independent deployment. To efficiently manage and scale these microservices, you aim to deploy the entire application on Google Kubernetes Engine (GKE), which provides robust orchestration capabilities. How should you proceed to ensure that each microservice can be individually scaled within the GKE environment?
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.
No comments yet.