You need to migrate a standalone application's stateful data from a persistent disk located in zone us-central1-a to a newly created Compute Engine VM instance in zone us-central1-b. What is the correct sequence of steps to accomplish this cross-zone disk data migration?
- 1Create a persistent disk snapshot from the source disk in us-central1-a.
- 2Create a new zonal persistent disk in us-central1-b using the snapshot as the source.
- 3Create a new Compute Engine instance in us-central1-b and attach the newly created persistent disk.
Answer
The correct order of steps is: First, create a persistent disk snapshot from the source disk in us-central1-a. Second, create a new zonal persistent disk in us-central1-b using the snapshot as the source. Third, create a new Compute Engine instance in us-central1-b and attach the newly created persistent disk.
The correct sequence requires creating a snapshot first because snapshots are global resources available across all zones in a project. Next, a new zonal persistent disk must be initialized in the target zone (us-central1-b) from that global snapshot. Finally, the Compute Engine instance is launched in us-central1-b with the new disk attached, satisfying the GCP requirement that VMs and persistent disks must reside in the same zone.
Step-by-Step Solution
Key Concept
Compute Engine Persistent Disk Snapshots and Cross-Zone Migration
Estimated Time:1m 0s