Google Associate Cloud Engineer Question 183
Select 3Google Cloud PlatformYou are managing a cloud infrastructure on Google Cloud Platform and need to create a backup of your Compute Engine VM's persistent disk. You want to ensure that the backup is consistent and can be used to restore the disk to its current state if needed. What steps should you take to create an effective snapshot of the persistent disk?
- A
Stop the VM instance before creating the snapshot.
- B
Create a snapshot directly from the Google Cloud Console without stopping the VM.
- C
Use a pre-existing snapshot to create a new snapshot.
- D
Ensure the disk is not attached to more than one VM instance in read/write mode before taking a snapshot.
- E
Schedule the snapshot to occur during off-peak hours to minimize performance impact.
Show answer and explanation
Correct answers: A, D, E
Explanation
Creating consistent snapshots involves ensuring no ongoing write operations to the disk, which can be achieved by stopping the VM. Additionally, it's important to avoid having the disk attached to multiple VMs in read/write mode to prevent inconsistencies. Scheduling the snapshot during off-peak hours is a best practice to reduce performance impact on the application workload.
- A. Correct.
Stopping the VM ensures that there are no in-flight writes, providing a consistent snapshot.
- B. Incorrect.
While you can create a snapshot without stopping the VM, it's recommended to stop it for consistency.
- C. Incorrect.
A snapshot must be created from the actual disk, not from another snapshot.
- D. Correct.
A disk attached in read/write mode to multiple VMs can lead to inconsistencies, so ensure it's attached to only one VM or detached.
- E. Correct.
Scheduling snapshots during off-peak hours minimizes the impact on performance and reduces the load on the system.