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 206 discussion

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

A company plans to use AWS Database Migration Service (AWS DMS) to migrate its database from one Amazon EC2 instance to another EC2 instance as a full load task. The company wants the database to be inactive during the migration. The company will use a dms.t3.medium instance to perform the migration and will use the default settings for the migration.
Which solution will MOST improve the performance of the data migration?

  • A. Increase the number of tables that are loaded in parallel.
  • B. Drop all indexes on the source tables.
  • C. Change the processing mode from the batch optimized apply option to transactional mode.
  • D. Enable Multi-AZ on the target database while the full load task is in progress.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
MultiAZ
1 year, 2 months ago
A Dropping indexes on the source will not help; this is intended for the target.
upvoted 1 times
...
missipssamarsh
1 year, 2 months ago
Selected Answer: B
By default, AWS DMS loads eight tables at a time. You might see some performance improvement by increasing this slightly when using a very large replication server, such as a dms.c4.xlarge or larger instance. However, at some point, increasing this parallelism reduces performance. If your replication server is relatively small, such as a dms.t2.medium, we recommend that you reduce the number of tables loaded in parallel. For a full load task, we recommend that you drop primary key indexes, secondary indexes, referential integrity constraints, and data manipulation language (DML) triggers. Or you can delay their creation until after the full load tasks are complete. You don't need indexes during a full load task, and indexes incur maintenance overhead if they are present. Because the full load task loads groups of tables at a time, referential integrity constraints are violated. Similarly, insert, update, and delete triggers can cause errors, for example if a row insert is triggered for a previously bulk loaded table. Other types of triggers also affect performance due to added processing.
upvoted 3 times
...
rrshah83
1 year, 3 months ago
Selected Answer: B
A is not recommended for smaller instances like t2/t3. C is not correct because they will run in default settings which is transactional mode. D is distractor as it is not relevant for performance.
upvoted 1 times
...
Germaneli
1 year, 6 months ago
Selected Answer: B
x A. Actually, for a medium replication instance it's recommended to decrease the number of tables that are loaded in parallel... It's not evident that this helps. It probably would for very large instances. B. Dropping all indexes on the source tables - YES that clearly helps, because "Indexes, triggers, and referential integrity constraints can affect your migration performance and cause your migration to fail." x C. Change the processing mode from the batch optimized apply option to transactional mode. - NO, the opposite would be good for performance (batch mode). x D. Enable Multi-AZ on the target database while the full load task is in progress. - Nice try - a distractor. Multi-AZ increases reliability, but that's not a direct boost to performance really. Hence, B should be the right answer. https://docs.aws.amazon.com/dms/latest/userguide/CHAP_BestPractices.html
upvoted 3 times
...
Pranava_GCP
1 year, 6 months ago
Selected Answer: A
A. Increase the number of tables that are loaded in parallel. https://docs.aws.amazon.com/dms/latest/userguide/CHAP_BestPractices.html#CHAP_BestPractices.Performance
upvoted 1 times
abhiavril
1 year, 3 months ago
By default, AWS DMS loads eight tables at a time. You might see some performance improvement by increasing this slightly when using a very large replication server, such as a dms.c4.xlarge or larger instance. However, at some point, increasing this parallelism reduces performance. If your replication server is relatively small, such as a dms.t2.medium, we recommend that you reduce the number of tables loaded in parallel.
upvoted 1 times
...
...
aviathor
1 year, 10 months ago
Selected Answer: A
A. Increase the number of tables that are loaded in parallel. - that MIGHT help B. Drop all indexes on the source tables.- dropping indexes on the destination tables would help, but not on the source tables C. Change the processing mode from the batch optimized apply option to transactional mode. - actually it is quite the opposite - the purpose of transactional mode is to preserve data consistency at all time, which is not required here D. Enable Multi-AZ on the target database while the full load task is in progress. - that would slow down the migration since it would consume CPU and IO for other purposes than data migration So A it is...
upvoted 3 times
...
Sathish_dbs
2 years, 2 months ago
xA. Increase the number of tables that are loaded in parallel. - weak instance xB. Drop all indexes on the source tables. - should be on destination C. Change the processing mode from the batch optimized apply option to transactional mode. - database is already off-line and full load mode so temporarily lapse is very much NOT a concern as eventually it gets caught at the end. xD. Enable Multi-AZ on the target database while the full load task is in progress. - it slow down the process
upvoted 1 times
Sathish_dbs
2 years, 2 months ago
https://docs.aws.amazon.com/dms/latest/userguide/CHAP_BestPractices.html
upvoted 1 times
...
Sathish_dbs
2 years, 2 months ago
-AWS DMS loads eight tables at a time - recommend instance dms.c4.xlarge or larger, on dms.t2.medium reduce parellism -Optimizing change processing - batches rather transaction - if you are ok with temporary lapse and disable referential at the destination -multiple tasks for a single migration can improve performance- not related tables in a group in a task -turn off backups and Multi-AZ on the target, also if any logs -full load task, drop primary key indexes, secondary indexes, referential integrity constraints. -On full load+CDC - pause the replication task before the CDC phase to build indexes and create referential integrity constraints before you restart the task -parallel full load for bigger tables based on partitions
upvoted 1 times
...
...
Kanwar_89
2 years, 3 months ago
Selected Answer: A
So i dont get it , A -- may be helpful B - DMS doesnt take indexes into account during migration , unless they are manually created on target C - transaction mode is default setting - no need to switch it from batch D- Not helpful
upvoted 1 times
...
Sab
2 years, 3 months ago
Selected Answer: A
To indicate the maximum number of tables to load in parallel, set the MaxFullLoadSubTasks option. The default is 8; the maximum value is 49. https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.FullLoad.html
upvoted 2 times
...
satishstechie
2 years, 4 months ago
There is no much confusion on the query.. Most of the action items are for the target DB as per the URL.. Answer should be C..
upvoted 1 times
...
Jiang_aws1
2 years, 4 months ago
A : Correct XB Drop index on target DB XC Using batch XD. Not help
upvoted 2 times
...
rags1482
2 years, 5 months ago
B is correct
upvoted 1 times
...
RBSK
2 years, 5 months ago
Selected Answer: C
Optimizing change processing By default, AWS DMS processes changes in a transactional mode, which preserves transactional integrity. If you can afford temporary lapses in transactional integrity, you can use the batch optimized apply option instead. This option efficiently groups transactions and applies them in batches for efficiency purposes. Using the batch optimized apply option almost always violates referential integrity constraints. So we recommend that you turn these constraints off during the migration process and turn them on again as part of the cutover process.
upvoted 2 times
...
cloudsunriser
2 years, 6 months ago
Selected Answer: B
C is incorrect as it's mentioned in questions that DMS is running with default setting and default is transactional mode. D will have no effect on performance. A will help but dms.t3.medium is not strong enough to handle excess parallelism. It may in fact degrade performance. With all these I feel B seems to be answer. Even with B I guess best practice will be to drop indexes on Destination side and not on source. But It's mentioned database will be inactive I believe dropping indexes on source and recreating later can help. https://docs.aws.amazon.com/dms/latest/userguide/CHAP_BestPractices.html#CHAP_BestPractices.Performance
upvoted 3 times
hogtrough
2 years, 4 months ago
They mention it's running with default so that you understand what's being used currently. Changing to batch optimized from transactional will improve performance as described.
upvoted 1 times
hogtrough
2 years, 4 months ago
Had this backwards. B is correct.
upvoted 1 times
...
...
...
saran123
2 years, 6 months ago
Selected Answer: B
For a full load task, we recommend that you drop primary key indexes, secondary indexes, referential integrity constraints, and data manipulation language (DML) triggers. Or you can delay their creation until after the full load tasks are complete. You don't need indexes during a full load task, and indexes incur maintenance overhead if they are present. Because the full load task loads groups of tables at a time, referential integrity constraints are violated. Similarly, insert, update, and delete triggers can cause errors, for example if a row insert is triggered for a previously bulk loaded table. Other types of triggers also affect performance due to added processing. https://docs.aws.amazon.com/dms/latest/userguide/CHAP_BestPractices.html
upvoted 1 times
RBSK
2 years, 5 months ago
Whole phrase mentioned above, in the doc refers to the target, not the source.
upvoted 2 times
RBSK
2 years, 5 months ago
I will go with C - Same Doc explains it - Optimizing change processing By default, AWS DMS processes changes in a transactional mode, which preserves transactional integrity. If you can afford temporary lapses in transactional integrity, you can use the batch optimized apply option instead. This option efficiently groups transactions and applies them in batches for efficiency purposes. Using the batch optimized apply option almost always violates referential integrity constraints. So we recommend that you turn these constraints off during the migration process and turn them on again as part of the cutover process.
upvoted 1 times
...
...
...
yxyj
2 years, 6 months ago
B, t3 medium still too weak to handle large parallel workload.
upvoted 2 times
...
saran123
2 years, 6 months ago
I go with A, its mentioned as Full load task and not CDC, so as per this link, it should be A https://docs.aws.amazon.com/dms/latest/userguide/CHAP_BestPractices.html#CHAP_BestPractices.Performance
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago