Associate Cloud Engineer practice question · Ensuring the successful operation of a cloud solution
A team runs fault-tolerant batch jobs on a GKE node pool that uses Spot VMs.
A team runs fault-tolerant batch jobs on a GKE node pool that uses Spot VMs. Jobs are finishing later than expected, and the team suspects that nodes are being reclaimed frequently. They want to see how often the pool's underlying VMs are preempted. What should they do?
- AIn Cloud Logging, filter the audit logs for compute.instances.preempted events on the node pool's underlying Compute Engine VMs
- BIn Cloud Logging, filter for cluster autoscaler scale-down events, because the autoscaler is what removes preempted Spot nodes
- CCheck the status of the PodDisruptionBudget for the batch job's Pods, which counts each Spot node preemption that affected them
- DRun gcloud container node-pools describe on the Spot node pool, which reports a running count of preemptions for its nodes
Show the answer and explanation
Correct answer: A) In Cloud Logging, filter the audit logs for compute.instances.preempted events on the node pool's underlying Compute Engine VMs
When Compute Engine reclaims a Spot VM that backs a GKE node, Cloud Audit Logs record a compute.instances.preempted event. Filtering Cloud Logging on this event is how you measure how often preemptions happen.
Why each option is right or wrong
- A) Correct. When Compute Engine reclaims a Spot VM, Cloud Audit Logs record a compute.instances.preempted event for that instance. Filtering Cloud Logging on this event, optionally limited to the node pool's VM names, shows how often and when preemptions happen, so the team can compare preemptions with job delays.
- B) Incorrect. Compute Engine preempts Spot VMs when it needs the capacity back. The cluster autoscaler does not do it. Autoscaler scale-down events show nodes removed for low utilization, not Spot preemptions.
- C) Incorrect. A PodDisruptionBudget limits voluntary disruptions, such as drains. It does not count Spot VM preemptions, and GKE does not guarantee that PodDisruptionBudgets are respected when a Spot node is preempted.
- D) Incorrect. The describe command returns the node pool's configuration, such as machine type, Spot setting and autoscaling. It does not return a history or count of preemption events. Those are recorded in Cloud Logging.
- Exam domain
- Ensuring the successful operation of a cloud solution · ~30% of Associate Cloud Engineer
- Question type
- Multiple choice (one answer)
Related Associate Cloud Engineer questions
- Users report that one API call in a microservices application is slow. The request passes through a frontend, two…Ensuring the successful operation of a cloud solution
- At 14:35, a developer accidentally ran a bulk DELETE against a Cloud SQL for MySQL production database.Ensuring the successful operation of a cloud solution
- A security team is investigating a possible incident. They need a record of administrative actions taken in their Google…Ensuring the successful operation of a cloud solution
- A team needs a point-in-time snapshot of an existing Compute Engine persistent disk.Ensuring the successful operation of a cloud solution
All 60 free Associate Cloud Engineer questions by domain · 15 sample questions on one page
Practise the full Associate Cloud Engineer exam
This question is one of a small free sample from the CertRidge Associate Cloud Engineer bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.
Original question written from the official exam guide. Not affiliated with Google Cloud; never copied from the real exam.