Courseiva

CCNA Troubleshooting Questions

75 of 289 questions · Page 2/4 · Troubleshooting topic · Answers revealed

76
MCQhard

A company runs a production Amazon RDS for PostgreSQL Multi-AZ DB instance (db.r5.large) with 500 GB of General Purpose SSD (gp2) storage. The application experiences intermittent latency spikes every 15 minutes. Monitoring shows that during these spikes, the ReadIOPS metric on the primary instance spikes to 5,000 IOPS (the baseline is 1,500 IOPS), and the BurstBalance drops from 100% to 20% then recovers. There is no increase in CPU or connections. The application uses connection pooling with pgBouncer on an EC2 instance. The team has verified that no long-running queries or index scans are causing the spikes. Which action is MOST likely to resolve the intermittent latency?

A.Create a read replica and redirect read traffic to it.
B.Increase the DB instance to db.r5.xlarge to improve CPU and network performance.
C.Migrate the storage to gp3 with a baseline of 3,000 IOPS and 125 MB/s throughput.
D.Scale the storage to 1,000 GB to increase baseline IOPS and burst credits.
AnswerC

gp3 provides consistent baseline IOPS without burst credits, eliminating the performance variability due to credit exhaustion.

Why this answer

The latency spikes are caused by gp2 storage burst credit exhaustion. The 500 GB gp2 volume has a baseline of 1,500 IOPS, but the workload spikes to 5,000 IOPS every 15 minutes, rapidly consuming burst credits. Migrating to gp3 provides a baseline of 3,000 IOPS and 125 MB/s throughput without relying on burst credits, thus eliminating the credit exhaustion issue.

Option A (read replica) does not resolve the primary instance's write IOPS spikes. Option B (larger instance) does not address storage IOPS limitations; CPU and connections are already normal. Option D (scale storage to 1,000 GB) would increase the gp2 baseline to 3,000 IOPS and provide more burst credits, but gp3 offers a simpler, more cost-effective solution with consistent performance and no credit-based throttling.

Exam trap

Candidates often confuse gp2 burst credits with gp3's fixed performance. They may think increasing volume size alone will eliminate bursts, but gp2 always uses credits for spikes above baseline. Migrating to gp3 removes the burst mechanism entirely.

77
MCQhard

A company is using Amazon DynamoDB for a high-traffic application. The application is experiencing intermittent `ProvisionedThroughputExceededException` errors. The team has already increased the read and write capacity units multiple times but the errors persist. Which of the following is the MOST likely cause of the issue?

A.DynamoDB Accelerator (DAX) is not properly configured
B.The table is part of a DynamoDB Global Table and replication is causing conflicts
C.The provisioned capacity is not increased enough
D.A hot key or uneven partition access pattern is causing throttling
AnswerD

Hot keys or uneven partition access patterns can cause throttling even if overall provisioned capacity appears sufficient.

Why this answer

Hot keys or uneven partition access patterns can cause throttling even if overall provisioned capacity appears sufficient. Option A is wrong because DynamoDB Accelerator (DAX) is an in-memory cache that reduces read load, but it does not directly fix capacity exceeded errors; misconfiguration might cause cache misses but not ProvisionedThroughputExceededException. Option B is wrong because Global Tables replication does not cause throttling on the source table; conflicts are handled by last-writer-wins.

Option C is wrong because increasing capacity units multiple times without resolving the underlying access pattern suggests the issue is not simply insufficient capacity.

78
MCQeasy

A developer notices that an Amazon ElastiCache for Redis cluster is experiencing high latency. The cluster uses a single node. Which CloudWatch metric should be reviewed first to determine if the issue is due to memory pressure?

A.NetworkBytesIn
B.ReplicationLag
C.CPUUtilization
D.DatabaseMemoryUsagePercentage
AnswerD

DatabaseMemoryUsagePercentage shows the percentage of the node's memory used. High usage can lead to memory pressure, causing latency due to evictions or swap.

Why this answer

The correct metric to check for memory pressure is DatabaseMemoryUsagePercentage. This metric shows the percentage of the node's available memory that is in use, and when high it can lead to latency due to evictions or swap usage. NetworkBytesIn measures network traffic, not memory.

ReplicationLag is relevant only for clusters with replicas, and CPUUtilization indicates CPU load, not memory pressure.

79
MCQeasy

A startup uses Amazon ElastiCache for Redis as a caching layer for its database. Users report that application responses are slow. The developer checks the ElastiCache metrics and sees that 'CacheHits' are low and 'CacheMisses' are high. What is the most likely cause?

A.The cluster does not have enough read replicas.
B.The ElastiCache cluster does not have enough write capacity.
C.The ElastiCache nodes have high CPU utilization.
D.The cache key TTL is too short, causing frequent evictions.
AnswerD

Short TTL leads to early eviction and cache misses.

Why this answer

A low cache hit ratio and high cache miss ratio indicate that the cache is not storing data that is frequently requested. The most likely cause is that the Time-To-Live (TTL) for cache keys is set too short, causing data to be evicted before it can be reused. Option A is incorrect because read replicas improve read scalability but do not directly affect cache hit ratio.

Option B is incorrect because write capacity is not relevant for a caching layer that primarily serves reads. Option C is incorrect: while high CPU utilization can cause latency, it would not specifically cause low cache hits and high misses.

80
MCQmedium

A company runs an Amazon Redshift cluster with 8 dc2.large nodes for its data warehouse. The data engineering team loads data daily using COPY commands from S3. Recently, the load times have increased significantly. The cluster's CloudWatch metric 'CPUUtilization' is high during the load. The administrator runs the STL_LOAD_ERRORS table and finds no errors. The SVL_S3LOG shows that the COPY command is scanning many small files. The data in S3 is stored as 10,000 small CSV files (each ~100 KB). Which action will MOST improve the COPY performance?

A.Use the MANIFEST option to specify the files explicitly
B.Use the JSON format instead of CSV to reduce parsing overhead
C.Consolidate the small files into fewer, larger files (e.g., 100 files of 10 MB each)
D.Change the table's distribution style to ALL to avoid data redistribution
AnswerC

Larger files reduce the overhead of file opening and improve parallelism.

Why this answer

Consolidating many small files into fewer, larger files reduces the overhead of opening and processing numerous small files during the COPY command. Redshift performs better with larger files (e.g., 64 MB to 1 GB) because it can parallelize the load across slices more efficiently. Option A is incorrect because the MANIFEST option helps with specifying files but does not address the root cause of many small files.

Option B is incorrect because JSON format typically increases parsing overhead compared to CSV. Option D is incorrect because changing the distribution style to ALL does not improve COPY performance; it affects query performance after data is loaded.

Exam trap

Candidates may confuse the benefit of file format (JSON vs. CSV) with the performance impact of file size. The real issue is the large number of small files, not the format.

81
MCQmedium

A retail company uses Amazon RDS for PostgreSQL as the backend for its e-commerce platform. During a flash sale, the database experienced high CPU utilization and increased the number of active connections. The application team reported that some queries timed out. The database specialist reviewed the slow query log and found that several queries were performing sequential scans on large tables due to missing indexes. The specialist created the necessary indexes, but the issue persists for some queries. Upon further investigation, the specialist notices that the query planner is still choosing sequential scans for some queries. What should the database specialist do to ensure the query planner uses the indexes?

A.Increase maintenance_work_mem to speed up index creation.
B.Decrease the random_page_cost to make indexes more attractive.
C.Run the ANALYZE command to update table statistics.
D.Set enable_seqscan to off to force index usage.
AnswerC

Updated statistics help the planner use indexes.

Why this answer

Running ANALYZE updates the table statistics used by the query planner, allowing it to make informed decisions about index usage. Without updated statistics, the planner may still choose sequential scans even after indexes are created. Option A is incorrect because increasing maintenance_work_mem speeds up index creation but does not affect query planning.

Option B is incorrect because decreasing random_page_cost might make indexes more attractive, but it is a global setting that could have unintended consequences and does not address the root cause of stale statistics. Option D is incorrect because disabling sequential scans (enable_seqscan=off) forces index usage but can lead to suboptimal plans, especially if the index is not the most efficient access method.

82
MCQeasy

A company is running a production Amazon DynamoDB table and notices that read requests are being throttled. The table has on-demand capacity mode enabled. Which action should the database specialist take to troubleshoot the throttling?

A.Check the CloudWatch metric 'ThrottledRequests' for the table and review 'SystemErrors' to identify hot partitions.
B.Enable auto scaling on the table to automatically adjust capacity.
C.Enable DynamoDB Accelerator (DAX) to reduce read load on the table.
D.Switch the table to provisioned capacity mode and increase the read capacity units.
AnswerA

Throttling with on-demand can be due to a hot partition; CloudWatch metrics help identify it.

Why this answer

With on-demand capacity, throttling often results from hot partitions. The CloudWatch metric 'ThrottledRequests' helps detect throttling, and reviewing 'SystemErrors' can indicate partition-level errors, aiding in identifying hot partitions. Option B is incorrect because auto scaling is only supported for provisioned capacity mode, not on-demand.

Option C is incorrect because enabling DAX can reduce read load but does not address the root cause of throttling due to hot partitions; it is not a troubleshooting step. Option D is incorrect because switching to provisioned capacity and increasing RCUs is a remediation action, not a troubleshooting action.

83
MCQhard

A company is using Amazon DynamoDB with global tables. The application team reports that data written in one region is not immediately available in another region. The database specialist needs to monitor the replication lag. Which CloudWatch metric should be used?

A.Monitor the 'ConsumedWriteCapacityUnits' metric in both regions.
B.Monitor the 'PendingReplicationCount' metric in the source region.
C.Monitor the 'ThrottledRequests' metric in the source region.
D.Monitor the 'ReplicationLatency' metric in the replica region.
AnswerD

This metric directly measures the replication lag between regions.

Why this answer

'ReplicationLatency' is the CloudWatch metric that measures the time between an update to a DynamoDB global table in the source region and its appearance in the replica region. Option A is wrong because 'ConsumedWriteCapacityUnits' measures the amount of write capacity consumed, not replication lag. Option B is wrong because 'PendingReplicationCount' shows the number of items waiting to be replicated, not the time delay.

Option C is wrong because 'ThrottledRequests' indicates that requests are being throttled, which is unrelated to replication lag.

84
MCQeasy

A database administrator notices that an Amazon RDS for MySQL instance's storage is filling up unexpectedly. The administrator has enabled automated backups and retains them for 7 days. Which of the following actions would help reduce storage consumption without losing the ability to perform point-in-time recovery?

A.Modify the DB instance to a smaller instance class
B.Reduce the backup retention period to 1 day
C.Delete manual DB snapshots
D.Disable automated backups
AnswerB

Reducing backup retention minimizes the volume of automated backup data stored, which directly affects the storage consumption associated with backups. Point-in-time recovery is still possible for the retained period.

Why this answer

Reducing the backup retention period reduces the amount of storage consumed by automated backup data, while still allowing point-in-time recovery for the duration of the retention period. Option A is incorrect because changing the instance class does not affect storage consumption. Option C is incorrect because deleting manual snapshots does not reduce the automated backup storage that is likely causing the unexpected filling, and manual snapshots are not necessary for point-in-time recovery.

Option D is incorrect because disabling automated backups eliminates point-in-time recovery capability.

85
MCQhard

A company is using Amazon ElastiCache for Redis as a caching layer for a web application. The application's response time has increased, and the operations team suspects that cache evictions are occurring frequently. Which ElastiCache metric should be monitored to confirm cache evictions?

A.CacheHits
B.SwapUsage
C.Evictions
D.CurrItems
AnswerC

Evictions metric shows the number of keys evicted due to memory pressure, which directly indicates cache evictions.

Why this answer

The Evictions metric in Amazon ElastiCache for Redis shows the number of keys evicted due to memory pressure. Option A (CacheHits) is wrong because it indicates successful key retrievals, not evictions. Option B (SwapUsage) is wrong because it shows the amount of swap space used, not eviction count.

Option D (CurrItems) is wrong because it shows the current number of items in the cache, not evictions.

86
MCQeasy

A company notices that its Amazon DynamoDB table is consuming more read capacity than expected. The table has a global secondary index (GSI) with a different sort key. Which action would most likely reduce the read consumption?

A.Increase the write capacity of the table.
B.Enable DAX (DynamoDB Accelerator) to cache read results.
C.Change the sort key of the base table to match the GSI sort key.
D.Create a local secondary index (LSI) with the same sort key as the GSI.
AnswerB

DAX reduces the number of reads to the table, lowering read capacity consumption.

Why this answer

Enabling DynamoDB Accelerator (DAX) caches read results from the DynamoDB table, reducing the number of reads that consume read capacity units (RCUs). When the table has a GSI, reads that use the GSI also consume RCUs from the index. DAX can cache both base table and index reads, thereby lowering overall read consumption.

Option A is incorrect because increasing write capacity does not affect read consumption. Option C is incorrect because changing the sort key does not directly reduce read capacity usage. Option D is incorrect because a local secondary index (LSI) uses the same partition key and does not help reduce read consumption from a GSI.

87
MCQeasy

A developer is using AWS Database Migration Service (DMS) to migrate a database from on-premises to Amazon RDS. The migration task is failing with 'Insufficient memory' error. Which resource should be increased to resolve this?

A.Increase the size of the DMS replication instance.
B.Increase the memory on the source database.
C.Increase the Amazon S3 bucket size for staging.
D.Increase the memory on the target RDS instance.
AnswerA

Increasing the size of the DMS replication instance provides more memory for the migration task, resolving the 'Insufficient memory' error.

Why this answer

The DMS replication instance may have insufficient memory. Increasing its size provides more memory. Option B is wrong because source database memory is not controlled by DMS.

Option C is wrong because S3 is not involved in the DMS process by default. Option D is wrong because target RDS instance memory may not be the bottleneck.

88
MCQmedium

Refer to the exhibit. A DBA sees the above log entries for an Amazon Aurora MySQL cluster. What is the most likely cause?

A.There is underlying storage corruption
B.The reader instance is lagging behind the writer
C.The DB instance has run out of connections
D.A recent backup restore operation failed
AnswerA

Page corruption errors indicate storage issues.

Why this answer

The logs show page corruption and checksum errors, which are classic symptoms of underlying storage corruption in Aurora MySQL. Storage corruption can occur due to hardware failures or software bugs, and Aurora's distributed storage layer can sometimes experience such issues that manifest as corrupted pages. Option B is incorrect because reader lag would show replication delay metrics and possibly 'seconds behind master' warnings, not corruption-related errors.

Option C is incorrect because connection exhaustion would generate errors like 'too many connections' or timeouts, not page corruption. Option D is incorrect because a failed backup restore would typically result in errors during the restore process, not ongoing page corruption after the instance is running.

89
MCQeasy

A database specialist is troubleshooting an Amazon RDS for MySQL DB instance that is running out of storage. The instance has automated backups enabled. The specialist needs to free up storage space immediately without losing backup capability. Which action should the specialist take?

A.Modify the DB instance to reduce the backup retention period to 0 days.
B.Delete older automated backups that are no longer needed.
C.Delete manual snapshots from the RDS console.
D.Disable automated backups to stop storage consumption.
AnswerB

Deleting older automated backups also removes them from S3, not instance storage, so it does not help.

Why this answer

None of the provided options will free up DB instance storage. Automated backups are stored in Amazon S3, not in the instance's allocated storage. To free up instance storage, you would need to increase the allocated storage or delete actual data from the database.

Reducing backup retention deletes backups from S3, not instance storage. Manual snapshots are also in S3. Disabling backups stops future backups but does not free existing storage.

90
MCQeasy

A company is using Amazon RDS for MySQL and notices that the Read IOPS metric is consistently high during business hours. The application is read-heavy. Which configuration change would most likely reduce Read IOPS?

A.Add a Multi-AZ standby instance.
B.Create one or more read replicas and redirect read traffic to them.
C.Increase the DB instance size to a larger instance type.
D.Enable storage Auto Scaling on the RDS instance.
AnswerB

Read replicas handle read queries from the primary, reducing read IOPS on the source instance.

Why this answer

Creating read replicas offloads read queries from the primary DB instance to replica instances, directly reducing the number of read I/O operations on the primary. Since the application is read-heavy and Read IOPS is high during business hours, distributing read traffic to replicas alleviates the I/O bottleneck on the primary instance without requiring a larger instance or storage changes.

Exam trap

The trap here is that candidates often confuse Multi-AZ with read replicas, assuming a standby instance can handle read traffic, but in RDS for MySQL, Multi-AZ standby is passive and does not serve reads.

How to eliminate wrong answers

Option A is wrong because a Multi-AZ standby instance is for high availability and failover, not for read scaling; it does not serve read traffic and thus does not reduce Read IOPS on the primary. Option C is wrong because increasing the DB instance size may improve throughput but does not reduce the number of read I/O operations; it only provides more capacity to handle the same I/O load, potentially leaving Read IOPS high. Option D is wrong because enabling storage Auto Scaling automatically increases storage when needed but does not reduce read I/O operations; it addresses storage capacity, not read workload distribution.

91
MCQhard

A company uses Amazon DynamoDB with auto scaling enabled. They notice that a table's write capacity is frequently throttled during a specific hour each day. The access pattern is uniform across partitions. Which action would resolve the throttling without manual intervention?

A.Enable DynamoDB Accelerator (DAX) to cache writes.
B.Disable auto scaling and set a fixed higher capacity.
C.Create a larger number of partitions by splitting the table.
D.Increase the minimum provisioned capacity in auto scaling.
AnswerD

Correct. Setting a higher minimum ensures enough capacity during the spike, and auto scaling can scale up further if needed.

Why this answer

When DynamoDB auto scaling is enabled, throttling can occur if the table's write capacity demand spikes faster than auto scaling can increase capacity. The 'minimum provisioned capacity' in the auto scaling policy sets a floor for the capacity units. By increasing this minimum, the table starts with a higher base capacity, reducing the likelihood of throttling during predictable peak hours.

Option A is incorrect because DAX is a caching layer for reads, not writes. Option B is incorrect because disabling auto scaling requires manual intervention. Option C is incorrect because table partitioning in DynamoDB is managed automatically based on provisioned capacity; you cannot manually split partitions.

92
MCQmedium

A gaming company uses Amazon DynamoDB with provisioned capacity. During a new game launch, the read activity spikes and some requests receive 'ProvisionedThroughputExceededException' errors. The operations team needs to monitor read throttling in real-time. Which CloudWatch metric should they create an alarm for?

A.ReadLatency
B.ConsumedReadCapacityUnits
C.ReadThrottleEvents
D.ThrottledRequests
AnswerC

This metric specifically counts throttled read requests.

Why this answer

(ReadThrottleEvents) because this metric directly counts the number of read requests that are throttled due to exceeding provisioned read capacity. Option B (ConsumedReadCapacityUnits) shows the amount of read capacity used, not throttled events. Option D (ThrottledRequests) includes both read and write throttles, so it is not specific to reads.

Option A (ReadLatency) measures response time, not throttling.

93
MCQeasy

A company runs a production Amazon DynamoDB table with on-demand capacity. The table stores session data for a web application. Recently, users have reported occasional slow response times. The operations team notices that the table's ConsumedWriteCapacityUnits metric shows occasional spikes that exceed the provisioned throughput (though on-demand auto-scales), and ThrottledWriteEvents metrics show occasional throttling. The application uses the AWS SDK with default retry logic. The database specialist is asked to investigate. Upon reviewing the table configuration, the specialist finds that the table has a simple primary key (partition key only) and the data access pattern is heavily skewed toward a small number of partition keys. The application writes in batches of 25 items using the BatchWriteItem API. What should the specialist recommend to reduce throttling and improve performance?

A.Implement write sharding by adding a random suffix to the partition key to distribute writes more evenly.
B.Increase the provisioned read capacity units to handle the load.
C.Switch the table to provisioned capacity mode and increase write capacity.
D.Enable DynamoDB Accelerator (DAX) to cache write operations.
AnswerA

Write sharding spreads writes across multiple partitions, reducing throttling.

Why this answer

The throttling is caused by a hot partition: the table uses a single partition key, and writes are heavily skewed toward a few keys. By adding a random suffix to the partition key (write sharding), the writes are distributed evenly across all partitions, eliminating hot spots and reducing throttling. The on-demand capacity mode already handles overall throughput, but it cannot prevent throttling on individual partitions when access is skewed.

Exam trap

The trap here is that candidates assume on-demand capacity mode eliminates all throttling, but it only manages total table throughput, not per-partition limits, so hot keys still cause throttling.

How to eliminate wrong answers

Option B is wrong because increasing read capacity units does not address write throttling; the issue is with write operations, not reads. Option C is wrong because switching to provisioned capacity and increasing write capacity does not solve the hot partition problem; even with higher provisioned capacity, a single partition can still be throttled if writes are concentrated on it. Option D is wrong because DynamoDB Accelerator (DAX) is an in-memory cache for read operations only; it does not cache or accelerate write operations, so it cannot reduce write throttling.

94
MCQmedium

A company is using Amazon Redshift for data warehousing. The query performance has degraded over time. The DBA suspects that the distribution style of large tables is suboptimal. Which Redshift system view should be queried to identify distribution skew?

A.STL_SCAN
B.PG_TABLE_DEF
C.SVV_DISKUSAGE
D.STV_TBL_PERM
AnswerC

SVV_DISKUSAGE provides disk usage per slice, which helps identify distribution skew.

Why this answer

SVV_DISKUSAGE provides disk usage per slice, which helps identify distribution skew. Option A is wrong because STL_SCAN provides details about scan operations, not skew. Option B is wrong because PG_TABLE_DEF shows table definitions, not skew.

Option D is wrong because STV_TBL_PERM shows storage usage per table but not per slice, making it less suitable for skew analysis.

95
MCQeasy

A database administrator wants to receive an alert when an RDS instance's storage space drops below 10% of total allocated storage. Which AWS service should be used to set up this alert?

A.Amazon SNS
B.AWS CloudTrail
C.AWS Config
D.Amazon CloudWatch Alarms
AnswerD

CloudWatch Alarms monitor metrics and trigger actions when thresholds are breached.

Why this answer

Amazon CloudWatch Alarms can monitor the FreeStorageSpace metric for RDS instances and trigger an action (e.g., send an SNS notification) when the storage space drops below 10% of total allocated storage. Option A (Amazon SNS) is a notification service that can be used with CloudWatch Alarms but does not itself monitor metrics. Option B (AWS CloudTrail) records API activity, not storage metrics.

Option C (AWS Config) tracks configuration changes. Therefore, Option D is the correct service for setting up the alert.

96
MCQeasy

A database specialist notices that an RDS MySQL instance's FreeableMemory metric is consistently below 100 MB. Which monitoring tool should be used to identify the queries consuming the most memory?

A.Performance Insights
B.Amazon S3 access logs
C.AWS CloudTrail
D.CloudWatch Logs
AnswerA

Performance Insights provides database load and wait events per query.

Why this answer

Performance Insights provides detailed query-level performance metrics, including memory consumption per query, which helps identify the queries consuming the most memory on an RDS MySQL instance. Option B is incorrect because Amazon S3 access logs record requests made to S3 buckets, not RDS memory usage. Option C is incorrect because AWS CloudTrail logs API calls for auditing, not database memory.

Option D is incorrect because CloudWatch Logs can store logs but do not provide query-level memory analysis.

97
MCQmedium

A company has an Amazon RDS for PostgreSQL database that is experiencing intermittent connection timeouts. The application logs show 'FATAL: remaining connection slots are reserved for non-replication superuser connections'. The database has a max_connections parameter set to 200. The application uses a connection pool. The DBA checks the CloudWatch metric 'DatabaseConnections' and sees it at 195 during peak hours. The application is deployed on AWS Lambda with a provisioned concurrency of 100. The Lambda function creates a new connection for each invocation. What should the DBA do to resolve the issue?

A.Reduce the Lambda provisioned concurrency to 50.
B.Increase max_connections to 500 to accommodate more connections.
C.Set up Amazon RDS Proxy to manage the database connections from Lambda.
D.Decrease max_connections to 100 to reserve more slots.
AnswerC

RDS Proxy pools connections and reduces the number of connections needed.

Why this answer

Set up Amazon RDS Proxy. The issue is that Lambda functions create a new connection per invocation, quickly exhausting the connection pool. While the DatabaseConnections metric shows 195 out of 200 max_connections, the Lambda functions are opening connections and not closing them properly, leading to connection exhaustion.

RDS Proxy manages connection pooling, reusing connections across invocations, reducing the number of connections needed. Option A is wrong because reducing provisioned concurrency does not address the underlying connection management issue and may impact application performance. Option B is wrong because increasing max_connections could lead to increased memory usage and potential performance degradation.

Option D is wrong because decreasing max_connections would make the problem worse by reserving fewer slots.

98
MCQmedium

A company uses Amazon RDS for MySQL with Multi-AZ deployment. The database is experiencing increased latency and the application team reports slow queries. The DBA wants to identify the queries that consume the most resources. Which AWS service should be used to capture and analyze these queries?

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

Performance Insights offers a dashboard that visualizes database load and identifies top queries by resource consumption, making it the right tool for analyzing slow queries.

Why this answer

Amazon RDS Performance Insights provides database performance tuning and monitoring with query-level metrics, enabling identification of resource-intensive queries. Option B is wrong because CloudWatch Logs collects log files but does not capture query-level performance. Option C is wrong because Enhanced Monitoring provides OS-level metrics (CPU, memory) but not query-level details.

Option D is wrong because CloudTrail records AWS API activity, not database queries.

99
MCQeasy

A developer reports that an application is unable to connect to an Amazon RDS for MySQL DB instance. The security group for the DB instance allows inbound traffic on port 3306 from the application server's security group. The DB instance is in a VPC with both public and private subnets. The application server is in a private subnet. What is the most likely cause of the connection failure?

A.The DB instance is in a public subnet and the application server is in a private subnet, so they cannot communicate.
B.The security group for the DB instance does not allow inbound traffic from the application server's security group.
C.The network ACL for the private subnet is blocking outbound traffic to the DB instance.
D.The DB instance is not part of a DB subnet group that includes the private subnet.
AnswerC

Correct. Network ACLs are stateless and can block outbound traffic from the private subnet to the DB instance, even when security groups permit inbound traffic.

Why this answer

The most likely cause is that the network ACL (NACL) for the private subnet is blocking outbound traffic to the DB instance. Security groups are stateful and allow return traffic automatically, but NACLs are stateless and require explicit rules for both inbound and outbound. If the private subnet's NACL does not allow outbound traffic to the DB instance's subnet on port 3306, the application server cannot initiate the connection.

Options A and B are incorrect because the security group already allows inbound traffic, and instances in public and private subnets within the same VPC can communicate via private IPs. Option D is incorrect; while a DB subnet group is required for RDS, it does not directly affect connectivity once the instance is running.

Exam trap

Candidates often overlook that network ACLs are stateless and can block traffic even when security groups allow it. Always check both layers.

100
MCQhard

A company is migrating an on-premises Oracle database to Amazon Aurora PostgreSQL. The migration uses AWS Database Migration Service (DMS) with ongoing replication. The team notices that the target Aurora database is falling behind the source during peak hours. Which of the following actions would MOST effectively improve the replication performance?

A.Disable Multi-AZ on the target Aurora cluster
B.Increase the Amazon Aurora instance size
C.Use a smaller Aurora instance to reduce write latency
D.Configure the DMS task to use 'Limited LOB mode' and increase the max LOB size
AnswerD

Configuring 'Limited LOB mode' and increasing max LOB size reduces overhead for large objects and improves replication efficiency, making this the most effective action.

Why this answer

The most effective action. Using 'Limited LOB mode' in AWS DMS reduces the overhead of replicating large objects by only transferring metadata until the LOB is accessed, and increasing the max LOB size ensures that LOBs fit within a single transaction, preventing fragmentation. Option A is incorrect because disabling Multi-AZ does not directly affect DMS replication performance; Multi-AZ provides high availability but does not impact replication throughput.

Option B, increasing the Aurora instance size, may help if the instance is CPU or memory constrained, but the primary bottleneck in replication is often the handling of large objects, making DMS task configuration more targeted. Option C is incorrect because using a smaller instance would worsen performance, not improve it.

101
Drag & Dropmedium

Arrange the steps to set up cross-Region read replicas for an Amazon Aurora MySQL DB cluster in the correct order.

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

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

Why this order

Cross-Region replicas require binary logging enabled on the source, then creating a read replica in another Region and verifying replication.

102
MCQmedium

A company is migrating an on-premises Oracle database to Amazon RDS for Oracle. The database uses Oracle Data Guard for disaster recovery. Which AWS service should be used to monitor the replication lag between the source and target databases during migration?

A.Amazon RDS Performance Insights
B.AWS Database Migration Service (AWS DMS)
C.Amazon CloudWatch
D.AWS CloudTrail
AnswerB

AWS DMS provides metrics for replication lag.

Why this answer

AWS DMS provides metrics for replication lag. Option A is wrong because Performance Insights does not monitor replication lag. Option C is wrong because CloudWatch can monitor DMS metrics but is not specific to Data Guard.

Option D is wrong because CloudTrail does not monitor replication lag.

103
MCQeasy

A database administrator notices that an Amazon RDS for MySQL instance is using 100% of its allocated storage. Which action should be taken first to prevent the instance from becoming inaccessible?

A.Modify the DB instance to increase allocated storage.
B.Create a snapshot and archive it to Amazon S3.
C.Delete old binary logs to free up space.
D.Reboot the DB instance.
AnswerA

Correct. Increasing storage is a direct and safe way to prevent the instance from becoming inaccessible.

Why this answer

When an Amazon RDS for MySQL instance reaches 100% storage utilization, the most immediate action to prevent it from becoming inaccessible is to modify the DB instance to increase allocated storage. This adds storage capacity and allows normal operations to continue. Option B (snapshot and archive to S3) does not free up storage on the instance.

Option C (deleting old binary logs) can free space but is not guaranteed to free enough and may not be a long-term solution; also, binary logs are needed for replication and point-in-time recovery. Option D (reboot) does not resolve the storage shortage.

104
MCQmedium

A company uses Amazon DynamoDB for a highly transactional application. The application is experiencing increased latency and throttled requests. The operations team notices that the DynamoDB table's read and write capacity utilization is consistently near 100%. The table uses on-demand capacity mode. What is the MOST likely cause of the throttling?

A.The table has reached the per-table throughput limit for on-demand mode.
B.The table is configured as a global table and cross-region replication is causing write conflicts.
C.The application is not using DynamoDB Accelerator (DAX) to cache reads.
D.The table's partition key design is causing hot partitions, and adaptive capacity is not enabled.
AnswerA

On-demand mode has a maximum throughput per table; exceeding it causes throttling.

Why this answer

On-demand DynamoDB tables have a per-table throughput limit (e.g., 40,000 read/write units per second). When sustained traffic exceeds this limit, requests are throttled. Option B is incorrect because global table replication does not cause throttling; it replicates writes asynchronously.

Option C is incorrect because DynamoDB Accelerator (DAX) is a read cache that reduces latency, but throttling still occurs if the table itself reaches its throughput limit. Option D is incorrect because adaptive capacity automatically handles hot partitions by splitting them; however, the primary cause here is hitting the on-demand throughput limit, not a partition design issue.

105
MCQeasy

A company uses Amazon DynamoDB and notices that some queries are taking longer than expected. The table has a partition key only. The 'ConsumedReadCapacityUnits' is below the provisioned throughput. What is the most likely cause of the slow queries?

A.DAX is misconfigured and slowing down reads
B.Global tables replication is causing delays
C.DynamoDB Streams is enabled and consuming read capacity
D.The partition key is not distributed evenly, causing hot partitions
AnswerD

A hot partition can throttle requests even if overall capacity is underused.

Why this answer

If the partition key is not chosen well, data can be skewed, causing hot partitions. Even if total consumed capacity is below provisioned, a single partition may receive more requests than its share of capacity, causing throttling on that partition, which slows queries. Option A is wrong because DAX is a caching layer that speeds up reads, not slows them.

Option B is wrong because global tables replication does not affect read latency on the source table. Option C is wrong because DynamoDB Streams do not consume read capacity for reads from the table; they use separate capacity.

106
MCQmedium

A company is experiencing slow query performance on an Amazon RDS for PostgreSQL DB instance. The DB instance is a db.r5.large with 16 GB RAM and 500 GB gp2 storage. Which metric in Amazon CloudWatch would most directly help identify if the performance issue is due to memory pressure?

A.Monitor FreeableMemory to see if available memory is low.
B.Monitor ReadIOPS to see if there is a high I/O rate due to swapping.
C.Monitor DatabaseConnections to check for a high number of connections consuming memory.
D.Monitor CPUUtilization to check for high CPU usage.
AnswerA

FreeableMemory directly indicates the amount of available RAM.

Why this answer

FreeableMemory shows the amount of available RAM. Low FreeableMemory indicates memory pressure, which can cause swapping and slow queries. Option B is wrong because ReadIOPS measures I/O operations, not memory.

Option C is wrong because DatabaseConnections tracks connections, not memory. Option D is wrong because CPUUtilization measures CPU, not memory.

107
Drag & Dropmedium

Arrange the steps to create an Amazon DynamoDB global table (multi-Region) in the correct order.

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

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

Why this order

Global tables require streams enabled, then adding replicas in other Regions for multi-Region replication.

108
MCQeasy

A database specialist needs to monitor the number of deadlocks occurring in an Amazon RDS for SQL Server DB instance. Which CloudWatch metric should be used?

A.BlockedTransactions
B.Deadlocks
C.DatabaseConnections
D.LockWaits
AnswerB

This is the correct metric for deadlocks.

Why this answer

The 'Deadlocks' metric in Amazon RDS for SQL Server specifically counts the number of deadlocks that occur on the DB instance. Option A is incorrect because 'BlockedTransactions' tracks transactions that are blocked, not deadlocks. Option C is incorrect because 'DatabaseConnections' is a count of active connections, not related to deadlocks.

Option D is incorrect because 'LockWaits' measures the number of lock waits, which is a different contention event.

109
MCQmedium

A company uses Amazon DynamoDB with global tables. They notice that changes made in one region are not appearing in another region after several minutes. Which CloudWatch metric should be monitored to check the replication lag?

A.ConsumedWriteCapacityUnits
B.SuccessfulRequestLatency
C.ReplicationLatency
D.ThrottledRequests
AnswerC

ReplicationLatency directly measures the time between an update on the source table and its appearance on a replica, making it the correct metric to monitor replication lag.

Why this answer

ReplicationLatency measures the time between the last update on the source table and the last update on the replica table. Option A (ConsumedWriteCapacityUnits) is wrong because it measures write capacity usage, not replication lag. Option B (SuccessfulRequestLatency) is wrong because it measures request latency, not replication lag.

Option D (ThrottledRequests) is wrong because it indicates throttling, not replication lag.

110
Multi-Selecthard

A company is using Amazon DynamoDB with auto scaling enabled. Despite auto scaling, the application is still experiencing throttling during traffic spikes. Which THREE actions should the company take to resolve this issue? (Choose THREE.)

Select 3 answers
A.Implement exponential backoff in the application code
B.Enable DynamoDB Accelerator (DAX) to cache read-heavy workloads
C.Use DynamoDB global tables to distribute write traffic across regions
D.Switch to on-demand capacity mode
E.Disable auto scaling and set fixed capacity
AnswersA, B, C

Exponential backoff helps retry throttled requests without overwhelming the system.

Why this answer

Exponential backoff (A) is a best practice to retry throttled requests gracefully, reducing retry storms. DAX (B) caches read-heavy workloads, reducing read capacity unit consumption and mitigating hot key issues. Global tables (C) distribute write traffic across multiple regions, alleviating write throttling.

Option D (on-demand capacity) could help but may be cost-prohibitive and does not address hot keys. Option E (disable auto scaling) would worsen throttling by fixing capacity. Therefore, A, B, and C are correct.

111
Multi-Selectmedium

A database administrator is troubleshooting a performance issue on an Amazon Aurora MySQL cluster. The application is experiencing high latency on write operations. Which TWO CloudWatch metrics should the administrator analyze to identify the root cause?

Select 2 answers
A.ReadLatency
B.DMLThroughput
C.CommitLatency
D.SelectLatency
E.FreeableMemory
AnswersB, C

DMLThroughput measures the rate of write operations (INSERT/UPDATE/DELETE) and helps identify if high throughput is causing contention.

Why this answer

The correct metrics to analyze for high write latency are DMLThroughput and CommitLatency. DMLThroughput measures the rate of Data Manipulation Language operations, including INSERT, UPDATE, and DELETE, which are write-intensive. High DMLThroughput may indicate excessive write operations.

CommitLatency measures the time taken to commit transactions; high commit latency directly contributes to write latency. The other options are not directly related to write performance.

112
Multi-Selecteasy

A database team is troubleshooting a performance issue on an Amazon RDS for PostgreSQL instance. They notice that the 'DiskQueueDepth' metric is consistently high. Which TWO actions should the team take to resolve this issue? (Choose TWO.)

Select 2 answers
A.Increase the number of database connections.
B.Enable storage auto scaling.
C.Increase the provisioned IOPS for the instance.
D.Enable query caching in PostgreSQL.
E.Enable Multi-AZ deployment.
AnswersB, C

Auto scaling can increase throughput and reduce queue depth.

Why this answer

Options B and C are correct. A high disk queue depth indicates an I/O bottleneck on the RDS instance. Enabling storage auto scaling (B) allows the storage to automatically scale up when I/O demand increases, which can reduce queue depth.

Increasing provisioned IOPS (C) directly improves the I/O performance by providing more throughput. Option A is incorrect because increasing connections can increase I/O contention, not reduce it. Option D is incorrect because PostgreSQL does not support query caching in the same way as MySQL, and it is not a solution to an I/O bottleneck.

Option E is incorrect because Multi-AZ provides high availability but does not directly improve I/O performance.

113
MCQmedium

A company is migrating their on-premises Oracle database to Amazon RDS for Oracle. They need to ensure minimal downtime. During the migration, they observe that the change data capture (CDC) is falling behind. What is the most effective approach to catch up?

A.Disable supplemental logging on the source
B.Increase the instance size of the target RDS instance
C.Pause the CDC task and resume later
D.Stop the CDC and perform a full load migration
AnswerB

More CPU/memory can help the apply process catch up.

Why this answer

Increasing the instance size of the target RDS instance provides more CPU and memory resources for the CDC process, allowing it to process more changes per unit time and catch up on lag. Option A is incorrect because disabling supplemental logging on the source Oracle database would prevent the capture of necessary change data, breaking CDC entirely and preventing any catch-up. Option C is incorrect because pausing the CDC task would stop processing changes, allowing the lag to grow further, not catch up.

Option D is incorrect because stopping CDC and performing a full load migration would cause significant downtime, which contradicts the requirement for minimal downtime.

114
Multi-Selecteasy

Which TWO CloudWatch Logs features can be used to monitor and troubleshoot Amazon RDS for SQL Server error logs? (Choose TWO.)

Select 2 answers
A.Integrating with AWS X-Ray for trace analysis
B.Setting metric filters to count error occurrences
C.Exporting logs to Amazon S3
D.Using AWS CloudTrail to capture log events
E.Real-time monitoring of log streams
AnswersB, E

Setting metric filters on CloudWatch Logs allows you to count occurrences of specific error patterns, which is useful for monitoring and alerting.

Why this answer

The correct answers are B and E. CloudWatch Logs allows real-time monitoring of log streams (E) and setting metric filters to count specific error occurrences (B). Option A (AWS X-Ray) is for distributed tracing, not log monitoring.

Option C (exporting to S3) is for archival, not real-time monitoring. Option D (CloudTrail) captures API activity, not database error logs.

115
MCQhard

A company uses Amazon Redshift for data warehousing. A nightly ETL job fails with 'Disk full' error on some nodes. The cluster has 8 dc2.large nodes. Which action will MOST efficiently resolve the issue without increasing costs?

A.Increase the number of slices per node
B.Add more nodes to the cluster
C.Enable compression on all tables
D.Run a VACUUM command to reclaim space
AnswerD

VACUUM removes deleted rows and frees disk space.

Why this answer

Running a VACUUM command on Amazon Redshift reclaims storage space from deleted or updated rows without incurring additional costs. Option A is wrong because increasing the number of slices per node is not possible with dc2.large nodes; slice count is fixed per node type. Option B is wrong because adding more nodes would increase costs and is not the most efficient solution.

Option C is wrong although enabling compression reduces storage usage over time, it requires a table redesign and does not immediately free space to resolve the immediate 'Disk full' error.

116
MCQhard

A company uses Amazon DocumentDB (with MongoDB compatibility) for its application. The application is experiencing high write latency. The DB cluster has one primary instance and two replicas. Which action should be taken to identify the cause?

A.Migrate the database to Amazon DynamoDB for better write performance.
B.Add more read replicas to distribute the load.
C.Enable Enhanced Monitoring and review OS-level metrics like CPU, memory, and I/O.
D.Enable slow query logging and analyze slow queries.
AnswerC

Enhanced Monitoring provides granular OS metrics to pinpoint bottlenecks.

Why this answer

Enabling Enhanced Monitoring at the instance level provides OS-level metrics (CPU, memory, I/O) that can help identify resource bottlenecks causing high write latency on the primary instance. Option A is incorrect because switching to Amazon DynamoDB is a major architectural change, not a troubleshooting step. Option B is incorrect because adding read replicas does not reduce write latency on the primary; replicas handle read traffic, not writes.

Option D is incorrect because while slow query logging can identify poorly performing queries, high write latency may also be caused by OS-level resource contention, which Enhanced Monitoring captures.

117
MCQhard

A database team notices that the Amazon Aurora MySQL-Compatible DB cluster is experiencing frequent failovers during peak hours. The failover events are not correlated with any maintenance windows or manual interventions. Which metric in Amazon CloudWatch should be investigated first to identify the root cause?

A.FreeableMemory.
B.DatabaseConnections.
C.ReadLatency.
D.WriteIOPS.
AnswerD

High WriteIOPS can overwhelm the primary instance's write capacity, causing replication lag or resource exhaustion, leading to a failover. This is the most direct metric to investigate first.

Why this answer

(WriteIOPS) is correct because during peak hours, high write IOPS can overwhelm the primary instance's capacity, leading to replication lag or resource exhaustion that triggers a failover. Monitoring WriteIOPS helps identify if the write workload exceeds the instance's limits. Option A (FreeableMemory) is incorrect because low freeable memory can cause performance degradation but is less likely to directly cause failover unless memory is severely exhausted.

Option B (DatabaseConnections) is incorrect because high connection counts can cause performance issues but typically do not directly trigger failovers unless combined with other resource constraints. Option C (ReadLatency) is incorrect because it is a symptom of issues like high read load or replication lag, but not a direct cause of failover; failovers are usually triggered by primary instance failure or unreachability.

118
MCQmedium

A company runs an Amazon RDS for PostgreSQL instance with Multi-AZ deployment. The primary DB instance fails unexpectedly and a failover occurs. Which action should be taken to minimize downtime during future failovers?

A.Configure an Amazon RDS Proxy to reduce failover time.
B.Increase the DB instance size to reduce failover time.
C.Create a read replica in the same region and promote it during failover.
D.Enable Multi-AZ deployment to automatically failover to the standby.
AnswerA

Correct. RDS Proxy reduces connection disruption and helps applications recover faster during failovers, minimizing downtime.

Why this answer

Amazon RDS Proxy helps minimize downtime during failovers by maintaining database connections, reducing connection disruption and allowing applications to recover faster. The instance already has Multi-AZ enabled, so simply enabling it again is not a valid action. RDS Proxy provides connection pooling and seamless failover handling.

Increasing instance size does not reduce failover time. Read replicas require manual promotion and are not used for automatic failover in RDS for PostgreSQL. Multi-AZ is already enabled, so there is no need to enable it again.

Exam trap

Candidates often assume Multi-AZ is not enabled or that enabling it again provides more failover benefits, but the instance already has it.

119
MCQeasy

A company's Amazon RDS for MySQL DB instance is experiencing high CPU utilization. The DB instance is a db.r5.large with 200 GB of General Purpose SSD (gp2) storage. The application is performing many complex queries. Which action would BEST reduce CPU utilization without changing the application code?

A.Create a read replica and route write queries to it
B.Modify the storage type to gp3
C.Scale up the DB instance to db.r5.xlarge
D.Enable the query cache parameter
AnswerC

More CPU cores/vCPUs reduce utilization.

Why this answer

Scaling up the DB instance to db.r5.xlarge provides more CPU capacity, directly reducing CPU utilization. Option A is wrong because read replicas help with read scaling but do not reduce CPU on the writer instance. Option B is wrong because changing storage type to gp3 does not affect CPU.

Option D is wrong because the query cache is deprecated in MySQL 8.0 and its impact on CPU is minimal for complex queries.

120
MCQmedium

A database administrator is troubleshooting a failover event for an Amazon RDS for SQL Server Multi-AZ DB instance. The failover occurred automatically. Which AWS service or feature should the administrator use to view the failover history and the reason for the failover?

A.The Amazon RDS console Events page.
B.Amazon CloudWatch Logs for the DB instance.
C.AWS CloudTrail logs to view the failover API call.
D.The AWS Status Dashboard.
AnswerA

RDS events include failover events with reasons.

Why this answer

The Amazon RDS console Events page stores RDS events, including failover events with reasons. This is the best place to view failover history and reason. CloudTrail records API calls but not internal failover reasons.

CloudWatch Logs does not automatically log failover reasons. The AWS Status Dashboard shows service health, not instance-specific failover history.

121
MCQhard

A financial services company is using Amazon Aurora MySQL as its primary database. The database has a table 'transactions' that receives high inserts during business hours. The table is partitioned by date. Recently, the application team noticed an increase in lock wait timeouts. The database specialist reviewed the InnoDB status and found that there are frequent gap locks on the 'transaction_date' column. The isolation level is REPEATABLE READ. What should the specialist do to reduce lock waits while maintaining data consistency?

A.Add a secondary index on transaction_date.
B.Increase the innodb_lock_wait_timeout parameter.
C.Modify the partitioning key to use a hash-based partition.
D.Change the transaction isolation level to READ COMMITTED.
AnswerD

READ COMMITTED avoids gap locks for locking reads.

Why this answer

In REPEATABLE READ isolation level, InnoDB uses gap locks on non-unique indexes to prevent phantom reads, which can cause lock wait timeouts. Changing to READ COMMITTED eliminates gap locks for non-unique indexes because it only uses row-level locks (no gap locks). This reduces lock contention.

Option A is incorrect: adding an index on transaction_date does not eliminate gap locks if the index is non-unique; gap locks still occur. Option B is incorrect: increasing innodb_lock_wait_timeout only increases the time a transaction waits for a lock, it does not prevent the lock from happening. Option C is incorrect: modifying the partition key does not affect the locking mechanism at the row level.

Exam trap

Candidates often think that adding an index will reduce locking, but in REPEATABLE READ, non-unique indexes still cause gap locks. The correct solution is to change the isolation level to READ COMMITTED.

122
MCQmedium

A company is using Amazon RDS for MySQL with Multi-AZ deployment. The application team reports intermittent connection timeouts. CloudWatch shows increased DatabaseConnections and CPU Utilization during peak hours. Which action should the database specialist take to troubleshoot the issue?

A.Add enhanced monitoring to collect additional metrics.
B.Enable slow query log and analyze queries.
C.Create a read replica and redirect read traffic.
D.Failover to the standby instance to refresh connections.
AnswerB

Slow query log helps identify inefficient queries causing high resource usage.

Why this answer

Enabling the slow query log allows the database specialist to identify long-running or inefficient queries that contribute to high CPU utilization and increased database connections, leading to connection timeouts during peak hours. Option A is incorrect because Enhanced Monitoring provides additional metrics (e.g., OS-level metrics) but does not directly address the root cause of the timeouts; it is useful for deeper analysis but not the primary troubleshooting action. Option C is incorrect because creating a read replica and redirecting read traffic reduces load on the primary for read operations, but the issue likely involves write-intensive or poorly optimized queries affecting the primary; while it might alleviate some load, it is not a direct troubleshooting step to identify the cause.

Option D is incorrect because failing over to the standby instance is for high availability and disaster recovery, not for resolving performance issues; it would restart the database but not fix the underlying queries or resource contention.

123
MCQhard

A database engineer is reviewing Amazon RDS for MySQL error logs and sees repeated authentication failures from the same IP address. The application team confirms the password is correct. What is the most likely cause of these errors?

A.The password is incorrect
B.The user 'app_user' does not have access from host '10.0.1.50'
C.The 'app_user' account is locked
D.The database requires SSL connections
AnswerB

The user may be defined as 'app_user'@'%' or from a different host, causing a mismatch.

Why this answer

The error logs show authentication failures despite the password being correct, which indicates the issue is not with the password itself but with the host-based access control. In MySQL, user accounts are defined as 'user'@'host', and if the application is connecting from an IP address (e.g., 10.0.1.50) that is not included in the user's allowed hosts, MySQL will reject the connection with an authentication error even if the password is correct. This is a common misconfiguration when migrating or scaling applications across different subnets.

Exam trap

The trap here is that candidates often assume authentication failures always mean a wrong password, but AWS/DBS-C01 tests your understanding that MySQL's host-based authentication can produce the same error message when the host is not authorized, even with a valid password.

How to eliminate wrong answers

Option A is wrong because the application team has confirmed the password is correct, and authentication failures from a specific IP with a correct password point to host-based restrictions, not an incorrect password. Option C is wrong because a locked account would produce a different error message (e.g., 'Access denied for user ... account is locked') and would affect all connection attempts, not just those from a single IP. Option D is wrong because requiring SSL connections would cause a different error (e.g., 'SSL connection error: ...') and would affect all connection attempts, not just those from a specific IP; the error logs show authentication failures, not SSL handshake failures.

124
MCQeasy

A team manages an Amazon Aurora MySQL database. They observe that the 'Deadlocks' metric in CloudWatch is spiking. The application uses a single writer instance and multiple read replicas. Which action is most effective at reducing deadlocks?

A.Increase the instance size to handle more concurrent connections.
B.Redirect read traffic to read replicas to reduce load on the writer.
C.Enable Multi-AZ to distribute the load.
D.Review application code to ensure transactions are as short as possible and access tables in a consistent order.
AnswerD

Minimizing transaction duration and accessing resources in a fixed order reduces deadlock probability.

Why this answer

Deadlocks in Aurora MySQL occur when two or more transactions hold locks that the other needs, and they wait indefinitely. The most effective way to reduce deadlocks is to keep transactions short and access tables in a consistent order, which minimizes lock contention and avoids circular wait conditions. This directly addresses the root cause of deadlocks, unlike scaling or redirecting traffic, which only reduce the probability of contention without fixing the underlying locking pattern.

Exam trap

The trap here is that candidates often confuse load-related issues (e.g., high CPU or connections) with deadlocks, and incorrectly choose scaling or read replica offloading, when deadlocks are fundamentally a locking order and transaction duration problem.

How to eliminate wrong answers

Option A is wrong because increasing instance size improves throughput and reduces resource contention but does not change the application's locking behavior; deadlocks can still occur if transactions hold locks for long periods or access tables in inconsistent orders. Option B is wrong because redirecting read traffic to read replicas reduces load on the writer but does not affect the locking patterns of write transactions; deadlocks are caused by write-write conflicts, not read load. Option C is wrong because Multi-AZ in Aurora is a high-availability feature that provides a standby replica for failover; it does not distribute load or reduce lock contention, and Aurora's storage is already replicated across three AZs by default.

125
MCQhard

An application using Amazon DynamoDB is experiencing higher than expected read costs. The table uses on-demand capacity mode. The read pattern is mostly fetching small items (1 KB) using GetItem. Which of the following is the most cost-effective optimization?

A.Change the table to provisioned capacity mode with auto scaling
B.Compress the items using application-level compression
C.Use DAX to cache the read results
D.Switch to eventually consistent reads for GetItem operations
AnswerD

Eventually consistent reads consume half the RCU of strongly consistent reads.

Why this answer

The most cost-effective because eventually consistent reads consume half the read capacity units (0.5 RCU for items up to 4 KB) compared to strongly consistent reads (1 RCU). Since items are small (1 KB) and the table uses on-demand capacity, halving RCU consumption directly reduces read costs. Option A: Switching to provisioned capacity with auto scaling adds complexity and may not reduce costs if traffic is unpredictable; on-demand is already suitable for variable workloads.

Option B: Application-level compression would not significantly reduce RCU consumption because items are already under the 4 KB RCU threshold. Option C: Adding DAX introduces additional cost and primarily improves latency, not read cost, as DAX still charges for reads from DynamoDB.

126
MCQmedium

A company is using Amazon Redshift for data warehousing. The data engineering team notices that queries are running slower than expected. CloudWatch shows that 'CPUUtilization' is high and 'DiskSpaceUsage' is also high. The cluster has 4 dc2.large nodes. What is the most likely cause of the performance degradation?

A.Insufficient network bandwidth between nodes
B.CPU is the bottleneck and needs more compute nodes
C.Workload management (WLM) queue is causing query waits
D.Queries are spilling to disk due to insufficient memory
AnswerD

High disk usage suggests memory pressure causing disk-based operations.

Why this answer

High CPU and high disk space usage on dc2.large nodes are classic signs of queries spilling to disk due to insufficient memory. When there isn't enough memory for query processing, Redshift resorts to writing intermediate results to disk, which increases disk space usage and also causes high CPU as the system manages the spill. Option A is insufficient network bandwidth: network bandwidth issues would typically manifest as increased network throughput or latency metrics, not high CPU and disk usage.

Option B is CPU bottleneck: while CPU is high, the simultaneous high disk usage suggests the root cause is memory spilling, not CPU exhaustion alone. Adding compute nodes would not address the memory spilling if the workload is memory-intensive; instead, increasing the node size or using a different instance type with more memory per node would help. Option C is WLM queue: WLM queue waits would be visible in CloudWatch metrics like 'WLMQueueLength' or 'QueryWaitTime', not in CPU or disk usage.

127
Multi-Selectmedium

A company is troubleshooting an Amazon RDS for MySQL DB instance that is experiencing high CPU utilization. The DB instance is a db.t3.medium. Which TWO actions should the database administrator take to investigate the cause?

Select 2 answers
A.Enable Performance Insights to identify the top SQL queries consuming CPU.
B.Disable Multi-AZ to reduce overhead.
C.Modify the DB parameter group to increase the query cache size.
D.Increase the DB instance class to a larger size.
E.Review the slow query log to find queries with long execution times.
AnswersA, E

Performance Insights provides query-level performance data.

Why this answer

Enabling Performance Insights provides visibility into which SQL queries are consuming CPU resources. Option E is correct because reviewing the slow query log helps identify queries with long execution times that may be causing high CPU. Option B is incorrect because disabling Multi-AZ does not help investigate CPU utilization; it reduces availability but not CPU.

Option C is incorrect because increasing the query cache size is a tuning action, not an investigative step, and may not address the root cause. Option D is incorrect because increasing the DB instance class is a scaling fix, not an investigation method.

128
MCQhard

A company is using Amazon ElastiCache for Redis as a caching layer for a web application. The application team reports that cache miss rates have increased significantly, causing higher database load. The Redis cluster has two nodes (one primary, one replica) with the default eviction policy of noeviction. Which action should the database specialist recommend to reduce cache misses?

A.Increase the memory of existing nodes to accommodate more keys.
B.Change the eviction policy to allkeys-lru to allow Redis to evict less recently used keys.
C.Enable AOF persistence to improve cache durability.
D.Add more read replicas to distribute the cache load.
AnswerB

Changing the eviction policy to allkeys-lru allows Redis to evict less recently used keys when memory is full, reducing cache misses.

Why this answer

Changing the eviction policy to allkeys-lru allows Redis to evict less recently used keys when memory is full, reducing cache misses. Option A is incorrect because simply increasing memory does not change the eviction policy; with noeviction, writes will fail when memory is full. Option C is incorrect because enabling AOF persistence improves durability but does not affect cache misses.

Option D is incorrect because adding read replicas distributes read traffic but does not reduce cache misses if the keys are not in the cache.

129
MCQeasy

A company uses Amazon DynamoDB as a session store for a web application. The application uses a TTL attribute to expire old sessions. The company noticed that expired sessions are not being deleted promptly, causing the table size to grow and increasing costs. The TTL attribute is defined as 'expire_time' with a Unix epoch timestamp. The database specialist verified that TTL is enabled. What should the specialist do to ensure expired sessions are deleted in a timely manner?

A.Change the TTL attribute type to String format.
B.Increase the provisioned write capacity on the table to allow TTL to delete items faster.
C.Configure the 'ttl_deletion_lag' parameter to a lower value.
D.Create an AWS Lambda function that scans the table and deletes expired items.
AnswerB

TTL deletion uses write capacity; increasing it speeds up deletion.

Why this answer

TTL deletion can be delayed if the table has a high write rate; increasing provisioned write capacity can allocate more resources to the background deletion process, allowing expired items to be removed more quickly. Option A is wrong because changing the attribute type to String would not resolve the deletion delay (the TTL attribute should be a Number). Option C is wrong because there is no 'ttl_deletion_lag' parameter in DynamoDB.

Option D is wrong because using a Lambda function to scan and delete expired items is unnecessary and inefficient compared to properly tuning TTL.

130
MCQhard

A financial services company runs a critical PostgreSQL database on Amazon RDS. The DBA needs to ensure that any database failover is detected within 30 seconds. Which monitoring approach should be used to meet this requirement?

A.Subscribe to RDS Event Notifications and create an SNS topic for 'failover' events.
B.Create a CloudWatch alarm on the 'DatabaseConnections' metric with a 1-minute evaluation period.
C.Use Enhanced Monitoring to monitor the 'engine' process status every second.
D.Enable CloudTrail and monitor the 'FailoverDBCluster' API call.
AnswerA

Event notifications are near real-time and can trigger actions within seconds.

Why this answer

Amazon RDS Event Notifications for 'failover' events are delivered within seconds, meeting the 30-second requirement. Subscribing to SNS topics ensures near real-time notification. Option B is wrong because the 'DatabaseConnections' metric with a 1-minute evaluation period introduces a delay of up to 1 minute, exceeding the 30-second threshold.

Option C is wrong because Enhanced Monitoring provides OS-level metrics every second but does not directly indicate a failover event. Option D is wrong because CloudTrail logs API calls with a typical delay of several minutes, not suitable for sub-minute detection.

131
Multi-Selectmedium

A company is using Amazon RDS for MySQL and needs to monitor for slow queries. Which TWO AWS services can be used to capture and analyze slow query logs? (Choose TWO.)

Select 2 answers
A.Amazon S3
B.Amazon RDS Performance Insights
C.AWS Config
D.AWS CloudTrail
E.Amazon CloudWatch Logs
AnswersB, E

Performance Insights can help identify slow queries by analyzing database load.

Why this answer

Amazon RDS Performance Insights (Option B) provides database performance analysis and can help identify slow queries by visualizing database load. Amazon CloudWatch Logs (Option E) can ingest and analyze RDS slow query logs by streaming them from RDS. Amazon S3 (Option A) is an object storage service, not a monitoring or analysis service.

AWS Config (Option C) is for recording configuration changes, not database logs. AWS CloudTrail (Option D) records API calls for governance, not database-level query logs.

132
MCQmedium

A company is running an Amazon RDS for MySQL database. The application team reports that the database is slow. Upon investigation, you notice that the DB instance's CPU utilization is consistently above 90%. Which initial troubleshooting step should you take?

A.Increase the DB instance size to improve performance.
B.Enable Enhanced Monitoring to identify the source of high CPU usage.
C.Delete the slow query logs to reduce I/O.
D.Change the storage type from General Purpose (gp2) to Provisioned IOPS (io1).
AnswerB

Enhanced Monitoring provides OS-level metrics to diagnose CPU bottlenecks.

Why this answer

Enabling Enhanced Monitoring provides OS-level metrics that can help identify resource bottlenecks. Option A is wrong because increasing instance size without diagnosis may not address the root cause. Option C is wrong because switching storage type does not reduce CPU load.

Option D is wrong because deleting slow query logs removes diagnostic data.

133
MCQeasy

A developer reports that an Amazon RDS for MySQL DB instance is experiencing high CPU utilization. You suspect a specific query is causing the issue. Which CloudWatch metric should you examine to confirm this?

A.CPUUtilization
B.DatabaseConnections
C.ReadLatency
D.FreeableMemory
AnswerA

CPUUtilization directly measures CPU usage.

Why this answer

The CPUUtilization metric directly measures the percentage of CPU usage on the DB instance. While it does not isolate a specific query, it confirms that high CPU utilization is occurring. DatabaseConnections, ReadLatency, and FreeableMemory are not direct indicators of CPU usage.

134
Multi-Selectmedium

A database specialist is troubleshooting an Amazon RDS for SQL Server instance that is experiencing high CPU utilization. The instance has multiple databases. Which TWO actions should the specialist take to identify the cause?

Select 2 answers
A.Create a read replica to offload read traffic
B.Use Performance Insights to identify top SQL queries
C.Increase the instance size to handle the load
D.Modify the DB instance class to a burstable type
E.Enable Enhanced Monitoring to view OS-level metrics
AnswersB, E

Performance Insights shows top queries by CPU.

Why this answer

Options B and E are correct because Performance Insights helps identify top SQL queries causing high CPU, and Enhanced Monitoring provides OS-level metrics (like CPU utilization per database process) to pinpoint the source. Option A is wrong: read replicas offload read traffic but do not diagnose CPU issues. Option C is wrong: increasing instance size is a remediation, not a diagnostic step.

Option D is wrong: changing to a burstable instance class is also a remediation, not diagnostic.

135
Multi-Selectmedium

Which TWO metrics should be monitored to troubleshoot an Amazon RDS for PostgreSQL database that is experiencing high connection count and connection timeouts?

Select 2 answers
A.DatabaseConnections
B.NetworkTransmitThroughput
C.BurstBalance
D.SwapUsage
E.ReadLatency
AnswersA, C

DatabaseConnections shows the number of client connections.

Why this answer

Options A and C are correct. DatabaseConnections directly shows the number of concurrent connections to the RDS instance, helping monitor connection count. BurstBalance indicates whether the instance has exhausted its I/O burst credits; if it drops, I/O performance degrades and can cause connection timeouts.

Option B (NetworkTransmitThroughput) measures network traffic, not connections. Option D (SwapUsage) tracks memory swapping, which is not a standard RDS metric and does not directly relate to connection timeouts. Option E (ReadLatency) measures I/O read latency, which can affect performance but is not a primary metric for high connection count or connection timeouts.

136
MCQeasy

A developer is troubleshooting an application that writes to an Amazon ElastiCache for Redis cluster. The application occasionally fails with 'OOM command not allowed when used memory > maxmemory'. What is the most likely cause?

A.The cluster's maxclients limit has been reached.
B.The cluster's maxmemory-policy is set to noeviction.
C.The cluster has too many keyspace notifications enabled.
D.The cluster is in cluster mode and cross-slot commands are used.
AnswerB

Correct. Setting 'maxmemory-policy' to 'noeviction' prevents eviction and causes Redis to reject write commands when memory is full.

Why this answer

The error 'OOM command not allowed when used memory > maxmemory' occurs when Redis has reached its configured memory limit and the eviction policy is set to 'noeviction', which prevents any further writes. Option B is correct because 'noeviction' causes Redis to return an error instead of evicting keys. Option A is incorrect because the 'maxclients' limit produces a different error ('max number of clients reached').

Option C is incorrect because keyspace notifications do not affect memory limits. Option D is incorrect because cross-slot commands relate to cluster mode, not memory errors.

137
MCQhard

A team is troubleshooting an Amazon DynamoDB table that is throttling write requests. The table has on-demand capacity mode enabled. Which of the following is the most likely cause of the throttling?

A.The table has exceeded its provisioned write capacity units.
B.The write traffic exceeds the table's previous peak traffic by more than double.
C.The table is not using adaptive capacity.
D.There is an active AWS Health event affecting the DynamoDB service.
AnswerB

DynamoDB on-demand can throttle if traffic exceeds the previous peak by more than double in a short time.

Why this answer

Even with on-demand capacity, DynamoDB can throttle write requests if the write traffic exceeds the table's previous peak traffic by more than double. On-demand capacity is designed to handle traffic spikes up to double the previous peak within a 30-minute window. If the spike surpasses that threshold, throttling may occur.

Option B correctly identifies this cause. Option A is incorrect because on-demand mode does not use provisioned capacity. Option C is incorrect because adaptive capacity is a feature of provisioned mode, not on-demand.

Option D, an AWS Health event, could cause issues but is not the most likely given normal operation.

138
MCQmedium

A company is experiencing high read latency on their Amazon RDS for MySQL Multi-AZ DB instance. The application performs many small, random reads. Which configuration change would most likely reduce the read latency without incurring additional compute costs?

A.Increase the allocated storage size to improve I/O throughput.
B.Enable Performance Insights to monitor and optimize queries.
C.Enable Multi-AZ DB cluster deployment with two readable standby instances and route read traffic to the standby.
D.Increase the instance size from db.r5.large to db.r5.xlarge.
AnswerC

This offloads read traffic to the standby, reducing load on the primary and improving read latency.

Why this answer

The Multi-AZ DB cluster deployment for Amazon RDS includes two readable standby instances. By routing read traffic to these standbys, the load on the primary is reduced, which can decrease read latency without additional compute costs since the standbys are already provisioned. Option A is incorrect because increasing allocated storage primarily improves I/O throughput for sequential operations but may not significantly reduce latency for many small random reads.

Option B is incorrect because Performance Insights is a monitoring tool that helps identify performance bottlenecks but does not directly reduce read latency. Option D is incorrect because increasing the instance size (e.g., from db.r5.large to db.r5.xlarge) would incur additional compute costs.

139
Multi-Selectmedium

A database engineer is troubleshooting high CPU usage on an Amazon RDS for PostgreSQL instance. Amazon CloudWatch shows CPU Utilization consistently above 90% during business hours. Which combination of actions should the engineer take to identify the root cause? (Choose TWO.)

Select 2 answers
A.Enable Enhanced Monitoring and review OS process list.
B.Review the slow query log to identify long-running queries.
C.Scale up the DB instance to a larger instance class.
D.Enable Performance Insights and review the top SQL queries.
E.Install pg_stat_statements extension and query it.
AnswersB, D

Slow query logs can reveal queries that consume significant CPU resources.

Why this answer

Reviewing the slow query log directly identifies long-running queries that can cause sustained high CPU usage on RDS for PostgreSQL. Option D is correct because Performance Insights provides a visual dashboard of database load and top SQL queries, making it easy to pinpoint which queries are consuming the most CPU resources.

Exam trap

The trap here is that candidates often choose Option E (pg_stat_statements) thinking it is the only way to get query-level details, but Performance Insights (Option D) provides the same data with less effort and is the recommended AWS-native approach for this scenario.

140
MCQhard

A social media company runs a multi-region application on Amazon DynamoDB with global tables. The application is deployed in us-east-1 and eu-west-1. Recently, they enabled DynamoDB Streams on the table to trigger an AWS Lambda function for real-time analytics. The Lambda function runs in us-east-1. After enabling streams, they notice that the Lambda function is triggered multiple times for the same update, and the application's write latency in eu-west-1 has increased. The company has strict latency requirements. A database specialist is asked to resolve the issue. What should the database specialist recommend?

A.Increase the Lambda function's reserved concurrency to handle duplicate events faster.
B.Create a separate Lambda function in eu-west-1 and use a local stream.
C.Modify the Lambda function to check the 'awsRegion' attribute in the stream record and ignore records from other regions.
D.Disable DynamoDB Streams on the eu-west-1 replica table.
AnswerC

This prevents duplicate processing of the same write event.

Why this answer

Global tables replicate writes across regions, and each write generates a stream record. The Lambda function should filter on the 'awsRegion' attribute in the stream record to avoid processing the same update from different regions. Option A is wrong because increasing Lambda concurrency doesn't prevent duplicate processing.

Option B is wrong because using a dedicated stream for each region is not supported. Option D is wrong because disabling streams in eu-west-1 would break the replication.

141
MCQeasy

A company is using Amazon Redshift for data warehousing. The operations team notices that queries are running slower than usual. Which Amazon Redshift system view should be used to identify the queries that are consuming the most resources?

A.SVV_VACUUM_PROGRESS
B.STL_QUERY
C.PG_TABLE_DEF
D.STV_TBL_PERM
AnswerB

STL_QUERY records all query execution details, including duration and resource usage.

Why this answer

STL_QUERY (option B) is the correct system view because it stores detailed information about query execution, including resource consumption. This allows the operations team to identify which queries are consuming the most resources. The other options are incorrect: SVV_VACUUM_PROGRESS (option A) shows the progress of vacuum operations, not query performance.

PG_TABLE_DEF (option C) shows table definitions. STV_TBL_PERM (option D) shows table permissions, not query resource usage.

142
MCQeasy

A company has an Amazon Aurora MySQL DB cluster with one writer and two readers. The application is experiencing high read latency. CloudWatch shows that the 'AuroraBinlogReplicaLag' metric is high for one of the reader instances. What is the most likely cause?

A.The Aurora cluster storage is experiencing high I/O latency
B.The reader instance is not keeping up with the write workload from the writer
C.The reader instance is undersized and needs to be scaled up
D.The DB cluster parameter group is misconfigured
AnswerB

Binlog replication lag means the reader is behind in applying changes.

Why this answer

The 'AuroraBinlogReplicaLag' metric measures the lag between the writer and a reader when using binary log replication. A high value indicates that the reader is not applying changes from the writer quickly enough, causing read latency. This is typically because the reader instance is not keeping up with the write workload from the writer.

Option A is incorrect because Aurora storage is shared and not the cause of replication lag. Option C is incorrect; while an undersized reader can contribute to lag, the primary cause is the reader not keeping pace with writes, not necessarily size. Option D is incorrect because parameter groups affect settings but not replication lag directly.

143
MCQhard

A database specialist is troubleshooting an Amazon Aurora MySQL cluster. The writer instance's CPU is at 90% and there are frequent 'Lock wait timeout exceeded' errors. The application uses many short-lived connections. What should the specialist do FIRST to reduce lock contention?

A.Add additional read replicas to distribute read traffic
B.Increase the instance size to handle more concurrent transactions
C.Enable RDS Proxy to pool database connections
D.Reduce the maximum number of connections in the application
AnswerC

RDS Proxy reduces connection churn, decreasing lock contention.

Why this answer

Enabling RDS Proxy reduces connection churn by pooling database connections, which decreases the number of concurrent transactions competing for locks, thereby reducing lock contention. Option A is incorrect because adding read replicas does not address write lock contention on the writer instance. Option B is incorrect although increasing instance size can help with CPU, it does not directly reduce lock contention and may even exacerbate it by allowing more transactions.

Option D is incorrect because reducing the maximum number of connections can actually increase contention per connection as the same workload is funneled through fewer connections.

144
MCQmedium

A developer reports that an application is unable to connect to an Amazon RDS for Oracle database. The security group for the database allows inbound traffic on port 1521 from the application's security group. The database is publicly accessible. What should be checked next?

A.Check the DB parameter group for the 'remote_listener' parameter.
B.Check the automated backup retention period.
C.Verify that the DB subnet group includes a public subnet with an internet gateway.
D.Review the CloudWatch Logs for error logs.
AnswerC

Public accessibility requires a public subnet and internet gateway.

Why this answer

The database is publicly accessible, meaning it must be in a public subnet that has an internet gateway attached. Even if the security group allows traffic, the subnet must be configured correctly for public access. Option A is incorrect because the 'remote_listener' parameter affects Oracle listener registration, not basic network connectivity.

Option B is incorrect because backup retention is unrelated to connection issues. Option D is incorrect because CloudWatch Logs may not capture failed connection attempts at the network level.

145
MCQhard

A company runs a document database using Amazon DocumentDB. They notice that some queries are taking much longer than expected. The explain plan shows a COLLSCAN. Which action would most improve query performance?

A.Increase the instance size to the next tier
B.Change the read consistency from eventual to strong
C.Increase the storage allocated to the instance
D.Create appropriate indexes on the fields used in query filters
AnswerD

Indexes prevent full collection scans.

Why this answer

Creating appropriate indexes on the fields used in query filters is the most effective action to improve performance because it eliminates the need for a COLLSCAN (collection scan). Increasing instance size (option A) may help but does not address the root cause of missing indexes. Changing read consistency from eventual to strong (option B) affects the freshness of reads, not query performance.

Increasing storage (option C) does not improve query speed; it only provides more space for data.

146
MCQmedium

A company is running an Amazon RDS for MySQL Multi-AZ DB instance. They notice that the application is experiencing increased latency during peak hours. The DB instance's CPU utilization is consistently above 80%, and the Read Latency metric is high. Which action would most effectively reduce the latency without requiring application changes?

A.Create a read replica and direct read queries to it.
B.Disable Multi-AZ to free up resources.
C.Increase the DB instance class to a larger size.
D.Enable Multi-AZ on the DB instance.
AnswerA

Correct. Offloading read queries to a read replica reduces load on the primary instance and lowers read latency.

Why this answer

Creating a read replica offloads read queries from the primary DB instance, reducing read latency and CPU utilization without requiring application changes. Option B is incorrect because disabling Multi-AZ removes the standby instance, reducing availability and not addressing read latency. Option C is incorrect because increasing the instance class may improve performance but does not specifically offload read traffic; read replicas are more targeted for read-heavy workloads.

Option D is incorrect because the instance already has Multi-AZ enabled; enabling it again has no effect and does not reduce read latency.

147
Matchingmedium

Match each backup/restore concept to its AWS database feature.

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

Concepts
Matches

Daily snapshot and transaction log backups enabled by default

User-initiated snapshot stored until explicitly deleted

Restore to any second within the backup retention period

Copy snapshots to another AWS region for disaster recovery

Rewind an Aurora DB cluster to a specific time without restoring

Why these pairings

Correct matches: Automated Backup corresponds to RDS automated backups (daily, retention period), Manual Snapshot corresponds to user-initiated RDS snapshots (stored in S3), and PITR corresponds to DynamoDB's ability to restore to any point in the last 35 days. Common confusions involve swapping the definitions of automated and manual backups.

148
MCQeasy

A company is running a production Amazon DynamoDB table with on-demand capacity. The application is experiencing increased latency and throttled requests during peak hours. Which monitoring tool should the database specialist use to identify the specific partition keys causing the throttling?

A.Amazon CloudWatch Contributor Insights for DynamoDB
B.Amazon Inspector
C.AWS Config
D.AWS CloudTrail logs
AnswerA

Contributor Insights analyzes access patterns and identifies throttled partition keys.

Why this answer

Amazon CloudWatch Contributor Insights for DynamoDB is the correct tool because it analyzes DynamoDB request logs to identify the most frequently accessed partition keys, including those causing throttling. It provides top-N keys by request count or throttled events, enabling the database specialist to pinpoint hot partitions responsible for increased latency and throttled requests during peak hours.

Exam trap

The trap here is that candidates often confuse CloudTrail (which logs all API calls) with Contributor Insights, assuming CloudTrail can provide per-key throttling data, but CloudTrail lacks the aggregation and top-N analysis needed to identify specific hot partition keys.

How to eliminate wrong answers

Option B (Amazon Inspector) is wrong because it is a vulnerability management service that assesses network and application security, not a tool for analyzing DynamoDB partition key access patterns or throttling. Option C (AWS Config) is wrong because it evaluates resource configurations and compliance rules, not real-time operational metrics like request throttling per partition key. Option D (AWS CloudTrail logs) is wrong because it records API calls for auditing and governance, but does not provide per-partition-key throttling details or aggregated access patterns needed to identify hot partitions.

149
MCQeasy

Refer to the exhibit. A developer is trying to query the ProductCatalog table using the 'Id' attribute. The query returns no results even though the developer knows data was inserted. What is the MOST likely cause?

A.The table contains no items
B.The provisioned throughput is exceeded
C.The attribute definition is missing the 'Id' attribute
D.The table is not in ACTIVE status
AnswerA

ItemCount is 0, so the table is empty.

Why this answer

The table shows ItemCount: 0, indicating no items exist. Even though data was inserted, if the write operation failed or was directed to a different table, the query returns no results. Option B is incorrect because provisioned throughput issues would cause throttling errors, not zero items.

Option C is incorrect because the attribute definition exists (Id is defined). Option D is incorrect because the table status is ACTIVE as shown.

150
Multi-Selecthard

Which THREE steps should be taken to troubleshoot an Amazon DynamoDB table that is experiencing high read latency?

Select 3 answers
A.Review the table's partition distribution using DynamoDB metrics.
B.Increase the write capacity of the table.
C.Monitor the ConsumedReadCapacityUnits metric.
D.Disable auto scaling to prevent unexpected capacity changes.
E.Check the ThrottledReadEvents metric to see if reads are being throttled.
AnswersA, C, E

Uneven partition distribution can cause hot partitions and high latency.

Why this answer

High read latency in DynamoDB can result from uneven partition distribution, where a 'hot' partition receives more read requests than others, causing throttling or increased latency. By reviewing the table's partition distribution using CloudWatch metrics like `ConsumedReadCapacityUnits` per partition, you can identify skewed access patterns and address them with strategies like partition key redesign or adaptive capacity.

Exam trap

The trap here is that candidates may confuse write capacity adjustments with read performance fixes, or assume disabling auto scaling is a troubleshooting step, when in fact auto scaling is a best practice for maintaining consistent throughput.

← PreviousPage 2 of 4 · 289 questions totalNext →

Ready to test yourself?

Try a timed practice session using only Troubleshooting questions.