Google ACE Practice Question: Ensuring Successful Operation of a Cloud Solution
You need to create a snapshot of a persistent disk attached to a running Compute Engine instance. The disk is used by a production database; you want minimal impact. What should you do?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Stop the instance, create the snapshot using gcloud compute disks snapshot, then restart the instance.
Creating a snapshot of a disk in use is possible, but for data consistency, it's recommended to stop the instance or at least freeze the filesystem. However, the question says 'minimal impact', so the best practice is to stop the instance. But the correct answer reflects that snapshots can be taken from attached disks, but for database consistency, stop is recommended. Let's choose the safer answer: stop the instance.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Detach the disk, create the snapshot, then reattach.
Why it's wrong here
Detaching a persistent disk from a running instance is disruptive and risky: if the disk is in use by the OS or applications, the forced unmount can trigger I/O errors and unexpected application crashes. It also doesn't solve the consistency problem because the filesystem may still have unflushed buffers that are lost when the disk is detached. Google Cloud snapshots work on attached disks without detachment, so this extra step only adds downtime and danger without improving snapshot quality. Stop the instance instead to cleanly flush all writes.
- ✗
Create the snapshot while the instance is running; snapshots are always consistent.
Why it's wrong here
The claim that snapshots are 'always consistent' misrepresents a crucial distinction: Google Cloud snapshots are crash-consistent at the storage level, meaning they represent a valid point-in-time recovery point, but they are not application-consistent. When the instance is running and the disk is being written, a snapshot may reflect a state where a database has committed a log record but has not yet flushed the data page, leaving the database in an inconsistent state. So creating a snapshot while the instance is running is safe in terms of storage integrity, but it does not guarantee that your application can cleanly recover from that snapshot.
- ✗
Use gcloud compute disks snapshot without stopping; data will be consistent.
Why it's wrong here
Running `gcloud compute disks snapshot` on a running instance produces a crash-consistent snapshot, not a guaranteed application-consistent one. The snapshot is taken at a point in time, but it does not instruct the guest OS to flush filesystem caches, journal entries, or database transaction logs. If the instance is actively processing writes, the captured state may contain half-committed transactions or incomplete file operations that are not recoverable. Therefore, this command alone cannot be assumed to deliver 'consistent' data in the application sense.
- ✓
Stop the instance, create the snapshot using gcloud compute disks snapshot, then restart the instance.
Why this is correct
Stopping the instance is the correct approach because it triggers a clean guest OS shutdown, allowing filesystem caches to be flushed and applications to close files gracefully. After the instance is in the `TERMINATED` state, the persistent disk is quiescent, and running `gcloud compute disks snapshot` captures a point-in-time image that is both crash-consistent and application-consistent for most setups. Once the snapshot completes, you can restart the instance with `gcloud compute instances start` and resume operations with confidence that the snapshot reflects a known-good state.
Go deeper
Related to this question
Learn chapter
Google Compute Engine
Key term
Snapshot
A snapshot is a point-in-time copy of a system's data or state, used for backup, recovery, or testing without disrupting the original.
Key term
Persistent Disk
Persistent Disk is a durable, high-performance block storage service for Google Cloud virtual machines that retains data even after the VM is shut down or deleted.
About these practice questions
This ACE question is part of Courseiva's 769-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This ACE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the ACE exam.