Soru

Zorluk: OrtaPlanning Compute Engine Resources and Machine Types

An organization is designing its Compute Engine architecture for a new IoT telemetry processing system. The architecture consists of two primary components:

1. A stateful PostgreSQL database instance that requires exactly 6 vCPUs and 45 GB of memory, running continuously 24/7 without interruption.
2. A stateless worker fleet that processes incoming message batches in parallel, where individual task interruptions are acceptable and automatically retried by an upstream queue.

Which TWO deployment strategies should the cloud engineer choose to meet these requirements while optimizing compute costs? (Select TWO.)

  1. Provision a custom machine type with 6 vCPUs and 45 GB of RAM for the stateful database instance.Cevap
  2. Deploy Spot VM instances for the stateless batch processing worker fleet.Cevap
  3. C
    Provision Spot VM instances for the stateful PostgreSQL database to maximize overall infrastructure savings.
  4. D
    Refactor the stateful PostgreSQL database to execute inside event-driven Cloud Functions snippets.

Cevap

The cloud engineer should provision a custom machine type (6 vCPUs, 45 GB memory) for the persistent PostgreSQL database and deploy Spot VMs for the fault-tolerant, stateless batch worker fleet.
For the stateful database instance requiring a non-standard 6 vCPU / 45 GB RAM ratio, creating a custom machine type ensures exact resource allocation without paying for unused capacity in larger predefined sizes. For the stateless batch worker fleet, using Spot VMs provides maximum cost efficiency because the workload is designed to tolerate instance preemption and task retries.

Adım Adım Çözüm

1
Analyze resource requirements for the stateful database
The requirement (6 vCPUs, 45 GB RAM) does not match standard n2-standard ratios (1:4). Using a custom machine type avoids paying for excess vCPUs or RAM.
Custom machine types allow exact provisioning of vCPUs and RAM for specific compute profiles.
2
Evaluate fault tolerance for the worker fleet
The worker fleet is stateless and upstream queues retry interrupted jobs. Spot VMs are ideal for this workload.
Spot VMs provide large discounts (60-90%) for fault-tolerant batch processing.

Anahtar Kavram

Selecting optimal Compute Engine machine types and instance lifecycles based on workload statefulness and custom resource ratios.
Bu soruyu puanla