Soru

Zorluk: OrtaSelecting and Designing Compute and Application Platforms

An online education organization is launching a new stateless HTTP microservice that receives student quiz responses, performs light validation, and publishes events to Google Cloud Pub/Sub. The workload experiences unpredictable, highly variable traffic with prolonged periods of complete inactivity during nighttime hours. The engineering leadership wants to minimize operational overhead and prevent paying for idle compute capacity. Which architecture recommendation best fulfills these requirements?

  1. Deploy the microservice as a Cloud Run containerized service configured to scale down to zero instances when idle.Cevap
  2. B
    Deploy the microservice to a Google Kubernetes Engine (GKE) Autopilot cluster managed by a Horizontal Pod Autoscaler.
  3. C
    Deploy the microservice across a Compute Engine Managed Instance Group (MIG) using a fixed minimum node count with autoscaling based on CPU utilization.
  4. D
    Provision Compute Engine Virtual Machines backed by 3-year Committed Use Discounts (CUDs) to host the microservice instances.

Cevap

Deploy the microservice as a Cloud Run containerized service configured to scale down to zero instances when idle.
Deploying to Cloud Run is the optimal architectural choice because Cloud Run automatically handles container execution, scales down to zero instances when no HTTP requests are being processed, and eliminates operational management of underlying infrastructure.

Adım Adım Çözüm

1
Analyze workload characteristics and requirements
The application is a stateless HTTP microservice with unpredictable traffic spikes and long idle periods, requiring minimal operational overhead and zero idle cost.
Identifying statefulness, scaling behavior, and operational constraints is necessary to select the correct compute platform.
2
Evaluate candidate compute platforms against constraints
Cloud Run supports containerized stateless HTTP workloads, scales automatically to zero when inactive to eliminate idle costs, and operates as a fully managed service with minimal operational overhead.
Matching serverless container capabilities against business constraints demonstrates optimal architectural design.

Anahtar Kavram

Selecting serverless container platforms (Cloud Run) for stateless HTTP microservices with variable traffic patterns to minimize operational overhead and cost.
Bu soruyu puanla