0
0
GCPcloud~20 mins

Preemptible and Spot VMs in GCP - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Spot and Preemptible VM Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
Behavior of Preemptible VMs on GCP

What happens to a Google Cloud preemptible VM when Google needs the resources back?

AThe VM is terminated with a 30-second preemption notice and cannot be restarted.
BThe VM is stopped and can be restarted later manually.
CThe VM is paused and resumes automatically when resources are free.
DThe VM is migrated live to another host without downtime.
Attempts:
2 left
💡 Hint

Think about how preemptible VMs are designed for cost savings but with limited availability.

Architecture
intermediate
2:00remaining
Best Use Case for Spot VMs

Which workload is best suited to run on Google Cloud Spot VMs?

AA critical database server requiring high availability.
BA web server handling live user traffic with low latency needs.
CA stateful application storing user session data.
DBatch processing jobs that can be restarted if interrupted.
Attempts:
2 left
💡 Hint

Consider the interruption nature of Spot VMs and which workloads tolerate it.

security
advanced
2:00remaining
Security Implications of Using Preemptible VMs

Which security risk is most relevant when using preemptible VMs in Google Cloud?

AIncreased risk of VM hijacking due to longer uptime.
BData loss due to unexpected VM termination without shutdown.
CExposure to network attacks because preemptible VMs bypass firewalls.
DAutomatic disabling of encryption on preemptible VM disks.
Attempts:
2 left
💡 Hint

Think about what happens when a preemptible VM is stopped abruptly.

Best Practice
advanced
2:00remaining
Handling Spot VM Interruptions Gracefully

What is the best practice to handle interruptions of Spot VMs in Google Cloud?

AUse a shutdown script to save state and shut down cleanly on interruption notice.
BDisable automatic updates to prevent VM restarts during Spot interruptions.
CManually monitor VM status and restart interrupted VMs yourself.
DIgnore interruptions since Spot VMs never send warnings before termination.
Attempts:
2 left
💡 Hint

Spot VMs provide a short warning before termination. How can you use that?

🧠 Conceptual
expert
2:00remaining
Difference Between Preemptible and Spot VMs

Which statement correctly describes a key difference between Google Cloud Preemptible VMs and Spot VMs?

ASpot VMs cannot be used with managed instance groups; Preemptible VMs can.
BSpot VMs are always cheaper than Preemptible VMs and never get interrupted.
CPreemptible VMs have a fixed maximum runtime of 24 hours; Spot VMs do not have a fixed maximum runtime.
DPreemptible VMs support live migration; Spot VMs do not.
Attempts:
2 left
💡 Hint

Consider runtime limits and interruption behavior differences.