CCNA Management and Operations Questions

75 of 312 questions · Page 2/5 · Management and Operations · Answers revealed

76
MCQeasy

An e-commerce company uses Amazon ElastiCache for Redis as a session store for its web application. The application experiences occasional latency spikes during flash sales. The operations team notices that the Redis cluster's CPU utilization reaches 90% during these events. The current cluster is a single shard with a cache.r5.large node. The team wants to reduce CPU utilization and improve performance. What should the database administrator do?

A.Add read replicas to offload read traffic from the primary node.
B.Increase the number of replicas for data durability.
C.Disable AOF persistence to reduce write overhead.
D.Enable encryption at rest to secure data.
AnswerA

Read replicas handle read requests, reducing CPU usage on the primary.

Why this answer

Option B is correct because adding read replicas distributes read traffic, reducing CPU load on the primary. Option A is wrong because increasing retention does not reduce CPU. Option C is wrong because disabling persistence reduces durability but does not significantly reduce CPU.

Option D is wrong because enabling encryption adds CPU overhead.

77
MCQhard

A company is migrating an on-premises Oracle database to Amazon RDS for Oracle. The database is 500 GB in size and has a 24/7 uptime requirement. The migration window is limited to 2 hours. Which strategy should be used to minimize downtime?

A.Use AWS Schema Conversion Tool (SCT) to convert the schema and copy data
B.Take an on-premises backup and restore to RDS using Oracle RMAN
C.Export the database to a dump file and import into RDS
D.Use AWS Database Migration Service (DMS) with ongoing replication
AnswerD

DMS supports minimal downtime by replicating changes until cutover.

Why this answer

Option C is correct because AWS DMS can replicate ongoing changes and allow a short cutover window. Option A is wrong because AWS SCT does not handle data migration. Option B is wrong because restoring a snapshot takes longer than 2 hours for 500 GB.

Option D is wrong because Export/Import requires downtime and is slow.

78
MCQmedium

A company is using Amazon Aurora MySQL-Compatible Edition. The database is experiencing performance degradation due to long-running queries. The DBA needs to identify the queries that are consuming the most resources. Which action should be taken?

A.Enable Enhanced Monitoring and review the OS process list.
B.Enable the slow query log and use a third-party tool to analyze it.
C.Use Amazon RDS Performance Insights to identify the top SQL queries.
D.Enable CloudWatch Logs for the DB instance and search for errors.
AnswerC

Performance Insights helps identify queries that are consuming the most resources.

Why this answer

Option C is correct because Performance Insights provides a dashboard to analyze database performance and identify top SQL queries by load. Option A is wrong because RDS Enhanced Monitoring shows OS metrics, not specific queries. Option B is wrong because CloudWatch Logs collects logs but does not analyze query performance.

Option D is wrong because the slow query log must be enabled and analyzed separately.

79
MCQeasy

Refer to the exhibit. A database administrator runs the AWS CLI command to retrieve CloudWatch metrics for an Amazon RDS DB instance. The output shows a spike in WriteLatency at 10:05 UTC. What is the most likely cause of this spike?

A.The DB instance's gp2 volume has exhausted its burst credits.
B.The DB instance is in the process of taking a snapshot.
C.There is a large number of concurrent connections to the DB instance.
D.The DB instance experienced a Multi-AZ failover.
AnswerA

Exhausted burst credits cause the volume to operate at baseline performance, leading to higher latency.

Why this answer

Option A is correct because a sudden spike in write latency often indicates that the storage volume has exhausted its burst credits and is now using baseline performance, which may be slower. Option B is incorrect because a large number of connections typically causes increased CPU and memory usage, not necessarily a latency spike. Option C is incorrect because a Multi-AZ failover would cause a brief downtime, not a latency spike.

Option D is incorrect because a snapshot would cause I/O suspension, not a latency spike.

80
MCQeasy

A database administrator needs to retain backups of an Amazon RDS for PostgreSQL DB instance for 7 years to meet compliance requirements. The automated backup retention period is limited to 35 days. Which solution should be used?

A.Export the automated backups to Amazon S3 and apply an S3 lifecycle policy.
B.Create manual snapshots at regular intervals and retain them for 7 years.
C.Increase the automated backup retention period to 7 years.
D.Use an AWS Lambda function to copy automated backups to an EC2 instance.
AnswerB

Manual snapshots are retained until deleted, suitable for long-term retention.

Why this answer

Manual snapshots are retained indefinitely until deleted. Automated backups have a max retention of 35 days. Exporting to S3 is an option but not directly a backup retention method; you can export snapshots to S3, but manual snapshots are the standard way to retain backups long-term.

EC2 instance backups are not applicable.

81
MCQmedium

A company has an Amazon Redshift cluster with a single node. The cluster is used for reporting. Recently, queries have become slow, and the cluster's disk space is 80% full. Which action should be taken to improve query performance and manage storage?

A.Resize the cluster to include additional compute nodes.
B.Enable compression on all columns using the ENCODE AUTO option.
C.Modify the table's distribution style to DISTSTYLE ALL for all tables.
D.Run the VACUUM command to reclaim space from deleted rows.
AnswerA

Adding nodes distributes data across more slices, improving query parallelism and providing more storage.

Why this answer

Option A is correct because adding nodes distributes data and workload, improving performance and increasing storage capacity. Option B is wrong because VACUUM only reclaims space from deleted rows; it does not add capacity. Option C is wrong because compression is applied during COPY; re-encoding existing data requires unloading and reloading.

Option D is wrong because DISTSTYLE ALL replicates data to all nodes, which increases storage usage and may not help.

82
MCQmedium

A company is running an Amazon RDS for PostgreSQL DB instance with Multi-AZ. The database experiences a failover during a maintenance window. After the failover, the application connection pool continues to use the old primary endpoint, causing connection errors. What is the BEST way to ensure application connections automatically redirect to the new primary after a failover?

A.Use the RDS endpoint (CNAME) provided by RDS, which automatically points to the primary instance.
B.Create a custom Route 53 failover routing policy pointing to both DB instances.
C.Modify the application connection string to point to the new primary IP address after each failover.
D.Configure the application to use a static IP address of the primary instance.
AnswerA

The RDS endpoint is a DNS CNAME that updates after failover, ensuring seamless redirection.

Why this answer

Option C is correct because using the RDS DNS CNAME record (which points to the primary instance and automatically updates after failover) ensures connections are redirected. Option A is wrong because modifying the connection string manually is not automated. Option B is wrong because a custom DNS solution adds complexity and is unnecessary.

Option D is wrong because the RDS endpoint is dynamic and not static; the DNS record handles the failover.

83
MCQhard

An administrator is troubleshooting a permissions issue. A user with the IAM policy shown is unable to share an automated system snapshot with another AWS account. Which action should the administrator take to resolve this issue?

A.Add the rds:ModifyDBSnapshotAttribute action to the policy.
B.Add the rds:CopyDBSnapshot action for cross-region copy.
C.Change the Resource to "arn:aws:rds:us-east-1:123456789012:snapshot:automated:*".
D.Change the Resource to "arn:aws:rds:us-east-1:123456789012:snapshot:rds:*".
AnswerC

Automated snapshots require a resource ARN that includes 'automated'.

Why this answer

Option C is correct because the policy allows actions on DB snapshots, but automated snapshots have the resource type 'automated-snapshot' and require explicit resource ARN instead of '*'. Option A is wrong because the policy already includes the necessary actions. Option B is wrong because the issue is not about cross-region copying.

Option D is wrong because the issue is not about manual snapshots.

84
MCQhard

A company has an Amazon DynamoDB table with on-demand capacity mode. They notice that write requests are being throttled during peak hours. The table has a global secondary index (GSI) that is also throttled. Which action should the database specialist take to resolve the throttling?

A.Review the partition key design and consider adding a suffix to distribute writes more evenly.
B.Enable DynamoDB Streams to offload write operations.
C.Switch to provisioned capacity mode and increase write capacity units (WCU).
D.Increase the write capacity of the GSI by updating the table's provisioned throughput.
AnswerA

Even distribution of write traffic across partitions reduces throttling.

Why this answer

Option C is correct because in on-demand mode, throttling can occur if a single partition key receives more than 1,000 WCU or 3,000 RCU. Adjusting the partition key design to spread the workload more evenly can resolve throttling. Option A is wrong because the table is on-demand, so switching to provisioned capacity might not help if the access pattern is uneven.

Option B is wrong because the GSI inherits throttling from the base table; adding more GSI capacity is not applicable in on-demand mode. Option D is wrong because DynamoDB Streams do not directly affect throttling.

85
MCQhard

A company is migrating an on-premises Oracle database to Amazon RDS for Oracle. The database size is 2 TB and the network bandwidth is limited. The company needs to minimize downtime during migration. Which AWS service should be used?

A.Oracle Data Pump export and import
B.AWS Schema Conversion Tool (SCT)
C.AWS Database Migration Service (DMS)
D.AWS Snowball Edge
AnswerC

DMS can migrate live data with minimal downtime.

Why this answer

Option D is correct because AWS DMS can perform live migration with minimal downtime. Option A is wrong because AWS SCT helps with schema conversion but not data migration. Option B is wrong because Export/Import from Oracle dump requires downtime.

Option C is wrong because AWS Snowball is for offline data transfer, which introduces downtime.

86
MCQhard

A multinational e-commerce company runs an Amazon Aurora MySQL database for its product catalog. The database is 2 TB and has a high write volume. The company needs to create a test environment that contains a subset (10%) of the production data for developers to use. The test environment must be refreshed daily with the latest production data. The operations team wants to minimize cost and ensure that the test environment does not impact production performance. Which solution should they implement?

A.Use AWS DMS to continuously replicate a filtered subset of data to a test cluster.
B.Take a manual snapshot of the production cluster, restore it to a new cluster, and delete 90% of the data.
C.Use Aurora cloning to create a clone of the production cluster. Use database triggers or scripts to delete 90% of the data after cloning.
D.Create a read replica of the production cluster, promote it to a standalone cluster, and delete 90% of the data.
AnswerC

Cloning is fast, cost-effective, and does not impact production.

Why this answer

Using Aurora cloning creates a copy that shares storage with the source, minimizing cost and avoiding performance impact. Option A is correct. Option B (snapshot and restore) creates a full copy, costing more.

Option C (DMS) adds cost and overhead. Option D (read replica and promote) would impact production replication.

87
MCQeasy

A company has an Amazon RDS for PostgreSQL DB instance with automated backups enabled. The retention period is set to 7 days. A developer accidentally performed a DROP TABLE operation on a critical table 2 days ago. How can the table be recovered with minimal data loss?

A.Perform a point-in-time restore to a time just before the DROP TABLE operation.
B.Use the pg_dump utility to create a manual backup and restore it.
C.Create a read replica of the DB instance and promote it to a standalone instance.
D.Restore the DB instance from the oldest automated snapshot.
AnswerA

PITR allows recovery to any point within the retention period.

Why this answer

Point-in-time restore allows recovery to any time within the backup retention period. The table was dropped 2 days ago, so restoring to a time just before the drop will recover the data. Option A (restore from oldest snapshot) would lose data from the last 7 days; Option C (manual backup) is not available; Option D (replicate to another region) does not help.

88
MCQeasy

A company is using Amazon DynamoDB for a web application. The company notices that read requests to a particular table are throttled during peak hours. The table has a provisioned read capacity of 1000 read capacity units (RCUs). The read requests are mostly eventually consistent reads. What should the company do to reduce throttling without changing the application code?

A.Use Amazon ElastiCache to cache the read results.
B.Switch to strongly consistent reads to reduce the number of read requests.
C.Implement DynamoDB Accelerator (DAX) to cache read requests.
D.Increase the provisioned read capacity for the table.
AnswerD

This directly increases the number of allowed reads per second, reducing throttling.

Why this answer

Increasing the provisioned read capacity directly addresses throttling by allowing more reads per second. Option B is wrong because DynamoDB Accelerator (DAX) requires code changes to use. Option C is wrong because eventually consistent reads are already used.

Option D is wrong because using strongly consistent reads would increase RCU consumption, worsening throttling.

89
MCQmedium

A database specialist sees the above output for an RDS MySQL instance. The application reports that the instance is not accepting writes. What is the most likely cause?

A.The instance is a read replica and cannot accept write requests.
B.The allocated IOPS are insufficient for the write workload.
C.Multi-AZ is not enabled, so the instance cannot accept writes.
D.Storage encryption is enabled, which prevents write operations.
AnswerA

Read replicas are read-only.

Why this answer

Option B is correct. The output shows the instance is a read replica (ReadReplicaSourceDBInstanceIdentifier is set), which means it is read-only and cannot accept writes. Option A is wrong because Multi-AZ does not affect write capability.

Option C is wrong because storage encryption does not prevent writes. Option D is wrong because insufficient IOPS would not make it read-only.

90
Multi-Selectmedium

A company is using Amazon DynamoDB with on-demand capacity. The operations team wants to monitor for throttled requests. Which TWO metrics from Amazon CloudWatch should be used to set up an alarm for throttling? (Select TWO.)

Select 2 answers
A.ConsumedWriteCapacityUnits
B.ReadThrottleEvents
C.ThrottledPutRecords
D.ProvisionedReadCapacityUnits
E.ThrottledGetRecords
AnswersC, E

This metric indicates throttled write requests.

Why this answer

Options A and B are correct. 'ThrottledGetRecords' and 'ThrottledPutRecords' are CloudWatch metrics that directly indicate throttled read and write requests. Option C is incorrect because 'ReadThrottleEvents' is not a standard DynamoDB metric. Option D is incorrect because 'ProvisionedReadCapacityUnits' is for provisioned mode.

Option E is incorrect because 'ConsumedWriteCapacityUnits' shows consumed capacity, not throttling.

91
Multi-Selecthard

A company is designing a disaster recovery plan for an Amazon RDS for Oracle DB instance. The primary region is us-east-1, and the DR region is us-west-2. The RPO must be less than 5 minutes, and the RTO must be less than 15 minutes. Which THREE actions should be taken? (Choose THREE.)

Select 3 answers
A.Create a cross-region read replica in us-west-2.
B.Enable cross-region automated backups to us-west-2.
C.Deploy a Multi-AZ standby in us-east-1.
D.Set up cross-region replication using AWS DMS with ongoing replication.
E.Take daily manual snapshots and copy them to us-west-2.
AnswersA, B, D

A cross-region read replica can be promoted to a standalone instance quickly, meeting RTO.

Why this answer

Option A is correct because cross-region automated backups provide RPO of a few minutes. Option C is correct because a cross-region read replica can be promoted quickly, meeting RTO. Option E is correct because a cross-region manual snapshot is too slow for RPO.

Option B is wrong because Multi-AZ is within a single region. Option D is wrong because manual snapshots do not meet RPO. So correct: A, C, and E? Wait, E is manual snapshot - that is not good.

Let's re-evaluate: To achieve RPO<5min and RTO<15min, you need continuous replication. Cross-region automated backups have an RPO of up to 5 minutes. Cross-region read replica provides near-real-time replication and can be promoted quickly.

Option B is Multi-AZ within region, not cross-region. Option D is manual snapshots, too slow. Option E is cross-region replication with AWS DMS, which can achieve low RPO.

So correct: A (cross-region automated backups), C (cross-region read replica), and E (DMS). Actually, DMS is not typically used for RDS replication; but it can be. However, the more standard approach is cross-region read replica.

Let's analyze: Option A: cross-region automated backups - RPO up to 5 minutes, but RTO can be longer than 15 minutes because you need to restore from backup. Option C: cross-region read replica - can be promoted in minutes, RTO <15min, RPO seconds. Option E: cross-region multi-AZ is not a thing.

Option B: Multi-AZ is within region. Option D: manual snapshots are too slow. So the best three to meet both RPO and RTO: A, C, and maybe E? But DMS is an alternative.

However, the question expects three correct answers. Let's check typical AWS documentation: For cross-region DR with RDS, you can use cross-region automated backups (RPO ~5min, RTO depends on restore time) or cross-region read replica (RPO seconds, RTO minutes). Multi-AZ is not cross-region.

Manual snapshots are not suitable. So which three? Possibly: A, C, and D? No. I think the intended correct answers are A, C, and D? But D says manual snapshots, which are not good.

Let's reconsider: Maybe the question is 'Which THREE' and the answers include B (Multi-AZ) as one? But Multi-AZ does not provide cross-region DR. I'm going to correct: The three correct actions are: A (cross-region automated backups), C (cross-region read replica), and E (cross-region replication using AWS DMS). But DMS is a valid service for cross-region replication.

However, the more common approach is to use a cross-region read replica. But since the question says 'Which THREE', I'll go with A, C, and E. But wait, E says 'Set up cross-region replication using AWS Database Migration Service (DMS) with ongoing replication'.

That is a valid method. So I'll keep A, C, E.

92
MCQhard

A company is running a MongoDB-compatible Amazon DocumentDB cluster. The application experiences high write latency during peak hours. The database administrator checks the CloudWatch metrics and notices that the Write IOPS metric is consistently at the maximum for the instance size. What should the administrator do to reduce write latency?

A.Increase the instance size to a larger instance class with higher IOPS limits.
B.Switch to a memory-optimized instance class.
C.Increase the allocated storage size to improve I/O performance.
D.Enable Multi-AZ deployment to offload writes to the standby.
AnswerA

Larger instance classes have higher baseline IOPS and burst IOPS, reducing write latency.

Why this answer

Option A is correct because increasing the instance size provides more IOPS capacity, which can reduce write latency if the instance is hitting IOPS limits. Option B is incorrect because enabling Multi-AZ adds a standby but does not increase write IOPS capacity on the primary. Option C is incorrect because increasing the storage size may increase IOPS if using gp2 but not necessarily, and the issue is IOPS, not storage capacity.

Option D is incorrect because the instance class is already optimized for memory; the issue is I/O, not memory.

93
MCQhard

A company is using Amazon DynamoDB for a gaming application. During a new game launch, write traffic spikes and some users receive 'ProvisionedThroughputExceededException' errors. The company wants to handle these spikes automatically and cost-effectively. What should be done?

A.Implement application-level retries with exponential backoff and a queue.
B.Switch the table to on-demand capacity mode.
C.Increase the provisioned write capacity to the expected peak.
D.Enable DynamoDB auto scaling with a target utilization of 70%.
AnswerD

Auto scaling automatically adjusts capacity to handle traffic spikes.

Why this answer

Option B is correct because DynamoDB auto scaling adjusts capacity based on actual traffic patterns, preventing throttling while optimizing cost. Option A is wrong because application-level queuing adds latency. Option C is wrong because on-demand mode is cost-inefficient for predictable spikes.

Option D is wrong because increasing provisioned capacity manually is not automatic.

94
MCQhard

A company is using Amazon DynamoDB with provisioned capacity and Auto Scaling. They notice that during a marketing campaign, write traffic exceeded the provisioned WCU and caused throttling. Auto Scaling increased the WCU, but the throttling persisted for several minutes. Which additional measure can prevent throttling during such predictable spikes?

A.Switch the table to on-demand capacity mode.
B.Enable DynamoDB Accelerator (DAX) to cache write requests.
C.Increase the maximum provisioned WCU in the Auto Scaling policy.
D.Configure a scheduled scaling action in Application Auto Scaling to increase WCU before the campaign.
AnswerD

Scheduled scaling pre-provisions capacity for known traffic patterns.

Why this answer

Option A is correct because using Application Auto Scaling scheduled scaling allows pre-scaling capacity before the spike. Option B is wrong because DAX is for reads. Option C is wrong because on-demand may be costlier but solves unpredictability; for predictable spikes, scheduled scaling is better.

Option D is wrong because increasing max capacity alone doesn't pre-scale.

95
MCQmedium

A company is using a Multi-AZ RDS for MySQL instance. The primary instance recently experienced an unexpected failover, and the application experienced a brief interruption. The database administrator wants to investigate the root cause. Which AWS service should be used to review the failover event and its details?

A.AWS Config
B.AWS Support (Trusted Advisor)
C.Amazon RDS Event Notifications
D.AWS CloudTrail
AnswerB

AWS Support provides detailed analysis and logs for RDS events, including failover root cause analysis.

Why this answer

AWS Support provides detailed logs and analysis for events like failovers through the AWS Support API and AWS Support Center. CloudTrail records API calls, RDS events show notifications but not deep root cause analysis, and Config tracks configuration changes. The correct service for RCA is AWS Support.

96
MCQmedium

A database administrator is troubleshooting a backup failure for an Amazon RDS for SQL Server DB instance. The error message states 'Insufficient storage capacity for backup. Free storage space is 0 GB.' The DB instance has 200 GB allocated storage. What is the most likely cause?

A.The DB instance has insufficient free storage space to perform the backup.
B.The DB instance has reached the maximum number of manual snapshots.
C.The transaction logs are consuming all allocated storage.
D.The backup retention period is set to 0 days, disabling automated backups.
AnswerA

Automated backups require free space for temporary files.

Why this answer

Option A is correct because RDS requires free storage for automated backups and logs; insufficient free storage causes backup failure. Option B is wrong because backup retention does not consume storage. Option C is wrong because snapshot storage is separate.

Option D is wrong because transaction logs accumulate in allocated storage.

97
MCQeasy

A developer accidentally deleted a critical table from an Amazon RDS for MySQL DB instance. Automated backups are enabled with a retention period of 7 days. The deletion occurred 3 hours ago. What is the fastest way to restore the deleted table without affecting other tables?

A.Use the RDS Query Editor to run a flashback query that retrieves the deleted data.
B.Restore the DB instance from the latest manual snapshot and extract the table.
C.Restore the table from the automated backup using the AWS Management Console table-level restore feature.
D.Perform a point-in-time restore of the DB instance to a time just before the deletion, then export the table.
AnswerD

Point-in-time restore creates a new DB instance as it was at the specified time, allowing table extraction without affecting the original instance.

Why this answer

Option D is correct because point-in-time recovery (PITR) allows you to restore the entire DB instance to any second within the automated backup retention period (7 days). By restoring to a time just before the deletion, you can then extract the deleted table using mysqldump or SELECT INTO OUTFILE, and import it back into the original instance. This is the fastest method because it leverages existing automated backups without requiring a manual snapshot or waiting for a full restore of a large instance.

Exam trap

The trap here is that candidates confuse the table-level restore feature available in Amazon Aurora (via backtrack or cloning) with standard RDS MySQL, which lacks such granularity and requires a full instance restore for point-in-time recovery.

How to eliminate wrong answers

Option A is wrong because RDS for MySQL does not support flashback queries; that feature is specific to Oracle Database and Amazon Aurora with MySQL compatibility (using undo logs). Option B is wrong because restoring from a manual snapshot would require you to have taken one before the deletion, and the scenario only mentions automated backups, not manual snapshots; even if a manual snapshot existed, restoring the entire instance and then extracting the table is slower than PITR. Option C is wrong because RDS for MySQL does not offer a table-level restore feature from automated backups; that capability exists for Amazon Aurora (using backtrack or cloning) but not for standard RDS MySQL.

98
MCQeasy

A company is using Amazon DynamoDB with auto scaling enabled. The table's read capacity is set to a minimum of 100 and maximum of 1000 read capacity units (RCUs). The actual consumed read capacity is consistently at 200 RCUs. What should the database specialist do to optimize costs without impacting performance?

A.Increase the minimum read capacity to 500 RCUs.
B.Lower the minimum read capacity to 200 RCUs.
C.Disable auto scaling and set the read capacity to 200 RCUs.
D.Decrease the maximum read capacity to 500 RCUs.
AnswerB

Matches the actual consumption, preventing over-provisioning.

Why this answer

Option A is correct because lowering the minimum to 200 RCUs ensures auto scaling does not scale below the actual usage, reducing provisioned capacity costs. Option B is wrong because decreasing the maximum could cause throttling during spikes. Option C is wrong because increasing the minimum would increase costs unnecessarily.

Option D is wrong because disabling auto scaling would require manual management and may lead to over-provisioning.

99
Matchingmedium

Match each AWS monitoring tool to its capability for databases.

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

Concepts
Matches

Collects metrics and logs, sets alarms

Visualizes database performance and identifies bottlenecks

Provides OS-level metrics for RDS instances

Records API calls for auditing and governance

SNS-based alerts for database events like failovers

Why these pairings

Tools for monitoring and troubleshooting database performance.

100
MCQmedium

A DBA runs the IAM policy simulation above. The DBA can describe the DB instance but cannot modify it. What is the most likely cause?

A.The resource ARN in the simulation is incorrect.
B.An IAM policy explicitly denies the rds:ModifyDBInstance action.
C.The DBA's IAM policy does not include an allow for rds:ModifyDBInstance.
D.The DBA is not within the VPC where the DB instance resides.
AnswerB

The evaluation result shows 'explicitDeny' for ModifyDBInstance.

Why this answer

Option A is correct because an explicit deny overrides any allow. Option B is wrong because the simulation does not check network conditions. Option C is wrong because the DBA can describe, so there is an allow for that action.

Option D is wrong because the resource ARN is correct for the DB instance.

101
MCQeasy

A company is running an Amazon RDS for MySQL DB instance. The database performance has degraded over time, and the company suspects that slow queries are the cause. Which AWS service should the company use to identify the slow queries and analyze the database performance?

A.AWS Trusted Advisor
B.Amazon RDS Enhanced Monitoring
C.Amazon CloudWatch Logs
D.Amazon RDS Performance Insights
AnswerD

Performance Insights offers a detailed view of database performance and helps identify slow queries.

Why this answer

Performance Insights provides a dashboard to analyze database performance and identify slow queries. CloudWatch Logs (A) is for logs, not query analysis. RDS Enhanced Monitoring (B) provides OS metrics, not query details.

AWS Trusted Advisor (D) provides best-practice checks, not query analysis.

102
MCQmedium

A database administrator sees repeated 'Aborted connection' warnings in the RDS for MySQL error log. The application team reports intermittent connection errors. What is the most likely cause of these aborted connections?

A.The wait_timeout parameter is too low, causing idle connections to be terminated.
B.The user 'appuser' does not have permission to connect from host '10.0.0.50'.
C.The database instance is running out of memory, causing connection drops.
D.The application is closing the database connection abruptly without completing the handshake.
AnswerD

Aborted connections often occur when the client disconnects before finishing the login handshake, which is a common application bug.

Why this answer

The error 'Got an error reading communication packets' typically indicates a network issue or the client disconnecting unexpectedly. The most common cause is that the database connection is being closed by the application without properly closing the connection, or the network between the application and database is unstable. Option C is plausible but less likely because the error message points to communication issues.

103
Multi-Selecthard

A company is migrating a 5 TB MySQL database to Amazon Aurora MySQL. The migration must have minimal downtime and support ongoing replication. The source database is in a corporate data center with a 500 Mbps internet connection. Which THREE steps should the database specialist take?

Select 3 answers
A.Establish a VPN connection to AWS and use mysqldump.
B.Use AWS Schema Conversion Tool (AWS SCT) to convert the schema.
C.Create an Aurora read replica from the source database.
D.Set up AWS Database Migration Service (AWS DMS) with change data capture (CDC).
E.Use an AWS Snowball Edge device to transfer the initial data load.
AnswersB, D, E

SCT helps with schema conversion if needed.

Why this answer

Options A, C, and E are correct. Option A: AWS DMS with CDC allows ongoing replication with minimal downtime. Option C: Using AWS SCT helps convert the schema if needed.

Option E: Using an AWS Snowball Edge device for initial load reduces the time for large data transfer over slow internet. Option B is wrong because a VPN alone does not migrate data. Option D is wrong because a read replica is not a migration tool; it is a feature of Aurora.

104
MCQhard

A company is using Amazon DynamoDB with global tables (multi-region) for a gaming application. The application writes to a table in us-east-1 and reads from a table in eu-west-1. The team notices that writes in us-east-1 are taking longer than expected to propagate to eu-west-1. What is the most likely cause?

A.Network latency between the regions is causing replication delay
B.The write capacity in eu-west-1 is insufficient
C.Conflicts are being resolved due to concurrent writes
D.DynamoDB Streams is disabled on the table
AnswerA

Global tables use asynchronous replication; inter-region latency adds propagation time.

Why this answer

Option D is correct because global tables eventually replicate asynchronously; network latency between regions can cause delays. Option A is wrong because conflict resolution does not cause delays. Option B is wrong because throughput is separate per region.

Option C is wrong because Streams are used for replication, not the cause of delay.

105
MCQmedium

Refer to the exhibit. A DBA deploys this CloudFormation stack. After creation, the DBA needs to enable deletion protection for the DB instance. Which modification to the template would accomplish this?

A.Add 'DeletionProtection': true to the Properties.
B.Add 'DeletionPolicy: Retain' to the resource.
C.Add 'PreventRDSDeletion: true' to the Properties.
D.Add 'DeletionProtection': 'Enabled' to the Properties.
AnswerA

Correct property to enable deletion protection.

Why this answer

Option D is correct. Adding DeletionProtection: true enables deletion protection. Option A is wrong because DeletionPolicy is a CloudFormation attribute, not a property.

Option B is wrong because PreventRDSDeletion is not a valid property. Option C is wrong because the syntax is incorrect.

106
MCQeasy

A company is migrating an on-premises Oracle database to Amazon RDS for Oracle. The database is 500 GB and has a 4-hour downtime window. Which AWS service should be used to perform the migration with minimal downtime?

A.AWS Database Migration Service (DMS)
B.Oracle Data Pump using Amazon RDS option groups
C.AWS Snowball Edge
D.Amazon S3 Transfer Acceleration
AnswerA

DMS can perform a one-time full load and then ongoing replication to minimize downtime.

Why this answer

Option B is correct because AWS DMS supports ongoing replication to minimize downtime during migration. Option A is wrong because AWS Snowball is for large data transfers but does not support ongoing replication. Option C is wrong because S3 is not a migration tool.

Option D is wrong because RDS does not natively support Oracle Data Pump directly; DMS is the recommended service.

107
MCQhard

A company uses Amazon DynamoDB to store session data for a web application. The application is experiencing occasional throttling (ProvisionedThroughputExceededException) during peak hours. The DynamoDB table has on-demand capacity mode. Which combination of steps should be taken to resolve the issue?

A.Review the partition key design and consider using a write sharding pattern to distribute traffic evenly.
B.Enable DynamoDB Accelerator (DAX) to cache the frequently accessed items.
C.Enable auto scaling for the table and set minimum and maximum capacity.
D.Switch to provisioned capacity and increase the read and write capacity units.
AnswerA

A hot partition causes throttling even in on-demand mode; distributing the writes across partitions resolves the issue.

Why this answer

Option D is correct because on-demand tables can still throttle if a single partition receives more than 3,000 RCU or 1,000 WCU. Using adaptive capacity with a more uniform partition key distributes traffic. Option A is wrong because on-demand does not require adjusting RCU/WCU.

Option B is wrong because auto scaling is for provisioned capacity. Option C is wrong because DAX is a caching layer that reduces read load but does not eliminate throttling for hot partitions.

108
MCQhard

A database specialist observes the CloudWatch metric for a production RDS for MySQL instance. The max_connections parameter is set to 150. The Sum of DatabaseConnections over 1-minute periods is shown. The application reports intermittent connection failures. What is the most likely cause?

A.The number of connections exceeded the max_connections limit.
B.The average number of connections is below the limit.
C.The DatabaseConnections metric is unreliable.
D.The application is not using connection pooling.
AnswerA

The Sum metric shows up to 200 connections per minute, exceeding the limit.

Why this answer

Option A is correct because the Sum metric over 1-minute period represents the total number of connections during that minute. A Sum of 200 indicates that at some point during the minute, connections exceeded the max_connections of 150, causing failures. Option B is wrong because the metric shows Sum, not average.

Option C is wrong because connection pooling reduces connections, not increases. Option D is wrong because the metric clearly shows high connection counts.

109
Multi-Selecteasy

A company is using Amazon RDS for Oracle with Automated Backups enabled. The database size is 1 TB. The company wants to improve the backup and restore performance. Which TWO actions should be taken? (Choose two.)

Select 2 answers
A.Use Provisioned IOPS storage for the database.
B.Enable backup compression.
C.Use a smaller DB instance class to reduce backup size.
D.Increase the backup retention period to 35 days.
E.Disable Multi-AZ to reduce backup time.
AnswersA, B

Higher IOPS improves backup and restore throughput.

Why this answer

Option A is correct because enabling backup compression reduces backup size and speeds up transfers. Option B is correct because using Provisioned IOPS improves I/O performance for backups. Option C is wrong because increasing retention does not improve performance.

Option D is wrong because disabling Multi-AZ reduces availability. Option E is wrong because using a smaller instance class would worsen performance.

110
MCQmedium

An Amazon RDS for MySQL DB instance has a high number of connections and the application is experiencing slow response times. The database administrator wants to identify the queries that are causing the most load. Which approach is most effective?

A.Enable slow query logs and analyze them in CloudWatch Logs
B.Monitor the DatabaseConnections metric in CloudWatch
C.Enable Amazon RDS Performance Insights and review the top SQL queries
D.Check RDS events for any error messages
AnswerC

Performance Insights provides real-time and historical analysis of database load and top queries.

Why this answer

Option C is correct because Performance Insights provides a dashboard to identify top queries by load. Option A is wrong because it shows connections, not query performance. Option B is wrong because CloudWatch logs show slow queries but not in real-time.

Option D is wrong because RDS events show instance events, not query load.

111
MCQmedium

A company is using Amazon Redshift for data warehousing. They notice that query performance has degraded over time. The database administrator checks the system tables and finds that there is significant skew in data distribution across slices. What action should be taken to improve query performance?

A.Recreate the table with a different distribution style, such as KEY distribution on a column with high cardinality.
B.Increase the number of nodes in the cluster.
C.Run the VACUUM command to reclaim space and update statistics.
D.Modify the sort keys to better match the query patterns.
AnswerA

Changing distribution style can redistribute data evenly across slices, reducing skew.

Why this answer

Option D is correct because data skew causes some slices to have more data than others, leading to slower queries. Recreating the table with a different distribution style can help. Option A is incorrect because vacuum reclaims space and analyzes statistics, but does not fix data skew.

Option B is incorrect because modifying sort keys can improve query performance but does not address data skew. Option C is incorrect because adding more nodes does not automatically redistribute existing data; skew persists.

112
MCQmedium

A company is using Amazon RDS for SQL Server with Always On Availability Groups. The primary DB instance is in us-east-1, and the secondary is in us-west-2. The application writes to the primary and reads from the secondary. The secondary instance becomes unreachable due to a network issue. What happens to the primary instance?

A.The primary continues to accept read and write operations.
B.The primary stops accepting write operations.
C.The primary automatically fails over to the secondary.
D.The primary becomes read-only until the secondary is restored.
AnswerA

The primary operates independently.

Why this answer

Option A is correct because the primary continues to accept writes independently; the secondary failure does not affect primary operations. Option B is wrong because failover is not automatic for read replicas. Option C is wrong because the primary does not become read-only.

Option D is wrong because write operations continue.

113
MCQmedium

A company is running an Amazon RDS for SQL Server DB instance. The company needs to capture changes to a specific table and replicate them to an Amazon S3 bucket in near real time. Which AWS service should be used to achieve this?

A.AWS Glue
B.AWS Database Migration Service (AWS DMS) with ongoing replication
C.Amazon RDS for SQL Server native replication
D.Amazon Kinesis Data Streams
AnswerB

DMS supports change data capture to replicate changes to S3 nearly in real time.

Why this answer

AWS DMS with ongoing replication (change data capture) can capture changes and replicate them to S3. Option B (AWS Glue) is for ETL jobs, not real-time CDC. Option C (Amazon Kinesis Data Streams) could ingest data but requires additional configuration.

Option D (Amazon RDS for SQL Server replication) does not directly write to S3.

114
MCQhard

A database specialist created the above IAM policy for a user. When the user attempts to delete an item from the Orders table, what happens?

A.The user cannot delete items because the Deny statement takes precedence.
B.The user cannot delete items because the policy does not include a condition.
C.The user can delete items because the Allow statement grants permission.
D.The user can delete items only if they have another policy that allows it.
AnswerA

Explicit Deny overrides any Allow.

Why this answer

Option C is correct. The explicit Deny overrides the Allow, so the user cannot delete items. Option A is wrong because Deny takes precedence.

Option B is wrong because the Deny explicitly restricts deletion. Option D is wrong because the policy explicitly denies deletion.

115
MCQmedium

A company uses Amazon DynamoDB with provisioned capacity for a gaming application. During a new game launch, write traffic spikes to 2x the provisioned write capacity for 30 minutes. Some writes are throttled. The company wants to handle these predictable spikes without manual intervention. What is the MOST cost-effective solution?

A.Increase the provisioned write capacity to 2x the baseline permanently.
B.Change the table to on-demand capacity mode.
C.Enable DynamoDB auto scaling with a target utilization of 70%.
D.Use Amazon SQS to buffer writes and process them later.
AnswerC

Auto scaling dynamically adjusts capacity to match traffic, cost-effective for predictable spikes.

Why this answer

Option D is correct because DynamoDB auto scaling adjusts capacity based on actual usage and can handle predictable spikes with minimal cost. Option A is wrong because switching to on-demand can be more expensive for predictable workloads. Option B is wrong because increasing capacity manually requires monitoring and intervention.

Option C is wrong because SQS does not directly handle DynamoDB write throttling.

116
MCQmedium

A company runs an Amazon RDS for MySQL Multi-AZ DB instance. The application experiences intermittent read latency spikes. The DB instance type is db.r5.large with 500 GB of General Purpose SSD (gp2) storage. The spike occurs during peak hours when read activity is high. Which action would most effectively reduce read latency?

A.Change the storage type to Provisioned IOPS (io1).
B.Enable Multi-AZ with a standby replica.
C.Increase the allocated storage to 1 TB to improve IOPS.
D.Create an Amazon RDS read replica and direct read traffic to it.
AnswerD

Read replicas offload read traffic, reducing latency.

Why this answer

Option D is correct. Adding a read replica offloads read traffic from the primary instance, reducing latency. Option A is wrong because Multi-AZ does not improve read performance; the standby is not used for reads.

Option B is wrong because increasing storage may improve throughput but not resolve read contention. Option C is wrong because gp3 provides consistent performance but does not solve read scaling.

117
MCQmedium

A company is running Amazon Redshift for data warehousing. The data warehouse is used for complex analytical queries. Recently, query performance has degraded due to data skew. Which steps should be taken to address this issue?

A.Apply sort keys on the skewed columns.
B.Apply compression on the skewed columns.
C.Re-evaluate the distribution style of the tables.
D.Increase the number of nodes in the cluster.
AnswerC

Choosing the right distribution style can evenly distribute data across nodes.

Why this answer

Option B is correct because choosing an appropriate distribution style (e.g., KEY or EVEN) can reduce data skew and improve performance. Option A is wrong while sorting can help query performance, it does not directly address skew. Option C is wrong because adding more nodes may not resolve skew.

Option D is wrong because compression reduces storage, not skew.

118
MCQmedium

A company is using Amazon RDS for MySQL with a cross-Region read replica to support disaster recovery. The primary DB instance is in us-west-2, and the read replica is in us-east-1. The read replica is used for reporting and also serves as a failover target. The operations team notices that the read replica lag is consistently above 10 seconds during peak hours. What should the team do to reduce replica lag?

A.Increase the DB instance class of the read replica.
B.Enable Multi-AZ on the primary DB instance.
C.Increase the backup retention period for the primary DB instance.
D.Disable binary logging (binlog) on the primary DB instance.
AnswerA

A larger instance class can process replication events faster.

Why this answer

Increasing the DB instance class of the read replica provides more CPU and memory resources, which allows the replica to apply changes from the binary log more quickly. Cross-Region replication lag is often caused by the replica being unable to keep up with the write rate on the primary, so scaling up the replica directly addresses the bottleneck in applying binlog events.

Exam trap

The trap here is that candidates may think enabling Multi-AZ on the primary will reduce replica lag, but Multi-AZ only provides synchronous replication within the same Region and does not affect cross-Region asynchronous replication performance.

How to eliminate wrong answers

Option B is wrong because enabling Multi-AZ on the primary provides high availability and automatic failover within the same Region, but does not affect the replication throughput to a cross-Region read replica. Option C is wrong because increasing the backup retention period only affects how long automated backups are retained; it has no impact on replication lag. Option D is wrong because disabling binary logging on the primary would stop all replication, including the cross-Region read replica, and is not a valid method to reduce lag.

119
Multi-Selectmedium

Which TWO of the following are valid strategies for reducing costs for an Amazon DynamoDB table with on-demand capacity mode? (Choose TWO.)

Select 2 answers
A.Implement DynamoDB Accelerator (DAX) to cache reads.
B.Use Amazon DynamoDB TTL to automatically delete expired data.
C.Enable DynamoDB global tables to distribute traffic.
D.Use DynamoDB Streams to process updates asynchronously.
E.Switch to provisioned capacity mode with auto scaling.
AnswersA, E

DAX reduces the number of read requests to DynamoDB, lowering read capacity consumption.

Why this answer

Implementing DAX reduces the number of read requests to the underlying DynamoDB table by serving cached results, which lowers read capacity consumption and thus reduces costs for on-demand tables. Switching to provisioned capacity with auto scaling allows you to pay for a baseline of read/write capacity units rather than per-request pricing, which is more cost-effective for predictable or steady workloads.

Exam trap

The trap here is that candidates often think TTL or Streams reduce operational costs, but they only affect storage or enable event-driven processing, not the per-request billing that drives on-demand costs.

120
MCQeasy

A developer accidentally deleted a table in an Amazon RDS for PostgreSQL DB instance. The instance has automated backups enabled with a retention period of 7 days. The deletion occurred 2 hours ago. What is the quickest way to recover the table?

A.Perform a point-in-time recovery to a time just before the deletion.
B.Use PostgreSQL pg_dump to connect and dump the table from the current instance.
C.Download the automated backup file from S3 and restore the table.
D.Restore the DB instance from the latest automated snapshot.
AnswerA

Point-in-time recovery uses transaction logs to restore to any time within the retention period.

Why this answer

Option C is correct because point-in-time recovery restores the instance to a time before the deletion, and you can then extract the table. Option A is wrong because automated backups are not directly accessible as files. Option B is wrong because restoring from a snapshot would require a snapshot taken before deletion, which may not exist if the last snapshot was after deletion.

Option D is wrong because the 'deleted' table is not in the current database.

121
MCQmedium

A company is running an Amazon Redshift cluster with a single node. They need to improve query performance for large analytical workloads. Which action would provide the most immediate performance improvement?

A.Distribute the data across all slices.
B.Apply compression encodings to all columns.
C.Increase the number of nodes in the cluster.
D.Run the VACUUM command to reclaim space.
AnswerC

Adding nodes increases processing power and memory.

Why this answer

Option C is correct because adding more nodes to the cluster distributes the workload and improves parallelism. Option A is wrong because using a single node, distributing data across slices is limited. Option B is wrong because compression is already used typically.

Option D is wrong because VACUUM reclaims space but does not significantly improve performance for large workloads.

122
MCQmedium

A company is running an Amazon RDS for MySQL DB instance. The DB instance is experiencing high CPU utilization due to a sudden increase in read traffic. The company needs to reduce the load on the primary DB instance with minimal downtime. Which solution should be used?

A.Modify the DB instance to a larger instance class.
B.Use an Amazon ElastiCache cluster to cache frequent queries.
C.Enable Multi-AZ on the DB instance.
D.Create an RDS read replica and redirect read queries to it.
AnswerD

Read replicas offload read traffic and can be created without downtime.

Why this answer

Option A is correct because creating a read replica offloads read traffic from the primary instance, reducing CPU utilization, and replicas can be promoted later if needed. Option B is wrong because modifying the DB instance class requires downtime. Option C is wrong because Multi-AZ is for high availability, not read scaling.

Option D is wrong because caching alone may not reduce CPU utilization caused by database queries.

123
MCQeasy

A developer accidentally deleted a production RDS for PostgreSQL DB instance. The company has automated backups enabled with a retention period of 7 days. What is the fastest way to restore the database to the state just before the deletion?

A.Recover the instance from the Amazon RDS Recycle Bin.
B.Restore from the latest automated snapshot that was taken before deletion.
C.Use the AWS DMS to migrate the data from the deleted instance to a new one.
D.Create a new DB instance and use point-in-time recovery to the time just before deletion.
AnswerD

Point-in-time recovery can be used to restore to any time within the retention window, even for deleted instances.

Why this answer

Option C is correct. When automated backups are enabled, you can restore a DB instance to any point within the retention period, even after deletion. The deleted instance is retained for the backup retention period.

Option A is wrong because point-in-time recovery does not require a manual snapshot. Option B is wrong because a manual snapshot was not taken. Option D is wrong because you cannot recover from the Recycle Bin for RDS instances; RDS does not use the Recycle Bin.

124
MCQhard

A company runs an Amazon Aurora MySQL database. The database experiences a sudden spike in connections and then becomes unresponsive. The DB instance has a db.r5.large class with 8 GB memory. The maximum connections parameter is set to the default. Which is the most likely cause of the unresponsiveness?

A.The DB instance's EBS burst balance dropped to zero
B.The storage volume ran out of allocated space
C.The number of connections exceeded the max_connections limit
D.A read replica had high replication lag
AnswerC

Exceeding max_connections can cause the database to reject connections and become unresponsive.

Why this answer

Option C is correct because the default max_connections for Aurora MySQL is based on memory, and with 8 GB, it is about 800. A spike exceeding that can exhaust resources. Option A is wrong because storage auto-scaling is seamless.

Option B is wrong because burst balance applies to gp2 volumes, but Aurora uses cluster storage. Option D is wrong because replica lag would affect reads, not make the instance unresponsive.

125
Multi-Selectmedium

Which THREE actions can be performed using the AWS CLI for Amazon Aurora? (Choose three.)

Select 3 answers
A.Create a DB cluster from a snapshot using 'aws rds restore-db-cluster-from-snapshot'
B.Fail over an Aurora DB cluster using 'aws rds failover-db-cluster'
C.Modify the DB cluster parameter group using 'aws rds modify-db-cluster-parameter-group'
D.Change the storage type of an Aurora cluster using 'aws rds modify-db-instance'
E.Enable auto-scaling for Aurora Replicas using 'aws rds enable-autoscaling'
AnswersA, B, C

Valid CLI command.

Why this answer

All three are valid AWS CLI actions for Aurora. RestoreDBClusterFromS3 is for MySQL, but it exists.

126
Multi-Selectmedium

A company is migrating a large on-premises Oracle database to Amazon RDS for Oracle. The database is 5 TB in size, and the migration must be completed within a week. The company has a dedicated 10 Gbps AWS Direct Connect connection. Which TWO AWS services should the company use to minimize downtime during the migration?

Select 2 answers
A.AWS Schema Conversion Tool (AWS SCT)
B.AWS DataSync
C.AWS Snowball
D.AWS Database Migration Service (AWS DMS)
E.Amazon RDS for Oracle
AnswersA, D

SCT can convert the Oracle schema to Amazon RDS for Oracle compatible schema, if needed.

Why this answer

AWS DMS can handle ongoing replication to minimize downtime. AWS SCT can convert the schema if needed, and AWS DMS can migrate data. AWS Snowball is for offline data transfer, which may not be needed with Direct Connect.

AWS RDS is the target, not a migration service. AWS DataSync is for file data, not databases. The correct options are B and D.

127
MCQmedium

A company runs a production Amazon RDS for PostgreSQL database. The database specialist needs to perform a major version upgrade with minimal downtime. Which strategy should the specialist use?

A.Create a read replica with the new major version, promote it to primary, and update the application connection string.
B.Take a snapshot of the database, launch a new instance from the snapshot, and upgrade it.
C.Modify the DB instance to the new version directly using the AWS Management Console.
D.Schedule a maintenance window during off-peak hours and apply the upgrade.
AnswerA

This minimizes downtime by using a replica.

Why this answer

Option C is correct because creating a read replica with the new version, promoting it, and then redirecting traffic minimizes downtime. Option A is wrong because it causes downtime. Option B is wrong because modifying the DB instance directly causes downtime during the upgrade.

Option D is wrong because snapshot restore takes time and causes data loss for changes after the snapshot.

128
MCQhard

A company is running an Amazon DynamoDB table with global secondary indexes (GSIs). Write activity increases, and the 'ThrottledWriteEvents' metric for a GSI spikes. The table itself is not throttled. What is the most likely cause?

A.The index is too large for the base table.
B.The GSI's partition key is not sufficiently distributed.
C.The table's write capacity is set too low.
D.The GSI's read capacity is set too low.
AnswerB

A skewed partition key causes hot partitions on the GSI, leading to write throttling.

Why this answer

Option B is correct because write sharding on the GSI partition key can cause hot partitions. Option A is wrong because read capacity on the GSI does not affect writes. Option C is wrong because write capacity on the table is separate from GSI.

Option D is wrong because the issue is about throttling on GSI, not table.

129
Multi-Selecteasy

Which TWO of the following are benefits of using Amazon RDS Proxy? (Choose TWO.)

Select 2 answers
A.Reduces the number of database connections by pooling them.
B.Automatically encrypts all traffic between the application and the database.
C.Improves application scalability by handling connection surges.
D.Provides built-in read/write splitting for read replicas.
E.Reduces storage costs by compressing data in transit.
AnswersA, C

Connection pooling reduces the number of open connections.

Why this answer

Amazon RDS Proxy acts as a connection broker between your application and the database, maintaining a pool of established connections. When the application opens a new connection, RDS Proxy reuses an idle connection from the pool, which reduces the total number of database connections and prevents the database from being overwhelmed. This pooling mechanism directly addresses the issue of connection exhaustion, especially in serverless or highly concurrent environments.

Exam trap

The trap here is that candidates often confuse RDS Proxy's connection pooling with other features like encryption, read/write splitting, or compression, which are separate capabilities not provided by the proxy itself.

130
MCQmedium

A company has an Amazon DynamoDB table with on-demand capacity mode. The table experiences occasional spikes in traffic. During these spikes, some requests receive ProvisionedThroughputExceededException errors. The company wants to minimize these errors without changing the application. Which solution should be used?

A.Switch the table to provisioned capacity mode and enable auto scaling.
B.Enable DynamoDB Accelerator (DAX) for caching.
C.Increase the read and write capacity units manually.
D.Use DynamoDB global tables to distribute the load across multiple regions.
AnswerA

Provisioned capacity with auto scaling can handle burst traffic more effectively than on-demand in some cases.

Why this answer

On-demand mode automatically scales to handle traffic spikes, but there is a per-partition throughput limit. Using DynamoDB Accelerator (DAX) caches responses and reduces read load, but for write spikes, it does not help. Switching to provisioned capacity with auto scaling can handle spikes if configured correctly, but on-demand should already handle spikes.

However, the errors indicate that the per-partition throughput limit is being exceeded. The best solution is to enable auto scaling with provisioned capacity to handle bursts better than on-demand? Actually, on-demand is supposed to handle spikes, but there is a per-partition limit. The best answer is to use DynamoDB global tables to distribute load.

But among options, B (switch to provisioned capacity with auto scaling) is often recommended for predictable spikes. Option A (increase read/write capacity units) is not applicable for on-demand; Option C (DAX) does not help write errors; Option D (global tables) helps with disaster recovery, not throughput. So B is correct.

131
MCQmedium

A company is running an Amazon RDS for MySQL Multi-AZ DB instance. They notice increased latency during peak hours. The DB instance type is db.r5.large, and the storage is General Purpose SSD (gp2) with 500 GB. The application is read-heavy with frequent SELECT queries. Which action would most likely resolve the latency issue without changing the DB instance class?

A.Enable Performance Insights and analyze queries.
B.Create an Amazon RDS read replica in the same region.
C.Enable Multi-AZ on the existing DB instance.
D.Increase the allocated storage to 1,000 GB.
AnswerB

Read replicas offload read queries from the primary instance.

Why this answer

Option B is correct because adding a read replica offloads read traffic from the primary instance, reducing latency. Option A is wrong because Multi-AZ is for high availability, not read scaling. Option C is wrong because increasing storage size may improve IOPS but does not directly address read load.

Option D is wrong because enabling Performance Insights is for monitoring, not performance improvement.

132
Multi-Selectmedium

A company is using Amazon DynamoDB for a high-traffic web application. The table has on-demand capacity mode. During a marketing event, the application experiences throttling. Which TWO actions should the database specialist take to prevent throttling in future events?

Select 2 answers
A.Increase the read capacity units of the table.
B.Switch the table to provisioned capacity mode and increase write capacity units.
C.Pre-create a DynamoDB global table to distribute write traffic.
D.Decrease the write capacity units to reduce throttling.
E.Implement DynamoDB Accelerator (DAX) to offload read traffic.
AnswersC, E

Global tables spread writes across regions, reducing throttling.

Why this answer

Options B and D are correct. Option B: Pre-creating a global table can distribute write traffic across regions, reducing load on a single table. Option D: Using DynamoDB Accelerator (DAX) can offload read traffic, reducing read capacity consumption.

Option A is wrong because switching to provisioned capacity requires capacity planning but does not automatically prevent throttling. Option C is wrong because increasing read capacity units is not applicable to on-demand mode. Option E is wrong because decreasing write capacity is counterproductive.

133
Multi-Selecthard

A company is migrating an on-premises Oracle database to Amazon Aurora PostgreSQL. The migration must have minimal downtime and support ongoing replication. Which THREE services should the company use? (Choose 3.)

Select 3 answers
A.AWS Snowball Edge
B.Amazon Aurora PostgreSQL
C.AWS DataSync
D.AWS Database Migration Service (AWS DMS)
E.AWS Schema Conversion Tool (AWS SCT)
AnswersB, D, E

Target database for migration.

Why this answer

Option A is correct for schema conversion. Option B is correct for ongoing replication. Option C is correct for data migration.

Option D is incorrect because it is for file transfer. Option E is incorrect because it is for large data transfer.

134
MCQeasy

Refer to the exhibit. A DBA is checking the backup configuration of an RDS MySQL instance. The current time is 2023-03-15T06:00:00Z. What is the most recent point to which the database can be restored?

A.2023-03-15T03:00:00Z
B.2023-03-15T05:30:00Z
C.2023-03-15T04:30:00Z
D.2023-03-15T06:00:00Z
AnswerC

This is the latest restorable time shown.

Why this answer

Option C is correct. The latest restorable time is 2023-03-15T04:30:00Z, which is within the backup window. Option A is wrong because it is after the latest restorable time.

Option B is wrong because it is earlier than the latest restorable time. Option D is wrong because the backup window ends at 06:00, but the latest restorable time is 04:30.

135
MCQhard

A database administrator sees the above error logs in CloudWatch for an Amazon RDS for PostgreSQL DB instance. The application team confirms that the password for 'app_user' is correct. What is the most likely cause of the authentication failures?

A.The password has expired for 'app_user'.
B.The user 'app_user' does not have the LOGIN privilege.
C.The host '10.0.1.50' is not listed in the pg_hba.conf file.
D.The database is in read-only mode.
AnswerC

RDS for PostgreSQL uses pg_hba.conf entries to allow client connections; if the host is not allowed, authentication fails despite correct password.

Why this answer

The errors show authentication failures from a specific host. If the password is correct, the most likely cause is that the host is not allowed by the pg_hba.conf configuration. RDS for PostgreSQL uses DB parameter groups to control pg_hba.conf rules; the rds.force_ssl parameter or the pg_hba.conf entries may not include that host.

136
Multi-Selecthard

Which TWO of the following are valid actions to take when an Amazon Redshift query is taking longer than expected due to disk-based operations?

Select 2 answers
A.Use column compression to reduce the amount of data scanned.
B.Increase the number of workload management (WLM) query queues.
C.Redistribute data across nodes using a distribution style that minimizes data movement.
D.Change the sort keys to match the query's ORDER BY clause.
E.Increase the number of nodes in the cluster to provide more memory and CPU.
AnswersC, E

Proper distribution reduces data shuffling and disk spills.

Why this answer

Option A (increasing the number of nodes) and Option C (distributing data evenly) are correct. Option B is incorrect because Sort keys affect order, not disk spills. Option D is incorrect because WLM queues affect concurrency, not disk operations.

Option E is incorrect because column compression reduces storage but may not reduce disk spills.

137
MCQeasy

A company wants to ensure that their Amazon RDS for PostgreSQL database is automatically backed up every day and retains backups for 30 days. Which configuration should they use?

A.Set the backup retention period to 0 to disable automated backups and use manual snapshots.
B.Create a manual snapshot daily using AWS Backup.
C.Enable Multi-AZ deployment for automatic failover.
D.Enable automated backups with a retention period of 30 days.
AnswerD

Automated backups are configurable up to 35 days.

Why this answer

Automated backups are enabled by default with a retention period of 1-35 days. Setting backup retention period to 30 days meets the requirement.

138
Multi-Selecteasy

Which TWO AWS services can be used to monitor and set alarms on Amazon RDS database performance metrics? (Choose two.)

Select 2 answers
A.Amazon RDS Performance Insights
B.AWS Trusted Advisor
C.Amazon RDS Enhanced Monitoring
D.Amazon CloudWatch
E.AWS CloudTrail
AnswersC, D

Enhanced Monitoring provides OS-level metrics, which are sent to CloudWatch.

Why this answer

CloudWatch monitors metrics and can set alarms; Enhanced Monitoring provides OS-level metrics. RDS Performance Insights is for performance analysis, not alarms.

139
MCQhard

Refer to the exhibit. An Amazon RDS for Oracle instance is experiencing ORA-00257 errors. The DBA has already increased the archive log retention setting. What is the most efficient next step to resolve the issue without manual intervention?

A.Configure archiving to Amazon S3 to offload logs.
B.Reboot the DB instance to clear the recovery area.
C.Modify the DB instance to increase the allocated storage.
D.Manually delete old archive logs from the recovery area using RMAN.
AnswerC

Increasing storage automatically increases the recovery area size.

Why this answer

Option C is correct. The error indicates the flash recovery area is full. The most efficient automated way is to modify the RDS DB instance to increase allocated storage, which also increases the recovery area.

Option A is wrong because manually deleting logs is not automated. Option B is wrong because archiving to S3 is not a standard RDS feature. Option D is wrong because restarting does not free space.

140
Multi-Selectmedium

Which TWO methods can be used to encrypt an existing unencrypted Amazon RDS for Oracle DB instance? (Choose 2.)

Select 2 answers
A.Use the AWS Management Console to toggle encryption on the DB instance.
B.Create a snapshot of the DB instance, copy the snapshot with encryption enabled, and restore the DB instance from the encrypted snapshot.
C.Modify the DB instance and enable encryption in the configuration.
D.Use AWS Database Migration Service (DMS) to migrate data to a new encrypted DB instance.
E.Create a read replica with encryption enabled.
AnswersB, D

This is a supported method to encrypt an existing instance.

Why this answer

Options A and D are correct because you can create a snapshot, copy it with encryption, and restore; or use DMS to migrate to an encrypted target. Option B is wrong because you cannot directly enable encryption on an existing instance. Option C is wrong because enabling encryption on a replica requires the source to be encrypted.

Option E is wrong because the console does not allow direct modification.

141
Drag & Dropmedium

Arrange the steps to perform a point-in-time recovery (PITR) for an Amazon RDS for MySQL DB instance in the correct order.

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

Steps
Order

Why this order

PITR restores the database to a specific time within the backup retention window by selecting the restore option and specifying the time.

142
MCQmedium

A database specialist is managing an Amazon RDS for Oracle DB instance. The instance has a large amount of data and the specialist needs to migrate it to a new instance in a different AWS Region. Which method would minimize downtime and be the most efficient?

A.Use AWS Database Migration Service (DMS) with ongoing replication to migrate to the target instance.
B.Export the database to Amazon S3 using Oracle Data Pump, then import into the new instance.
C.Create a cross-region read replica and promote it.
D.Take a full backup using Oracle RMAN, copy the backup files to the target region, and restore.
AnswerA

DMS supports minimal downtime with ongoing replication.

Why this answer

Option C is correct. AWS Database Migration Service (DMS) with ongoing replication minimizes downtime and supports cross-region migration. Option A is wrong because exporting to S3 and importing is time-consuming and does not support ongoing replication.

Option B is wrong because cross-region read replicas are not available for Oracle. Option D is wrong because RMAN backups are not integrated with AWS for cross-region migration.

143
Multi-Selecthard

Which THREE factors should be considered when selecting the backup strategy for an Amazon RDS for PostgreSQL DB instance? (Choose 3.)

Select 3 answers
A.The backup retention period
B.The Recovery Point Objective (RPO) requirement
C.The impact of the backup window on database performance
D.The need for Multi-AZ deployment
E.The encryption at rest requirement
AnswersA, B, C

Retention period determines how long backups are stored, affecting cost and compliance.

Why this answer

Option A is correct because the backup retention period directly determines how far back you can perform a point-in-time recovery (PITR) for an RDS for PostgreSQL instance. Amazon RDS stores automated backups and transaction logs for the specified retention period (1 to 35 days), and this period must be aligned with your compliance and operational requirements. Choosing an appropriate retention period is a fundamental factor in defining the backup strategy.

Exam trap

AWS often tests the misconception that Multi-AZ deployment is part of the backup strategy, but in reality it is a high-availability feature that does not affect backup retention, RPO, or backup window performance.

144
Multi-Selectmedium

A company is using Amazon DynamoDB for a gaming application. The application stores player scores in a table with a partition key of player_id and a sort key of timestamp. The company wants to query the top 10 scores for a given player efficiently. Which TWO steps should the company take to optimize this query?

Select 2 answers
A.Use the Query API with the LSI and scan index forward set to false to get the top scores.
B.Create a local secondary index (LSI) on the score attribute with the same partition key.
C.Use a Scan operation with a filter expression to retrieve the top scores.
D.Create a local secondary index on the timestamp attribute.
E.Create a global secondary index (GSI) on the score attribute.
AnswersA, B

Querying the LSI with ScanIndexForward=false returns items in descending order, efficiently retrieving the top scores.

Why this answer

A local secondary index (LSI) on score allows efficient sorting within a partition. A global secondary index (GSI) on score would not be efficient for per-player queries. The correct options are A and D.

Option B (GSI) would not help per-player sorting. Option C (scan) is inefficient. Option E (LSI on timestamp) is already present.

145
MCQhard

A company is using Amazon DynamoDB with Auto Scaling enabled. During a flash sale, write traffic spikes and the application experiences ProvisionedThroughputExceededException errors. The DynamoDB table has provisioned write capacity of 1000 WCU and Auto Scaling is set to scale between 1000 and 10000 WCU. What is the most likely cause of the throttling?

A.Auto Scaling cannot react quickly enough to sudden traffic spikes.
B.The DynamoDB table has insufficient partitions to handle the traffic.
C.The table's burst capacity is exhausted and Auto Scaling has not yet increased capacity.
D.The Auto Scaling policy has a maximum WCU limit that is too low.
AnswerA

Auto Scaling adjusts capacity based on CloudWatch metrics with a delay.

Why this answer

Option D is correct because Auto Scaling reacts to actual consumption, but there is a lag; sudden spikes throttle before capacity increases. Option A is wrong because Auto Scaling does not have a maximum limit issue. Option B is wrong because throttling is due to write capacity, not partitioning.

Option C is wrong because burst capacity is limited; sustained spikes require pre-warming or use of on-demand.

146
Multi-Selecthard

A company is migrating an on-premises MongoDB database to Amazon DocumentDB. The migration must have minimal downtime. Which THREE steps should be taken? (Choose three.)

Select 3 answers
A.Use AWS Snowball Edge to transfer initial data.
B.Create an Amazon DocumentDB cluster as the target.
C.Use AWS DMS to perform a full load and then ongoing replication.
D.Shard the DocumentDB cluster across multiple regions.
E.Configure the source MongoDB to send oplog events to DMS.
AnswersB, C, E

DocumentDB is the target for migration.

Why this answer

Option A is correct because DocumentDB supports MongoDB compatibility and can be used as target. Option B is correct because AWS DMS supports MongoDB to DocumentDB migration with ongoing replication. Option C is correct because setting up replication from the source reduces downtime.

Option D is wrong because sharding adds complexity. Option E is wrong because AWS Snowball is for offline data transfer, not minimal downtime.

147
MCQhard

A company uses Amazon DynamoDB with on-demand capacity for a mobile application. During a marketing campaign, write traffic spikes to 10,000 writes per second for 5 minutes. The application experiences throttling after the first minute. The DynamoDB table has a single partition key. What should be done to prevent throttling in future campaigns?

A.Redesign the partition key to ensure write traffic is evenly distributed across partitions.
B.Enable DynamoDB Accelerator (DAX) to cache write requests.
C.Switch to provisioned capacity and increase write capacity units to 10,000.
D.Pre-warm the table by writing dummy data before the campaign.
AnswerA

Even distribution avoids hot partitions and prevents throttling at partition level.

Why this answer

Option B is correct because the issue is likely due to a hot partition caused by a single partition key. Option A is wrong because increasing read capacity does not help writes. Option C is wrong because on-demand capacity already handles large traffic, but throttling still occurs due to partition-level limits.

Option D is wrong because DAX is for caching reads, not writes.

148
MCQeasy

A company is using Amazon DynamoDB with on-demand capacity mode. The application experiences occasional throttling during peak hours. The operations team wants to reduce throttling without changing the application code. What should they do?

A.Increase the read and write capacity units in the on-demand mode.
B.Switch to provisioned capacity mode and configure auto scaling.
C.Enable DynamoDB Accelerator (DAX) to cache reads.
D.Use DynamoDB global tables to distribute traffic across regions.
AnswerB

Provisioned capacity with auto scaling ensures adequate capacity for peak traffic.

Why this answer

Option B is correct because DynamoDB on-demand capacity mode does not allow manual adjustment of capacity units; it scales automatically but can still throttle if traffic exceeds the previous peak by a large margin. Switching to provisioned capacity mode with auto scaling allows you to set a higher minimum capacity and scale proactively based on actual usage patterns, reducing throttling without code changes. This approach gives more control over capacity limits while still automating adjustments.

Exam trap

The trap here is that candidates assume on-demand mode never throttles, but it can throttle during sudden traffic spikes that exceed the previous 30-minute peak, and they mistakenly think increasing capacity units is possible in on-demand mode.

How to eliminate wrong answers

Option A is wrong because on-demand mode does not have configurable read/write capacity units; it automatically adjusts capacity based on traffic, and you cannot increase them manually. Option C is wrong because DAX only caches reads, reducing read load on the table, but it does not address write throttling or the root cause of capacity limits; it also requires application code changes to use the DAX client. Option D is wrong because global tables replicate data across regions for disaster recovery and low-latency reads, but they do not reduce throttling in a single region; they add complexity and cost without solving the immediate capacity issue.

149
Multi-Selectmedium

A company uses Amazon DynamoDB for a gaming application. During a new game launch, the application experiences high latency and throttling on a table with a partition key of 'user_id' and a sort key of 'timestamp'. The access pattern is to query recent items for a given user. Which TWO design changes can improve performance?

Select 2 answers
A.Use strongly consistent reads for all queries.
B.Use a composite key with 'game_id' as partition key and 'timestamp' as sort key.
C.Add a Global Secondary Index (GSI) with a different partition key.
D.Increase the provisioned read capacity for the table.
E.Enable DynamoDB Accelerator (DAX) to cache write operations.
AnswersB, C

A better partition key (game_id) can distribute writes evenly.

Why this answer

Option A is correct because using a Global Secondary Index (GSI) with a different key can distribute traffic. Option D is correct because adding a GSI with 'game_id' as partition key can distribute writes if 'game_id' has high cardinality. Option B is wrong because increasing read capacity doesn't solve hot partition issues.

Option C is wrong because simple queries are fine. Option E is wrong because DAX caches reads, not writes.

150
MCQmedium

A company runs an Amazon DynamoDB table with on-demand capacity. They notice that a specific partition key receives a high volume of read requests, causing throttling for that partition. What is the BEST solution to distribute the load evenly?

A.Create a global secondary index with a different partition key.
B.Add a random suffix to the partition key values to increase partition cardinality.
C.Use DynamoDB Accelerator (DAX) to cache reads.
D.Switch the table to provisioned capacity with auto-scaling.
AnswerB

This spreads reads across multiple partitions, reducing hot spots.

Why this answer

Adding a suffix to the partition key to create multiple partitions distributes read load across partitions.

← PreviousPage 2 of 5 · 312 questions totalNext →

Ready to test yourself?

Try a timed practice session using only Management and Operations questions.