You have a Google Compute Engine virtual machine instance currently in the running state. You issue a stop command on this instance. What is the resulting state and behavior of the instance?
Think about what happens to billing and data when you stop a VM but do not delete it.
Stopping a VM shuts it down and changes its state to stopped. You stop paying for CPU and memory, but persistent disk charges continue because the disk still exists. The VM is not deleted.
In Google Cloud Platform, which instance state means the virtual machine no longer exists and cannot be restarted?
Consider which state means the VM is gone for good.
The terminated state means the VM has been deleted permanently and cannot be restarted. Running means active, stopped means shut down but still exists, paused is not a standard GCP state.
You want to design a system where your VM instances are only charged for CPU and memory during business hours (9am-5pm), but data must persist 24/7. Which instance state transitions should your automation perform daily?
Think about which states preserve data and reduce charges.
Starting instances at 9am and stopping at 5pm keeps data on persistent disks and stops CPU/memory charges outside business hours. Deleting or terminating would lose data or incur recreation overhead.
Which instance state poses the highest security risk if an attacker gains access to your Google Cloud project, assuming no additional protections?
Consider which state allows immediate access to running processes and memory.
A running VM is active and accessible, so an attacker can interact with the live system and data in memory. Stopped or terminated states require additional steps to access data.
Your company requires that VM instances be quickly recoverable after a disaster, with minimal data loss and cost efficiency. Which instance state strategy best meets this requirement?
Balance cost, recovery speed, and data safety.
Stopping instances preserves data on disks and allows quick restart. Regular snapshots add data protection. Running 24/7 is costly, terminating loses data, pausing is not a standard GCP state.