Google Associate Cloud EngineerPlanning and configuring a cloud solutionHard
A development team is building a new microservices-based application. Each microservice will run in a container, and they need a platform that provides automatic scaling, self-healing, and declarative management of their containerized workloads without having to manage the underlying virtual machines directly. Which Google Cloud service is the most suitable choice?
- ACloud Run
- BApp Engine Flexible environment
- CCompute Engine with custom instance templates
- DGoogle Kubernetes Engine (GKE) Autopilot
Show answer & explanationAnswer & explanation
Correct answer: D. Google Kubernetes Engine (GKE) Autopilot
GKE Autopilot is a fully managed Kubernetes engine that handles the provisioning and management of the cluster's underlying infrastructure (nodes), offering automatic scaling, self-healing, and declarative management for containerized workloads without requiring direct VM management. This aligns perfectly with the requirements for a microservices architecture.
Why the other options are wrong
- A. Cloud Run is a serverless platform for stateless containers and provides automatic scaling, but it's typically for simpler, event-driven microservices, and might not offer the full declarative power and networking options of GKE for complex microservice architectures.
- B. App Engine Flexible environment supports containers but is more opinionated than Kubernetes and doesn't offer the full declarative management and ecosystem of Kubernetes.
- C. Compute Engine requires manual management of VMs and their scaling, which contradicts the 'without managing VMs directly' requirement.
GKE Autopilot
A mode of Google Kubernetes Engine (GKE) that provisions and manages the cluster's underlying infrastructure, including nodes, for you. It offers a hands-off, optimized Kubernetes experience.
- Fully managed Kubernetes nodes
- Automatic scaling and self-healing
- Pay-per-pod pricing
Memory trick: CONTAIN (Containers, Orchestration, No-Ops, Autopilot, Infrastructure)