Google Professional Cloud Developer Question 23
Select 3Google Cloud PlatformYour team is tasked with modernizing a legacy monolithic application. The application has tightly coupled services and is deployed on a virtual machine. You decide to refactor the application into microservices and deploy it using Google Kubernetes Engine (GKE). Which of the following steps are necessary for this modernization process?
- A
Redesign the application to separate its functionality into independently deployable microservices.
- B
Create container images for each microservice and store them in a container registry like Artifact Registry.
- C
Continue deploying the application as a monolith on a single Kubernetes Pod for simplicity.
- D
Use Kubernetes manifests (e.g., Deployment and Service YAML files) to define how the microservices run on GKE.
- E
Migrate the virtual machine disk image directly into GKE without refactoring the application.
Show answer and explanation
Correct answers: A, B, D
Explanation
To modernize a monolithic application using containerization and GKE, you must refactor the application into microservices, create container images for each service, and use Kubernetes manifests to manage the deployment on GKE. This approach enables scalability, maintainability, and better resource utilization. Simply lifting and shifting the monolithic VM or continuing to deploy the application as a monolith does not achieve the benefits of modernization.
- A. Correct.
Redesigning the application to separate it into microservices is a critical step for modernizing a monolithic application.
- B. Correct.
Creating container images for each microservice is essential for deploying them in a containerized environment like Kubernetes.
- C. Incorrect.
Continuing to deploy the application as a monolith on Kubernetes contradicts the goal of application modernization through microservices.
- D. Correct.
Kubernetes manifests are needed to define how the microservices should be deployed and managed on GKE.
- E. Incorrect.
Migrating the virtual machine disk image directly into GKE does not align with the goal of refactoring the application into microservices.