CCNA Management and Operations Questions

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

226
MCQmedium

A company's Amazon RDS for Oracle instance is running out of storage space. The database administrator wants to add storage without downtime. Which action should be taken?

A.Delete old archived redo logs to free up space.
B.Take a snapshot and restore to a larger instance.
C.Use the 'Modify DB Instance' action to increase the allocated storage.
D.Create a new DB instance with larger storage and migrate the data.
AnswerC

RDS allows online storage modification.

Why this answer

Option C is correct because RDS supports modifying allocated storage online with minimal downtime. Option A is wrong because creating a new instance and migrating involves downtime. Option B is wrong because increasing storage is not a backup.

Option D is wrong because deleting logs may cause issues.

227
MCQeasy

A database specialist is configuring an Amazon RDS for PostgreSQL instance with automated backups enabled. The backup retention period is set to 7 days. The instance experiences a failure and becomes unavailable. What is the maximum amount of time the specialist has to recover the database to the most recent possible point in time?

A.1 hour
B.7 days
C.14 days
D.35 minutes
AnswerB

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

Why this answer

Option C is correct because with automated backups and a retention period of 7 days, the latest restorable time is typically within the last 5 minutes, but the maximum point-in-time recovery window is 7 days. Option A is wrong because it is too short. Option B is wrong because it is the backup window, not recovery window.

Option D is wrong because it exceeds the retention period.

228
MCQhard

A company uses Amazon RDS for MySQL with read replicas. The application writes to the primary and reads from the replicas. Occasionally, the application reads stale data from the replicas. Which action would ensure read-after-write consistency without impacting write performance?

A.Set the replica_read_consistency parameter to 'session'.
B.Use the reader endpoint and increase the replica lag threshold.
C.Configure the application to read from the primary instance for critical queries.
D.Enable the 'rds_set_replication_status' parameter on the read replicas.
AnswerC

Reading from primary guarantees consistency.

Why this answer

Using the primary instance for reads that require consistency ensures the application reads the latest data. Session-level replication checks are not supported in standard MySQL.

229
MCQeasy

A company has an Amazon DynamoDB table with on-demand capacity mode. The table is used by a serverless application. The company wants to receive an alert when the read request rate exceeds a certain threshold. Which CloudWatch metric and alarm should be used?

A.Alarm on the 'ConsumedReadCapacityUnits' metric.
B.Alarm on the 'ReadThrottleEvents' metric.
C.Alarm on the 'ProvisionedReadCapacityUnits' metric.
D.Alarm on the 'SuccessfulRequestLatency' metric.
AnswerA

This metric shows actual read usage.

Why this answer

Option A is correct because 'ConsumedReadCapacityUnits' tracks the number of read capacity units consumed, and an alarm can be set on this metric. Option B is wrong because 'ProvisionedReadCapacityUnits' is only for provisioned mode. Option C is wrong because 'ReadThrottleEvents' indicates throttling, not request rate.

Option D is wrong because 'SuccessfulRequestLatency' measures latency, not request rate.

230
MCQhard

A company runs a critical Amazon RDS for PostgreSQL database. They notice that the 'DiskQueueDepth' metric is consistently high and the 'FreeStorageSpace' is below 10%. The database is used for OLTP workloads. What is the MOST immediate action to take?

A.Upgrade to a larger DB instance class.
B.Modify the DB instance to increase allocated storage.
C.Switch the instance to Provisioned IOPS storage.
D.Create a read replica to offload read traffic.
AnswerB

Increasing storage immediately addresses the low free space and can reduce disk queue depth by allowing more I/O operations.

Why this answer

Option B is correct because increasing storage quickly avoids potential downtime and I/O throttling. Option A is wrong because switching to Provisioned IOPS addresses latency but not the storage shortage. Option C is wrong because adding a read replica does not increase storage on the primary.

Option D is wrong because modifying the instance class may not address storage space.

231
MCQmedium

An Amazon RDS for Oracle DB instance is experiencing high swap usage. The database administrator wants to reduce swap usage. Which action should be taken?

A.Change the storage type from gp2 to io1
B.Increase the DB instance class to a larger size with more memory
C.Delete archived redo logs to free up space
D.Enable Multi-AZ to distribute the load
AnswerB

More memory reduces the need for swap.

Why this answer

High swap usage on an Amazon RDS for Oracle DB instance indicates that the operating system is using disk-based swap space as a substitute for physical RAM, which severely degrades database performance. Increasing the DB instance class to a larger size with more memory directly addresses the root cause by providing additional RAM, reducing or eliminating the need for swapping. This is the correct action because swap usage is a memory pressure issue, not a storage or availability problem.

Exam trap

The trap here is that candidates confuse high swap usage with a storage performance or availability issue, leading them to choose storage type changes or Multi-AZ, when the real solution is to address insufficient memory by scaling the instance class.

How to eliminate wrong answers

Option A is wrong because changing the storage type from gp2 to io1 improves I/O performance and latency but does not increase the amount of available RAM, so it cannot reduce swap usage. Option C is wrong because deleting archived redo logs frees up storage space in the recovery area, not memory; swap usage is unrelated to log retention or disk space. Option D is wrong because enabling Multi-AZ provides high availability and automatic failover by replicating data to a standby instance, but it does not distribute memory load or reduce swap usage on the primary instance.

232
MCQhard

The exhibit shows an IAM policy attached to a user. The user needs to create a manual snapshot of an RDS DB instance named 'production-db'. Which action will the user be able to perform?

A.Create a manual snapshot of 'production-db' with the name 'production-db-snapshot'.
B.Create a manual snapshot of 'production-db' with the name 'mydb-production-snapshot'.
C.Describe the 'production-db' DB instance.
D.Delete the 'production-db' DB instance.
AnswerB

The snapshot name starts with 'mydb-', matching the allowed resource pattern.

Why this answer

Option C is correct because the policy allows CreateDBSnapshot on resources matching 'mydb-*', but the snapshot name must match that pattern. Option A is wrong because DeleteDBInstance is denied. Option B is wrong because the user can create snapshots matching the pattern.

Option D is wrong because the user can describe instances.

233
MCQhard

A company runs a production Amazon RDS for MySQL DB instance with Multi-AZ. The database is used by a web application. The application team reports that the database is experiencing intermittent connection timeouts and increased latency. The CloudWatch metrics show that the database connections spike to the maximum allowed (max_connections) during peak hours, and the CPU utilization is high. The team needs to resolve the connection issues without modifying the application code. The application uses connection pooling at the application layer. Which action should be taken?

A.Create a read replica and direct read queries to it.
B.Deploy an Amazon RDS Proxy in front of the DB instance.
C.Increase the 'max_connections' parameter to allow more connections.
D.Change the DB instance class to a smaller size to reduce the maximum connections.
AnswerB

RDS Proxy efficiently multiplexes connections, reducing the number of database connections and freeing up resources.

Why this answer

Option B is correct because RDS Proxy manages connection pooling efficiently, reducing the number of connections to the database and lowering CPU overhead. Option A is wrong because increasing max_connections may lead to resource exhaustion. Option C is wrong because read replicas do not reduce write connection load.

Option D is wrong because switching to a smaller instance would worsen the problem.

234
Multi-Selecthard

A company is migrating an on-premises Oracle database to Amazon RDS for Oracle. The database is 2 TB in size and has a tight migration window of 8 hours. Which THREE steps should be taken to minimize downtime during the migration?

Select 3 answers
A.Take a manual snapshot of the source database before migration.
B.Use AWS Schema Conversion Tool (AWS SCT) to convert the schema.
C.Use AWS Database Migration Service (AWS DMS) with ongoing replication.
D.Disable automated backups on the target RDS instance during migration.
E.Deploy a large RDS instance class to speed up the initial load.
AnswersC, D, E

DMS allows continuous replication to minimize downtime.

Why this answer

Option B is correct because AWS DMS can perform continuous replication. Option C is correct because using a large instance reduces migration time. Option E is correct because disabling backups during migration reduces overhead.

Option A is wrong because AWS SCT is for schema conversion, not data migration. Option D is wrong because manual snapshot is for backup, not migration.

235
Multi-Selecteasy

A company is using Amazon DynamoDB with Auto Scaling enabled. The database specialist notices that write traffic is being throttled occasionally. Which TWO factors could cause throttling despite Auto Scaling?

Select 2 answers
A.The table has Global Tables enabled, causing cross-region replication overhead.
B.Auto Scaling is not configured to scale up quickly enough for sudden traffic spikes.
C.DynamoDB Accelerator (DAX) is not caching write operations.
D.The write traffic exceeds the maximum provisioned capacity that was set for Auto Scaling.
E.A hot partition where a single partition key receives a disproportionate amount of write traffic.
AnswersD, E

Auto Scaling cannot scale beyond the configured maximum.

Why this answer

Options A and D are correct. Hot partitions (A) can cause throttling even with Auto Scaling because a single partition can exceed its limit. Throttling due to exceeding the maximum provisioned capacity (D) can also occur.

Option B is wrong because Global Tables replicate writes but do not cause throttling. Option C is wrong because Auto Scaling is disabled? (the question says enabled, so C is irrelevant). Option E is wrong because DAX is for reads.

236
MCQmedium

A company uses Amazon ElastiCache for Redis to cache frequently accessed data. The cache cluster experiences high CPU utilization during peak hours. The cluster has a single node of type cache.r5.large. What is the most cost-effective way to reduce CPU utilization while maintaining performance?

A.Enable encryption at rest and in transit.
B.Upgrade to a cache.r5.xlarge node type.
C.Add a read replica to distribute read traffic.
D.Increase the maxmemory-policy parameter to 'allkeys-lru'.
AnswerC

Offloads read traffic, reducing CPU on primary.

Why this answer

Option A is correct. Adding a read replica (sharing read traffic) reduces CPU on the primary. Option B is wrong because increasing to a larger node type is more expensive than adding replicas.

Option C is wrong because increasing maxmemory-policy does not reduce CPU. Option D is wrong because enabling encryption adds overhead.

237
MCQmedium

The exhibit shows the output of a MySQL command run on an Amazon RDS for MySQL DB instance. The database is experiencing frequent checkpointing that is causing I/O spikes. The parameter innodb_log_file_size is currently 256 MB. Which change should be made to reduce checkpoint frequency?

A.Decrease the value of innodb_log_file_size to 128 MB.
B.Set innodb_flush_log_at_trx_commit to 0.
C.Increase the value of innodb_log_file_size to 1 GB.
D.Increase the value of innodb_buffer_pool_size.
AnswerC

Larger redo logs allow more transactions to be written before a checkpoint, reducing checkpoint frequency.

Why this answer

Option A is correct because increasing the size of the InnoDB redo log files reduces checkpoint frequency. Option B is wrong because decreasing would increase checkpoint frequency. Option C is wrong because innodb_flush_log_at_trx_commit controls durability, not checkpoint frequency.

Option D is wrong because innodb_buffer_pool_size affects memory, not directly checkpointing.

238
Multi-Selecthard

A company is using Amazon DynamoDB with provisioned capacity for a table that experiences unpredictable traffic spikes. The table's read capacity is often underutilized, but occasionally throttling occurs. Which THREE steps should be taken to improve performance and cost? (Choose THREE.)

Select 3 answers
A.Switch the table to on-demand capacity mode.
B.Reduce the provisioned read capacity units to save cost.
C.Enable auto scaling for read and write capacity.
D.Disable auto scaling to avoid cost fluctuations.
E.Implement DynamoDB Accelerator (DAX) to cache read requests.
AnswersA, C, E

On-demand mode automatically accommodates traffic spikes without throttling.

Why this answer

Switching to on-demand capacity handles unpredictable spikes automatically and reduces throttling. Using DynamoDB Accelerator (DAX) reduces read load by caching. Auto scaling adjusts capacity based on load, but on-demand is better for unpredictable spikes.

Reducing read capacity units would worsen throttling. Disabling auto scaling is counterproductive.

239
MCQeasy

A company recently migrated an on-premises PostgreSQL database to Amazon RDS for PostgreSQL. The database is 100 GB and used by a web application. After migration, the application's response time increased. The 'ReadLatency' and 'WriteLatency' metrics are normal. The 'CPUUtilization' is at 90%. The 'DatabaseConnections' metric shows 200 connections, which is close to the max connections for the instance class (db.t3.medium, max connections = 200). The application uses connection pooling. The team wants to reduce CPU utilization without changing the application code. Which action should the team take?

A.Decrease 'max_connections' parameter to 100.
B.Increase allocated storage to 200 GB.
C.Upgrade the DB instance to a larger class like db.t3.large.
D.Enable Performance Insights and switch to Provisioned IOPS.
AnswerC

A larger instance class provides more CPU cores and higher performance.

Why this answer

Option B is correct because upgrading to a larger instance class provides more CPU capacity. Option A is wrong because decreasing max connections may cause connection errors. Option C is wrong because increasing storage does not directly affect CPU.

Option D is wrong because switching to Provisioned IOPS improves I/O, but CPU is the bottleneck.

240
Multi-Selecthard

Which THREE of the following are required to set up cross-Region replication for an Amazon RDS for MySQL DB instance? (Choose THREE.)

Select 3 answers
A.The backup retention period on the source must be at least 1 day.
B.The source DB instance must be in a VPC.
C.A read replica must be created in the target Region.
D.Automated backups must be enabled on the source DB instance.
E.The source DB instance must be a Multi-AZ deployment.
AnswersA, C, D

Backup retention must be at least 1 day to enable automated backups.

Why this answer

Option A is correct because Amazon RDS requires a minimum backup retention period of 1 day on the source DB instance to enable automated backups, which are necessary for cross-Region replication. The backup retention period determines how long automated backups are retained, and a value of at least 1 day ensures that the source instance can generate the binary logs needed for replication to a read replica in another Region.

Exam trap

The trap here is that candidates often assume Multi-AZ is required for cross-Region replication, but Multi-AZ is only for high availability within a single Region, not for cross-Region replication, which relies on automated backups and read replicas.

241
Multi-Selectmedium

A company is using Amazon Redshift for data warehousing. The database administrator needs to optimize query performance. Which TWO actions should the administrator take? (Choose TWO.)

Select 2 answers
A.Increase the number of nodes in the cluster.
B.Analyze the tables to update statistics for the query optimizer.
C.Enable encryption for the cluster.
D.Disable compression on the tables to reduce CPU overhead.
E.Run the VACUUM command to reclaim space and re-sort data.
AnswersB, E

Updated statistics help the optimizer choose efficient query plans.

Why this answer

Options B and D are correct. Running VACUUM reclaims space and re-sorts data, improving performance. Analyzing tables updates statistics for the query optimizer.

Option A is incorrect because increasing the number of nodes improves performance but is not an optimization action; it's a scaling action. Option C is incorrect because disabling compression reduces performance. Option E is incorrect because enabling encryption does not directly affect query performance.

242
MCQmedium

A company runs an Amazon Aurora MySQL database cluster with a primary instance and two Aurora Replicas. The application is experiencing occasional deadlocks on the primary instance during peak hours. The deadlocks cause transaction rollbacks that impact customer experience. Which design change should the company implement to minimize deadlocks?

A.Enable Aurora Auto Scaling for read replicas and offload read-only queries to replicas.
B.Set the transaction isolation level to READ UNCOMMITTED to avoid locks.
C.Configure Multi-AZ deployment to automatically failover during deadlocks.
D.Increase the DB instance class size to handle more concurrent transactions.
AnswerA

Reducing read load on the primary instance decreases lock contention and the likelihood of deadlocks.

Why this answer

Option A is correct because offloading read-only queries to Aurora Replicas reduces the volume of read-write contention on the primary instance. Deadlocks often arise when concurrent transactions compete for the same resources; by directing read traffic to replicas, the primary handles fewer overlapping transactions, lowering the probability of lock conflicts. Aurora Replicas share the same underlying storage volume and serve read traffic without blocking writes on the primary, making this a targeted solution for deadlock reduction.

Exam trap

The trap here is that candidates may assume increasing instance size (Option D) is the universal fix for performance issues, but deadlocks are a concurrency control problem, not a capacity problem, and scaling up can actually worsen contention by allowing more simultaneous transactions.

How to eliminate wrong answers

Option B is wrong because setting the transaction isolation level to READ UNCOMMITTED introduces dirty reads and does not eliminate deadlocks—it only reduces shared locks for reads, but write locks still cause deadlocks. Option C is wrong because Multi-AZ deployment provides high availability via automatic failover but does not prevent or reduce deadlocks; failover occurs after a disruption, not during a deadlock event. Option D is wrong because increasing the DB instance class size improves throughput and concurrency capacity but does not address the root cause of deadlocks—contention on the same rows or pages—and may even increase deadlock frequency by allowing more concurrent transactions.

243
MCQmedium

A company runs an Amazon Aurora MySQL database cluster with one writer and one reader instance. The application experiences intermittent connection timeouts during peak traffic. The DB cluster parameter group has 'connect_timeout' set to 5 seconds. What should a database specialist recommend to reduce connection timeouts?

A.Add additional reader instances to distribute the load.
B.Enable RDS Proxy for the cluster.
C.Increase the 'connect_timeout' parameter to 10 seconds.
D.Enable IAM database authentication and require TLS.
AnswerB

RDS Proxy manages database connections efficiently, reducing timeouts.

Why this answer

Option B is correct because enabling RDS Proxy reduces connection overhead and provides a connection pool, mitigating timeouts. Option A is incorrect because increasing connect_timeout only delays the timeout, not the root cause. Option C is incorrect because adding readers does not help with writer connection timeouts.

Option D is incorrect because the issue is not related to TLS.

244
Multi-Selecthard

An e-commerce application uses Amazon Aurora MySQL with a Multi-AZ DB cluster. During a recent load test, the application experienced increased read latency. The database cluster consists of one writer and two reader instances. Which THREE actions should be taken to improve read performance?

Select 3 answers
A.Configure cross-Region read replicas.
B.Increase the instance class of the writer instance.
C.Add more reader instances to the cluster.
D.Enable Aurora Auto Scaling for the reader instances.
E.Implement Amazon ElastiCache for caching frequent queries.
AnswersA, C, D

Cross-Region replicas can serve read traffic from different regions.

Why this answer

Adding more reader instances distributes the read load. Using Aurora Auto Scaling automatically adjusts reader capacity. Enabling read replicas in different regions can offload read traffic locally.

Option B (increasing writer instance size) does not directly help reads; Option D (using ElastiCache) is for application-level caching, not database read scaling; Option E (using DynamoDB Accelerator) is irrelevant.

245
MCQeasy

A company is running an Amazon RDS for SQL Server instance and wants to automate the patching of the database engine. Which AWS service should be used?

A.AWS Config
B.Amazon RDS Automated Backups
C.AWS Systems Manager Patch Manager
D.Amazon RDS Maintenance Window
AnswerC

Patch Manager can schedule and apply patches to RDS instances.

Why this answer

Option C is correct because AWS Systems Manager Patch Manager can automate patching of RDS instances. Option A is wrong because RDS Automated Backups are for backups, not patching. Option B is wrong because RDS Maintenance Windows handle minor engine versions but not OS patching.

Option D is wrong because AWS Config is for configuration compliance.

246
MCQhard

A company is using Amazon DynamoDB for a gaming leaderboard. The table has a partition key of 'game_id' and a sort key of 'score'. The application performs a query to retrieve the top 10 scores for a given game_id. The query uses ScanIndexForward: false and Limit: 10. Recently, the query response time has increased. The table's read capacity is 1000 RCU, and the average item size is 1 KB. Which is the most likely cause of the increased latency?

A.The table lacks a global secondary index on game_id, causing a full table scan.
B.The query is using strongly consistent reads instead of eventually consistent reads.
C.The provisioned read capacity is too low for the query pattern.
D.A hot partition on the game_id key is causing throttling for that specific partition.
AnswerD

Even if total RCU is adequate, a single partition can exceed its throughput share, causing throttling and increased latency.

Why this answer

The increased latency is most likely due to a hot partition on the 'game_id' key. When a specific game_id receives a disproportionate amount of write or read traffic, that single partition can exceed its throughput limits (1/1000th of provisioned RCU per partition), causing throttling and retries that degrade query response time. Even though the query uses ScanIndexForward: false and Limit: 10, the request is still constrained by the partition's capacity, and throttling at the partition level leads to increased latency.

Exam trap

The trap here is that candidates often assume increased latency is due to insufficient total provisioned capacity (Option C) or a missing index (Option A), but the real issue is uneven workload distribution causing a hot partition, which is a common DynamoDB performance pitfall.

How to eliminate wrong answers

Option A is wrong because the table already has a partition key of 'game_id', so queries on game_id use the primary key directly and do not require a GSI; a full table scan would not occur. Option B is wrong because strongly consistent reads consume more RCU but do not inherently cause increased latency; the question does not indicate a change in read consistency model, and eventually consistent reads would not solve a hot partition issue. Option C is wrong because the provisioned read capacity is 1000 RCU, and with an average item size of 1 KB, this supports 1000 reads per second; the query for top 10 scores per game_id is efficient and unlikely to exhaust overall capacity unless a single partition is overloaded.

247
MCQeasy

A company runs an Amazon Aurora MySQL DB cluster with one writer and two readers. The application experiences increased read latency. The DBA wants to offload read traffic from the writer instance. Which configuration change should be made to the application?

A.Modify the application to use an individual instance endpoint for each reader.
B.Create a custom endpoint that includes both writer and readers.
C.Modify the application to use the reader endpoint for read queries.
D.Modify the application to use the cluster endpoint for all queries.
AnswerC

The reader endpoint load balances across all read replicas.

Why this answer

Option A is correct because the application should connect to the reader endpoint to distribute read queries across the read replicas. Option B is incorrect because the cluster endpoint points to the writer. Option C is incorrect because the instance endpoint is for a specific instance.

Option D is incorrect because a custom endpoint is used for specific reader groups, but the standard reader endpoint is simpler for general offloading.

248
MCQhard

A company runs a critical e-commerce application on Amazon RDS for MySQL with Multi-AZ enabled. The database is 2 TB and uses General Purpose (gp2) storage. Recently, during peak hours, the application experienced a 5-minute outage. The CloudWatch logs show that the primary DB instance failed and an automatic failover occurred. However, the failover took 3 minutes, which is longer than the expected 1-2 minutes. The 'ReadLatency' and 'WriteLatency' metrics were elevated before the failure. The 'BurstBalance' metric was at 0% for the hour before the failure. The team suspects the issue is related to storage performance. What should the team do to prevent this issue in the future?

A.Increase the DB instance class to a larger size.
B.Change the storage type to Provisioned IOPS (io1).
C.Increase the backup retention period to 35 days.
D.Create a read replica to offload read traffic.
AnswerB

Provisioned IOPS provides consistent I/O performance and avoids burst credit exhaustion.

Why this answer

Option D is correct because the BurstBalance at 0% indicates the gp2 volume exhausted its burst credits, leading to I/O throttling and increased latency, which likely caused the failover. Switching to Provisioned IOPS (io1/io2) provides consistent performance. Option A is wrong because increasing instance size does not directly address storage I/O performance.

Option B is wrong because increasing backup retention does not affect storage performance. Option C is wrong because additional read replicas do not improve write performance on the primary.

249
Multi-Selectmedium

Which TWO methods can be used to reduce the read latency for an Amazon Aurora MySQL database? (Choose 2.)

Select 2 answers
A.Enable encryption at rest
B.Use Aurora Auto Scaling to add replica capacity based on load
C.Increase the write capacity of the DB instance
D.Enable Amazon ElastiCache in front of the database
E.Add Aurora Replicas to offload read traffic
AnswersB, E

Auto Scaling ensures sufficient replicas to handle read traffic.

Why this answer

Option B is correct because Aurora Auto Scaling automatically adjusts the number of Aurora Replicas in response to changes in read workload, thereby reducing read latency by distributing read traffic across additional replicas. Option E is correct because adding Aurora Replicas offloads read queries from the primary instance, allowing parallel processing of read requests and reducing contention, which directly lowers read latency.

Exam trap

The trap here is that candidates may confuse write scaling (Option C) with read scaling, or assume that encryption (Option A) or external caching (Option D) are native Aurora methods, when the exam expects knowledge of Aurora-specific read scaling features like Aurora Replicas and Auto Scaling.

250
MCQhard

A company runs a production Amazon RDS for PostgreSQL database with automated backups enabled. A database administrator accidentally dropped a critical table. The administrator wants to restore the table from a point in time before the drop. The database is 1 TB in size and the recovery point objective (RPO) is 5 minutes. Which approach minimizes downtime?

A.Use the point-in-time recovery feature to restore the database to a new DB instance at a time before the drop, then use pg_dump to export the table and import it into the production database.
B.Restore the automated backup from S3 to a new EC2 instance running PostgreSQL, then export the table and import it into the production database.
C.Restore the database from the most recent manual snapshot to a new instance, then use pg_dump to extract the table and import it into the production database.
D.Create a read replica from the production database, stop replication, and use pg_dump to extract the table from the replica and import it into the production database.
AnswerA

PITR allows restore to any second within the backup retention period, minimizing data loss and downtime by restoring to a new instance.

Why this answer

Point-in-time recovery (PITR) to a new DB instance is the most efficient way to restore a specific table without affecting the existing production database. Restoring to the existing instance would cause downtime. pg_dump from a read replica is slower and not point-in-time. Manual backup from S3 is not automated and not point-in-time.

251
MCQhard

A company has an Amazon RDS for SQL Server DB instance with Multi-AZ deployment. During a recent failover test, the application experienced a longer downtime than expected. The application uses a single connection string. What change should be made to reduce failover downtime?

A.Implement connection pooling in the application.
B.Use a custom DNS CNAME record pointing to the RDS endpoint.
C.Set the DNS TTL to a higher value.
D.Configure the application to use the RDS instance ID instead of endpoint.
AnswerB

CNAME allows DNS update after failover, reducing downtime.

Why this answer

Option C is correct because using a CNAME that points to the RDS endpoint ensures that after failover, the DNS record updates automatically, reducing downtime. Option A is wrong because setting TTL too low may cause DNS propagation delays. Option B is wrong because the RDS endpoint already handles failover.

Option D is wrong because Connection pooling does not reduce failover time.

252
MCQmedium

A company is migrating its on-premises Oracle database to Amazon RDS for Oracle. The database is 2 TB in size and has a 24-hour maintenance window. The company needs to minimize downtime during the migration. Which AWS service should be used to perform the migration with minimal downtime?

A.AWS Database Migration Service
B.Oracle Data Guard
C.AWS Schema Conversion Tool (AWS SCT)
D.AWS Database Migration Service (AWS DMS)
AnswerD

AWS DMS can migrate data with minimal downtime by replicating ongoing changes.

Why this answer

AWS DMS supports homogeneous and heterogeneous migrations with minimal downtime by replicating ongoing changes. RDS for Oracle does not support native Oracle Data Guard (B) across environments. AWS SCT (C) is for schema conversion, not full data migration.

AWS Database Migration Service (D) is the recommended service, but option A is AWS DMS which is correct.

253
MCQmedium

A data engineer is troubleshooting a slow-running query on an Amazon Redshift cluster. The query involves large table joins and aggregations. Which diagnostic step should be taken FIRST to understand the query execution plan and identify bottlenecks?

A.Monitor the WLM queue metrics for the query.
B.Check the SVV_TABLE_INFO view for table distribution and sort keys.
C.Run the EXPLAIN command on the query to review the execution plan.
D.Query the STL_QUERY system table to review the query text.
AnswerC

EXPLAIN reveals how Redshift will execute the query.

Why this answer

Option B is correct because the EXPLAIN command shows the query execution plan, including join types, distribution styles, and sort keys, which helps identify bottlenecks. Option A is incorrect because STL_QUERY logs completed queries but does not provide the plan. Option C is incorrect because SVV_TABLE_INFO gives table statistics, not the query plan.

Option D is incorrect because WLM metrics show queue performance, not individual query plans.

254
MCQeasy

A company uses Amazon DynamoDB with provisioned capacity. The application team reports occasional ProvisionedThroughputExceededException errors. The database administrator notices that the errors occur during periods of high traffic. What is the most cost-effective way to handle these errors without over-provisioning capacity?

A.Increase the provisioned read and write capacity to the peak traffic level.
B.Use DynamoDB Accelerator (DAX) to cache frequently accessed items.
C.Implement exponential backoff and retry logic in the application.
D.Switch to on-demand capacity mode.
AnswerC

Exponential backoff retries handle throttling errors efficiently without over-provisioning.

Why this answer

Option D is correct because implementing exponential backoff with retries handles throttling errors gracefully without over-provisioning. Option A is incorrect because it is costly and inefficient to over-provision. Option B is incorrect because DynamoDB Accelerator (DAX) is a cache, but it does not increase write capacity; it can reduce read load but not write throttling.

Option C is incorrect because switching to on-demand may be more cost-effective for spiky traffic, but it is not the most cost-effective if traffic is predictable; the question asks for most cost-effective.

255
MCQhard

A company is using Amazon Aurora MySQL-Compatible Edition. The database administrator notices that the Aurora cluster has a high number of binary log (binlog) files in the cluster volume, consuming significant storage. The binlog retention period is set to 24 hours. What is the most efficient way to reduce the storage consumed by binlog files without compromising point-in-time recovery (PITR)?

A.Manually delete binlog files from the DB instance using the 'PURGE BINARY LOGS' command.
B.Use the 'Binary Log Export' feature to export binlogs to Amazon S3 and delete them from the cluster.
C.Disable binary logging on the Aurora cluster by setting the binlog_format parameter to OFF.
D.Reduce the binlog retention period to 1 hour.
AnswerC

Aurora does not require binlogs for PITR; disabling them saves storage and improves performance.

Why this answer

Option D is correct because Aurora MySQL does not rely on binlogs for PITR; it uses its own storage-based recovery. Disabling binlog altogether saves storage and reduces I/O. Option A is incorrect because reducing the retention period may not be sufficient if binlogs are still accumulating.

Option B is incorrect because binlog files are not stored on the DB instance but in the cluster volume; deleting them manually is not recommended. Option C is incorrect because using the Binary Log Export feature is for exporting logs, not reducing storage.

256
MCQeasy

A database administrator needs to monitor Amazon RDS for PostgreSQL connections and terminate idle connections that have been open for more than 1 hour. Which combination of steps should be taken?

A.Use Amazon RDS Performance Insights to view active connections and manually terminate idle connections via the AWS Management Console.
B.Configure an RDS event subscription for 'connection' events and send to Amazon SNS. Use SNS to notify an EC2 instance that runs a script to terminate idle connections.
C.Enable audit logging and stream to Amazon CloudWatch Logs. Create a metric filter for connection events. Use CloudWatch Alarm to trigger a Lambda function that runs a SQL query to terminate idle connections.
D.Enable RDS Enhanced Monitoring and configure a CloudWatch alarm to invoke an AWS Lambda function that terminates idle connections.
AnswerC

Audit logs capture connection events; metric filter and Lambda automate termination.

Why this answer

CloudWatch Logs capture connection logs. Lambda can query the database to terminate idle connections. Option A is correct.

Option B uses EC2 which is less automated. Option C uses RDS Event Notifications which do not include connection details. Option D lacks Lambda automation.

257
Multi-Selecthard

Refer to the exhibit. A database engineer is assigned this IAM policy. Which of the following actions can the engineer perform? (Choose two.)

Select 2 answers
A.Describe all automated snapshots
B.Delete a manual snapshot named dev-snapshot
C.Delete a manual snapshot named prod-database-snapshot
D.Delete a manual snapshot named prod-backup
E.Create a manual snapshot named test-snapshot
AnswersA, E

The Allow statement permits DescribeDBSnapshots for all resources.

Why this answer

Correct answers are B and D. B: The policy allows 'rds:DescribeDBSnapshots' for all resources. D: The policy allows 'rds:CreateDBSnapshot' for all resources, so creating a snapshot with any name is allowed.

A is wrong because the Deny statement blocks deletion of snapshots with names starting with 'prod-'. C is wrong because the Deny specifically targets the 'prod-*' pattern. E is wrong because the Deny applies to snapshots in us-east-1 only? Actually the Deny resource is specific to us-east-1, but the question says 'in any region' - the policy's Deny applies only to us-east-1, so deletion in other regions is allowed? Wait, the resource ARN specifies us-east-1, so Deny only applies to snapshots in that region.

But the question says 'prod-database-snapshot' - if it's in us-east-1, it's denied. However, the user is asking about 'a snapshot named prod-database-snapshot' - that matches the pattern. So C is wrong.

E is wrong because the policy does not allow deletion of snapshots with prefix 'prod-'. The correct interpretation: The Deny only applies to the specific ARN with region us-east-1, so if the snapshot is in another region, deletion is allowed? But the policy does not explicitly allow deletion, so by default it's denied (unless there is an Allow). The policy only allows Create and Describe.

Deletion is not allowed anywhere because there is no Allow statement for Delete. So deletion is implicitly denied for all snapshots. Wait, IAM default is deny.

So without an explicit Allow for Delete, deletion is denied. So E is wrong. The correct answers are B and D.

258
MCQhard

An e-commerce company runs a multi-AZ deployment of Amazon RDS for MySQL. During a recent failover test, the application experienced a 30-second write outage. The application uses a connection pooling library. The DB instance has a 60-second TTL for DNS records. What is the MOST likely cause of the outage?

A.The connection pool had open connections to the old primary, and DNS TTL caused a delay in reconnecting to the new primary.
B.The application experienced a cold start after the failover.
C.The DNS record for the RDS endpoint was not updated after the failover.
D.The Multi-AZ failover took longer than 30 seconds to complete.
AnswerA

Stale connections and DNS caching can cause a brief outage until connections are refreshed.

Why this answer

Option B is correct because the application's connection pool may have stale connections to the old primary, and the DNS TTL of 60 seconds delays the resolution to the new primary. Option A is wrong because RDS failover typically completes in 1-2 minutes. Option C is wrong because Multi-AZ DNS records are updated automatically.

Option D is wrong because a cold start would cause longer outage.

259
MCQhard

A company uses Amazon DynamoDB with On-Demand capacity for a gaming application. During a new game launch, write traffic spikes 10x normal for 30 minutes. Some write requests receive ProvisionedThroughputExceeded exceptions. What is the MOST likely cause and solution?

A.The partition key is not distributing writes evenly, causing a hot partition. Redesign the partition key for uniform access.
B.On-Demand capacity cannot handle sudden spikes. Switch to Provisioned capacity with auto scaling.
C.DynamoDB Streams is enabled, causing additional write throttling. Disable streams.
D.The table has a global secondary index with a different partition key that is unevenly accessed. Remove the GSI.
AnswerA

Hot partitions cause throttling even with On-Demand capacity.

Why this answer

On-Demand capacity can handle spikes but has per-partition throughput limits. If a hot partition exists, writes to that partition may exceed its limit. Option A is correct because uneven partition keys cause throttling.

Option B is incorrect because On-Demand does not have table-level limits. Option C is not the primary cause. Option D is incorrect as GSI writes also consume write capacity.

260
MCQmedium

A company is running an Amazon RDS for MySQL Multi-AZ DB instance. The application experiences a brief write disruption during automatic failover. The database workload has low write latency requirements. Which configuration change would minimize application impact during failover?

A.Create a read replica in a different Availability Zone and promote it during failover.
B.Change the DB instance to use a Multi-AZ DB cluster configuration.
C.Use a single-AZ deployment and rely on automated backups for recovery.
D.Increase the DB instance class to reduce failover time.
AnswerB

Multi-AZ DB cluster provides faster failover than standard Multi-AZ.

Why this answer

Using a read replica for failover is not supported in RDS MySQL; Multi-AZ is the correct approach. Option D (Multi-AZ cluster) provides faster failover than Multi-AZ with a standby. Option A is correct because RDS Multi-AZ cluster uses a writer and two reader instances, reducing failover time.

Option B is not supported. Option C increases cost without performance benefit.

261
MCQeasy

A company wants to automate backups for an Amazon RDS for PostgreSQL DB instance. The backup retention period should be 35 days. Which step is required?

A.Enable automated backups with a retention period of 35 days.
B.Use AWS Backup to schedule backups.
C.Create a manual snapshot every day and delete after 35 days.
D.Set up a cross-region snapshot copy.
AnswerA

RDS automated backups can be configured with a retention period up to 35 days.

Why this answer

Amazon RDS for PostgreSQL supports automated backups with a configurable retention period of up to 35 days. By enabling automated backups and setting the retention period to 35 days, the company meets the requirement without additional tooling or manual effort. Automated backups include transaction logs for point-in-time recovery, which is not available with manual snapshots alone.

Exam trap

The trap here is that candidates may overcomplicate the solution by choosing AWS Backup or manual snapshots, when the simplest and most direct method is to enable automated backups with the desired retention period, which is a native RDS feature.

How to eliminate wrong answers

Option B is wrong because AWS Backup can be used to schedule backups, but it is not required; RDS native automated backups already support a 35-day retention period natively, and AWS Backup adds no benefit for this specific requirement. Option C is wrong because creating a manual snapshot every day and deleting after 35 days is operationally complex and does not provide automated point-in-time recovery, which is a key feature of automated backups. Option D is wrong because cross-region snapshot copy is a separate feature for disaster recovery, not a step required to set the backup retention period to 35 days.

262
MCQhard

A company uses Amazon ElastiCache for Redis as a caching layer for a database. The cache cluster has one primary and one replica node. During a maintenance event, the primary node fails and the replica is promoted. After promotion, the application experiences increased latency. What should a database specialist do to reduce the impact of future failovers?

A.Disable replica reads to avoid stale data.
B.Enable automatic backups with a retention period of 35 days.
C.Enable cluster mode and distribute the cache across multiple shards.
D.Add more replica nodes to the cluster.
AnswerC

Cluster mode spreads data across shards, reducing the impact of a single node failure.

Why this answer

Option D is correct because enabling Multi-AZ with automatic failover ensures a replica in a different AZ is promoted, but the key is to pre-warm the cache or use a larger instance. However, among the options, using a cluster mode with shards distributes load and reduces impact. Option A is incorrect because disabling replica reads doesn't help.

Option B is incorrect because increasing replica count without cluster mode may not help. Option C is incorrect because automatic backup does not reduce latency after failover.

263
MCQeasy

An application is experiencing increased latency when writing to an Amazon DynamoDB table. The table uses on-demand capacity mode. The CloudWatch metric 'WriteThrottleEvents' is zero. What is the most likely cause of the increased latency?

A.The write capacity units (WCUs) are set too low.
B.DynamoDB Accelerator (DAX) is not configured for writes.
C.A hot partition is causing excessive write traffic to a single partition.
D.The table is experiencing write throttling due to exceeding the provisioned write capacity.
AnswerC

Hot partitions can cause increased latency even when overall throughput is within limits, as a single partition's capacity is constrained.

Why this answer

Option C is correct because on-demand tables can throttle if you exceed the previous peak traffic by more than double in a short time, but since WriteThrottleEvents is zero, latency is likely due to hot partitions. Option A is wrong because throttling would show WriteThrottleEvents > 0. Option B is wrong because insufficient WCUs is not applicable for on-demand.

Option D is wrong because while DAX can reduce read latency, it does not affect write latency.

264
MCQmedium

A company is using Amazon Neptune to run graph queries. The cluster has one writer and two reader instances. After a major version upgrade, the query performance degrades for complex traversal queries. The database specialist suspects that the query optimizer is not using indexes effectively. Which action should the specialist take to identify the issue?

A.Drop and recreate all indexes to ensure they are up to date.
B.Enable the Neptune explain plan feature and review the output.
C.Add more reader instances to distribute the query load.
D.Check the CloudWatch metrics for CPU utilization and query latency.
AnswerB

Explain plan shows query execution steps and index usage.

Why this answer

Option C is correct because enabling the Neptune Query Language (SPARQL or Gremlin) explain plan can show how queries are executed and whether indexes are used. Option A is incorrect because instance metrics show system health, not query execution details. Option B is incorrect because removing indexes would worsen performance.

Option D is incorrect because adding readers does not fix query optimization.

265
MCQeasy

A database administrator notices that Amazon RDS for MySQL is experiencing high CPU utilization during peak hours. The application is read-heavy with many SELECT queries. Which action is most cost-effective to improve performance?

A.Create one or more read replicas and direct read traffic to them.
B.Increase the DB instance class to a larger size.
C.Increase the allocated storage to improve I/O throughput.
D.Scale up the DB instance vertically to a higher vCPU count.
AnswerA

Read replicas distribute read workload, reducing primary CPU.

Why this answer

Option C is correct because read replicas offload read traffic from the primary, reducing CPU utilization. Option A is wrong because increasing instance size is more expensive and may not be optimal. Option B is wrong because vertical scaling is not the most cost-effective.

Option D is wrong because adding storage does not reduce CPU.

266
MCQeasy

A database specialist needs to monitor the resource utilization of Amazon RDS DB instances. Which AWS service provides OS-level metrics such as memory, disk, and CPU usage?

A.Amazon RDS Performance Insights
B.Amazon RDS Enhanced Monitoring
C.Amazon CloudWatch
D.AWS CloudTrail
AnswerB

Enhanced Monitoring provides OS-level metrics.

Why this answer

Option B is correct. Enhanced Monitoring provides OS-level metrics for RDS instances. Option A is wrong because Performance Insights provides database performance metrics, not OS metrics.

Option C is wrong because CloudWatch provides hypervisor-level metrics, not OS metrics. Option D is wrong because CloudTrail logs API calls.

267
Drag & Dropmedium

Arrange the steps to switch over from a primary Amazon RDS for Oracle DB instance to a standby in a Multi-AZ deployment (planned failover) 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

Planned failover involves verifying standby health, initiating failover, and confirming connectivity.

268
MCQeasy

A startup is running an Amazon RDS for PostgreSQL database for its web application. The database size is 50 GB. The company wants to implement a backup strategy that allows point-in-time recovery (PITR) to any point within the last 35 days with minimal storage cost. Which backup strategy should be used?

A.Enable automated backups with a retention period of 35 days.
B.Use AWS Backup to schedule daily snapshots with 35-day retention.
C.Enable automated backups with 7-day retention and copy snapshots to another region.
D.Take manual snapshots daily and retain 35 snapshots.
AnswerA

Automated backups support PITR up to 35 days.

Why this answer

RDS automated backups provide PITR within the retention period. The maximum retention period is 35 days. Enabling automated backups with 35-day retention meets the requirement with no additional cost beyond the backup storage.

Option B is correct. Option A (manual snapshots) does not provide PITR. Option C (cross-region) adds cost.

Option D (AWS Backup) adds complexity and cost.

269
Multi-Selecthard

A company uses Amazon DynamoDB with provisioned capacity for a critical application. During a traffic spike, the table experiences throttling on write requests. The DBA needs to resolve the issue quickly. Which THREE actions should the DBA take? (Choose THREE.)

Select 3 answers
A.Switch the table to on-demand capacity mode.
B.Implement exponential backoff in the application's write requests.
C.Temporarily increase the write capacity units (WCU) using the AWS Console or CLI.
D.Enable auto scaling for the table to automatically adjust capacity.
E.Enable DynamoDB Accelerator (DAX) to cache writes.
AnswersB, C, D

Exponential backoff reduces retry collisions.

Why this answer

Option A, Option D, and Option E are correct. Option A increases write capacity immediately. Option D implements exponential backoff to handle throttling.

Option E uses DynamoDB Auto Scaling to adjust capacity. Option B is wrong because DAX is for reads, not writes. Option C is wrong because switching to on-demand may cause higher costs and is not a quick fix for the spike.

270
MCQhard

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.Lower the minimum read capacity to 200 RCUs.
B.Decrease the maximum read capacity to 500 RCUs.
C.Disable auto scaling and set the read capacity to 200 RCUs.
D.Increase the minimum read capacity to 500 RCUs.
AnswerA

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.

271
MCQeasy

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

A.Increase the minimum write capacity to 200 WCUs.
B.Disable auto scaling and set the write capacity to 100 WCUs.
C.Lower the minimum write capacity to 100 WCUs.
D.Decrease the maximum write capacity to 200 WCUs.
AnswerC

Matches actual consumption.

Why this answer

Option A is correct because lowering the minimum to 100 WCUs matches the actual usage, preventing over-provisioning. Option B is wrong because decreasing the maximum could cause throttling during spikes. Option C is wrong because increasing the minimum would increase costs.

Option D is wrong because disabling auto scaling would require manual management.

272
MCQmedium

A company has an Amazon Redshift cluster that is running slowly on complex queries. The cluster has 10 dc2.large nodes. The 'QueryDuration' metric shows high values for several queries. The team wants to improve performance without changing queries. Which action is MOST likely to help?

A.Add more nodes of the same type to the cluster.
B.Enable compression on all columns.
C.Enable Redshift Spectrum to offload queries to Amazon S3.
D.Increase the workload management (WLM) concurrency level.
AnswerC

Redshift Spectrum allows querying data directly in S3, reducing load on the cluster and improving performance for complex queries.

Why this answer

Option C is correct because Redshift Spectrum allows querying data directly in S3, offloading compute from the cluster. Option A is wrong because increasing WLM concurrency may actually slow down queries due to resource contention. Option B is wrong because adding more nodes can improve performance but may be overkill and more expensive.

Option D is wrong because compression is for storage, not query performance.

273
Multi-Selecthard

A company runs a production Amazon RDS for PostgreSQL instance with Multi-AZ deployment. The DB instance has a large number of connections from application servers. The operations team wants to monitor the number of database connections and receive an alert when it exceeds 80% of the maximum connections. Which combination of steps should be taken to set up this monitoring? (Choose two.)

Select 2 answers
A.Set the alarm threshold to 80 and the evaluation period to 5 minutes
B.Enable Enhanced Monitoring and create a CloudWatch alarm on the 'database_connections' metric
C.Set the alarm threshold to (0.8 * max_connections) and the evaluation period to 1 minute
D.Create a CloudWatch alarm on the 'DatabaseConnections' metric for the RDS instance
E.Enable Performance Insights and create a CloudWatch alarm using the 'DBLoad' metric
AnswersC, D

This ensures the alarm triggers when connections exceed 80% of the maximum.

Why this answer

Correct answers are B and D. B: Create a CloudWatch alarm using the 'DatabaseConnections' metric. D: Set the alarm threshold to 80% of max_connections and the period to 1 minute for timely alerts.

A is wrong because RDS Performance Insights does not provide connection count metrics via CloudWatch. C is wrong because Enhanced Monitoring provides OS metrics, not DB connection counts. E is wrong because the max_connections parameter should be checked from the DB parameter group, not the alarm.

274
MCQeasy

A company has an Amazon DynamoDB table that stores IoT sensor data. The table has a partition key of device_id and a sort key of timestamp. The team wants to efficiently retrieve the latest reading for each device. Which query pattern should be used?

A.Scan with FilterExpression to get the latest timestamp for each device
B.Query with ScanIndexForward=true and Limit=1
C.GetItem with the device_id and timestamp values
D.Query with ScanIndexForward=false and Limit=1
AnswerD

This retrieves the most recent item for a given partition key by ordering the sort key in descending order and limiting to one result.

Why this answer

Option A is correct because using the Query API with ScanIndexForward set to false and Limit 1 will return the most recent item for a given partition key. Option B is wrong because ScanIndexForward=true returns items in ascending order, which would give the oldest item first. Option C is wrong because Scan operations scan the entire table and are inefficient.

Option D is wrong because GetItem requires both partition and sort key; the sort key value is not known in advance.

275
Multi-Selectmedium

A company runs a production Amazon RDS for PostgreSQL DB instance. The database experiences intermittent high latency during peak hours. The company's monitoring shows that CPU utilization is below 40%, memory is adequate, and network throughput is normal. The DB instance uses General Purpose SSD (gp2) storage with 3,000 Provisioned IOPS. Which TWO actions should a database specialist take to diagnose and resolve the performance issue? (Choose two.)

Select 2 answers
A.Check the Burst Balance metric in Amazon CloudWatch for the DB instance.
B.Change the storage type to Provisioned IOPS SSD (io1) with 10,000 IOPS.
C.Increase the Read IOPS by modifying the instance to a larger instance class.
D.Review the SwapUsage metric for the DB instance to check for memory pressure.
E.Monitor the Read/Write Latency metrics in CloudWatch to identify storage performance issues.
AnswersA, E

Correct: gp2 volumes accumulate burst credits; if exhausted, performance drops to baseline IOPS, causing latency.

Why this answer

Option A is correct because gp2 storage uses a credit-based burst model, and the Burst Balance metric indicates the remaining I/O credits. If the burst balance is depleted, the instance is throttled to the baseline IOPS (3,000 for this size), causing high latency despite low CPU and adequate memory. Checking this metric directly identifies whether the storage is starved for I/O credits.

Exam trap

The trap here is that candidates assume high latency must be caused by CPU or memory pressure, overlooking the gp2 burst credit mechanism that throttles I/O when credits are depleted, even when other resources appear healthy.

276
MCQmedium

A company is experiencing increased latency on their Amazon RDS for PostgreSQL instance. The application team reports that queries are taking longer than usual. The database metrics show high CPU utilization and a spike in write operations. Which initial step should the database specialist take to diagnose the issue?

A.Enable Performance Insights on the DB instance to analyze the workload.
B.Create a read replica to offload read traffic from the primary instance.
C.Modify the DB instance to a larger instance class to handle the load.
D.Enable enhanced monitoring to get OS-level metrics of the DB instance.
AnswerA

Performance Insights provides a comprehensive view of database performance and helps pinpoint the bottleneck.

Why this answer

Enabling Performance Insights provides a detailed performance analysis and helps identify the root cause of the latency. It is the recommended first step for diagnosing database performance issues.

277
MCQmedium

A database administrator is creating an IAM policy to allow a DevOps engineer to manage production RDS instances. The policy above is attached to the engineer's IAM role. The engineer reports that they cannot create a new DB instance with the identifier 'prod-analytics'. What is the most likely reason?

A.The policy does not allow the 'rds:CreateDBInstance' action on the required resource because the resource ARN pattern is incorrect.
B.The policy does not include the 'rds:CreateDBSecurityGroup' action.
C.The engineer does not have permissions to pass an IAM role to the DB instance if one is specified.
D.The policy does not include the 'rds:CreateDBInstance' action for all regions.
AnswerC

When creating a DB instance with an IAM role, the 'iam:PassRole' permission is required. This is a common missing permission.

Why this answer

The policy grants permissions to resources matching 'prod-*', but creating a DB instance requires the 'rds:CreateDBInstance' action on the 'arn:aws:rds:us-east-1:123456789012:db:prod-*' resource. However, the CreateDBInstance API call also requires permissions on other resources such as security groups, subnets, etc. But the error is likely because the policy does not allow the action on the specific resource, but the resource ARN matches.

Actually, the most common issue is that the policy does not include 'rds:CreateDBInstance' on the 'aws:RequestTag' condition or the resource ARN pattern is incorrect. However, the policy looks correct for the resource. A common mistake is that the policy does not allow 'rds:CreateDBInstance' on the 'arn:aws:rds:us-east-1:123456789012:db:*' for creation, but the policy uses 'prod-*'.

That should work. Another possibility is that the engineer is trying to create the instance in a different region or account. But the exhibit shows the policy is for 'us-east-1'.

So the most likely reason is that the 'rds:CreateDBInstance' action requires additional permissions on other resources (like EC2 security groups) that are not granted.

278
Multi-Selecteasy

A company is using Amazon DynamoDB with provisioned capacity. The table's read capacity is consistently underutilized, but the write capacity is frequently maxed out. The team wants to optimize costs while maintaining performance. Which TWO actions should be taken?

Select 2 answers
A.Switch the table to on-demand capacity mode.
B.Enable DynamoDB Accelerator (DAX) to offload reads.
C.Use DynamoDB Auto Scaling for write capacity.
D.Increase the provisioned write capacity to handle spikes.
E.Reduce the provisioned read capacity to match actual usage.
AnswersC, E

Auto Scaling adjusts write capacity to match demand, reducing throttling and cost.

Why this answer

Options B and C are correct because using DynamoDB Auto Scaling for writes will adjust capacity based on demand, and reducing provisioned reads to actual usage will save costs. Option A is wrong because switching to on-demand may increase costs if the workload is predictable. Option D is wrong because reducing writes would cause throttling.

Option E is wrong because using DAX does not reduce write costs.

279
MCQeasy

A company wants to automate the creation of a new Amazon RDS for SQL Server instance with specific configurations, including VPC, subnet, and security group settings. Which AWS service should be used to deploy this infrastructure as code?

A.AWS CodeDeploy
B.AWS Elastic Beanstalk
C.AWS CloudFormation
D.AWS OpsWorks
AnswerC

CloudFormation templates can define RDS instances along with VPC, subnets, and security groups.

Why this answer

AWS CloudFormation allows you to define infrastructure as code and automate resource creation.

280
MCQhard

A company is using Amazon ElastiCache for Redis as a caching layer for a high-traffic web application. The cache hit ratio has dropped from 95% to 70% after a recent deployment that changed the cache key structure. The application team wants to improve the hit ratio without increasing the cache memory. Which action should they take?

A.Disable Cluster Mode and use a single node.
B.Implement a consistent hashing algorithm for key distribution.
C.Increase the TTL (time-to-live) for all cache keys.
D.Use random TTLs to spread out expiration times.
AnswerB

Consistent hashing minimizes key redistribution when nodes change and ensures even distribution, reducing evictions and improving hit ratio.

Why this answer

Option B is correct because using a consistent hashing algorithm ensures that keys are evenly distributed across nodes, reducing evictions and improving hit ratio. Option A is wrong because increasing TTL may cause stale data but does not directly improve hit ratio. Option C is wrong because Cluster Mode Off would limit scalability but not necessarily improve hit ratio.

Option D is wrong because random TTLs can lead to premature evictions and reduce hit ratio.

281
MCQeasy

A company is using Amazon RDS for SQL Server with Multi-AZ and automated backups enabled. The database administrator needs to restore the database to a specific point in time that is within the retention period. What is the correct procedure?

A.Use the RDS console to perform a point-in-time recovery to the desired time
B.Restore from a manual snapshot taken at the desired time
C.Use the native SQL Server backup and restore functionality
D.Restore from the latest automated snapshot
AnswerA

Point-in-time recovery allows restoring to any time within the retention period.

Why this answer

Option B is correct because point-in-time recovery is performed through the RDS console or API by specifying the time. Option A is wrong because it restores the latest backup. Option C is wrong because it restores a manual snapshot.

Option D is wrong because automated backups are used for point-in-time recovery.

282
MCQhard

A company has a production Amazon DynamoDB table with on-demand capacity. The table experiences occasional throttling due to hot partitions. The operations team wants to implement a solution to identify the specific partition keys causing the throttling. What is the MOST efficient approach?

A.Enable AWS X-Ray tracing on the application and analyze traces.
B.Enable VPC Flow Logs and use CloudWatch Logs Insights to query the logs.
C.Enable Amazon CloudWatch Contributor Insights for DynamoDB.
D.Enable DynamoDB Streams and process the stream records to identify hot keys.
AnswerC

Contributor Insights analyzes access patterns and identifies top partition keys.

Why this answer

Option D is correct because Amazon CloudWatch Contributor Insights can analyze DynamoDB logs and identify the most accessed partition keys, helping to pinpoint hot partitions. Option A is incorrect because CloudWatch Logs Insights requires enabling VPC Flow Logs, which is not specific to DynamoDB. Option B is incorrect because AWS X-Ray traces requests but does not provide partition-level metrics.

Option C is incorrect because DynamoDB Streams capture changes, not access patterns.

283
MCQeasy

A database specialist needs to capture SQL queries executed against an Amazon Aurora MySQL DB cluster for performance analysis. The capture should have minimal performance impact and be stored in Amazon CloudWatch Logs. Which feature should the specialist use?

A.Enable Performance Insights and configure the Performance Insights log export to CloudWatch Logs.
B.Enable the slow query log and export to CloudWatch Logs.
C.Enable database audit logs and export to CloudWatch Logs.
D.Enable the general log and publish to CloudWatch Logs.
AnswerA

Performance Insights captures SQL queries with minimal impact.

Why this answer

Option B is correct. The Performance Insights dashboard in Aurora provides SQL query metrics with low overhead and can publish logs to CloudWatch Logs. Option A is wrong because database audit logs are for security compliance, not performance analysis.

Option C is wrong because the general log is high overhead. Option D is wrong because slow query log only captures slow queries, not all queries.

284
MCQmedium

A company is running an Amazon RDS for MySQL DB instance. The database performance has degraded over time. The DBA suspects that the issue is due to a high number of connections that are in a 'sleep' state from a legacy application. What is the MOST effective solution to automatically terminate idle connections?

A.Modify the 'wait_timeout' parameter in the DB parameter group to a lower value.
B.Increase the 'max_connections' parameter to accommodate more idle connections.
C.Enable Amazon RDS Proxy to manage connection pooling and automatically close idle connections.
D.Use a script to run 'SHOW PROCESSLIST' and manually kill idle connections.
AnswerA

This parameter controls how long the server waits for activity on a non-interactive connection before closing it.

Why this answer

Option C is correct because Amazon RDS for MySQL supports the 'wait_timeout' parameter, which automatically closes idle connections after the specified number of seconds. Reducing this value from the default 28800 seconds will terminate sleeping connections sooner. Option A is incorrect because manually killing connections is not automated.

Option B is incorrect because RDS Proxy does not terminate idle connections; it manages connection pooling. Option D is incorrect because modifying 'max_connections' does not affect idle connections.

285
MCQhard

A company uses Amazon Aurora MySQL-Compatible Edition. The database specialist notices that the DB cluster's failover time is longer than expected. The primary instance is using a db.r5.large instance class. Which change would most likely reduce the failover time?

A.Enable Backtrack on the DB cluster.
B.Use a larger instance class for the Aurora Replicas.
C.Increase the number of Aurora Replicas.
D.Enable Multi-AZ deployment for the DB cluster.
AnswerB

Larger replicas can process transactions faster during promotion, reducing failover time.

Why this answer

Using a larger instance class for Aurora replicas ensures they can handle the workload after failover, potentially reducing failover time. However, the key factor is that Aurora failover is typically fast, but if replicas are undersized, the time to promote and become fully operational increases. Using a larger instance class for the replicas (or all instances) can help.

286
MCQhard

A company runs an e-commerce platform using Amazon DynamoDB as the database. The table has a provisioned capacity of 5000 WCU and 3000 RCU. During a flash sale, the write traffic spikes to 8000 WCU for 10 minutes, causing significant throttling. The operations team notices that the table's WriteCapacityUnits metric shows 5000, but the ConsumedWriteCapacityUnits metric peaks at 4500. The application is experiencing errors and slow response times. The team wants to handle such spikes automatically without manual intervention and without over-provisioning. Which solution should be implemented?

A.Enable DynamoDB Auto Scaling with a target utilization of 70% and a minimum capacity of 5000 WCU
B.Increase the provisioned WCU to 8000 permanently
C.Implement an Amazon SQS queue to buffer write requests and process them asynchronously
D.Switch the table to on-demand capacity mode
AnswerA

Auto Scaling dynamically adjusts capacity to handle spikes while minimizing cost.

Why this answer

Option A is correct because DynamoDB Auto Scaling can adjust capacity based on demand, and setting a target utilization of 70% allows headroom for spikes. Option B is wrong because on-demand capacity is simpler but can be more expensive for predictable workloads. Option C is wrong because increasing WCU to 8000 permanently would be costly.

Option D is wrong because SQS adds latency and does not solve the throttling issue in real-time.

287
MCQmedium

A company uses Amazon DynamoDB to store IoT sensor data. Each sensor writes a record every second. The table has a partition key of 'sensor_id' and a sort key of 'timestamp'. Over time, the team notices that write performance degrades for certain sensors that generate more data. The table uses provisioned capacity with auto scaling enabled. The application uses eventual consistency. The team needs to ensure consistent write performance without throttling. Which action should be taken?

A.Modify the partition key to include a random number or prefix to distribute writes evenly.
B.Increase the provisioned write capacity units (WCU) to a higher value.
C.Switch the table to on-demand capacity mode.
D.Create a global secondary index (GSI) with a different partition key to handle writes.
AnswerA

Write sharding evens out the load across partitions, preventing any single partition from being overloaded.

Why this answer

Option C is correct because adding a random suffix to the partition key distributes writes across partitions, avoiding hot partitions. Option A is wrong because increasing WCU does not solve the partition hot spot, as the limit per partition is fixed. Option B is wrong because switching to on-demand still has per-partition limits.

Option D is wrong because a GSI does not change the base table's write distribution.

288
Multi-Selectmedium

A company is designing a disaster recovery plan for an Amazon RDS for MySQL database. The database must have a Recovery Point Objective (RPO) of less than 5 minutes and a Recovery Time Objective (RTO) of less than 1 hour. Which TWO actions should be taken? (Choose two.)

Select 2 answers
A.Use a single-AZ instance with automated backups to S3.
B.Deploy the database in a Multi-AZ configuration.
C.Create a cross-region read replica with automated backups enabled.
D.Take daily manual snapshots and copy them to another region.
E.Use AWS DMS for continuous replication to a standby instance.
AnswersB, C

Multi-AZ provides automatic failover to a standby in a different AZ, meeting RTO.

Why this answer

Option A is correct because Multi-AZ provides automatic failover within minutes, meeting the RTO. Option D is correct because a cross-region read replica with automatic backups allows replication with low RPO. Option B is wrong because manual snapshots have higher RPO.

Option C is wrong because a single-AZ instance with backups takes longer to restore. Option E is wrong because AWS DMS is for migration, not DR.

289
MCQeasy

An IAM policy is attached to a user who needs to restore an Amazon RDS DB instance from a DB snapshot. The user attempts to restore and receives an 'Access Denied' error. Which missing permission is MOST likely causing the failure?

A.rds:DescribeDBSnapshots
B.rds:DescribeDBInstances
C.rds:CreateDBInstance
D.rds:CreateDBSubnetGroup
AnswerC

Restoring from snapshot creates a new DB instance, requiring CreateDBInstance.

Why this answer

To restore an Amazon RDS DB instance from a DB snapshot, the user must have the `rds:CreateDBInstance` permission. This is because the restore operation internally calls the CreateDBInstance API to create a new DB instance from the specified snapshot. Without this permission, the request fails with an 'Access Denied' error, even if the user has permissions to describe snapshots or instances.

Exam trap

The trap here is that candidates often assume describing snapshots is sufficient for restoration, but AWS requires the write-level `CreateDBInstance` permission because restoring creates a new DB instance, not just reads existing data.

How to eliminate wrong answers

Option A is wrong because `rds:DescribeDBSnapshots` only allows listing or viewing snapshot metadata, not performing the restore action. Option B is wrong because `rds:DescribeDBInstances` only allows viewing existing DB instance details, which is unrelated to creating a new instance from a snapshot. Option D is wrong because `rds:CreateDBSubnetGroup` is needed only if a custom subnet group must be created; the restore can use an existing subnet group, and the missing permission is the core CreateDBInstance action.

290
MCQmedium

A database administrator runs the above CLI command. The DB instance has pending modifications. Which modification will take effect immediately without requiring a reboot?

A.BackupRetentionPeriod
B.DBInstanceClass
C.MasterUserPassword
D.AllocatedStorage
AnswerA

Backup retention change is applied immediately.

Why this answer

Option C is correct because changing the backup retention period takes effect immediately without reboot. Option A is incorrect because it requires a reboot. Option B is incorrect because it requires a reboot.

Option D is incorrect because it requires a reboot.

291
MCQhard

A company is migrating an on-premises Oracle database to Amazon RDS for Oracle. The database is 2 TB in size and has a high transaction rate. The migration must have minimal downtime. Which migration strategy should a database specialist recommend?

A.Use AWS DMS with ongoing replication to capture changes.
B.Copy the data files to Amazon S3 and then load into RDS.
C.Use Oracle Data Pump to export and import the database.
D.Perform an RMAN backup and restore to RDS.
AnswerA

DMS with CDC allows near-zero downtime migration.

Why this answer

Option B is correct because AWS DMS with ongoing replication can minimize downtime by capturing changes. Option A is incorrect because native export/import requires downtime. Option C is incorrect because RMAN backup and restore requires downtime for restore.

Option D is incorrect because copying dump files also requires downtime.

292
MCQmedium

A database administrator notices that an Amazon Aurora MySQL DB cluster's primary instance is experiencing high CPU utilization due to a long-running analytical query. The application can tolerate eventual consistency. What is the MOST cost-effective solution to reduce CPU load on the primary instance?

A.Configure an Auto Scaling policy for Aurora Replicas and modify the application to use the reader endpoint.
B.Create a read replica in a different region and route read traffic there.
C.Increase the instance size of the primary instance.
D.Enable Aurora Parallel Query on the cluster.
AnswerA

Aurora Replicas share the same storage and can offload SELECT queries.

Why this answer

Offloading read queries to Aurora Replicas is cost-effective and reduces primary load without additional infrastructure.

293
Multi-Selecthard

A company is running an Amazon RDS for MySQL Multi-AZ DB instance. The company wants to implement a backup strategy that meets a recovery point objective (RPO) of 5 minutes and a recovery time objective (RTO) of 1 hour. Which THREE steps should the company take to meet these objectives?

Select 3 answers
A.Configure AWS Backup to copy automated backups to another region.
B.Enable automated backups with a retention period of 35 days.
C.Change the DB instance to a Single-AZ configuration to reduce costs.
D.Create a cross-region read replica to use for failover in another region.
E.Take daily manual snapshots and copy them to another region.
AnswersA, B, D

AWS Backup can copy backups cross-region for disaster recovery.

Why this answer

Automated backups with a retention period of 35 days provide point-in-time recovery. Cross-region snapshots via AWS Backup provide additional protection. A read replica can be promoted quickly for failover.

Option A (daily manual snapshots) may not meet the 5-minute RPO. Option D (single-AZ) is not as resilient. The correct options are B, C, and E.

294
Multi-Selecthard

A company is using Amazon DynamoDB with on-demand capacity mode. The application experiences occasional throttling during traffic spikes. The database administrator wants to implement a solution to reduce throttling. Which THREE actions should the administrator take? (Choose THREE.)

Select 3 answers
A.Use DynamoDB Accelerator (DAX) to cache frequently accessed items.
B.Enable auto scaling for the table.
C.Switch the table to provisioned capacity mode with auto scaling.
D.Implement exponential backoff and retry logic in the application.
E.Design the application to handle throttling by retrying with backoff.
AnswersA, D, E

DAX reduces read traffic to the table, decreasing the chance of read throttling.

Why this answer

Options A, C, and D are correct. Implementing retry logic with exponential backoff handles throttling gracefully. Using DynamoDB Accelerator (DAX) reduces read load on the table, which can help with read throttling.

Designing the application to handle throttling by retrying ensures resilience. Option B is incorrect because switching to provisioned capacity may not be cost-effective and does not inherently reduce throttling. Option E is incorrect because enabling auto scaling is not applicable to on-demand mode.

295
MCQeasy

A company is using Amazon DynamoDB with on-demand capacity. The application experiences increased latency during peak hours. The DynamoDB table receives about 5,000 writes per second and 10,000 reads per second. The read latency is high, but write latency is acceptable. What should the company do to reduce read latency?

A.Enable DynamoDB Streams to offload read traffic.
B.Create a read replica of the DynamoDB table.
C.Enable DynamoDB Accelerator (DAX) for the table.
D.Switch to provisioned capacity and enable auto scaling.
AnswerC

DAX caches reads, reducing latency.

Why this answer

Option A is correct. DynamoDB Accelerator (DAX) is a fully managed, highly available, in-memory cache that reduces read latency. Option B is wrong because auto scaling is for provisioned capacity, not on-demand.

Option C is wrong because read replicas are not a DynamoDB feature. Option D is wrong because DynamoDB Streams does not cache data.

296
Multi-Selecteasy

A company wants to monitor the performance of an Amazon RDS for MySQL instance. Which TWO metrics are available in Amazon CloudWatch by default? (Choose 2.)

Select 2 answers
A.FreeableMemory
B.CPUUtilization
C.QueryThroughput
D.ReadThrottleEvents
E.DatabaseConnections
AnswersB, E

Default metric for RDS.

Why this answer

Option A is correct because CPUUtilization is a default metric. Option B is correct because DatabaseConnections is a default metric. Option C is incorrect because it is a metric for DynamoDB.

Option D is incorrect because it is for Redshift. Option E is incorrect because it is not a default metric.

297
MCQmedium

A company is running an Amazon RDS for MySQL Multi-AZ DB instance. The primary instance in us-east-1a experiences an unexpected failure. After the automatic failover, the application team reports that write latency has increased significantly. The new primary instance is in us-east-1b. The DB instance class and storage configuration are identical. What is the MOST likely cause of the increased write latency?

A.The DB instance class in us-east-1b is a different size than the original.
B.The application is connecting to the DB instance in a different Availability Zone, increasing network latency.
C.The Multi-AZ configuration uses asynchronous replication, causing higher latency.
D.The new primary is in the same Availability Zone as the application, but the standby is in a different AZ, causing synchronous replication overhead.
AnswerB

The new primary is in us-east-1b, and if the application is in us-east-1a, cross-AZ latency increases write latency.

Why this answer

Option B is correct because after failover, the new primary DB instance resides in us-east-1b, while the application likely continues to connect to the original endpoint or is still running in us-east-1a. This cross-AZ network hop introduces additional latency for write operations, as the application must send data over the network between Availability Zones. The DB instance class and storage are identical, so performance differences are not due to hardware changes.

Exam trap

The trap here is that candidates may assume Multi-AZ failover is transparent and does not affect performance, but cross-AZ network latency for writes can increase significantly if the application remains in the original AZ.

How to eliminate wrong answers

Option A is wrong because the question explicitly states that the DB instance class and storage configuration are identical, so a size difference is not a factor. Option C is wrong because Multi-AZ replication is synchronous, not asynchronous; asynchronous replication would be used for cross-Region read replicas, not for Multi-AZ failover. Option D is wrong because the new primary is in us-east-1b, not the same AZ as the application (which is in us-east-1a), and synchronous replication overhead applies to the standby, not to the application's write path.

298
MCQmedium

A company runs a critical Amazon DynamoDB table with on-demand capacity. The table experiences throttling errors (ProvisionedThroughputExceededException) during peak hours. The table has a global secondary index (GSI) with a different partition key. What is the MOST likely cause of the throttling?

A.The base table's write capacity is insufficient for the workload.
B.The global secondary index is throttling due to uneven access patterns.
C.The partition key design causes hot partitions in the base table.
D.The table's read capacity is too low for the read-heavy workload.
AnswerB

GSIs on on-demand tables have their own capacity; hot partitions can cause throttling.

Why this answer

Option C is correct because on-demand tables can throttle if a GSI's write capacity is exceeded. Option A is incorrect because on-demand capacity scales automatically for the base table. Option B is incorrect because throttling is not due to read-heavy workloads on the base table.

Option D is incorrect because partition keys are automatically managed.

299
MCQeasy

A company needs to audit all SQL queries executed on an Amazon RDS for PostgreSQL instance. Which feature should the company enable?

A.pgAudit extension
B.Advanced Audit
C.Database Activity Streams
D.Fine-Grained Auditing
AnswerA

pgAudit provides detailed audit logs.

Why this answer

Option A is correct because RDS for PostgreSQL supports pgAudit extension. Option B is incorrect because it is not a feature. Option C is incorrect because it is for MySQL.

Option D is incorrect because it is for Oracle.

300
MCQmedium

Refer to the exhibit. A database engineer runs the command and receives the above output. The engineer wants to convert the database to Multi-AZ. Which command should be used?

A.aws rds reboot-db-instance --db-instance-identifier mydb --force-failover
B.aws rds create-db-instance --db-instance-identifier mydb --multi-az
C.aws rds modify-db-instance --db-instance-identifier mydb --multi-az
D.aws rds create-db-cluster --db-instance-identifier mydb --multi-az
AnswerC

The modify-db-instance command can update the Multi-AZ setting.

Why this answer

Option B is correct because 'modify-db-instance' with --multi-az is the correct AWS CLI command to enable Multi-AZ. Option A is wrong because 'create-db-instance' is for new instances, not modifying existing ones. Option C is wrong because 'reboot-db-instance' restarts the instance but does not change Multi-AZ.

Option D is wrong because 'create-db-cluster' is for Aurora, not for converting a single DB instance to Multi-AZ.

← PreviousPage 4 of 5 · 312 questions totalNext →

Ready to test yourself?

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