Google Cloud Professional Cloud Database Engineer — Question 122

You are migrating your 2 TB on-premises PostgreSQL cluster to Compute Engine. You want to set up your new environment in an Ubuntu virtual machine instance in Google Cloud and seed the data to a new instance. You need to plan your database migration to ensure minimum downtime. What should you do?

Answer options

Correct answer: C

Explanation

The correct answer is C because it allows for a minimal downtime migration by taking a full backup while the database is online and syncing write-ahead logs. Options A and B require the database to be offline for the export, leading to unnecessary downtime. Option D, while similar, includes steps that would not be effective for minimizing downtime, such as taking an export while the database is online.