Migrating Cloud SQL PostgreSQL PITR Logs to Cloud Storage
Short answer
C Upgrade to Enterprise Plus Edition to automatically migrate PITR logs to Cloud Storage while preserving existing recovery capabilities.
Question
Key Takeaways
The exam tests knowledge that WAL storage location is tied to the instance edition; only Enterprise Plus uses Cloud Storage for WALs.
Learn how to move Cloud SQL for PostgreSQL PITR logs from disk to Cloud Storage by upgrading to Enterprise Plus Edition, ensuring no data loss.
Common mistake: Choosing to clone the instance (A) or disable/re-enable PITR (D), which either fails to change the storage backend or risks losing historical recovery points.
Expert Analysis
The question requires migrating Point-in-Time Recovery (PITR) logs from local persistent disk to Cloud Storage for a PostgreSQL Enterprise Edition instance. According to Google Cloud documentation, the storage location of Write-Ahead Logs (WAL) is determined by the edition of the Cloud SQL instance. Specifically, Enterprise Plus instances automatically store WALs in Cloud Storage to reduce latency and improve performance, whereas standard Enterprise instances store them on the instance's local disk.
To achieve this migration without losing current PITR logs or compromising recoverability, you must upgrade the instance edition. Option C suggests upgrading to Enterprise Plus Edition. This is the correct action because the upgrade process preserves the existing data and WAL history while switching the storage mechanism for future logs to Cloud Storage. The comments correctly identify that this edition change triggers the automatic switch in log storage location.
Option A (Cloning) is incorrect because cloning creates a copy but does not inherently change the underlying edition's default storage behavior unless explicitly configured during creation, and it introduces unnecessary complexity and potential downtime compared to an in-place upgrade. Option B (Changing retention period) only affects how long logs are kept, not where they are stored. Option D (Disabling and re-enabling PITR) is risky; disabling PITR typically involves deleting existing WAL logs, which would compromise the ability to recover to points in time prior to the re-enablement, thus violating the constraint of not losing current logs.
Official Reference
https://cloud.google.com/sql/docs/postgres/backup-recovery/pitr#log-storage-for-pitr
This link opens the official vendor documentation in a new tab.
Exam Strategy
When a question asks about changing infrastructure defaults like log storage or networking, check if the feature is tied to a specific tier or edition. Upgrading tiers often enables new capabilities automatically without manual configuration steps like cloning or toggling features.
Frequently Asked Questions
Does upgrading from Enterprise to Enterprise Plus cause downtime?
Can I use Cloud Storage for WALs with Standard Edition?
Community Votes
60% of anonymous learners picked answer C. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 6 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 6
-
yokoyan 👍 3 Answered CC is correct
-
yokoyan 👍 2https://cloud.google.com/sql/docs/postgres/backup-recovery/pitr#log-storage-for-pitr
-
AwesomeGCP 👍 1 Answered CWhy Option C is CorrectNative Cloud Storage Retention for Enterprise Plus: All Cloud SQL Enterprise Plus edition instances store write-ahead logs (WAL) used for point-in-time recovery (PITR) directly in Cloud Storage rather than on the persistent instance disk. Preserving Recoverability and Existing Logs: Performing an in-place upgrade from Enterprise Edition to Enterprise Plus Edition automatically switches the WAL storage location to Cloud Storage going forward without deleting your existing transaction logs or compromising the existing PITR recovery window.
-
Chamiel1028 👍 1 Answered AA: Clone + configure PITR retention Option A: Clone the instance and create a new instance with PITR retention set to Cloud Storage Step 1: Clone the existing instance → preserves all current data and WAL logs Step 2: On the cloned instance, enable PITR with retention settings → Cloud SQL automatically stores WAL logs in Cloud Storage Outcome: No loss of existing WAL logs Future PITR logs go to Cloud Storage Recoverability is maintained This satisfies both security/compliance and data retention requirements.
-
iwork 👍 1 Answered DGoogle recommends to upgrade version to switch log storage location automaticly. You also can migrate logs without downtime using gcloud command. However, it also depends on retention period (they recommend to switch it to 1 day). For more details see the link beliw: https://cloud.google.com/sql/docs/postgres/backup-recovery/pitr
Show 1 more comment
-
AwesomeGCP 👍 1 Answered CThe correct answer is C. Upgrade to Enterprise Plus Edition.
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.