nerdexam
Amazon

DBS-C01 · Question #292

A company is migrating its 200 GB on-premises PostgreSQL database to Amazon Aurora PostgreSQL. The original database columns include NOT NULL and foreign key constraints. A database administrator…

The correct answer is C. Use the PostgreSQL tools pg_dump and pg_restore to migrate to the Aurora PostgreSQL DB. To migrate a 200 GB on-premises PostgreSQL database with NOT NULL and foreign key constraints to Amazon Aurora PostgreSQL following best practices, use the native PostgreSQL tools pg_dump and pg_restore.

Submitted by helene.fr· Mar 6, 2026Deployment and Migration

Question

A company is migrating its 200 GB on-premises PostgreSQL database to Amazon Aurora PostgreSQL. The original database columns include NOT NULL and foreign key constraints. A database administrator needs to complete the migration while following best practices for database migrations. Which option meets these requirements to migrate the database to AWS?

Options

  • AUse the AWS Schema Conversion Tool (AWS SCT) and AWS Database Migration Service (AWS
  • BCreate an AWS Lambda function to connect to the source database and load the data into the
  • CUse the PostgreSQL tools pg_dump and pg_restore to migrate to the Aurora PostgreSQL DB
  • DCreate an Aurora PostgreSQL read replica and promote the read replica to become primary once

How the community answered

(32 responses)
  • A
    3% (1)
  • C
    91% (29)
  • D
    6% (2)

Why each option

To migrate a 200 GB on-premises PostgreSQL database with NOT NULL and foreign key constraints to Amazon Aurora PostgreSQL following best practices, use the native PostgreSQL tools pg_dump and pg_restore.

AUse the AWS Schema Conversion Tool (AWS SCT) and AWS Database Migration Service (AWS

AWS Schema Conversion Tool (SCT) and AWS Database Migration Service (DMS) are primarily designed for heterogeneous database migrations, where schema and code conversion is needed. For a homogeneous PostgreSQL to Aurora PostgreSQL migration, native tools are often more direct and efficient as no schema conversion is required.

BCreate an AWS Lambda function to connect to the source database and load the data into the

Creating an AWS Lambda function to migrate 200 GB of data is an inefficient and overly complex approach for a large database migration and is not a recommended best practice.

CUse the PostgreSQL tools pg_dump and pg_restore to migrate to the Aurora PostgreSQL DBCorrect

For homogeneous migrations (PostgreSQL to PostgreSQL), pg_dump and pg_restore are the native, best-practice tools. They effectively capture and restore schema definitions, including NOT NULL and foreign key constraints, and data, ensuring a faithful migration to a compatible target like Aurora PostgreSQL. This approach is reliable for preserving all PostgreSQL-specific features.

DCreate an Aurora PostgreSQL read replica and promote the read replica to become primary once

An Aurora PostgreSQL read replica can only be created from an existing Aurora PostgreSQL cluster or an RDS PostgreSQL instance within AWS, not directly from an on-premises PostgreSQL database.

Concept tested: Homogeneous PostgreSQL migration using native tools

Source: https://www.postgresql.org/docs/current/app-pgdump.html

Topics

#PostgreSQL migration#Aurora PostgreSQL#pg_dump#pg_restore

Community Discussion

No community discussion yet for this question.

Full DBS-C01 Practice