Prepare and test your skills

Prepare and test your skills

Free sample question with answers and detailed explanation below. The Associate Cloud Engineer practice bank has an additional 2,014 practice questions.Try 10 free realistic questions: instant score, no credit card, and no account required.
A media company processes thousands of overnight video rendering jobs using a fault-tolerant batch application. The workload is stateless, automatically saves progress checkpoints every five minutes, and can tolerate unexpected server interruptions.
The engineering team wants to drastically reduce compute costs while ensuring that running instances can execute a graceful cleanup whenever Compute Engine reclaims the underlying capacity.
Which compute configuration and lifecycle strategy should the team implement?
Spot VMs are Compute Engine virtual machine instances priced at a significant discount (typically 60–91% compared to standard on-demand prices) in exchange for allowing Google Cloud to reclaim (preempt) capacity when it is needed for other workloads.

instance/preempted metadata endpoint to trigger internal shutdown procedures alongside shutdown scripts.For stateless or checkpointed batch processing, Spot VMs provide optimal economics. Pairing them with a 30-second shutdown script ensures that any in-flight operations or metadata are cleanly finalized before the VM terminates.
By definition, Spot VMs do not provide capacity guarantees or high availability reservations. The entire economic trade-off of Spot instances relies on Google Cloud retaining the right to reclaim compute capacity at any time without guaranteed availability.
Compute Engine offered an SLA-backed non-preemptible Spot tier, but such a feature does not exist because the low price is directly enabled by excess, reclaimable capacity.
Custom machine types allow configuring exact ratios of vCPUs and memory for a standard VM instance. When an instance is stopped manually or by an orchestration tool, standard operating system shutdown scripts run, but these are standard on-demand VMs rather than deeply discounted transient instances.
The workload required a non-standard vCPU-to-RAM memory ratio and could not tolerate any random preemption events, requiring standard on-demand pricing.
Committed Use Discounts (CUDs) provide discounted pricing in exchange for committing to a continuous resource spend or usage level for a term of 1 or 3 years. Live migration keeps standard instances running during host system maintenance events without downtime.
The workload were a continuous 24/7 mission-critical database or core web tier that could never tolerate sudden interruptions or terminations.
Answer them yourself and get your score the moment you finish. No account needed.
Full access includes
Keep the momentum going with these hand-picked practice scenarios
Last updated