ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 279 - DBS-C01 discussion

Report
Export

A company uses an Amazon RDS for PostgreSQL database in the us-east-2 Region. The company wants to have a copy of the database available in the us-west-2 Region as part of a new disaster recovery strategy.

A database architect needs to create the new database. There can be little to no downtime to the source database. The database architect has decided to use AWS Database Migration Service (AWS DMS) to replicate the database across Regions. The database architect will use full load mode and then will switch to change data capture (CDC) mode.

Which parameters must the database architect configure to support CDC mode for the RDS for PostgreSQL database? (Choose three.)

A.
Set wal_level = logical.
Answers
A.
Set wal_level = logical.
B.
Set wal_level = replica.
Answers
B.
Set wal_level = replica.
C.
Set max_replication_slots to 1 or more, depending on the number of DMS tasks.
Answers
C.
Set max_replication_slots to 1 or more, depending on the number of DMS tasks.
D.
Set max_replication_slots to 0 to support dynamic allocation of slots.
Answers
D.
Set max_replication_slots to 0 to support dynamic allocation of slots.
E.
Set wal_sender_timeout to 20,000 milliseconds.
Answers
E.
Set wal_sender_timeout to 20,000 milliseconds.
F.
Set wal_sender_timeout to 5,000 milliseconds.
Answers
F.
Set wal_sender_timeout to 5,000 milliseconds.
Suggested answer: A, C, E

Explanation:

Answer:: A, C, EExplanation from Amazon documents:To enable CDC mode for RDS for PostgreSQL database, the database architect needs to configure the following parameters12:Set wal_level = logical. This parameter determines how much information is written to the write-ahead log (WAL). For CDC mode, the wal_level must be set to logical, which enables logical decoding of the WAL and allows AWS DMS to read changes from the source database1.Set max_replication_slots to 1 or more, depending on the number of DMS tasks. This parameter specifies the maximum number of replication slots that the source database can support. A replication slot is a data structure that records the state of a replication stream. AWS DMS uses replication slots to set up logical replication and track changes in the source database. The max_replication_slots parameter must be equal to or greater than the number of DMS tasks that use CDC mode for the source database1.Set wal_sender_timeout to 20,000 milliseconds. This parameter specifies the amount of time that a WAL sender process waits for feedback from a WAL receiver process before terminating the connection. A WAL sender process is a background process that streams WAL data from the source database to AWS DMS. A WAL receiver process is a background process that receives WAL data from a WAL sender process and writes it to a local file. The wal_sender_timeout parameter must be set to a value greater than 10,000 milliseconds (10 seconds) to prevent connection timeouts during CDC mode2.Therefore, option A, C, and E are the correct parameters to support CDC mode for RDS for PostgreSQL database. Option B is incorrect because wal_level = replica is not sufficient for logical decoding and CDC mode. Option D is incorrect because max_replication_slots must be a positive integer, not zero. Option F is incorrect because wal_sender_timeout = 5,000 milliseconds is too low and may cause connection timeouts during CDC mode.

asked 16/09/2024
Asif Ibrahim
47 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first