Professional Cloud Database Engineer free question 7 / 10 · Domain 3: Migrate data solutions
You migrate PostgreSQL tables placed in a custom tablespace to Cloud SQL with DMS. How is the storage location handled?
- The tables are migrated, and a separate Cloud SQL instance is created for each tablespace name
- The tables are migrated, and a tablespace with the same name and the same OS path is created
- The table definitions are migrated, but the row data in the custom tablespace is excluded
- The tables are migrated and land in the default pg_default tablespace on the destination
Show the answer and explanation
Answer: D
Why this is correct
The known limitations page for DMS PostgreSQL says that Cloud SQL does not support custom tablespaces, and that objects in a custom tablespace are all moved to the default pg_default tablespace of Cloud SQL. The table data is migrated, but a design that separated performance by laying out disks does not hold on the destination, so you review designs that depend on physical placement.
Why the other options are wrong
"The table definitions are migrated, but the row data in the custom tablespace is excluded" … Using a custom tablespace is not a reason to leave the row data of a table out of the migration.
"The tables are migrated, and a tablespace with the same name and the same OS path is created" … You cannot have a tablespace with the same name and an OS path of your choice created automatically on the destination.
"The tables are migrated, and a separate Cloud SQL instance is created for each tablespace name" … It is not a process that converts tablespaces into Cloud SQL instances one to one.
Key point
Reassess designs that relied on disk placement for performance isolation. Verify a match of the logical schema separately from a match of the physical placement.