Google Professional Cloud Developer Question 19
Select 3Google Cloud PlatformYour organization is modernizing a legacy monolithic application by breaking it into microservices and deploying it on Google Kubernetes Engine (GKE). During this process, you need to ensure that the application can automatically scale based on traffic, and that each microservice can communicate securely with others within the cluster. Which steps should you take to achieve this?
- A
Implement Horizontal Pod Autoscaling for each microservice based on CPU or memory usage.
- B
Configure Kubernetes NetworkPolicies to control traffic between microservices.
- C
Use Cloud Logging to automatically scale microservices based on log volume.
- D
Deploy Istio service mesh to handle secure service-to-service communication.
- E
Manually configure static IP addresses for each microservice to enable communication.
Show answer and explanation
Correct answers: A, B, D
Explanation
To modernize the application effectively, you need to ensure scalability and secure communication among microservices. Horizontal Pod Autoscaling handles dynamic scaling based on resource utilization, NetworkPolicies secure internal communication, and Istio enhances service-to-service communication with features like encryption and traffic management. These steps align with best practices for containerized application modernization on GKE.
- A. Correct.
Implementing Horizontal Pod Autoscaling allows you to automatically scale your microservices based on metrics like CPU or memory usage, which is crucial for handling traffic spikes.
- B. Correct.
Kubernetes NetworkPolicies enable you to secure and control communication between microservices within the cluster.
- C. Incorrect.
Cloud Logging is a valuable tool for monitoring and troubleshooting but it cannot be used for automatic scaling of microservices.
- D. Correct.
Istio service mesh provides advanced service-to-service communication features like encryption, observability, and traffic management, which are essential for secure communication.
- E. Incorrect.
Manually configuring static IP addresses is not a scalable or recommended approach for modern containerized applications.