An operator accidentally deleted a critical customer table from a production Cloud SQL for PostgreSQL instance at 14:15 UTC. Automated daily backups and transaction logging (point-in-time recovery) are enabled on the instance. You must restore the database to a new instance to recover the missing data and resume normal operations. Sequence the correct order of steps to complete this recovery process.
- 1Identify the exact UTC timestamp immediately preceding the accidental table deletion from Cloud Audit Logs or database logs.
- 2Run the point-in-time restore command specifying the source instance, a new target instance name, and the selected timestamp.
- 3Connect to the newly created target Cloud SQL instance to verify table schema and data integrity.
- 4Update the application connection settings or Secret Manager configuration to direct database traffic to the new instance.
Cevap
The correct operational sequence is: 1) Identify the exact timestamp prior to deletion, 2) Execute the point-in-time restore to a new Cloud SQL instance, 3) Verify data integrity on the restored instance, and 4) Update application connection parameters to point to the new instance.
The proper administrative workflow begins by determining the target timestamp immediately prior to data corruption. Next, a point-in-time restoration is executed targeting a new instance. Once provisioned, the database contents are validated for completeness, and finally the application connection parameters are updated to route traffic to the restored instance.
Adım Adım Çözüm
Anahtar Kavram
Cloud SQL Point-in-Time Recovery (PITR) and Instance Management