exam questions

Exam AWS Certified Database - Specialty All Questions

View all questions & answers for the AWS Certified Database - Specialty exam

Exam AWS Certified Database - Specialty topic 1 question 283 discussion

Exam question from Amazon's AWS Certified Database - Specialty
Question #: 283
Topic #: 1
[All AWS Certified Database - Specialty Questions]

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?

  • A. Use the AWS Schema Conversion Tool (AWS SCT) and AWS Database Migration Service (AWS DMS) to migrate the database to an Aurora PostgreSQL DB cluster.
  • B. Create an AWS Lambda function to connect to the source database and load the data into the target Aurora PostgreSQL DB cluster.
  • C. Use the PostgreSQL tools pg_dump and pg_restore to migrate to the Aurora PostgreSQL DB cluster.
  • D. Create an Aurora PostgreSQL read replica and promote the read replica to become primary once it is synchronized.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
clarksu
Highly Voted 2 years, 1 month ago
Selected Answer: A
about the concerns about heterogeneous for SCT: Per: https://aws.amazon.com/dms/schema-conversion-tool/ SCT would be used during the migration between: Src : PostgreSQL Des : Aurora MySQL, Aurora PostgreSQL, MySQL, PostgreSQL A is the best practice C downtime,transfer, reload,verify ... too much workloads
upvoted 5 times
...
Sathish_dbs
Most Recent 1 year, 8 months ago
AWS encourages to use AWS services and it might expect you also to answer inline with that so will go with A as there is no proper difference between A and C
upvoted 1 times
...
roymunson
1 year, 8 months ago
Selected Answer: C
We can have downtime in this scenario. In the first link is mentioned that if you have more than 100 GB aws the pg_dump and pg_restore function MAY not be suitable for your usecase, but if time is not the problem here it could be suitable. The second link points out the current bp and there is nothing mentioned about DMS. I'm realy not sure about this one but I would go with c here. https://docs.aws.amazon.com/dms/latest/sbs/chap-manageddatabases.postgresql-rds-postgresql-full-load-pd_dump.html Best Practice: https://aws.amazon.com/blogs/database/best-practices-for-migrating-postgresql-databases-to-amazon-rds-and-amazon-aurora/
upvoted 2 times
...
DanShone
1 year, 8 months ago
Selected Answer: A
Only option here is A C. cannot be used - pg_dump and pg_restore is only for DBs 100 GB or less https://docs.aws.amazon.com/dms/latest/sbs/chap-manageddatabases.postgresql-rds-postgresql-full-load.html
upvoted 1 times
...
Pranava_GCP
1 year, 9 months ago
Selected Answer: A
A. Use the AWS Schema Conversion Tool (AWS SCT) and AWS Database Migration Service (AWS DMS)
upvoted 1 times
...
Windy
1 year, 10 months ago
I will pick A. Per linke, https://docs.aws.amazon.com/dms/latest/sbs/chap-manageddatabases.postgresql-rds-postgresql-full-load-publisher.html, 100G is the threshhold. If it is less than 100G, C works fine. But in this question, the database size is 200G. So I will go with A.
upvoted 1 times
...
manig
2 years ago
NOT A- This is a homogeneous migration . SCT is required only for Heterogeneous migration. NOT D- Can't crate RR using On-prem PG as source NOT B - Irrelevant 'C' is the answer - Easy, Error free and fast migration method
upvoted 1 times
...
aviathor
2 years ago
Selected Answer: C
A. It is quite a bit of work to set up. There is no need for schema conversion since it is a homogeneous migration. B. What? C. If you need to create secondary database objects, then pg_dump and pg_restore is the most appropriate option. However, this option incurs a performance tradeoff compared to other options. D. Creating Aurora read-replicas from self-managed databases is not supported. https://docs.aws.amazon.com/dms/latest/sbs/chap-manageddatabases.postgresql-rds-postgresql-summary.html
upvoted 1 times
cnmc
2 years ago
"There is no need for schema conversion since it is a homogeneous migration" >>> this alone means that you have never used DMS.
upvoted 1 times
...
...
yyy
2 years, 1 month ago
Ans: C - Nothing said about downtime - 200Gb is not so big size
upvoted 1 times
cnmc
2 years ago
"following best practices for database migrations" >>> that's what needed to be said about downtime. And where exactly did you get the notion that 200GB is not "big".
upvoted 1 times
...
...
SeemaDataReader
2 years, 1 month ago
Selected Answer: C
Dont need SCT as the migration is not heterogenous.(PostgreSQL to PostgreSQL)
upvoted 1 times
cnmc
2 years ago
SCT isn't just for conversion... It's also for schema copy, which DMS needs. SCT + DMS is almost always a guaranteed combo.
upvoted 1 times
...
...
Mintwater
2 years, 2 months ago
A. Customers looking to migrate self-managed PostgreSQL databases to Amazon RDS for PostgreSQL or Aurora PostgreSQL, can use one of the three main approaches. Use a native or third-party database migration method such as pg_dump and pg_restore for full load only migrations. Use a managed service such as AWS Database Migration Service (AWS DMS) for full load and ongoing replication. Use a native tool for full load and a managed AWS DMS service for ongoing replication. We call this strategy the hybrid approach. https://docs.aws.amazon.com/dms/latest/sbs/chap-manageddatabases.postgresql-rds-postgresql.html
upvoted 3 times
Mintwater
2 years, 1 month ago
A — no downtime once use the replication for ongoing data change C — downtime
upvoted 2 times
MrAliMohsan
1 year, 11 months ago
I also selected A initially but I think C is the correct answer. Because here the issue is secondary database objects, those would not be migrated properlyu using A.
upvoted 1 times
MrAliMohsan
1 year, 11 months ago
https://docs.aws.amazon.com/dms/latest/sbs/chap-manageddatabases.postgresql-rds-postgresql-summary.html#:~:text=pg_dump%20and%20pg_restore%20is%20the%20most%20appropriate%20option
upvoted 1 times
...
...
...
...
backbencher2022
2 years, 2 months ago
Selected Answer: C
Option C is the best option here. Option A could have been correct if Schema conversion was not mentioned. Option B is not the most efficient way and option D is not applicable as Aurora doesn't support on-prem database source for creating read replica.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...