Courseiva

CCNA Deployment and Migration Questions

75 of 341 questions · Page 3/5 · Deployment and Migration · Answers revealed

151
MCQeasy

A company is migrating a PostgreSQL database to Amazon Aurora PostgreSQL. To minimize downtime, they plan to use the AWS DMS with change data capture (CDC). During the full load phase, DMS reports an error: 'Failed to add foreign key constraint'. What is the most likely cause?

A.CDC is incompatible with foreign key constraints
B.Referential integrity violations in the source data
C.The target table lacks a primary key
D.Data type mismatch between source and target
AnswerB

DMS applies constraints after loading data, and if data violates them, the task fails.

Why this answer

The error 'Failed to add foreign key constraint' during the full load phase of AWS DMS indicates that the source data contains referential integrity violations. DMS attempts to apply foreign key constraints on the target Aurora PostgreSQL after loading data, but if parent-child relationships are broken (e.g., orphan rows), the constraint creation fails. This is a common issue when migrating databases with existing data integrity problems, as DMS does not automatically validate or fix source data.

Exam trap

The trap here is that candidates assume the error is due to a DMS limitation or configuration issue, rather than recognizing it as a data integrity problem in the source database that must be resolved before migration.

How to eliminate wrong answers

Option A is wrong because CDC (change data capture) is fully compatible with foreign key constraints; DMS handles constraints by applying them after the full load and during ongoing replication. Option C is wrong because the target table lacking a primary key would cause a different error (e.g., 'No primary key defined' or issues with CDC), not a foreign key constraint failure. Option D is wrong because data type mismatches between source and target typically cause row-level conversion errors or truncation warnings, not a failure to add a foreign key constraint.

152
MCQmedium

A company is migrating a 500 GB on-premises PostgreSQL database to Amazon RDS for PostgreSQL. The migration must have minimal downtime and support ongoing replication after the initial load. Which AWS service should be used?

A.AWS Schema Conversion Tool (SCT)
B.AWS Database Migration Service (DMS) with full load only
C.AWS Database Migration Service (DMS) with ongoing replication
D.AWS Glue
AnswerC

DMS supports full load plus CDC for minimal downtime.

Why this answer

AWS Database Migration Service (DMS) with ongoing replication (change data capture, CDC) is required because the scenario demands minimal downtime and continuous synchronization after the initial 500 GB load. DMS uses transaction logs (e.g., PostgreSQL WAL) to capture and apply ongoing changes, enabling a near-zero-duration cutover. Full load only (Option B) would cause downtime during the final sync and cannot support ongoing replication.

Exam trap

The trap here is that candidates often confuse 'full load only' with 'full load + CDC' and overlook the requirement for ongoing replication, or they mistakenly think AWS SCT handles data migration when it only handles schema conversion.

How to eliminate wrong answers

Option A is wrong because AWS Schema Conversion Tool (SCT) is used for converting database schema and code (e.g., from Oracle to PostgreSQL), not for migrating data with ongoing replication. Option B is wrong because AWS DMS with full load only performs a one-time snapshot and does not capture ongoing changes, resulting in downtime during the final sync and no support for ongoing replication. Option D is wrong because AWS Glue is a serverless ETL service designed for batch data processing and transformation, not for continuous database replication or minimal-downtime migrations.

153
Drag & Dropmedium

Arrange the steps to configure a read replica for an Amazon RDS for PostgreSQL DB instance in a different AWS Region in the correct order.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4

Why this order

Cross-Region read replicas require backups enabled on the source, then creating a replica in another Region and monitoring lag.

154
MCQeasy

A company wants to migrate its Oracle data warehouse to Amazon Redshift. The source database is 10 TB and has many complex stored procedures. Which AWS service should be used primarily for converting the stored procedures to Amazon Redshift compatible code?

A.AWS Glue
B.AWS Database Migration Service (AWS DMS)
C.Amazon Redshift COPY command
D.AWS Schema Conversion Tool (AWS SCT)
AnswerD

SCT converts schema and code objects like stored procedures to target engine syntax.

Why this answer

AWS Schema Conversion Tool (AWS SCT) is the correct choice because it is specifically designed to convert database schemas and complex code objects, such as stored procedures, functions, and packages, from one database engine to another. For an Oracle-to-Amazon Redshift migration, AWS SCT can automatically translate Oracle PL/SQL stored procedures into Amazon Redshift compatible SQL (e.g., using PL/pgSQL or SQL functions), handling syntax differences and unsupported features. This makes it the primary tool for converting the 10 TB data warehouse's stored procedures, whereas other services focus on data movement or ETL, not schema and code conversion.

Exam trap

The trap here is that candidates often confuse AWS DMS (which moves data) with AWS SCT (which converts schema and code), leading them to choose DMS for stored procedure conversion when DMS cannot translate procedural logic at all.

How to eliminate wrong answers

Option A is wrong because AWS Glue is an ETL (extract, transform, load) service used for data preparation and transformation, not for converting database schema objects like stored procedures. Option B is wrong because AWS Database Migration Service (AWS DMS) handles continuous data replication and migration of table data, but it does not convert stored procedures or other schema-level code. Option C is wrong because the Amazon Redshift COPY command is used to load data from flat files into Redshift tables, and it has no capability to convert or translate stored procedures from Oracle.

155
Multi-Selectmedium

A company is migrating an on-premises Oracle database to Amazon RDS for Oracle. They need to minimize downtime. Which TWO actions should they take?

Select 2 answers
A.Set up AWS DMS with change data capture (CDC) from the source
B.Increase the allocated storage on the target RDS instance to improve performance
C.Use AWS SCT to validate and convert the schema before migration
D.Deploy the target RDS instance as a Single-AZ to simplify replication
E.Disable Oracle archivelog mode to speed up data transfer
AnswersA, C

CDC enables near-zero downtime migration.

Why this answer

AWS DMS with change data capture (CDC) enables continuous replication of ongoing changes from the source Oracle database to the target RDS instance. This allows the source to remain fully operational during the bulk load phase and then switch over with minimal downtime, as only the final CDC catch-up is needed before cutover.

Exam trap

The trap here is that candidates may think disabling archivelog mode speeds up data transfer (Option E), but in reality, CDC requires archivelogs to capture ongoing changes, and disabling them would force a full stop-and-copy migration, increasing downtime.

156
Multi-Selectmedium

A company is migrating an on-premises PostgreSQL database to Amazon RDS for PostgreSQL. The database is 2 TB and the migration must have minimal downtime. Which TWO AWS services should be used together to accomplish this?

Select 2 answers
A.AWS CloudFormation
B.AWS DataSync
C.AWS Schema Conversion Tool (AWS SCT)
D.AWS CloudEndure Migration
E.AWS Database Migration Service (AWS DMS)
AnswersC, E

AWS SCT can assess and convert schema if needed, though not strictly required for homogeneous migration.

Why this answer

AWS Schema Conversion Tool (AWS SCT) is used to convert the source PostgreSQL schema and objects to be compatible with Amazon RDS for PostgreSQL, handling any heterogenous elements. AWS Database Migration Service (AWS DMS) then performs the continuous data replication from the on-premises database to RDS, enabling minimal downtime by keeping the target in sync until a cutover.

Exam trap

The trap here is that candidates may confuse AWS DataSync (file-level sync) or CloudEndure (server replication) with database-specific migration tools, overlooking that only DMS provides CDC for relational databases and SCT handles schema conversion.

157
MCQeasy

A developer is migrating a self-managed MongoDB database to Amazon DocumentDB. The database contains 500 GB of data. What is the most efficient method to perform the initial data load?

A.Take a file system snapshot and restore to DocumentDB
B.Use mongodump and mongorestore
C.Use AWS DMS with full load
D.Use mongodump with --out and then import using mongoimport
AnswerB

These native tools are efficient and compatible with DocumentDB.

Why this answer

Mongodump and mongorestore are the native MongoDB tools designed for logical backups and restores, and Amazon DocumentDB is wire-protocol compatible with MongoDB 3.6 and 4.0. This method efficiently exports the 500 GB dataset as BSON files and imports them directly into DocumentDB, preserving indexes and data types without the overhead of file-system-level differences.

Exam trap

The trap here is that candidates confuse file system snapshots (Option A) with database-native snapshots, or assume AWS DMS (Option C) is the universal migration tool, when in fact DocumentDB's MongoDB compatibility requires MongoDB-native tools for the most efficient and reliable initial load.

How to eliminate wrong answers

Option A is wrong because file system snapshots capture the underlying storage format (e.g., WiredTiger files), which is not compatible with DocumentDB's architecture; DocumentDB does not support restoring from a raw file system snapshot. Option C is wrong because AWS DMS with full load is designed for relational databases and has limited support for MongoDB-to-DocumentDB migrations; it can introduce schema mapping issues and is less efficient for large-scale document databases. Option D is wrong because mongodump with --out exports data as JSON/CSV files, and mongoimport is used for importing those formats, but this approach loses BSON-specific data types (e.g., ObjectId, Date) and is slower than the native BSON restore with mongorestore.

158
MCQhard

A company is migrating a 5 TB MongoDB database to Amazon DocumentDB. They have a short maintenance window and need to minimize downtime. Which migration strategy should be used?

A.Use AWS DMS to perform a full load and then ongoing replication from the source MongoDB.
B.Use the MongoDB change streams feature to replicate changes to DocumentDB in real time.
C.Set up AWS Direct Connect to the source and use mongorestore directly to DocumentDB.
D.Export the data using mongodump, transfer to Amazon S3, and import using mongorestore.
AnswerA

DMS supports MongoDB as source and DocumentDB as target with ongoing replication.

Why this answer

AWS DMS supports MongoDB as a source and Amazon DocumentDB as a target, enabling a full load of the 5 TB database followed by ongoing change data capture (CDC) using MongoDB's oplog. This minimizes downtime by keeping the target nearly synchronized during the migration window, allowing a final cutover with minimal interruption.

Exam trap

The trap here is that candidates may assume MongoDB change streams are a universal replication mechanism, but DocumentDB does not support consuming them as a target, and AWS DMS is the only fully managed service that provides both full load and ongoing replication for this specific source-target pair.

How to eliminate wrong answers

Option B is wrong because MongoDB change streams are not natively supported by Amazon DocumentDB as a replication target; DocumentDB uses its own change streams, and there is no built-in mechanism to consume MongoDB change streams for real-time replication. Option C is wrong because AWS Direct Connect provides a dedicated network connection but does not solve the migration tooling issue; mongorestore directly to DocumentDB would require stopping writes on the source, causing downtime, and does not support ongoing replication. Option D is wrong because exporting with mongodump and importing with mongorestore is a batch process that requires the source database to be quiesced or taken offline, resulting in significant downtime for a 5 TB dataset, and it lacks ongoing replication capability.

159
Multi-Selecthard

Which THREE actions should be taken to prepare for a migration of an on-premises MySQL database to Amazon RDS for MySQL with minimal downtime using AWS DMS?

Select 3 answers
A.Enable binary logging on the source MySQL database
B.Set up an SSH tunnel or VPN for secure connectivity between DMS and the source
C.Create a database user with REPLICATION CLIENT and REPLICATION SLAVE privileges
D.Disable foreign key checks on the source database
E.Take a full backup of the source database
AnswersA, B, C

Binary logging is required for DMS to capture changes.

Why this answer

AWS DMS requires binary logging (binlog) to be enabled on the source MySQL database for ongoing replication (change data capture). DMS reads the binary log to capture inserts, updates, and deletes in near real-time, which is essential for minimizing downtime during migration.

Exam trap

The trap here is that candidates may think a full backup is necessary for migration, but DMS handles the full load itself, and the key to minimal downtime is enabling binary logging and proper privileges for continuous replication.

160
MCQeasy

A company needs to migrate an on-premises PostgreSQL database to Amazon Aurora PostgreSQL with minimal downtime. Which AWS service should be used for the ongoing replication?

A.AWS Glue.
B.AWS Backup.
C.AWS Database Migration Service (DMS).
D.AWS Schema Conversion Tool (SCT).
AnswerC

DMS provides CDC for ongoing replication.

Why this answer

AWS Database Migration Service (DMS) supports ongoing replication (change data capture, CDC) from an on-premises PostgreSQL source to an Amazon Aurora PostgreSQL target using logical replication slots. This allows you to keep the target database synchronized with minimal downtime after the initial full load, making it the correct choice for a migration with minimal downtime.

Exam trap

The trap here is that candidates often confuse AWS DMS with AWS SCT, thinking SCT handles both schema conversion and data migration, but SCT only converts schemas and generates migration scripts, while DMS handles the actual data movement and ongoing replication.

How to eliminate wrong answers

Option A is wrong because AWS Glue is a serverless data integration service for ETL (extract, transform, load) jobs, not a database migration tool; it does not support ongoing replication for live databases. Option B is wrong because AWS Backup is a centralized backup service for creating and managing backups, not for continuous replication or migration with minimal downtime. Option D is wrong because the AWS Schema Conversion Tool (SCT) is used to convert database schemas from one engine to another (e.g., Oracle to Aurora), but it does not perform data migration or ongoing replication.

161
Multi-Selecteasy

A company is planning to migrate a 1 TB SQL Server database to Amazon RDS for SQL Server. Which TWO factors should be considered when choosing the migration approach?

Select 2 answers
A.The number of concurrent users accessing the database
B.The need to modify the database schema for compatibility
C.Whether the database uses SQL Server Agent jobs
D.The acceptable downtime window for the application
E.The version of the source SQL Server instance
AnswersB, D

Schema changes may be required and SCT can assist.

Why this answer

When migrating a SQL Server database to Amazon RDS, certain features like full-text search, CLR assemblies, or deprecated data types may not be supported or require schema modifications. RDS for SQL Server does not support all SQL Server features (e.g., FileStream, Service Broker, or cross-database references), so the schema must be reviewed and potentially altered to ensure compatibility before migration.

Exam trap

The trap here is that candidates confuse operational factors (like concurrent users or version compatibility) with migration approach decisions, when the key differentiator is whether the source database schema and features are fully supported by the RDS platform.

162
MCQmedium

An IAM policy is attached to a user who is deploying an RDS database. The user attempts to create a DB instance named 'my-database' using the AWS CLI. Which statement is true?

A.The user cannot create the DB instance because the Deny statement applies to all actions
B.The user cannot create the DB instance because the resource ARN does not exist yet
C.The user cannot create the DB instance because of an error in the policy
D.The user can create the DB instance
AnswerD

The Allow statement explicitly allows CreateDBInstance on the resource.

Why this answer

The IAM policy explicitly allows the `rds:CreateDBInstance` action for the resource `arn:aws:rds:us-east-1:123456789012:db:my-database`. The Deny statement only applies to actions not listed in the Allow statement, but since the specific action and resource match the Allow, the user is permitted to create the DB instance. AWS IAM evaluates policies with an explicit Allow overriding an implicit Deny, and the Deny here does not block the allowed action.

Exam trap

The trap here is that candidates assume a Deny statement always overrides an Allow, but they overlook that the Deny in this policy only applies to actions not explicitly allowed, and the specific Allow for `rds:CreateDBInstance` on the matching resource ARN permits the operation.

How to eliminate wrong answers

Option A is wrong because the Deny statement does not apply to all actions; it only denies actions not explicitly allowed, and the Allow statement explicitly permits `rds:CreateDBInstance` for the specified resource. Option B is wrong because the resource ARN in the policy does not need to exist at the time of policy evaluation; IAM evaluates the ARN pattern against the request, and the ARN `arn:aws:rds:us-east-1:123456789012:db:my-database` matches the intended resource even before creation. Option C is wrong because there is no error in the policy; the policy syntax is valid, and the combination of Allow and Deny statements is correctly structured to permit the specific action.

163
MCQeasy

A company wants to migrate an on-premises Oracle database to Amazon RDS for Oracle with minimal downtime. Which AWS service should be used for the migration?

A.AWS Systems Manager
B.AWS Schema Conversion Tool (SCT)
C.AWS Database Migration Service (DMS)
D.AWS Service Control Policies (SCP)
AnswerC

DMS supports minimal downtime migrations.

Why this answer

AWS Database Migration Service (DMS) is the correct choice because it is specifically designed to migrate databases to AWS with minimal downtime by using ongoing replication (change data capture, CDC) from the source Oracle database to the target Amazon RDS for Oracle instance. DMS supports heterogeneous and homogeneous migrations, and for Oracle-to-Oracle migrations, it can use Oracle LogMiner or binary reader to capture changes continuously, allowing the source to remain operational during the migration.

Exam trap

The trap here is that candidates often confuse AWS Schema Conversion Tool (SCT) as a full migration service, but SCT only handles schema conversion and must be paired with DMS for actual data movement, making DMS the correct answer for minimal downtime migration.

How to eliminate wrong answers

Option A is wrong because AWS Systems Manager is an operations management service for patching, configuration, and automation of EC2 and on-premises instances, not a database migration tool. Option B is wrong because AWS Schema Conversion Tool (SCT) is used to convert database schema and code objects (e.g., from Oracle to Amazon Aurora) but does not handle the actual data migration or ongoing replication; it is often used alongside DMS, not as a standalone migration service. Option D is wrong because AWS Service Control Policies (SCP) are part of AWS Organizations for managing permissions across accounts, not for migrating database workloads.

164
Multi-Selecthard

A company is migrating a 10 TB Oracle data warehouse to Amazon Redshift. The migration must minimize data transfer costs and ensure data integrity. Which TWO steps should the company take?

Select 2 answers
A.Use AWS DMS to replicate data directly over the internet
B.Use Amazon Kinesis Data Streams to stream data to Redshift
C.Use Amazon Redshift Spectrum to query data in S3 after loading
D.Use AWS Schema Conversion Tool (SCT) to convert the Oracle schema to Redshift
E.Use AWS Snowball Edge to physically transfer the data
AnswersD, E

SCT helps convert and optimize schema for Redshift.

Why this answer

The AWS Schema Conversion Tool (SCT) is specifically designed to convert Oracle database schemas to Amazon Redshift-compatible schemas, handling data type mappings, stored procedures, and other schema objects. This step is critical for a successful migration as it ensures the target schema is optimized for Redshift's columnar storage and MPP architecture, reducing manual rework and potential data integrity issues.

Exam trap

The trap here is that candidates may assume AWS DMS is always the best choice for database migrations, but for very large datasets (e.g., 10 TB) where cost minimization is a key requirement, physical transfer via Snowball Edge is more cost-effective and reliable than network-based replication.

165
Multi-Selecthard

A company is migrating a 3 TB SQL Server database to Amazon RDS for SQL Server. The migration must have minimal downtime and support point-in-time recovery after migration. Which THREE steps should be included in the migration plan? (Choose three.)

Select 3 answers
A.Take a snapshot backup of the source database.
B.Take a differential backup.
C.Take a full backup of the source database.
D.Use AWS DMS for ongoing replication after initial restore.
E.Take transaction log backups.
AnswersC, D, E

Required for initial restore.

Why this answer

A full backup is the foundational step for any SQL Server migration to Amazon RDS. It captures the complete database state at a point in time, which is required for the initial restore into RDS. Without a full backup, you cannot apply differential or transaction log backups to achieve minimal downtime and point-in-time recovery.

Exam trap

The trap here is that candidates confuse snapshot backups (which are not supported for native restore in RDS) with full backups, or think a differential backup can be used as the initial restore point without a preceding full backup.

166
MCQhard

A company is using AWS Database Migration Service (AWS DMS) to migrate a 5 TB MySQL database to Amazon RDS for MySQL. The migration is taking longer than expected. The company notices that the source database has a high volume of write operations. Which configuration change would MOST likely improve the migration performance?

A.Increase the number of parallel threads in the DMS task settings.
B.Enable Multi-AZ on the target RDS instance.
C.Use a smaller instance class for the replication instance to reduce cost.
D.Set the LOB mode to 'Full LOB mode'.
AnswerA

Parallel threads allow concurrent loading of data, improving throughput for high-write workloads.

Why this answer

Increasing the number of parallel threads in the DMS task settings allows AWS DMS to process multiple table partitions or row changes concurrently, which directly addresses the bottleneck caused by a high volume of write operations on the source. By default, DMS uses a single thread per table, but when the source is under heavy write load, parallel threads can capture and apply changes more efficiently, reducing the overall migration time.

Exam trap

The trap here is that candidates often confuse increasing parallelism with enabling Multi-AZ or changing LOB settings, mistakenly thinking these options directly speed up migration, when in fact they address availability or data type handling, not throughput under heavy write load.

How to eliminate wrong answers

Option B is wrong because enabling Multi-AZ on the target RDS instance provides high availability and automatic failover, but does not improve the throughput or speed of the DMS migration process. Option C is wrong because using a smaller instance class for the replication instance would reduce CPU and memory resources, likely worsening migration performance, not improving it. Option D is wrong because setting LOB mode to 'Full LOB mode' is used for handling large objects (LOBs) and can actually slow down migration due to increased data transfer overhead; it does not address the high volume of write operations.

167
MCQmedium

A company is migrating a 500 GB on-premises Oracle database to Amazon RDS for Oracle. The migration must have minimal downtime. Which AWS service should be used for the initial data load and ongoing replication?

A.AWS Snowball Edge for offline data transfer
B.AWS Database Migration Service (AWS DMS)
C.Amazon S3 to store backup files and restore
D.AWS DataSync
AnswerB

DMS supports full load and CDC replication for minimal downtime.

Why this answer

AWS Database Migration Service (AWS DMS) is the correct choice because it supports both full-load migration of the initial 500 GB Oracle database and ongoing change data capture (CDC) replication to keep the target RDS for Oracle instance synchronized with minimal downtime. DMS uses Oracle LogMiner or binary reader to capture changes from the source redo logs and apply them continuously, enabling a near-zero downtime migration.

Exam trap

The trap here is that candidates often confuse AWS DataSync or Snowball Edge as viable for database migrations with minimal downtime, but neither supports the continuous change capture required for live replication, which is the core requirement of the question.

How to eliminate wrong answers

Option A is wrong because AWS Snowball Edge is an offline data transfer device designed for moving large volumes of data physically, but it cannot perform ongoing replication or CDC, so it would not achieve minimal downtime for a live database migration. Option C is wrong because storing backup files in Amazon S3 and restoring them to RDS for Oracle is a one-time, offline method that does not support ongoing replication; any changes made after the backup would be lost, causing significant downtime. Option D is wrong because AWS DataSync is optimized for moving large datasets over the network between on-premises storage and AWS, but it does not support database-specific CDC or schema conversion, making it unsuitable for live database replication with minimal downtime.

168
MCQhard

A company is deploying a global application that requires a database with sub-millisecond read latency across multiple regions. Which AWS database service should they use?

A.Amazon ElastiCache for Redis
B.Amazon Aurora Global Database
C.Amazon DynamoDB Global Tables
D.Amazon RDS for MySQL with cross-region Read Replicas
AnswerC

Provides sub-millisecond latency with multi-region active-active replication.

Why this answer

Amazon DynamoDB Global Tables provides a fully managed, multi-Region, multi-active database that delivers single-digit millisecond read and write latency anywhere in the world. It replicates data across AWS Regions automatically, ensuring sub-millisecond read latency by serving reads from the local Region. This makes it the ideal choice for a global application requiring low-latency reads across multiple regions.

Exam trap

The trap here is that candidates often confuse Amazon Aurora Global Database's cross-region read replicas with true multi-region active-active capability, but Aurora Global Database still requires a single primary Region for writes and can experience replication lag, making it unsuitable for sub-millisecond read latency across all regions.

How to eliminate wrong answers

Option A is wrong because Amazon ElastiCache for Redis is an in-memory cache, not a durable database, and it does not natively provide cross-region replication or global active-active capabilities for persistent storage. Option B is wrong because Amazon Aurora Global Database is designed for cross-region replication but typically has a primary Region for writes and secondary Regions for reads, which can introduce replication lag (often 1 second or more) and does not guarantee sub-millisecond read latency from all Regions simultaneously. Option D is wrong because Amazon RDS for MySQL with cross-region Read Replicas is asynchronous and can have replication lag of seconds or more, and it does not provide sub-millisecond read latency across multiple regions due to the latency of cross-region data transfer.

169
MCQeasy

An administrator runs the above AWS CLI command to create an RDS MySQL instance. The command completes successfully. What is the status of the new DB instance immediately after the command returns?

A.available
B.stopped
C.deleting
D.creating
AnswerD

The instance enters 'creating' state until provisioning completes.

Why this answer

When you run the AWS CLI command to create an RDS MySQL instance, the command returns immediately after the API call is accepted and the instance enters the 'creating' state. The instance is not yet available because provisioning, configuring, and booting the database engine takes several minutes. The 'creating' status indicates that AWS is actively setting up the DB instance, and it will transition to 'available' only after the entire creation process completes.

Exam trap

The trap here is that candidates assume the CLI command's successful return means the instance is immediately usable, but AWS CLI commands for resource creation are asynchronous and return before the resource is fully operational.

How to eliminate wrong answers

Option A is wrong because 'available' is the final steady state after creation finishes, not the immediate status when the command returns. Option B is wrong because 'stopped' is a state that applies only to instances that have been explicitly stopped after being available; a newly created instance cannot be stopped. Option C is wrong because 'deleting' is a state that occurs when a deletion request is made, not during creation.

170
Multi-Selecthard

A company is migrating a 5 TB Oracle database to Amazon RDS for Oracle. The database contains large BFILEs stored in a file system. The company needs to migrate the data with minimal downtime and ensure the BFILEs are migrated. Which THREE steps should the company take?

Select 3 answers
A.Replace BFILEs with BLOBs in the source database before migration.
B.Use AWS SCT to convert any incompatible schema objects.
C.Upload the BFILEs to Amazon S3 and use Oracle Directory objects to reference them.
D.Use AWS CloudEndure Migration to replicate the entire server.
E.Use AWS DMS with the Oracle source endpoint configured to include the BFILE directory path.
AnswersB, C, E

SCT helps convert Oracle-specific objects to RDS-compatible ones.

Why this answer

The correct steps for migrating a 5 TB Oracle database with BFILEs to Amazon RDS for Oracle with minimal downtime are: (B) Use AWS Schema Conversion Tool (SCT) to identify and convert incompatible schema objects, ensuring the target schema is ready. (C) Upload the BFILEs to Amazon S3 and use Oracle Directory objects to reference them in the target database, as BFILEs reference files stored outside the database. (E) Use AWS Database Migration Service (DMS) with the Oracle source endpoint configured to include the BFILE directory path, enabling DMS to migrate the BFILEs during the continuous replication phase, minimizing downtime. Option A (replacing BFILEs with BLOBs) is unnecessary because DMS handles BFILEs natively, and such a change would increase complexity and downtime. Option D (using CloudEndure Migration) is designed for server-level migration, not database-level, and would not be appropriate for this database migration.

Exam trap

The trap here is that candidates assume BFILEs must be converted to BLOBs before migration (Option A), but AWS DMS can handle BFILEs natively during the migration process, avoiding pre-migration schema changes and reducing downtime.

171
Multi-Selecthard

A company is migrating a 500 GB Oracle database to Amazon Aurora PostgreSQL. They need to convert the schema and migrate the data with minimal downtime. Which THREE actions should they take? (Choose three.)

Select 3 answers
A.Use AWS Schema Conversion Tool (SCT) to assess and convert Oracle-specific features like hierarchical queries.
B.Modify the application to use Aurora PostgreSQL-specific SQL syntax before migration.
C.Use AWS Database Migration Service (DMS) with change data capture (CDC) to migrate data.
D.Use AWS Schema Conversion Tool (SCT) to convert the Oracle schema to PostgreSQL-compatible schema.
E.Use AWS Snowball Edge to transfer the data to AWS and then load into Aurora.
AnswersA, C, D

SCT can convert Oracle-specific features to PostgreSQL equivalents.

Why this answer

AWS Schema Conversion Tool (SCT) is the correct tool for assessing and converting Oracle-specific features like hierarchical queries (e.g., CONNECT BY) into PostgreSQL-compatible syntax (e.g., recursive CTEs). This is essential for schema migration to Aurora PostgreSQL, and SCT provides a detailed assessment report to identify and automate conversion of such features.

Exam trap

The trap here is that candidates may think Snowball Edge is suitable for any database migration size, but for sub-10 TB databases with minimal downtime requirements, DMS with CDC is the correct approach, and Snowball is overkill and introduces latency.

172
MCQeasy

A company is migrating an on-premises MySQL database to Amazon RDS for MySQL. The database is 2 TB in size and the network bandwidth is 100 Mbps. The company needs to minimize downtime. Which migration strategy should be used?

A.Use AWS Database Migration Service (DMS) with ongoing replication.
B.Copy database files to Amazon S3, then restore to RDS using native restore.
C.Use mysqldump to export the database and import it into RDS.
D.Use AWS Server Migration Service to migrate the database server.
AnswerA

AWS DMS can perform a full load followed by continuous replication to keep the target in sync, minimizing downtime.

Why this answer

AWS DMS with ongoing replication is the correct strategy because it allows you to perform a full load of the 2 TB database while simultaneously capturing ongoing changes from the source MySQL binlog. This minimizes downtime by enabling a cutover with only a brief pause to ensure replication lag is zero, rather than requiring a long period of application downtime for a full export and import.

Exam trap

The trap here is that candidates often choose mysqldump (Option C) because it is a familiar tool, but they overlook the fact that for a 2 TB database over a 100 Mbps link, the export and import would take over 48 hours, causing excessive downtime, whereas DMS with ongoing replication allows near-zero downtime by performing the bulk load first and then syncing changes.

How to eliminate wrong answers

Option B is wrong because copying database files to Amazon S3 and restoring via native restore requires taking the source database offline to create a consistent file-level backup, which would cause significant downtime for a 2 TB database over a 100 Mbps link. Option C is wrong because using mysqldump to export and import the database would require the source database to be read-locked during the dump, and the export/import process over 100 Mbps would take many hours or days, resulting in unacceptable downtime. Option D is wrong because AWS Server Migration Service is designed for migrating entire server instances (VMs), not for migrating databases directly; it would replicate the entire OS and application stack, which is inefficient and does not provide the granular replication needed for a MySQL database migration.

173
MCQmedium

A company is migrating a 2 TB PostgreSQL database from on-premises to Amazon RDS for PostgreSQL with minimal downtime. The database is continuously updated. Which migration strategy should be used?

A.Use AWS Database Migration Service (DMS) with ongoing replication from an on-premises source.
B.Use AWS Schema Conversion Tool (SCT) and AWS Snowball to transfer data.
C.Use AWS Database Migration Service with a full load only, then cut over.
D.Use pg_dump and pg_restore during a maintenance window.
AnswerA

DMS with change data capture (CDC) allows continuous replication with minimal downtime.

Why this answer

AWS DMS supports ongoing replication (change data capture, CDC) from an on-premises PostgreSQL source to Amazon RDS for PostgreSQL, enabling minimal downtime migration. The 2 TB size is well within DMS's capabilities, and CDC captures incremental changes after the full load, allowing near-zero downtime cutover.

Exam trap

The trap here is that candidates often assume pg_dump/pg_restore or full-load-only DMS are sufficient for minimal downtime, but they fail to account for the continuous updates that require ongoing replication to avoid data loss.

How to eliminate wrong answers

Option B is wrong because AWS SCT is a schema conversion tool, not a data migration tool, and AWS Snowball is designed for offline bulk data transfer, which cannot achieve minimal downtime for a continuously updated database. Option C is wrong because a full load only without ongoing replication would miss all changes made during the migration, requiring a separate cutover window and causing downtime. Option D is wrong because pg_dump and pg_restore require a maintenance window to ensure consistency, which contradicts the minimal downtime requirement.

174
MCQhard

A company is migrating a self-hosted Cassandra cluster to Amazon Keyspaces (for Apache Cassandra). The cluster has 10 nodes and handles 50,000 writes per second. Which migration strategy is MOST efficient?

A.Set up Keyspaces as a new datacenter in the existing Cassandra cluster using native replication.
B.Export data using CQL COPY and import into Keyspaces.
C.Use AWS Glue to extract data from Cassandra and write to Keyspaces.
D.Use AWS DMS with Cassandra as source and Keyspaces as target.
AnswerA

Allows live migration with minimal downtime.

Why this answer

Setting up Amazon Keyspaces as a new datacenter in the existing Cassandra cluster using native replication allows for a live, zero-downtime migration. Cassandra's native replication protocol handles the 50,000 writes per second incrementally, automatically replicating data from the existing cluster to Keyspaces without requiring an export/import step or additional ETL tools.

Exam trap

The trap here is that candidates assume AWS DMS or Glue are universal migration tools, but they fail to recognize that Keyspaces supports the Cassandra wire protocol natively, making datacenter replication the most efficient and least disruptive method for high-throughput workloads.

How to eliminate wrong answers

Option B is wrong because CQL COPY is a batch export/import tool that requires stopping writes or handling consistency manually, and for 50,000 writes per second, it would cause significant downtime and data inconsistency. Option C is wrong because AWS Glue is an ETL service not optimized for real-time Cassandra replication; it would introduce latency and complexity, and cannot handle the continuous write load without custom checkpointing. Option D is wrong because AWS DMS does not support Amazon Keyspaces as a target endpoint; DMS is designed for relational and some NoSQL databases but not for Keyspaces, which uses the Cassandra Query Language (CQL) wire protocol.

175
MCQmedium

A company uses a self-hosted MySQL database on EC2. They want to migrate to Amazon RDS for MySQL with minimal downtime and automated failover. Which migration strategy should be used?

A.Set up MySQL replication from EC2 to RDS, then cut over
B.Use mysqldump to export the database and import to RDS
C.Take a snapshot of the EC2 instance and restore to RDS
D.Use AWS DMS with full load and CDC
AnswerA

Native replication allows minimal downtime and automated failover is built into RDS Multi-AZ.

Why this answer

Setting up MySQL native replication from the EC2-hosted MySQL database to an Amazon RDS for MySQL instance allows for near-zero downtime migration. Once replication is established and lag is minimal, you can simply stop writes on the source, verify replication has caught up, and redirect traffic to the RDS endpoint. This approach also supports automated failover by enabling Multi-AZ on the RDS instance, which provides a synchronous standby replica in a different Availability Zone.

Exam trap

The trap here is that candidates often assume AWS DMS is the only tool for minimal-downtime migrations, but native MySQL replication is simpler, more reliable, and directly supports automated failover when combined with Multi-AZ RDS, whereas DMS adds complexity and does not itself provide failover capabilities.

How to eliminate wrong answers

Option B is wrong because using mysqldump to export and import the database requires taking the source database offline or locking tables during the dump, which does not meet the minimal downtime requirement; it also does not provide automated failover. Option C is wrong because taking a snapshot of the EC2 instance and restoring it to RDS is not a supported migration path—RDS does not accept EC2 instance snapshots; you would need to extract the database files and use a tool like Percona XtraBackup or mysqldump instead. Option D is wrong because while AWS DMS with full load and CDC can achieve minimal downtime, it does not inherently provide automated failover for the target RDS instance; automated failover requires Multi-AZ configuration on RDS, which is independent of the migration tool used.

176
MCQhard

A company is deploying a new application that uses Amazon RDS for MySQL. The database must be highly available with automatic failover. Which deployment configuration meets these requirements?

A.Single-AZ with a Read Replica in the same region
B.Multi-AZ deployment with synchronous replication to a cross-region replica
C.Multi-AZ deployment with a standby replica in a different Availability Zone
D.Single-AZ with automated backups
AnswerC

Multi-AZ provides automatic failover.

Why this answer

A Multi-AZ deployment for Amazon RDS for MySQL automatically provisions and maintains a synchronous standby replica in a different Availability Zone. In the event of a failure, Amazon RDS automatically fails over to the standby, providing high availability without manual intervention. This configuration meets the requirement for automatic failover and high availability within a single AWS region.

Exam trap

The trap here is that candidates often confuse Read Replicas (which are asynchronous and used for read scaling) with Multi-AZ standby replicas (which are synchronous and used for high availability), leading them to incorrectly select Option A as a valid high-availability solution.

How to eliminate wrong answers

Option A is wrong because a Single-AZ deployment with a Read Replica does not provide automatic failover; Read Replicas are asynchronous and require manual promotion to become the primary, which does not meet the high availability requirement. Option B is wrong because Multi-AZ deployment with synchronous replication to a cross-region replica is not a supported configuration; Amazon RDS Multi-AZ uses synchronous replication only within a single region across Availability Zones, and cross-region replication is asynchronous (using MySQL's built-in replication). Option D is wrong because a Single-AZ deployment with automated backups only provides point-in-time recovery, not automatic failover or high availability; if the primary instance fails, the database becomes unavailable until manual recovery is performed.

177
MCQmedium

A company has a 200 GB PostgreSQL database on-premises and wants to migrate to Amazon RDS for PostgreSQL. The company requires encrypted data transfer and wants to minimize downtime. Which combination of services should be used?

A.Use native pg_dump to S3, then import to RDS
B.Use AWS VPN to connect on-premises to RDS and perform a database dump
C.Use AWS DMS with SSL and ongoing replication
D.Use an EC2 instance with PostgreSQL replication to RDS
AnswerC

DMS supports encrypted transfer and CDC for minimal downtime.

Why this answer

AWS DMS with SSL provides encrypted data transfer and supports ongoing replication (change data capture) to minimize downtime. This allows the on-premises PostgreSQL database to remain operational during the initial full load and then continuously replicate changes until cutover, meeting both security and minimal-downtime requirements.

Exam trap

The trap here is that candidates often assume native PostgreSQL replication (Option D) is directly supported by RDS, but RDS does not allow external servers to act as replication sources, making DMS with CDC the correct service for minimal-downtime migrations with encrypted transfer.

How to eliminate wrong answers

Option A is wrong because pg_dump creates a logical backup that requires the source database to be offline or in read-only mode during the dump, causing downtime, and transferring to S3 then importing to RDS does not support ongoing replication. Option B is wrong because a database dump via VPN still requires the source database to be stopped or locked during the dump, resulting in downtime, and does not provide ongoing replication. Option D is wrong because native PostgreSQL replication to RDS is not supported directly; RDS does not allow external servers to replicate into it as a standby, and setting up an EC2 intermediary with replication adds complexity without native RDS support for this architecture.

178
MCQmedium

A company is deploying a new Amazon RDS for MySQL database. The security team requires that all data at rest be encrypted. What is the simplest way to meet this requirement?

A.Enable encryption using AWS Certificate Manager
B.Use client-side encryption in the application
C.Enable encryption at rest when creating the RDS instance using an AWS KMS key
D.Enable encryption at rest on the RDS instance after creation
AnswerC

Encryption at rest can be enabled at instance creation time using a KMS key.

Why this answer

Amazon RDS for MySQL supports encryption at rest using AWS KMS keys, which must be enabled at instance creation time because encryption cannot be added to an existing unencrypted RDS instance. Option C is correct because it describes the simplest and most direct method: enabling encryption at rest during the initial RDS instance creation with an AWS KMS key, which transparently encrypts the underlying storage, automated backups, read replicas, and snapshots.

Exam trap

The trap here is that candidates may think encryption can be enabled after creation (Option D) because some AWS services allow post-creation encryption, but RDS requires encryption to be set at launch, and this is a common exam trick to test knowledge of RDS encryption limitations.

How to eliminate wrong answers

Option A is wrong because AWS Certificate Manager (ACM) is used for SSL/TLS certificate management for data in transit, not for encryption at rest. Option B is wrong because client-side encryption in the application adds unnecessary complexity and does not meet the requirement for data at rest encryption managed by the database service; it also requires application code changes and key management outside of AWS KMS. Option D is wrong because Amazon RDS for MySQL does not allow enabling encryption at rest on an existing unencrypted instance; you must create a new encrypted instance and migrate the data.

179
MCQmedium

A company is migrating an on-premises Oracle database to Amazon Aurora PostgreSQL. They used AWS SCT to convert the schema, but some stored procedures failed to convert automatically. What is the best course of action?

A.Use AWS Lambda to automatically convert the stored procedures.
B.Use AWS DMS to replicate the Oracle stored procedures as-is to Aurora.
C.Switch to Amazon RDS for Oracle to avoid conversion issues.
D.Manually rewrite the unconverted stored procedures to PostgreSQL-compatible code based on SCT's assessment report.
AnswerD

SCT provides a report of items that need manual attention; rewriting is necessary.

Why this answer

AWS SCT provides an assessment report that identifies unconverted stored procedures and suggests manual rewrites. Since Oracle and PostgreSQL have fundamentally different procedural languages (PL/SQL vs. PL/pgSQL), automated conversion cannot handle all syntax and semantic differences.

Manually rewriting the unconverted procedures based on SCT's report ensures compatibility and correctness, as SCT highlights the specific lines and constructs that need attention.

Exam trap

The trap here is that candidates may assume AWS DMS can handle stored procedure migration (Option B) because DMS handles schema conversion for tables, but DMS explicitly does not migrate stored procedures, triggers, or other programmatic objects.

How to eliminate wrong answers

Option A is wrong because AWS Lambda is a serverless compute service, not a database schema conversion tool; it cannot interpret or translate Oracle PL/SQL to PostgreSQL PL/pgSQL. Option B is wrong because AWS DMS replicates data, not stored procedures; it cannot convert or execute procedural code, and Oracle stored procedures cannot run on Aurora PostgreSQL. Option C is wrong because switching to Amazon RDS for Oracle avoids the conversion effort but fails to meet the stated goal of migrating to Aurora PostgreSQL, and it may incur higher licensing costs and operational overhead.

180
MCQmedium

An administrator needs to migrate an on-premises MongoDB database to Amazon DocumentDB. The migration must have near-zero downtime. Which approach should the administrator use?

A.Use AWS DataSync to transfer the MongoDB data files
B.Use AWS Glue to extract and load data
C.Use mongodump to export and mongorestore to import
D.Use AWS DMS with MongoDB as source and DocumentDB as target
AnswerD

DMS supports ongoing replication with change data capture for near-zero downtime.

Why this answer

AWS DMS supports ongoing replication (change data capture) from MongoDB to Amazon DocumentDB, enabling near-zero downtime migrations by keeping the target synchronized with the source until cutover. This approach avoids the downtime required by offline methods like mongodump/mongorestore or bulk data transfer tools.

Exam trap

The trap here is that candidates often choose mongodump/mongorestore (Option C) because it's a familiar MongoDB tool, but they overlook that it requires an offline snapshot, making near-zero downtime impossible.

How to eliminate wrong answers

Option A is wrong because AWS DataSync is designed for file-based data transfers (e.g., NFS/SMB) and does not support MongoDB's BSON data format or its replication protocol. Option B is wrong because AWS Glue is an ETL service for batch processing and does not provide continuous change data capture for live MongoDB migrations. Option C is wrong because mongodump/mongorestore performs a point-in-time snapshot export/import, requiring the source database to be quiesced or taken offline, which prevents near-zero downtime.

181
MCQmedium

A company is migrating a 500 GB MySQL database from on-premises to Amazon RDS for MySQL. The database is critical and must have minimal downtime. Which approach should be used to migrate the database with the least downtime?

A.Use AWS Database Migration Service (DMS) with a replication instance to perform a full load and then ongoing replication until cutover.
B.Modify the on-premises database to use a new master user and then use the AWS Schema Conversion Tool to migrate.
C.Create a read replica of the on-premises database and promote it to a standalone RDS instance.
D.Export the database using mysqldump and import into RDS using mysql command-line tool. Schedule a maintenance window for cutover.
AnswerA

DMS supports ongoing replication to minimize downtime during migration.

Why this answer

AWS DMS with ongoing replication (change data capture) is the correct approach because it performs an initial full load of the 500 GB database and then continuously replicates incremental changes from the source to the target RDS instance. This allows the source database to remain operational during migration, and the cutover can be performed in seconds by stopping application writes and applying the final changes, minimizing downtime to near zero.

Exam trap

The trap here is that candidates often confuse the AWS Schema Conversion Tool (SCT) with DMS, or assume that a read replica can be created from an on-premises database to RDS, but MySQL read replicas only work within the RDS ecosystem and require the source to be an RDS instance.

How to eliminate wrong answers

Option B is wrong because the AWS Schema Conversion Tool (SCT) is designed for heterogeneous migrations (e.g., Oracle to Aurora) and does not handle data migration or replication; modifying the master user does not enable minimal downtime. Option C is wrong because MySQL read replicas cannot be created across on-premises and RDS directly; read replicas require a source RDS instance, and promoting a replica does not support ongoing replication from on-premises. Option D is wrong because mysqldump and mysql import are offline methods that require the source database to be stopped or locked during the export/import, causing significant downtime, and scheduling a maintenance window does not reduce the actual data transfer time.

182
MCQeasy

A company is deploying a new Amazon RDS for MariaDB instance. The database must be accessible from a specific set of EC2 instances in a VPC. How should the company configure security to allow access?

A.Assign the same security group to both the RDS instance and the EC2 instances.
B.Create a security group for the RDS instance that allows inbound traffic from the EC2 instances' security group.
C.Attach an IAM role to the EC2 instances that grants access to the RDS database.
D.Configure a network ACL to allow inbound traffic from the EC2 instance IPs.
AnswerB

Creating a security group for the RDS instance that allows inbound traffic from the EC2 instances' security group is the correct approach. It uses security group referencing, which is secure and easy to manage.

Why this answer

The recommended way to allow access from EC2 instances to an RDS instance is to create a security group for the RDS instance that allows inbound traffic on the database port from the security group attached to the EC2 instances. This leverages security group referencing, which is more secure and easier to manage than specifying IP addresses.

Option A is incorrect because while assigning the same security group to both could work, it is not a best practice as it would allow all members of that group to communicate without granularity, and it does not follow the principle of least privilege.

Option C is incorrect because IAM roles are used for authentication and authorization to AWS services, not for network-level access control. To access the RDS database, you still need to allow network traffic via a security group or NACL.

Option D is incorrect because network ACLs are stateless and operate at the subnet level. While they can be used, security groups are the preferred method for controlling traffic to an RDS instance because they are stateful and more granular.

183
MCQhard

A company is migrating a 500 GB SQL Server database to Amazon RDS for SQL Server. The database has a large number of stored procedures and triggers. The migration must have minimal downtime. Which approach should be used?

A.Use AWS Schema Conversion Tool (AWS SCT) to convert the schema and AWS DMS for data migration
B.Use AWS S3 to store the data and AWS Glue to transform and load into RDS
C.Use AWS Database Migration Service (AWS DMS) with full load and ongoing replication
D.Use native SQL Server backup and restore to Amazon RDS
AnswerC

AWS DMS supports ongoing replication to minimize downtime.

Why this answer

AWS DMS with full load and ongoing replication enables continuous change data capture (CDC) from the source SQL Server database to Amazon RDS for SQL Server, minimizing downtime by keeping the target synchronized until cutover. This approach handles the stored procedures and triggers natively since both source and target are SQL Server, avoiding schema conversion issues.

Exam trap

The trap here is that candidates assume native backup/restore (Option D) is the simplest and fastest method, but they overlook the requirement for minimal downtime, which demands ongoing replication rather than a single offline restore operation.

How to eliminate wrong answers

Option A is wrong because AWS SCT is designed for heterogeneous migrations (e.g., Oracle to Aurora) and is unnecessary for a homogeneous SQL Server to RDS for SQL Server migration; it would add complexity and potential schema errors. Option B is wrong because using S3 and AWS Glue for a 500 GB database with stored procedures and triggers introduces unnecessary ETL overhead and cannot provide ongoing replication for minimal downtime; Glue is not a real-time CDC tool. Option D is wrong because native SQL Server backup and restore requires taking the database offline or using log shipping, which incurs significant downtime during the final restore and does not support ongoing replication for a near-zero-downtime cutover.

184
MCQhard

A company is migrating a 3 TB Oracle database to Amazon RDS for Oracle. The migration uses AWS DMS with ongoing replication. The source database is actively used by applications. After the initial full load, the target RDS instance is in sync. However, during the ongoing replication phase, the replication task fails with an error: 'ORA-1555: snapshot too old.' The DMS task has been set up with a source endpoint that uses the 'Oracle TNS' connection method. The company needs to resolve the issue without stopping the source database. Which action should be taken?

A.Change the source endpoint to use the 'Oracle SID' connection method.
B.Decrease the batch size of the DMS task.
C.Increase the undo retention period in the source Oracle database.
D.Increase the frequency of the DMS task's log mining.
AnswerC

Longer undo retention keeps snapshot data available for DMS.

Why this answer

The ORA-1555 error indicates that undo data is overwritten before DMS can read it. Increasing undo retention ensures the snapshot data is available longer. Reducing batch size would not address the undo issue.

Increasing logging frequency does not affect undo. Using a different connection method does not solve the underlying undo retention problem.

185
MCQeasy

A company is migrating a 2 TB MySQL database from on-premises to Amazon RDS for MySQL. They need to minimize downtime and ensure data consistency. They plan to use AWS DMS. What is the first step they should take before starting the migration task?

A.Create a read replica of the source database to reduce load.
B.Enable binary logging (binlog) on the source MySQL database.
C.Disable foreign key checks on the source database to speed up the load.
D.Enable binary logging on the target RDS for MySQL instance.
AnswerB

Binlog is required for CDC to capture ongoing changes.

Why this answer

AWS DMS requires binary logging (binlog) to be enabled on the source MySQL database to capture ongoing changes during the full-load and change data capture (CDC) phase. This ensures data consistency and minimizes downtime by allowing DMS to replicate incremental changes after the initial load. Without binlog, DMS cannot perform CDC, and the migration would be limited to a one-time snapshot, risking data loss or extended downtime.

Exam trap

The trap here is that candidates often confuse the need for binary logging on the source versus the target, or assume that a read replica or disabling constraints is the first step, but DMS specifically requires binlog on the source for continuous replication.

How to eliminate wrong answers

Option A is wrong because creating a read replica of the source database does not directly enable DMS to capture changes; DMS can already read from the source without a replica, and a replica adds complexity without addressing the core requirement for CDC. Option C is wrong because disabling foreign key checks on the source database is not a prerequisite for DMS; DMS handles foreign key constraints during migration, and disabling them could compromise data integrity. Option D is wrong because binary logging must be enabled on the source database, not the target; the target RDS instance does not need binlog for DMS to write data, and enabling it on the target is irrelevant for capturing source changes.

186
MCQmedium

A company is migrating a 500 GB MySQL database from on-premises to Amazon RDS for MySQL. The migration must have minimal downtime and support ongoing replication. Which AWS service should be used?

A.Use mysqldump to export the database and import to RDS during a maintenance window.
B.Use AWS Schema Conversion Tool (SCT) to convert the schema and migrate data.
C.Take a physical backup, copy it to Amazon S3, and restore to RDS.
D.Use AWS Database Migration Service (DMS) with a full load and ongoing replication from a change data capture source.
AnswerD

AWS Database Migration Service (DMS) performs a full load of the 500 GB database, then uses change data capture (CDC) to capture ongoing MySQL binary log changes, enabling near-zero-downtime replication. This satisfies the stem’s requirement for minimal downtime and continuous synchronisation during migration, as CDC avoids stopping source writes after the initial load.

Why this answer

AWS DMS is the correct choice because it supports both a full load of the 500 GB database and ongoing replication using change data capture (CDC) from the on-premises MySQL source. This enables minimal downtime by keeping the target RDS instance synchronized during the migration window, and it handles schema conversion automatically for MySQL-to-MySQL migrations without needing a separate tool.

Exam trap

The trap here is that candidates often assume a simple backup-and-restore or logical dump is sufficient for minimal downtime, but they overlook the requirement for ongoing replication, which only DMS with CDC can provide without disrupting the source database.

How to eliminate wrong answers

Option A is wrong because mysqldump is a logical backup tool that requires taking the source database offline or locking tables during export, causing significant downtime, and it does not support ongoing replication after the initial load. Option B is wrong because AWS SCT is designed for heterogeneous migrations (e.g., Oracle to Aurora) and is unnecessary for a homogeneous MySQL-to-MySQL migration; it does not perform the actual data movement or ongoing replication. Option C is wrong because taking a physical backup and restoring to RDS requires stopping writes on the source to ensure consistency, and it cannot provide ongoing replication to keep the target in sync with the source after the restore.

187
Multi-Selectmedium

A company is planning to deploy a new Amazon RDS for Oracle database in a Multi-AZ configuration. The database must be highly available and fault-tolerant. Which THREE actions should the company take to meet these requirements? (Choose three.)

Select 3 answers
A.Take manual snapshots daily
B.Create a read replica in a different Availability Zone
C.Enable Multi-AZ deployment
D.Enable automated backups with a retention period of 35 days
E.Enable deletion protection
AnswersC, D, E

Multi-AZ provides automatic failover.

Why this answer

Enabling Multi-AZ deployment for Amazon RDS for Oracle automatically provisions and maintains a synchronous standby replica in a different Availability Zone. This provides automatic failover in the event of an AZ outage or primary instance failure, ensuring high availability and fault tolerance without manual intervention.

Exam trap

The trap here is confusing read replicas with Multi-AZ standby replicas: read replicas are for read scaling and do not provide automatic failover, whereas Multi-AZ standby replicas are synchronous and enable automatic failover for high availability.

188
MCQeasy

A company wants to migrate a self-hosted MongoDB database to Amazon DocumentDB. They need to convert the schema. Which AWS service should they use?

A.AWS Glue
B.AWS Database Migration Service (DMS)
C.AWS Schema Conversion Tool (SCT)
D.Amazon Athena
AnswerC

SCT can convert MongoDB schemas to DocumentDB-compatible format.

Why this answer

AWS Schema Conversion Tool (SCT) is the correct choice because it is specifically designed to convert database schemas from one engine to another, including from MongoDB to Amazon DocumentDB. SCT analyzes the source schema, identifies incompatible objects, and generates a target schema that is compatible with DocumentDB, handling data type mappings, index conversions, and other structural differences.

Exam trap

The trap here is that candidates often confuse AWS DMS as a full migration solution for heterogeneous databases, not realizing that DMS only handles data movement and relies on SCT for schema conversion when the source and target engines differ.

How to eliminate wrong answers

Option A is wrong because AWS Glue is a serverless data integration service for ETL (extract, transform, load) jobs, not a schema conversion tool; it can transform data but does not convert database schemas between different database engines. Option B is wrong because AWS Database Migration Service (DMS) migrates data from a source to a target database, but it does not perform schema conversion; it relies on SCT for schema conversion when migrating between heterogeneous engines like MongoDB to DocumentDB. Option D is wrong because Amazon Athena is an interactive query service for analyzing data in Amazon S3 using standard SQL, and it has no capability to convert database schemas.

189
Multi-Selectmedium

A company is migrating a 3 TB on-premises Oracle database to Amazon Aurora PostgreSQL using AWS DMS. The migration task is failing with an error indicating insufficient memory. Which TWO actions should the company take to resolve this issue? (Choose TWO.)

Select 2 answers
A.Change the target database engine to Amazon RDS for MySQL.
B.Disable Multi-AZ on the DMS replication instance.
C.Increase the instance class of the DMS replication instance.
D.Reduce the number of tables being migrated in the task.
E.Use a smaller instance class for the DMS replication instance.
AnswersC, D

A larger instance class provides more memory to handle the migration.

Why this answer

The 'insufficient memory' error during an AWS DMS migration indicates that the replication instance lacks the memory required to handle the data volume, transformation rules, or cache for large transactions. Increasing the instance class (e.g., from dms.c5.large to dms.c5.2xlarge) provides more memory and CPU, directly resolving the resource constraint.

Exam trap

The trap here is that candidates might confuse a DMS replication instance memory issue with a target database performance issue, leading them to incorrectly change the target engine or disable Multi-AZ instead of scaling the replication instance.

190
Multi-Selecteasy

A company is deploying a new Amazon RDS for PostgreSQL DB instance. Which THREE actions are recommended for a secure deployment?

Select 3 answers
A.Enable encryption at rest using AWS KMS
B.Use the default VPC for simplicity
C.Delete automated backups after the initial snapshot to reduce costs
D.Enable automated backups with a retention period
E.Place the DB instance in a private subnet
AnswersA, D, E

Encryption at rest protects data if storage is compromised.

Why this answer

Enabling encryption at rest using AWS KMS ensures that the underlying storage for the RDS for PostgreSQL DB instance is encrypted using AES-256 encryption. This protects data at rest against unauthorized physical access to the storage media and is a fundamental security best practice. KMS integration also allows for centralized key management and audit trails via AWS CloudTrail.

Exam trap

The trap here is that candidates often confuse 'default VPC' with being secure because it is provided by AWS, but the default VPC includes a public subnet with an internet gateway, which is inherently less secure for database deployments than using a custom VPC with private subnets.

191
MCQhard

An administrator is setting up an AWS DMS replication instance and attaches the IAM policy shown in the exhibit. The administrator receives an error that the replication instance cannot be created. Which missing permission is the MOST likely cause?

A.ec2:DescribeVpcPeeringConnections
B.ec2:DescribeSecurityGroups
C.ec2:CreateNetworkInterfacePermission
D.dms:CreateReplicationInstance
AnswerB

DMS needs to describe security groups to attach to the replication instance.

Why this answer

When creating a DMS replication instance, AWS DMS needs to create and manage network interfaces in the customer's VPC. The `ec2:DescribeSecurityGroups` permission is required for DMS to validate and describe the security groups specified during replication instance creation. Without this permission, the service cannot verify the security group IDs, leading to a creation failure.

Exam trap

The trap here is that candidates often focus on the DMS-specific action (`dms:CreateReplicationInstance`) or assume network interface creation is the missing permission, overlooking that DMS requires read-only EC2 describe permissions to validate the VPC resources before creation.

How to eliminate wrong answers

Option A is wrong because `ec2:DescribeVpcPeeringConnections` is not required for creating a DMS replication instance; it is used for managing VPC peering connections, which are irrelevant to the initial provisioning of the replication instance. Option C is wrong because `ec2:CreateNetworkInterfacePermission` is not a standard IAM permission; the correct action is `ec2:CreateNetworkInterface`, and DMS handles network interface creation via its service-linked role, not via a direct user-attached policy. Option D is wrong because `dms:CreateReplicationInstance` is the API call being made, not a missing permission; the error occurs due to insufficient EC2 permissions, not the DMS action itself.

192
MCQhard

An IAM role with the above trust policy is created. The role is then attached to an EC2 instance. The application on the EC2 instance tries to create an RDS DB instance using the AWS SDK. What will happen?

A.The call will fail because the role's permissions policy does not allow rds:CreateDBInstance
B.The call will succeed because the trust policy grants permissions to EC2
C.The call will succeed because the trust policy allows EC2 to create RDS instances
D.The call will fail because the trust policy does not include the RDS service
AnswerA

The role needs a permissions policy allowing the action.

Why this answer

The call will fail because the IAM role attached to the EC2 instance lacks a permissions policy (e.g., an identity-based policy) that explicitly grants the `rds:CreateDBInstance` action. The trust policy shown in the question only defines which principal (the EC2 service) can assume the role, not what actions the role can perform. Without a permissions policy allowing RDS operations, the SDK call is denied by default.

Exam trap

The trap here is confusing the trust policy with the permissions policy; candidates often assume that allowing EC2 to assume the role implicitly grants all permissions to EC2, but the trust policy only controls role assumption, not the actions the role can take.

How to eliminate wrong answers

Option B is wrong because a trust policy grants the EC2 service permission to assume the role, not to perform any specific AWS actions; the role's permissions policy must separately allow `rds:CreateDBInstance`. Option C is wrong because the trust policy cannot authorize EC2 to create RDS instances; it only controls role assumption, not service-level actions. Option D is wrong because the trust policy does not need to include the RDS service; trust policies specify which principals can assume the role, not which services the role can interact with.

193
Multi-Selectmedium

A company is migrating a 2 TB SQL Server database to Amazon RDS for SQL Server. They have a limited maintenance window and need to minimize downtime. Which TWO strategies should they combine?

Select 2 answers
A.Use AWS DMS to perform a full load and ongoing replication.
B.Use AWS Direct Connect to increase bandwidth.
C.Use AWS SCT to convert the schema and assess compatibility.
D.Use AWS CloudEndure Migration.
E.Use AWS Snowball to transfer a backup offline.
AnswersA, C

DMS enables near-zero downtime migration.

Why this answer

AWS DMS (Database Migration Service) is correct because it can perform a full load of the 2 TB SQL Server database to Amazon RDS for SQL Server, then continuously replicate ongoing changes using change data capture (CDC). This minimizes downtime by allowing the source database to remain operational during migration, and the target can be synchronized with minimal interruption before cutover.

Exam trap

The trap here is that candidates often choose Direct Connect (Option B) thinking it reduces downtime by speeding up data transfer, but it does not address the need for ongoing replication; the key is to use DMS for continuous sync, not just bandwidth.

194
MCQmedium

A company is migrating a 500 GB on-premises PostgreSQL database to Amazon RDS for PostgreSQL. The migration must have minimal downtime and support ongoing replication after the initial load. The network link has limited bandwidth, and the company wants to avoid costly data transfer fees. Which approach should be used?

A.Use AWS DMS with ongoing replication (CDC) from the start.
B.Use AWS Database Migration Service (DMS) with a full load only, then cut over.
C.Use pg_dump to export the database and pg_restore to import into RDS.
D.Use AWS Snowball Edge to transfer the database files, then load into RDS.
AnswerA

CDC captures changes continuously, minimizing downtime and supporting ongoing sync.

Why this answer

AWS DMS with ongoing replication (CDC) enables a full load followed by continuous change data capture, which meets the requirements of minimal downtime and ongoing replication. DMS compresses data in transit and can throttle network usage, helping to manage limited bandwidth and avoid costly data transfer fees by using the existing network link efficiently.

Exam trap

The trap here is that candidates often assume Snowball Edge is always the best choice for large databases to avoid bandwidth costs, but for 500 GB and the need for ongoing replication, DMS with CDC is more appropriate and cost-effective.

How to eliminate wrong answers

Option B is wrong because a full load only does not support ongoing replication after the initial load, so changes made during the migration would be lost, requiring downtime for a final cutover. Option C is wrong because pg_dump and pg_restore are offline tools that require the source database to be stopped or made read-only during the export, causing significant downtime and no ongoing replication capability. Option D is wrong because AWS Snowball Edge is designed for large-scale offline data transfer (typically >10 TB) and would introduce unnecessary latency and complexity for a 500 GB database, plus it does not support ongoing replication after the data is loaded.

195
Multi-Selecteasy

Which TWO actions are recommended when deploying an Amazon RDS for MySQL instance in a production environment to ensure high availability and durability? (Choose two.)

Select 2 answers
A.Enable Enhanced Monitoring
B.Enable automated backups with a retention period of at least 7 days
C.Enable Performance Insights
D.Enable deletion protection
E.Enable Multi-AZ deployment
AnswersB, E

Automated backups allow point-in-time recovery within the retention period.

Why this answer

Automated backups with a retention period of at least 7 days enable point-in-time recovery (PITR) within that window, which is critical for restoring a database to a specific second in the event of a failure or data corruption. This ensures durability by allowing you to recover from logical errors or accidental deletions, not just hardware failures. Option E is correct because Multi-AZ deployment automatically provisions and maintains a synchronous standby replica in a different Availability Zone, providing automatic failover for high availability without manual intervention.

Exam trap

The trap here is that candidates often confuse monitoring and performance tools (Enhanced Monitoring, Performance Insights) with high availability or durability features, or they mistakenly think deletion protection provides data durability, when in fact only automated backups and Multi-AZ deployment directly address these concerns.

196
MCQeasy

A developer needs to deploy an Amazon RDS for MySQL DB instance that is accessible only from a specific EC2 instance in a VPC. Which configuration ensures this?

A.Use an IAM role to allow the EC2 instance to connect to the RDS instance
B.Enable public accessibility and assign a public IP to the RDS instance
C.Place RDS and EC2 in different subnets and configure a network ACL
D.Place the RDS instance in the same VPC as the EC2 instance and configure a security group inbound rule referencing the EC2 security group
AnswerD

This ensures traffic is allowed only from the specific EC2 security group.

Why this answer

Placing the RDS instance in the same VPC as the EC2 instance and configuring a security group inbound rule that references the EC2 instance's security group allows traffic only from that specific EC2 instance. Security group rules are stateful and support referencing other security groups as sources, which provides a precise and secure method for controlling database access without exposing the RDS instance to the broader network.

Exam trap

The trap here is that candidates often confuse IAM roles with network security, thinking they can control database access via IAM, when in fact IAM is used for API-level permissions and not for filtering TCP/IP traffic to an RDS instance.

How to eliminate wrong answers

Option A is wrong because IAM roles control authentication and authorization for AWS API actions, not network-level access to an RDS database; they cannot replace security group rules or network ACLs for allowing TCP connections to the database port. Option B is wrong because enabling public accessibility assigns a public IP address and exposes the RDS instance to the internet, which violates the requirement of restricting access to only a specific EC2 instance and introduces unnecessary security risks. Option C is wrong because placing RDS and EC2 in different subnets does not inherently restrict access; network ACLs are stateless and require explicit inbound and outbound rules, but they operate at the subnet level and cannot target a specific EC2 instance as precisely as a security group rule referencing the EC2 security group.

197
Multi-Selecteasy

Which TWO of the following are valid methods to migrate an on-premises MySQL database to Amazon RDS for MySQL? (Select TWO.)

Select 2 answers
A.Use pg_dump to export the data and import into RDS.
B.Use AWS DMS to migrate from on-premises MySQL to RDS.
C.Use SQL Server Integration Services (SSIS) to migrate the data.
D.Use Oracle Data Pump to export the data and import into RDS.
E.Use mysqldump to export the database and import it into RDS.
AnswersB, E

DMS supports MySQL as source.

Why this answer

AWS DMS (Database Migration Service) is a fully managed service designed to migrate databases to AWS with minimal downtime. It supports homogeneous migrations like MySQL to Amazon RDS for MySQL, handling schema conversion, data replication, and ongoing changes via change data capture (CDC). This makes option B a valid and recommended method for migrating an on-premises MySQL database to RDS.

Exam trap

The trap here is that candidates may confuse database-specific tools (pg_dump for PostgreSQL, Oracle Data Pump for Oracle, SSIS for SQL Server) with MySQL-compatible tools, leading them to select options that are technically incorrect for migrating a MySQL database to Amazon RDS for MySQL.

198
MCQeasy

A company is deploying a new web application that uses Amazon RDS for MySQL. The application must be highly available across three Availability Zones with automatic failover. Which deployment configuration should be used?

A.Deploy Amazon RDS for MySQL in a Single-AZ configuration and use an Application Load Balancer.
B.Deploy Amazon Aurora MySQL with three Aurora Replicas in different Availability Zones.
C.Deploy Amazon RDS for MySQL with Multi-AZ and a standby instance in a different Availability Zone.
D.Deploy Amazon RDS for MySQL with Read Replicas in two additional Availability Zones.
AnswerB

Aurora with Replicas provides automatic failover and high availability across multiple AZs.

Why this answer

Amazon Aurora MySQL is the correct choice because it is designed for high availability across three Availability Zones by default, with six copies of data across three AZs and the ability to create up to 15 Aurora Replicas. The requirement for automatic failover across three AZs is met by deploying three Aurora Replicas in different AZs, ensuring continuous availability even if two AZs fail. Standard Amazon RDS for MySQL Multi-AZ only supports a single standby in one other AZ, not three AZs.

Exam trap

The trap here is that candidates often confuse Amazon RDS for MySQL Multi-AZ with true multi-AZ high availability across three AZs, not realizing that Multi-AZ only covers two AZs, while Aurora is the only MySQL-compatible option that supports three AZs with automatic failover.

How to eliminate wrong answers

Option A is wrong because a Single-AZ configuration has no automatic failover capability, and an Application Load Balancer operates at the application layer, not the database layer, so it cannot handle database failover. Option C is wrong because Amazon RDS for MySQL Multi-AZ only provides a standby instance in a single different Availability Zone, not across three AZs, so it cannot meet the requirement for high availability across three AZs. Option D is wrong because Read Replicas are for read scaling and do not provide automatic failover; they require manual promotion to become the primary instance, which does not meet the automatic failover requirement.

199
MCQeasy

A company has a 50 GB MariaDB database on an on-premises server. They want to migrate to Amazon RDS for MariaDB. They have a 100 Mbps network connection. The migration window is 2 hours. The database can be offline for up to 30 minutes. Which migration approach is most appropriate?

A.Use AWS DMS with ongoing replication.
B.Use AWS Snowball to transfer the database files.
C.Create a MariaDB dump, transfer to an EC2 instance in the same region, then import to RDS.
D.Use AWS SCT to convert schema and then use DMS.
AnswerC

Simple and within window; dump/import time ~20 minutes.

Why this answer

The most appropriate because a MariaDB dump to an EC2 instance in the same region allows for a fast transfer over the network, and the import into RDS can be completed within the 2-hour migration window. The 50 GB database at 100 Mbps can be transferred in just over an hour, well within the window. Option A (DMS with ongoing replication) is unnecessarily complex for a one-time migration and may require more setup time.

Option B (Snowball) is overkill for 50 GB and would not meet the 2-hour window due to shipping and processing delays. Option D (SCT) is not needed since the source and target are both MariaDB, and schema conversion is unnecessary.

200
Multi-Selecthard

A company is migrating a self-managed PostgreSQL database to Amazon Aurora PostgreSQL. They want to use the pglogical extension for logical replication to minimize downtime. Which THREE prerequisites must be met before setting up pglogical?

Select 3 answers
A.Add pglogical to shared_preload_libraries and restart the source database
B.Set wal_level to logical in the source PostgreSQL configuration
C.Configure max_wal_senders to at least 10
D.Enable track_commit_timestamp on the source
E.Ensure the source PostgreSQL version is 9.4 or later
AnswersA, B, E

The extension must be loaded.

Why this answer

Pglogical must be loaded into the shared preload libraries on the source PostgreSQL instance so that it is available at server start. Without this, the extension cannot be installed or used. The database must be restarted after modifying shared_preload_libraries for the change to take effect.

Exam trap

The trap here is that candidates often confuse the prerequisites for pglogical with those for native PostgreSQL logical replication, which also requires max_replication_slots and max_wal_senders to be set, but pglogical does not mandate a specific value like 10 for max_wal_senders.

201
MCQhard

A company is migrating a 3 TB MySQL database to Amazon Aurora MySQL. They need to validate data consistency after migration. Which approach should they use?

A.Compare row counts between source and target tables.
B.Use AWS DMS data validation feature.
C.Run random SELECT queries on a subset of rows to compare values.
D.Compute MD5 checksums of the entire dataset in both databases.
AnswerB

DMS data validation compares source and target data using table-level checksums.

Why this answer

AWS DMS data validation feature is the correct approach because it automatically compares source and target records by computing checksums at the table level, ensuring end-to-end consistency without manual intervention. For a 3 TB migration, this built-in feature handles large-scale validation efficiently by validating ongoing replication and full-load data, which is critical for MySQL to Aurora MySQL migrations.

Exam trap

The trap here is that candidates often assume row count comparison (Option A) is sufficient for data consistency, but the exam tests the understanding that only a row-level checksum comparison (like DMS validation) can guarantee data integrity in large-scale migrations.

How to eliminate wrong answers

Option A is wrong because comparing row counts alone does not verify data integrity; row counts can match even if data values differ due to corruption or transformation errors. Option C is wrong because running random SELECT queries on a subset of rows provides only a statistical sample, not a full validation, and risks missing inconsistencies in the 3 TB dataset. Option D is wrong because computing MD5 checksums of the entire dataset in both databases is impractical and resource-intensive for 3 TB, requiring custom scripting and potentially causing performance impact, whereas DMS handles this natively.

202
MCQmedium

A company is migrating a 500 GB SQL Server database to Amazon RDS for SQL Server. They need to minimize downtime and support ongoing changes during migration. Which approach should they take?

A.Use native SQL Server backup and restore to RDS
B.Set up a Direct Connect connection and use log shipping
C.Use SQL Server Integration Services (SSIS) to replicate data
D.Use AWS DMS with full load and change data capture (CDC)
AnswerD

DMS with CDC enables minimal downtime by replicating changes.

Why this answer

AWS DMS with full load and change data capture (CDC) is the correct approach because it allows the initial 500 GB data load to be migrated while continuously replicating ongoing changes from the source SQL Server database to Amazon RDS for SQL Server. This minimizes downtime by enabling a cutover only after the target is fully synchronized, and it supports ongoing changes during migration without requiring the source database to be taken offline.

Exam trap

The trap here is that candidates often confuse log shipping (a native SQL Server HA feature) with AWS DMS CDC, but log shipping is not supported on RDS for SQL Server, making DMS the only viable option for minimizing downtime with ongoing changes.

How to eliminate wrong answers

Option A is wrong because native SQL Server backup and restore to RDS requires the database to be in full recovery mode and taken offline or read-only during the backup and restore process, causing significant downtime and not supporting ongoing changes. Option B is wrong because log shipping is a SQL Server-native feature that is not supported for Amazon RDS for SQL Server as RDS does not provide access to the underlying operating system or SQL Server Agent to configure and manage log shipping jobs. Option C is wrong because SSIS is an ETL tool designed for batch data movement and transformation, not for real-time replication of ongoing changes, and it would require complex custom logic to capture and apply CDC, making it unsuitable for minimizing downtime during a live migration.

203
Matchingmedium

Match each AWS security feature to its purpose for databases.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Virtual firewall controlling inbound/outbound traffic at instance level

Use IAM users/roles to authenticate to RDS/Aurora

Protects data stored on disk using KMS keys

Encrypts data in transit between client and database

Managed service to create and control encryption keys

Why these pairings

AWS KMS handles encryption keys, IAM controls access, Security Groups provide network firewall, and Secrets Manager manages credentials. Common confusions include mixing up KMS with IAM for key management vs. access control.

204
MCQhard

A company is migrating an on-premises Oracle database to Amazon RDS for Oracle using AWS DMS. The migration fails with an error indicating that DMS cannot capture changes from the source because the archive log mode is not enabled. What should be done?

A.Disable ongoing replication and perform a full load only.
B.Set up an Oracle Data Guard standby and use it as the source.
C.Use AWS Schema Conversion Tool (SCT) to convert the schema.
D.Enable archive log mode on the source Oracle database.
AnswerD

DMS requires archive logging to capture changes for ongoing replication.

Why this answer

D is correct because AWS DMS requires archive log mode to be enabled on the source Oracle database for ongoing replication (CDC). Without archive logs, DMS cannot capture the redo data needed to apply changes to the target. Enabling archive log mode ensures the redo logs are preserved and accessible for change data capture.

Exam trap

The trap here is that candidates may think disabling CDC (Option A) is a valid workaround, but the question implies the migration requires ongoing replication, and the error explicitly points to the missing archive log mode, not a choice to skip CDC.

How to eliminate wrong answers

Option A is wrong because disabling ongoing replication and performing only a full load would not meet the migration requirement if the company needs continuous replication or minimal downtime; the error specifically indicates DMS cannot capture changes, so the solution must address the logging issue, not avoid CDC. Option B is wrong because setting up an Oracle Data Guard standby does not resolve the archive log mode requirement on the source; DMS would still need archive logs on the source or the standby to capture changes, and this adds unnecessary complexity. Option C is wrong because AWS Schema Conversion Tool (SCT) is used for schema conversion, not for enabling change data capture or resolving archive log mode issues; the error is about DMS’s inability to capture changes, not schema incompatibility.

205
Multi-Selecteasy

A company is deploying a new Amazon DynamoDB table with on-demand capacity. The table will store session data for a web application. Which THREE features should be enabled to improve performance and durability?

Select 3 answers
A.Auto scaling
B.Time to Live (TTL)
C.DynamoDB Accelerator (DAX)
D.Point-in-time recovery (PITR)
E.Global tables
AnswersC, D, E

DynamoDB Accelerator (DAX) provides an in-memory cache that reduces read latency to microseconds, significantly improving performance.

Why this answer

For an on-demand DynamoDB table, Auto scaling is not applicable because on-demand mode automatically scales throughput. To improve performance, use DynamoDB Accelerator (DAX) which provides an in-memory cache for microsecond read latency. For durability, enable Point-in-time recovery (PITR) for continuous backups and Global tables for multi-region replication, which also provides disaster recovery and low-latency global reads.

Time to Live (TTL) helps manage data lifecycle but does not directly improve performance or durability.

Exam trap

The trap is that candidates may think Auto Scaling is necessary for on-demand tables, but on-demand mode already scales automatically. They might also believe TTL improves performance by removing old data, but its primary purpose is data lifecycle management, not performance. For performance, DAX is key; for durability, PITR and Global tables are needed.

206
MCQhard

A company is moving a self-hosted MySQL database to Amazon Aurora MySQL. The current database uses InnoDB with full-text indexes and triggers. The migration must be done with zero downtime. Which approach meets these requirements?

A.Use AWS DMS with ongoing replication from the source MySQL database
B.Use mysqldump to export the database and import into Aurora
C.Set up MySQL replication from on-premises to Aurora using native binlog replication
D.Export data to Amazon S3 and use Aurora's LOAD DATA FROM S3 command
AnswerA

AWS DMS with ongoing replication (change data capture) allows continuous synchronization from the source MySQL database to Amazon Aurora MySQL, enabling zero-downtime migration. DMS captures incremental changes from the source's binary logs and applies them to the target, keeping the database fully operational.

Why this answer

AWS DMS with ongoing replication (change data capture) allows continuous synchronization from the source MySQL database to Amazon Aurora MySQL, enabling a zero-downtime migration. DMS captures incremental changes from the source's binary logs (binlog) and applies them to the target, so the database remains fully operational during the migration. This approach also supports InnoDB tables, full-text indexes, and triggers, as DMS handles schema and data replication for these features.

Option C (native MySQL binlog replication) is supported by Aurora MySQL, but it requires an initial seed of data which introduces downtime because the source database typically needs to be in a read-only state for a consistent backup. In contrast, DMS with CDC avoids any initial downtime.

Exam trap

The trap here is that candidates may assume native MySQL binlog replication (Option C) is a fully supported zero-downtime option for migrating to Aurora MySQL. While Aurora does support this feature, it requires careful configuration and does not provide the managed CDC, schema conversion, and cutover capabilities that AWS DMS offers. Additionally, native replication requires manual handling of binary log positions and can lead to replication lag issues.

Therefore, DMS is the recommended approach for a zero-downtime migration, making Option C less suitable despite its apparent viability.

How to eliminate wrong answers

Option B is wrong because mysqldump performs a logical export that locks tables or requires a read-only period, causing downtime during the dump and import process, and it does not support ongoing replication for zero-downtime migration. Option C is wrong because native MySQL binlog replication to Aurora is not supported directly; Aurora MySQL uses a different replication mechanism (Aurora Replicas) and does not accept external binlog replication from an on-premises MySQL instance without additional configuration or a custom solution, and it may not handle full-text indexes and triggers seamlessly. Option D is wrong because exporting data to S3 and using LOAD DATA FROM S3 is a bulk load operation that requires the source database to be stopped or read-only during the export, and it does not provide ongoing replication, thus cannot achieve zero downtime.

207
MCQeasy

A company needs to migrate a SQL Server database to Amazon RDS for SQL Server. The database uses stored procedures with xp_cmdshell. What should the company do?

A.Rewrite the stored procedures to remove dependency on xp_cmdshell before migration.
B.Use RDS Custom for SQL Server to retain full control.
C.Enable xp_cmdshell in the RDS parameter group.
D.Disable xp_cmdshell in the stored procedures and migrate as-is.
AnswerA

xp_cmdshell is not supported; procedures must be modified to use alternatives.

Why this answer

Amazon RDS for SQL Server does not support the xp_cmdshell extended stored procedure because it allows execution of operating system commands, which violates the managed service model where AWS controls the host OS. The correct approach is to rewrite the stored procedures to remove dependency on xp_cmdshell before migration, using alternatives such as SQL Server Agent jobs, CLR integration, or external scripting via AWS Lambda or EC2.

Exam trap

The trap here is that candidates assume RDS Custom for SQL Server provides full OS control, but AWS still restricts xp_cmdshell and other OS-level features, making rewriting the only viable option.

How to eliminate wrong answers

Option B is wrong because RDS Custom for SQL Server does not enable xp_cmdshell; even with RDS Custom, AWS restricts access to the underlying OS and does not allow enabling xp_cmdshell due to security policies. Option C is wrong because xp_cmdshell cannot be enabled in an RDS parameter group; the RDS parameter group does not expose the 'xp_cmdshell' configuration option, and attempting to set it will be ignored or cause an error. Option D is wrong because simply disabling xp_cmdshell in the stored procedures and migrating as-is will break the procedures; the procedures must be rewritten to use alternative methods that do not rely on xp_cmdshell at all.

208
MCQhard

A database administrator is trying to delete the RDS instance named 'prod-critical' using the AWS CLI. The IAM policy shown is attached to the user. What will happen?

A.The delete will succeed only if the user includes a condition.
B.The delete will fail because the Deny statement explicitly denies the action for that resource.
C.The delete will fail because the policy has a syntax error.
D.The delete will succeed because the Allow statement grants permission.
AnswerB

Deny overrides Allow, so the delete fails.

Why this answer

The Deny statement in the policy explicitly denies the 'rds:DeleteDBInstance' action on the resource 'arn:aws:rds:*:*:db:prod-critical'. In AWS IAM, an explicit Deny always overrides any Allow, so the delete will fail. Option A is incorrect because a condition is not relevant; the Deny is unconditional.

Option C is incorrect because the policy has no syntax error. Option D is incorrect because the Allow does not apply due to the overriding Deny.

209
MCQeasy

A company wants to deploy a MySQL database that automatically scales read capacity based on traffic without manual intervention. Which AWS database offering should they use?

A.Amazon DynamoDB with auto scaling
B.Amazon RDS for MySQL with Multi-AZ deployment
C.Amazon RDS for MySQL with a Single-AZ deployment
D.Amazon Aurora with Auto Scaling for read replicas
AnswerD

Aurora Auto Scaling automatically adjusts the number of read replicas based on CPU or connections.

Why this answer

Amazon Aurora with Auto Scaling for read replicas is correct because it automatically adjusts the number of Aurora Replicas based on changes in read workload, scaling read capacity without manual intervention. Aurora's Auto Scaling monitors the average CPU utilization or connections of the reader fleet and adds or removes replicas to maintain a target metric, providing seamless read scaling for MySQL-compatible databases.

Exam trap

The trap here is that candidates often confuse Multi-AZ deployments (which provide failover, not read scaling) with read replica auto scaling, or they incorrectly assume DynamoDB's auto scaling applies to MySQL workloads, when the question explicitly requires a MySQL database.

How to eliminate wrong answers

Option A is wrong because Amazon DynamoDB is a NoSQL database, not a MySQL database, and its auto scaling adjusts write and read capacity units, not read replicas for a relational MySQL workload. Option B is wrong because Amazon RDS for MySQL with Multi-AZ deployment provides high availability by maintaining a standby replica in a different Availability Zone, but it does not automatically scale read capacity; the standby is not used for read traffic unless a failover occurs. Option C is wrong because Amazon RDS for MySQL with a Single-AZ deployment offers no read replica scaling at all; it is a single instance that cannot automatically add read capacity based on traffic.

210
MCQhard

A team is using AWS DMS to migrate a 3 TB Oracle database to Amazon Aurora PostgreSQL. They configured the task as shown. After the full load completes, they notice that the target tables have no indexes, primary keys, or foreign keys. What is the most likely cause?

A.The migration task did not include transformation rules to create indexes and constraints.
B.The table selection rule uses wildcards and excludes system tables, which also excludes index definitions.
C.The TargetTablePrepMode is set to DROP_AND_CREATE, which creates tables without indexes or constraints.
D.The task is using a full load without LOB support, which prevents index creation.
AnswerC

DROP_AND_CREATE mode creates target tables with only the column definitions, not indexes or constraints.

Why this answer

When TargetTablePrepMode is set to DROP_AND_CREATE, AWS DMS drops the target table if it exists and then creates a new one using only the basic column definitions from the source. It does not migrate indexes, primary keys, or foreign keys because DMS is not designed to replicate schema objects beyond table structure and data. To preserve constraints and indexes, you must either pre-create them on the target or use a different prep mode like TRUNCATE_BEFORE_LOAD.

Exam trap

The trap here is that candidates assume DMS automatically replicates all schema objects, including indexes and constraints, when in fact DMS only migrates table structure and data, leaving schema objects like indexes and foreign keys to be handled separately.

How to eliminate wrong answers

Option A is wrong because transformation rules in DMS are used to rename tables, columns, or schemas, not to create indexes or constraints; index and constraint creation is not a feature of DMS transformation rules. Option B is wrong because wildcard table selection rules and exclusion of system tables affect which tables are migrated, not whether indexes or constraints are created on the target; DMS does not replicate index definitions regardless of table selection. Option D is wrong because LOB support settings control how large objects are handled during migration and have no impact on index or constraint creation; indexes are not created even when LOB support is enabled.

211
Multi-Selecthard

A company is deploying an Amazon DynamoDB table with on-demand capacity mode. The table will be accessed from multiple AWS Regions and requires strong consistency. Which THREE steps should be taken to meet these requirements?

Select 2 answers
A.Create a global secondary index
B.Use DynamoDB Accelerator (DAX)
C.Configure auto scaling
D.Enable DynamoDB global tables
E.Use strongly consistent reads
AnswersA, D

Correct. A global secondary index allows efficient querying across Regions using different keys, which is important for accessing data from multiple Regions.

Why this answer

None of the options correctly meet the requirements. DynamoDB global tables provide multi-Region access but only eventual consistency, and strongly consistent reads are limited to the source Region. A global secondary index does not enable cross-Region access.

Therefore, no combination of the listed steps can achieve strong consistency across multiple Regions.

Exam trap

A common trap is assuming that strongly consistent reads work with global tables across all Regions. In reality, global tables only provide eventual consistency, so strongly consistent reads are not supported in replica Regions. The only way to get strong consistency is to read from the source Region.

212
Multi-Selecteasy

A company is deploying a new MySQL database on Amazon RDS. They need to ensure that the database is automatically backed up daily and retained for 30 days. Which TWO configurations should be set? (Choose 2)

Select 2 answers
A.Set backup retention period to 30 days.
B.Enable automated backups.
C.Set backup window.
D.Enable Multi-AZ deployment.
E.Create a manual snapshot daily.
AnswersA, B

Defines retention.

Why this answer

Setting the backup retention period to 30 days ensures that automated backups are retained for the required duration. Option B is correct because automated backups must be enabled for the retention period to take effect; without enabling automated backups, no automatic daily backups occur. Together, these two settings satisfy the requirement for daily automated backups retained for 30 days.

Exam trap

The trap here is that candidates often confuse the backup window (Option C) or Multi-AZ (Option D) as being required for backup retention, when in fact only enabling automated backups and setting the retention period are necessary; the backup window is optional and Multi-AZ is unrelated to backup retention.

213
MCQmedium

A company is migrating a 2 TB PostgreSQL database from on-premises to Amazon RDS for PostgreSQL. The migration must have minimal downtime and support ongoing replication. Which AWS service should be used for the migration?

A.AWS S3 Transfer Acceleration for direct database export
B.AWS Data Migration Service with AWS Glue
C.AWS Snowball Edge for offline data transfer
D.AWS Database Migration Service (DMS) with change data capture
AnswerD

AWS DMS supports ongoing replication with CDC for minimal downtime.

Why this answer

AWS Database Migration Service (DMS) with change data capture (CDC) is the correct choice because it supports ongoing replication from the source PostgreSQL database to Amazon RDS for PostgreSQL with minimal downtime. DMS performs a full load of the 2 TB database and then continuously applies changes using PostgreSQL's logical replication slots (via the pglogical extension or native WAL-based CDC), ensuring the target remains synchronized during the migration cutover.

Exam trap

The DBS-C01 exam often tests the misconception that AWS Data Migration Service (a non-existent service) combined with AWS Glue is a valid migration path, when in fact the correct service is AWS Database Migration Service (DMS) with CDC, and Glue is unrelated to live database replication.

How to eliminate wrong answers

Option A is wrong because AWS S3 Transfer Acceleration is a service for speeding up uploads to S3 over the internet, not a database migration tool; it cannot perform ongoing replication or handle PostgreSQL schema and data conversion. Option B is wrong because AWS Data Migration Service is not a valid AWS service name (the correct service is AWS Database Migration Service, DMS), and AWS Glue is an ETL service for data transformation, not designed for live database migration with minimal downtime and CDC. Option C is wrong because AWS Snowball Edge is an offline data transfer device for moving large datasets physically, which introduces significant downtime and cannot support ongoing replication or real-time change capture during the migration.

214
Multi-Selecteasy

A company is migrating a 200 GB MySQL database to Amazon Aurora MySQL. The migration must be completed within a 1-hour downtime window. Which TWO methods can achieve this?

Select 2 answers
A.Use AWS SCT to convert the schema and then perform a data load.
B.Use AWS DMS with full load only.
C.Use Percona XtraBackup to create a physical backup, upload to S3, and restore to Aurora.
D.Use mysqldump with parallel threads and import using mysql command.
E.Create an RDS Read Replica of the on-premises database and promote it.
AnswersC, D

XtraBackup is fast and Aurora supports restoring from it via S3.

Why this answer

Percona XtraBackup creates a physical backup of the MySQL data files, which can be uploaded to Amazon S3 and then restored directly into an Aurora MySQL cluster. This method is significantly faster than logical backups for large databases (200 GB) because it bypasses SQL parsing and row-by-row insertion, making it feasible within a 1-hour downtime window.

Exam trap

The trap here is that candidates often assume AWS DMS is always the fastest migration method, but for large databases with a strict downtime window, physical backups (XtraBackup) and parallel logical dumps (mysqldump) can be more efficient because they avoid the overhead of CDC setup and can be tuned for maximum throughput.

215
Multi-Selectmedium

A company is migrating a 200 GB Oracle database to Amazon RDS for Oracle. Which TWO steps should be taken to ensure a successful migration? (Choose two.)

Select 2 answers
A.Enable TDE encryption on the source database before migration.
B.Use AWS DMS only for heterogeneous migrations; use Oracle Data Pump instead.
C.Use AWS DMS with full load and ongoing replication.
D.Export the database using expdp and import using impdp.
E.Use AWS Schema Conversion Tool (SCT) to assess and convert the schema.
AnswersC, E

Minimizes downtime by replicating ongoing changes.

Why this answer

AWS DMS supports both homogeneous and heterogeneous migrations, and for a 200 GB Oracle database, using full load plus ongoing replication minimizes downtime by continuously applying changes from the source to the target RDS instance. This approach is ideal for migrating large databases with minimal disruption.

Exam trap

The trap here is that candidates often assume AWS DMS is only for heterogeneous migrations (e.g., Oracle to Aurora) and overlook its homogeneous capabilities, leading them to choose Oracle Data Pump (Option D) or incorrectly dismiss DMS (Option B).

216
Multi-Selectmedium

A company is migrating a 2 TB Oracle database to Amazon Aurora PostgreSQL. The migration requires ongoing replication for minimal downtime. Which THREE AWS services should be used?

Select 3 answers
A.AWS Database Migration Service (AWS DMS)
B.Amazon S3
C.AWS DataSync
D.AWS Schema Conversion Tool (AWS SCT)
E.AWS Lambda
AnswersA, B, D

DMS is the primary service for data migration and ongoing replication.

Why this answer

AWS DMS is the correct choice because it supports ongoing replication (change data capture) from Oracle to Amazon Aurora PostgreSQL, enabling minimal downtime migration. It can continuously replicate changes from the source Oracle database to the target Aurora PostgreSQL instance until the cutover, allowing the source to remain operational during the migration.

Exam trap

The trap here is that candidates may think AWS DataSync is suitable for database replication, but it only handles file-level transfers and cannot perform ongoing change data capture for databases.

217
MCQeasy

A company wants to deploy a globally distributed application with a DynamoDB table that uses optimistic locking. Which DynamoDB feature should be used to implement this?

A.DynamoDB Conditional Writes
B.DynamoDB Streams
C.DynamoDB Global Tables
D.DynamoDB Transactions
AnswerA

Conditional writes implement optimistic locking.

Why this answer

Optimistic locking in DynamoDB is implemented using conditional writes, specifically the `ConditionExpression` parameter in `PutItem`, `UpdateItem`, or `DeleteItem` operations. By checking that a version attribute (e.g., `version = :expected_version`) matches the client's known value before writing, the application can detect and reject concurrent modifications, ensuring data consistency without locking the entire table.

Exam trap

The trap here is that candidates confuse DynamoDB Transactions (which provide atomicity and isolation) with the concurrency control pattern of optimistic locking, but optimistic locking is specifically implemented using conditional writes, not transactions.

How to eliminate wrong answers

Option B is wrong because DynamoDB Streams capture a time-ordered sequence of item-level changes in a table, but they do not provide any mechanism to prevent concurrent writes or implement locking. Option C is wrong because DynamoDB Global Tables provide multi-region replication and eventual consistency, but they do not offer built-in conflict resolution for optimistic locking; they rely on last-writer-wins or custom conflict resolution using conditional writes. Option D is wrong because DynamoDB Transactions provide ACID guarantees across multiple items, but they are designed for atomic, isolated operations, not for implementing optimistic locking, which is a concurrency control pattern that uses conditional writes to detect conflicts.

218
MCQeasy

A company is deploying a new application that uses Amazon RDS for PostgreSQL. The database must be highly available and fault-tolerant. Which deployment option meets these requirements?

A.Deploy the RDS instance in a single Availability Zone
B.Deploy the RDS instance across multiple AWS Regions
C.Deploy the RDS instance with Multi-AZ configuration
D.Deploy the RDS instance with multiple read replicas
AnswerC

Multi-AZ provides automatic failover for high availability.

Why this answer

Amazon RDS Multi-AZ deployment automatically provisions and maintains a synchronous standby replica in a different Availability Zone, providing automatic failover in the event of an AZ outage or primary instance failure. This configuration meets the requirements for high availability and fault tolerance by ensuring the database remains accessible with minimal downtime, as the standby replica is kept in sync synchronously and DNS is updated to point to the standby upon failover.

Exam trap

The trap here is that candidates often confuse read replicas with Multi-AZ, mistakenly believing that multiple read replicas provide automatic failover and fault tolerance, when in fact they only serve read traffic and require manual promotion for failover, which is not automatic and can result in data loss.

How to eliminate wrong answers

Option A is wrong because deploying in a single Availability Zone creates a single point of failure; if that AZ experiences an outage, the database becomes unavailable, offering no fault tolerance. Option B is wrong because deploying across multiple AWS Regions is primarily for disaster recovery and global read scaling, not for high availability within a single region; it introduces cross-Region replication latency and does not provide automatic failover for the primary database instance. Option D is wrong because multiple read replicas are designed to offload read traffic and improve read scalability, not to provide automatic failover or fault tolerance for the primary database; read replicas are asynchronous and do not replace the need for a synchronous standby for high availability.

219
Multi-Selectmedium

Which TWO of the following are required when migrating an on-premises Oracle database to Amazon RDS for Oracle using AWS DMS with change data capture (CDC)? (Select TWO.)

Select 2 answers
A.Use AWS SCT to assess schema compatibility.
B.Create a full backup of the source database.
C.Enable supplemental logging on the source Oracle database.
D.Set up Oracle Data Guard for replication.
E.Manually create target tables in RDS.
AnswersA, C

Required for schema conversion.

Why this answer

AWS SCT (Schema Conversion Tool) is required to assess and convert the source Oracle schema to a format compatible with Amazon RDS for Oracle, ensuring that data types, indexes, and other objects are correctly mapped before migration. This step is critical because even though both are Oracle databases, differences in version, parameter settings, and storage engines can cause schema incompatibilities that DMS cannot handle automatically.

Exam trap

The trap here is that candidates often assume a full backup (Option B) is required for DMS, but DMS performs its own full load and CDC independently, making the backup unnecessary, while they overlook the critical requirement of enabling supplemental logging (Option C) for CDC to function.

220
Multi-Selecthard

A company is deploying a new application using Amazon DynamoDB. They need to ensure data durability and availability. Which THREE steps should they take? (Choose three.)

Select 3 answers
A.Configure Auto Scaling for read and write capacity
B.Enable DynamoDB Accelerator (DAX)
C.Encrypt data at rest using AWS KMS
D.Enable point-in-time recovery (PITR)
E.Use DynamoDB Global Tables
AnswersA, D, E

Ensures availability under load.

Why this answer

DynamoDB Auto Scaling automatically adjusts provisioned read/write capacity based on actual traffic patterns, preventing throttling while controlling costs. This directly supports availability by ensuring the table can handle demand spikes without manual intervention.

Exam trap

The trap here is confusing performance-enhancing features (DAX, encryption) with durability and availability mechanisms, leading candidates to select options that improve speed or security instead of data persistence and regional resilience.

221
MCQhard

A company is planning to migrate a 3 TB PostgreSQL database from an on-premises data center to Amazon Aurora PostgreSQL. The migration must have near-zero downtime. The on-premises database is using a custom pg_hba.conf that restricts access to specific IP ranges. Which combination of steps will meet the requirements?

A.Create an Aurora Replica of the on-premises database using cross-Region replication.
B.Use pg_dump and pg_restore to export and import the database during a maintenance window.
C.Use AWS DMS with ongoing replication to an Aurora DB cluster. Configure the source endpoint with the appropriate connection settings.
D.Use AWS SCT to convert the schema and then perform a full data load using AWS DMS.
AnswerC

DMS supports ongoing replication, and the source endpoint can be configured to connect to the on-premises database.

Why this answer

AWS DMS with ongoing replication (CDC) enables near-zero downtime migration by continuously synchronizing changes from the source PostgreSQL database to the target Aurora PostgreSQL cluster after an initial full load. Configuring the source endpoint with the correct connection settings, including the custom pg_hba.conf IP ranges, allows DMS to connect securely. This approach meets the requirement for minimal downtime, unlike batch export/import methods.

Exam trap

The trap here is that candidates may confuse AWS DMS with schema conversion tools (SCT) or assume that Aurora Replicas can be used for external replication, when in fact DMS with CDC is the correct service for heterogeneous or homogeneous migrations with minimal downtime.

How to eliminate wrong answers

Option A is wrong because Aurora Replicas are read replicas within an Aurora cluster, not a replication mechanism from an on-premises database; cross-Region replication refers to Aurora-to-Aurora replication, not from an external PostgreSQL instance. Option B is wrong because pg_dump and pg_restore require a maintenance window with downtime to export and import the full 3 TB database, which violates the near-zero downtime requirement. Option D is wrong because AWS SCT is used for schema conversion when migrating to a different database engine (e.g., Oracle to Aurora), but the source and target are both PostgreSQL, so no schema conversion is needed; DMS alone can handle the migration without SCT.

222
MCQhard

A company is migrating a 1 TB SQL Server database to Amazon RDS for SQL Server. They use AWS DMS with full load and ongoing replication. After the full load completes, they observe that the ongoing replication is falling behind and the target database is not consistent. The source database has high transaction volume. What is the most effective way to improve replication performance?

A.Disable CloudWatch logging for the DMS replication instance.
B.Configure multiple parallel load tasks for ongoing replication.
C.Enable batch apply mode in the DMS task.
D.Increase the size of the DMS replication instance (e.g., from dms.c5.xlarge to dms.c5.2xlarge).
AnswerD

A larger instance provides more resources to process transactions faster.

Why this answer

Increasing the DMS replication instance size (Option D) provides more CPU and memory resources, which directly addresses the bottleneck caused by high transaction volume on the source. A larger instance can process and apply changes faster, reducing the replication lag and improving consistency. This is the most effective single action because it scales the entire replication pipeline without altering the task configuration.

Exam trap

The trap here is that candidates often confuse full-load parallelism (multiple tasks) with CDC performance, or assume that disabling logging or toggling batch apply will fix lag, when the root cause is insufficient instance compute capacity for high-volume transactional workloads.

How to eliminate wrong answers

Option A is wrong because disabling CloudWatch logging does not free up significant resources; DMS logging overhead is minimal and not a primary cause of replication lag. Option B is wrong because multiple parallel load tasks are used for the full load phase, not for ongoing replication (CDC), which uses a single continuous change capture task. Option C is wrong because batch apply mode is already enabled by default in DMS for ongoing replication; toggling it off would worsen performance, not improve it.

223
MCQeasy

A company wants to migrate an on-premises MySQL database to Amazon RDS for MySQL with minimal downtime. They plan to use AWS DMS. Which source database configuration is required to enable ongoing replication (CDC)?

A.Enable binary logging (binlog) on the source database
B.Set auto_increment_increment to 1
C.Enable the slow query log
D.Enable the query cache
AnswerA

Binlog captures changes for CDC.

Why this answer

AWS DMS requires binary logging (binlog) enabled on the source MySQL database to capture ongoing changes for continuous replication (CDC). The binlog records all data modifications (INSERT, UPDATE, DELETE) in a sequential log, which DMS reads to apply those changes to the target RDS instance with minimal downtime. Without binlog enabled, DMS can only perform a full load migration and cannot support ongoing replication.

Exam trap

The trap here is that candidates may confuse MySQL's binary log with other logs (slow query log, query cache) or assume that auto-increment settings are required for replication, when in fact only binlog enables the change stream DMS needs for CDC.

How to eliminate wrong answers

Option B is wrong because setting auto_increment_increment to 1 is the default behavior and does not enable CDC; it controls the step size for auto-increment columns, not replication logging. Option C is wrong because the slow query log captures queries that exceed a defined execution time threshold, which is used for performance tuning and has no role in CDC replication. Option D is wrong because the query cache is a deprecated MySQL feature that caches SELECT results for performance; it does not provide the change data capture stream that DMS requires.

224
Multi-Selecthard

A company is migrating a 5 TB Oracle database to Amazon RDS for Oracle. The migration must have minimal downtime and support a cutover window of less than 30 minutes. The company is using AWS DMS with ongoing CDC. Which THREE steps should be taken to minimize cutover time? (Choose three.)

Select 3 answers
A.Configure AWS DMS to use ongoing replication and set the target to apply changes until the source is caught up.
B.Pause application writes to the source database and allow CDC to catch up.
C.Validate that the target database is consistent with the source using AWS DMS data validation.
D.Take a full backup of the source database and restore it to the target before cutover.
E.Use AWS Schema Conversion Tool (SCT) to convert remaining schema objects before cutover.
AnswersA, B, C

Ongoing replication with CDC catches up the target.

Why this answer

AWS DMS ongoing replication (CDC) continuously captures and applies changes from the source Oracle database to the target RDS for Oracle instance. By configuring the target to apply changes until the source is fully caught up, you ensure that at cutover the target is nearly synchronized, minimizing the final downtime to just the time needed to apply the last few transactions.

Exam trap

The trap here is that candidates might think a full backup/restore (Option D) is necessary for migration, but for minimal downtime with CDC, the initial full load is done via DMS itself, not a separate backup, and SCT (Option E) is a pre-migration tool, not a cutover step.

225
MCQmedium

A company is deploying a new web application that uses Amazon RDS for MySQL. To improve read performance, they add a read replica. However, the application reports stale data. What is the most likely cause?

A.The application is using a connection pool that caches connections to the primary.
B.The read replica is in a different AWS Region.
C.The replication is asynchronous and there is replication lag.
D.The application is reading from the replica before the write is committed on the primary.
AnswerC

Asynchronous replication causes eventual consistency.

Why this answer

Amazon RDS for MySQL uses asynchronous replication for read replicas. The primary instance commits writes and then sends the binary log (binlog) events to the replica, which applies them. This asynchronous nature introduces replication lag, meaning the replica may not have the most recent writes.

If the application reads from the replica before the lag is resolved, it will see stale (older) data.

Exam trap

The trap here is that candidates often confuse asynchronous replication with synchronous replication, assuming the replica always has the latest data, or they incorrectly attribute the issue to geographic distance or connection pooling rather than the fundamental replication lag inherent in MySQL's async model.

How to eliminate wrong answers

Option A is wrong because a connection pool that caches connections to the primary would not cause stale data on a read replica; it would simply direct reads to the primary, which always has the latest data. Option B is wrong because a read replica in a different AWS Region can introduce additional latency but does not inherently cause stale data; replication lag is the primary cause, and cross-region replicas still replicate asynchronously. Option D is wrong because the application cannot read from the replica before the write is committed on the primary; the write must be committed on the primary before it is even sent to the replica, so the issue is the time it takes for the replica to apply the committed change, not the commit order.

← PreviousPage 3 of 5 · 341 questions totalNext →

Ready to test yourself?

Try a timed practice session using only Deployment and Migration questions.