Select compute and failure boundaries
An application needs an attached block device and must recover in a second zone after loss of the first. What must the design include beyond a second VM?
Select compute and failure boundaries
Choose regional Hyperdisk Balanced High Availability to survive a zone failure, then attach the disk to a standby VM.
Work through the decision
An application needs an attached block device and must recover in a second zone after loss of the first. What must the design include beyond a second VM?
Check your reasoning
Choose a disk type and region supporting synchronous two-zone replication, such as Hyperdisk Balanced High Availability. Plan and test failover attachment to the standby and application recovery separately.
Interpret the evidence
- Regional replicated disk
- A supported regional disk keeps copies in two zones. Recovery still needs compute capacity and an application failover procedure.
- Managed instance group
- A template defines replaceable VMs. Health checks, an autoscaler and a regional placement policy can support a stateless tier.
- GKE Autopilot
- Kubernetes manifests control workloads while Google handles node provisioning. Set realistic Pod requests.
- Cloud Run service
- Deploy a request-driven container as revisions and let the platform scale it within configured limits.
- Spot VM
- Interruptible capacity suits restartable work with durable checkpoints.
Practice the guide skills
- Compare VM, GKE, Cloud Run service, event-driven function and Agent Runtime for a kernel-dependent workload, a Kubernetes controller, a web API, a storage event and a managed agent.
- Choose zone and availability settings, machine type, attached disk and recovery procedure. Explain when a Spot worker can resume and what must survive its termination.
- Plan a regional managed instance group from a versioned template. Separate its health checks, scaling signals and rollout policy.
- Decide who can log into a VM through OS Login, where IAM governs SSH access, and how VM Manager reports inventory and patch state.
- Get cluster credentials for kubectl, inspect the current context, and identify the deployment and Service needed for a container. Compare private networking, Autopilot and regional availability.
- Design an Eventarc trigger for an object-finalized event and select its invoking identity. Compare a GPU workload with a supported tensor workload before requesting TPU capacity.
Official objectives for this lesson
Check the current Kubernetes context
A rollout ticket names the staging cluster and the namespace checkout. Compare your current context and the workload inventory before selecting any target.
kubectl config current-context
kubectl get deployments,services --namespace=checkout
A context selects cluster and credentials. A Deployment controls the desired replicas, while a Service gives clients a stable endpoint for matching Pods. Check that the selected namespace matches the release.
Related lesson · Pay for compute when the workload uses it
Select compute and failure boundaries quiz
Answer 3 questions. Check each answer for an explanation.