Courseiva

CCNA Monitoring and Troubleshooting Questions

64 of 289 questions · Page 4/4 · Monitoring and Troubleshooting · Answers revealed

226
Multi-Selectmedium

Which TWO metrics should be monitored to detect a memory leak in an RDS for Oracle instance? (Choose 2.)

Select 2 answers
A.SwapUsage
B.FreeableMemory
C.DatabaseConnections
D.CPUUtilization
E.ReadIOPS
AnswersA, B

Increasing swap usage indicates the OS is paging memory to disk, sign of memory pressure.

Why this answer

Options A and B are correct because FreeableMemory shows the available memory, and SwapUsage indicates when the OS uses swap due to memory pressure, which are both signs of a memory leak. Option C is wrong because DatabaseConnections does not directly indicate a memory leak. Option D is wrong because CPUUtilization may be high but is not specific to a memory leak.

Option E is wrong because ReadIOPS relates to I/O, not memory.

227
MCQeasy

A database administrator notices that an Amazon RDS for MySQL DB instance's CPU utilization is consistently above 90% during peak hours. Which initial troubleshooting step should the administrator take?

A.Increase the DB instance size to handle the load.
B.Use Amazon RDS Performance Insights to identify the queries consuming CPU.
C.Enable Multi-AZ deployment to distribute the load.
D.Disable slow query logging to reduce CPU overhead.
AnswerB

Performance Insights helps pinpoint the source of high CPU usage.

Why this answer

Amazon RDS Performance Insights provides detailed database performance metrics and helps identify the specific queries contributing to high CPU utilization, enabling targeted optimization. Option A is incorrect because increasing instance size is a reactive scaling action rather than a diagnostic step; it does not identify the root cause. Option C is incorrect because Multi-AZ deployment is designed for high availability and failover, not for distributing load or improving performance.

Option D is incorrect because disabling slow query logging removes valuable diagnostic information that could help identify problematic queries.

228
MCQhard

A company is running an Amazon DocumentDB cluster. The application is experiencing high write latency. The cluster has a single instance. What should be done to identify the cause of the latency?

A.Upgrade the instance to a larger size.
B.Enable Performance Insights and review the top wait events.
C.Add a replica to distribute the write load.
D.Change the storage type to Provisioned IOPS.
AnswerB

Performance Insights reveals database bottlenecks and wait events.

Why this answer

Enabling Performance Insights for Amazon DocumentDB allows you to monitor the database load and review top wait events, which helps identify the specific causes of high write latency, such as lock contention or I/O bottlenecks. Option A is wrong because simply upgrading to a larger instance size addresses symptoms but does not identify the root cause. Option C is wrong because adding a replica does not reduce write latency on the primary instance; it only offloads read traffic.

Option D is wrong because changing to Provisioned IOPS may improve I/O performance but does not diagnose the underlying issue causing latency.

229
MCQhard

A team is using Amazon DynamoDB Accelerator (DAX) to improve read performance for a table. They notice that DAX is returning stale data even though the TTL is set to 5 minutes. The table is updated frequently by multiple writers. What is the most likely cause of the stale reads?

A.The DAX cluster is not large enough to cache all items, causing cache misses
B.DAX is configured with eventual consistency, which returns stale data by design
C.The DAX cluster is deployed in a different Availability Zone than the application
D.The TTL is too long, causing cached items to remain after updates
AnswerD

Correct. DAX uses a write-through cache for reads, and when a DynamoDB item is updated, the cached version remains until TTL expiry. If TTL is longer than the update frequency, stale data is served.

Why this answer

DAX uses a write-through cache, meaning that items are cached only when they are read. When an item is updated in DynamoDB, the cached copy is not automatically invalidated; instead, it remains in the cache until the TTL expires. If the TTL is set too long (e.g., 5 minutes) and the item is updated frequently, stale data will be served from the cache until the TTL forces its removal.

Option A is incorrect because cache misses would cause slower reads, not stale reads. Option B is incorrect because DAX always uses eventual consistency for reads, but stale data occurs here due to TTL, not consistency level. Option C is incorrect because DAX clusters are deployed in a single VPC and can be accessed from any AZ with proper routing; AZ placement does not cause staleness.

230
MCQhard

A company is using Amazon ElastiCache for Redis and notices that the cache hit ratio is low. The application is frequently reading data that is not in the cache. Which action would be most effective in improving the cache hit ratio?

A.Increase the number of replicas in the replication group.
B.Decrease the TTL of cached items to ensure freshness.
C.Pre-warm the cache by loading frequently accessed data from the database.
D.Enable Multi-AZ for automatic failover.
AnswerC

Pre-warming ensures that the most requested data is already in the cache, improving hit ratio.

Why this answer

Pre-warming the cache (option C) by loading frequently accessed data from the database into the ElastiCache cluster before it is requested increases the likelihood that subsequent reads will hit the cache. This directly improves the cache hit ratio. Increasing replicas (option A) does not add more cache capacity, it only provides read replicas for high availability.

Decreasing TTL (option B) causes items to expire sooner, potentially reducing the hit ratio. Enabling Multi-AZ (option D) provides failover but does not affect hit ratio. Therefore, option C is the most effective action.

231
MCQmedium

A company is using Amazon DynamoDB with auto scaling enabled. The application is experiencing higher than expected write throttling. Which action should be taken to resolve this issue?

A.Increase the minimum provisioned capacity for the table.
B.Disable auto scaling and set a fixed provisioned capacity.
C.Decrease the maximum provisioned capacity to limit writes.
D.Switch the table to on-demand capacity mode.
AnswerA

Increasing the minimum capacity ensures that the table can handle baseline traffic and reduces the chance of throttling during spikes.

Why this answer

Auto scaling adjusts capacity based on workload, but it can lag behind sudden traffic spikes, causing write throttling. Increasing the minimum provisioned capacity ensures a baseline capacity that can accommodate predictable bursts, reducing throttling. Option A (increase min capacity) is correct.

Option B (disable auto scaling and set fixed capacity) would remove the benefit of dynamic scaling and may not handle varying loads. Option C (decrease max capacity) would limit the table's ability to scale up, potentially worsening throttling. Option D (switch to on-demand) could eliminate throttling but at higher cost, and the question asks for a resolution while keeping auto scaling enabled.

232
MCQeasy

A database administrator is monitoring an Amazon RDS for SQL Server DB instance and notices that the FreeableMemory metric is consistently below 200 MB. Which of the following actions is most appropriate to mitigate performance issues?

A.Modify the DB instance's maintenance window to off-peak hours
B.Disable the SQL Server Agent and error logging
C.Enable automatic backups with a shorter retention period
D.Scale up the DB instance to a larger instance class with more memory
AnswerD

Scaling up to a larger instance class with more memory directly addresses the low FreeableMemory by increasing the total memory available to the instance, which is the most appropriate action.

Why this answer

A low FreeableMemory metric consistently below 200 MB indicates memory pressure on the RDS for SQL Server DB instance. The most effective mitigation is to scale up to a larger instance class with more memory, directly addressing the resource shortage. Option D is correct because it increases available memory.

Option B is incorrect because disabling SQL Server Agent and error logging does not free significant memory and may disrupt essential operations. Option A is incorrect because changing the maintenance window does not affect memory usage. Option C is incorrect because enabling backups with a shorter retention period does not impact memory.

Exam trap

Candidates may incorrectly assume that disabling background processes like SQL Server Agent or changing maintenance windows can reduce memory pressure, but these actions have negligible impact on memory usage. The direct solution is to increase memory by scaling the instance.

233
MCQeasy

A database administrator notices that an Amazon RDS for SQL Server DB instance has been in the 'storage-optimization' state for several hours after modifying the storage type from gp2 to io1. What should the administrator do to resolve this?

A.Wait for the storage optimization to complete.
B.Restore from the latest snapshot and reapply the modification.
C.Cancel the modification by modifying the DB instance back to gp2.
D.Reboot the DB instance.
AnswerA

Storage optimization is automatic and takes time; no action is needed.

Why this answer

The 'storage-optimization' state is a normal part of the modification process when converting between storage types on RDS. It can take hours as the database migrates to the new storage configuration. The administrator should simply wait for the process to complete.

Options B, C, and D are incorrect: restoring from a snapshot would lose recent changes and requires reapplication of the modification, modifying back to gp2 would interrupt the process and still require time, and rebooting does not affect the storage optimization.

Exam trap

Candidates might think that rebooting or restoring from a snapshot could speed up the process, but these actions are either unnecessary or disruptive.

234
MCQeasy

A company is using Amazon RDS for SQL Server with native backup and restore. The backup process is failing with an error indicating insufficient disk space for the backup file. The DB instance has 200 GB of allocated storage, and the backup file is 50 GB. What should the database administrator do to resolve this issue?

A.Change the storage type to Provisioned IOPS for better performance
B.Increase the allocated storage for the RDS instance
C.Grant the rds_backup user additional permissions to write to S3
D.Switch to automated backups instead of native backups
AnswerB

More storage space allows the backup file to be written.

Why this answer

Native backups in RDS for SQL Server are stored in the instance's attached storage. When the allocated storage is full, the backup fails due to insufficient disk space. Increasing the allocated storage provides additional space for the backup file.

Option A is incorrect because changing to Provisioned IOPS affects performance, not storage capacity. Option C is incorrect because the error is about disk space, not permissions. Option D is incorrect because switching to automated backups would not resolve the immediate failure of the native backup process, and the question specifically addresses native backup failure.

235
Multi-Selecthard

A database engineer is troubleshooting slow query performance on an Amazon RDS for PostgreSQL instance. The instance is db.r5.large with 500 GB of General Purpose SSD (gp2) storage. CloudWatch metrics show high Read Latency and high Read IOPS, but low CPU utilization. Which TWO actions should the engineer take to improve performance?

Select 2 answers
A.Create a read replica and offload read queries to it.
B.Increase the DB instance class to a larger size, such as db.r5.2xlarge.
C.Enable Multi-AZ to use the standby for read traffic.
D.Optimize queries by adding appropriate indexes.
E.Switch from General Purpose SSD (gp2) to Provisioned IOPS SSD (io1) with a higher IOPS rate.
AnswersA, E

Read replicas reduce the read IOPS on the primary, which can lower latency on the primary.

Why this answer

A is correct because creating a read replica offloads read queries from the primary instance, reducing the read IOPS and read latency on the primary. This directly addresses the high Read Latency and high Read IOPS metrics without requiring a larger instance class or storage change, especially since CPU utilization is low, indicating the bottleneck is I/O, not compute.

Exam trap

The trap here is that candidates often assume Multi-AZ can serve read traffic (like in SQL Server or Oracle), but Amazon RDS for PostgreSQL Multi-AZ does not support read-only queries on the standby; only read replicas can offload reads.

236
Multi-Selecthard

A company is running a production Amazon Aurora MySQL-Compatible Edition database. The database has recently experienced several failovers due to replica lag. The DBA needs to implement monitoring to detect replica lag early. Which THREE metrics should be monitored to assess replication health? (Select THREE.)

Select 3 answers
A.DatabaseConnections
B.ActiveTransactions
C.ReplicaLag
D.BufferCacheHitRatio
E.AuroraReplicaLag
AnswersA, C, E

Increased DatabaseConnections can be a symptom of application retries during failover, making it an indirect indicator of replication issues.

Why this answer

(DatabaseConnections) can indirectly indicate replication issues if application retries increase due to failovers. Option C (ReplicaLag) is the standard MySQL metric measuring replication lag. Option E (AuroraReplicaLag) is the direct Aurora-specific metric for replica lag.

The other options are not directly related to replication health: ActiveTransactions (B) measures transaction volume, not replication lag, and BufferCacheHitRatio (D) is about cache efficiency.

237
MCQmedium

A company is using Amazon RDS for MySQL with Multi-AZ deployment. The application team reports increased latency during peak hours. Which AWS service should the database specialist use to identify the root cause?

A.Enable Performance Insights for the RDS instance and analyze the database load.
B.Enable AWS Config to track configuration changes to the RDS instance.
C.Use the CloudWatch Metrics Dashboard to analyze database connections.
D.Run an Amazon Inspector assessment on the RDS instance.
AnswerA

Performance Insights provides detailed database performance analysis and helps identify bottlenecks.

Why this answer

Performance Insights provides detailed database performance metrics and helps identify bottlenecks such as high load or slow queries. Option B is wrong because AWS Config tracks configuration changes, not performance. Option C is wrong because CloudWatch Metrics Dashboard shows aggregated metrics but lacks the granular database analysis needed for root cause identification.

Option D is wrong because Amazon Inspector is a security assessment tool, not a performance monitoring service.

238
Multi-Selectmedium

A company is using Amazon DynamoDB with provisioned capacity. They notice an increase in throttled write requests. The workload consists of writes to a single partition key. Which TWO actions would help reduce throttling?

Select 2 answers
A.Add a global secondary index with a different partition key.
B.Increase the provisioned write capacity units.
C.Enable DynamoDB auto scaling with adaptive capacity.
D.Use DynamoDB Accelerator (DAX) for write caching.
E.Implement write sharding by adding a suffix to the partition key.
AnswersB, C

More capacity directly reduces throttling.

Why this answer

Options B and C are correct. Increasing provisioned write capacity (B) directly addresses throttling by allowing more writes per second. Enabling DynamoDB auto scaling with adaptive capacity (C) automatically adjusts capacity based on traffic and helps handle uneven access patterns, including hot partitions.

Option A (adding a global secondary index with a different partition key) does not reduce throttling on the base table; it only provides an alternative query path. Option D (DAX) is a read cache and does not assist with write throttling. Option E (write sharding) can help distribute writes across partitions, but the question asks for two actions from the given list; B and C are the most direct and effective.

239
Multi-Selectmedium

A database specialist is troubleshooting an Amazon RDS for PostgreSQL instance that has high replication lag between the primary and a read replica. Which TWO metrics should the specialist review to identify the cause? (Select TWO.)

Select 2 answers
A.WriteIOPS on the primary
B.ReadIOPS on the replica
C.DatabaseConnections on the primary
D.ReplicaLag
E.NetworkThroughput between primary and replica
AnswersB, D

High read activity on the replica can cause lag.

Why this answer

High ReadIOPS on the read replica can indicate heavy read activity, which may cause replication lag as the replica struggles to apply changes fast enough. Option D is correct because ReplicaLag directly measures the time delay between the primary and replica, confirming the presence of lag. Option A is incorrect because WriteIOPS on the primary reflects write workload, not lag cause.

Option C is incorrect because DatabaseConnections do not directly affect replication lag. Option E is incorrect because NetworkThroughput is not a metric that directly indicates replication lag; it could be a factor but is not a standard RDS metric for diagnosing lag.

240
MCQhard

Refer to the exhibit. A DBA is troubleshooting an issue where an IAM user cannot view CloudWatch metrics for an RDS DB instance. The IAM policy attached to the user is shown above. What is the MOST likely reason the user cannot view the metrics?

A.The policy does not include cloudwatch:DescribeAlarms
B.The policy does not include rds:DescribeDBInstances
C.The policy uses a Resource element of '*' which is not allowed for CloudWatch
D.The policy does not include cloudwatch:GetMetricStatistics
AnswerA

The CloudWatch console often requires DescribeAlarms to view metrics.

Why this answer

The IAM policy includes 'cloudwatch:GetMetricStatistics' and 'cloudwatch:ListMetrics', which should allow retrieving metric data via API. However, the AWS Management Console for CloudWatch Metrics also requires 'cloudwatch:DescribeAlarms' to display alarm overlays on the metrics graph. Without this action, the console may fail to load the metrics page entirely.

Option A is correct because the missing permission is 'cloudwatch:DescribeAlarms'. Option B is incorrect because 'rds:DescribeDBInstances' is not needed to view metrics; the policy already includes it. Option C is incorrect because using a Resource of '*' is allowed for CloudWatch actions; it does not prevent viewing metrics.

Option D is incorrect because 'cloudwatch:GetMetricStatistics' is already present in the policy.

241
MCQhard

A company is using Amazon ElastiCache for Redis to cache frequently accessed data. Recently, the application has been experiencing increased latency. The database specialist suspects that the cache hit ratio has decreased. Which CloudWatch metric should the specialist analyze to confirm this suspicion?

A.Monitor the 'CurrConnections' metric to see if there are too many connections.
B.Monitor the 'Evictions' metric to see if keys are being evicted.
C.Monitor 'CacheHits' and 'CacheMisses' metrics to calculate the hit ratio.
D.Monitor the 'ReplicationLag' metric to check replication delay.
AnswerC

Cache hit ratio = CacheHits / (CacheHits + CacheMisses).

Why this answer

The cache hit ratio is calculated as CacheHits / (CacheHits + CacheMisses). Monitoring the 'CacheHits' and 'CacheMisses' CloudWatch metrics allows the specialist to compute the hit ratio and confirm whether it has decreased, which would explain increased latency. Option A is incorrect because CurrConnections shows the number of connections, not the cache hit ratio.

Option B is incorrect because Evictions indicates keys being evicted, which can affect the cache but does not directly measure the hit ratio. Option D is incorrect because ReplicationLag measures replication delay, not cache performance.

242
MCQeasy

A developer reports that an Amazon ElastiCache for Redis cluster's memory usage is consistently above 90%. The application uses Redis for caching and session storage. Which configuration change would MOST effectively reduce memory pressure?

A.Enable eviction with volatile-LRU policy
B.Scale up to a larger node type
C.Enable AOF persistence to free memory
D.Disable replication to reduce memory overhead
AnswerA

Correct. The volatile-LRU eviction policy removes keys with TTLs (like session data) that are least recently used, effectively freeing memory while preserving critical cached data without TTLs.

Why this answer

Enabling eviction with the volatile-LRU policy automatically removes the least recently used keys that have a TTL set, freeing memory without manual intervention. Option B (scaling up) reduces memory pressure but at higher cost; it is not the most effective change since eviction addresses the root cause by discarding stale data. Option C (AOF persistence) writes data to disk, not freeing memory; it can actually increase memory usage during writes.

Option D (disabling replication) may free some memory used for replica buffers but does not address the high memory utilization caused by cached data, and it impacts availability.

243
Multi-Selecthard

A team is using Amazon DynamoDB with auto scaling enabled. They notice that some requests are returning ProvisionedThroughputExceededException errors during a sudden traffic spike. The application uses strong consistent reads. Which two actions would help mitigate the throttling without over-provisioning capacity? (Choose two.)

Select 2 answers
A.Implement DynamoDB Accelerator (DAX) to cache read results.
B.Enable DynamoDB adaptive capacity.
C.Switch to eventually consistent reads for all queries.
D.Disable auto scaling and manually set higher capacity.
E.Use DynamoDB burst capacity for the spike.
AnswersA, B

Correct. DAX reduces the number of read requests to the table, lowering the consumed read capacity.

Why this answer

DAX acts as an in-memory cache for DynamoDB, reducing the number of read requests that consume provisioned throughput, thus mitigating throttling without increasing capacity. Option B is correct because adaptive capacity enables DynamoDB to automatically use unused throughput from other partitions to absorb traffic spikes, reducing ProvisionedThroughputExceededException errors. Option C is wrong because while eventually consistent reads consume half the read capacity, the application uses strong consistent reads, which may be required for data consistency, and this switch may not be acceptable.

Option D is wrong because disabling auto scaling and manually setting higher capacity would lead to over-provisioning and increased cost, contrary to the goal of mitigating throttling without over-provisioning. Option E is wrong because burst capacity is limited and not guaranteed; it can handle short spikes but is not a reliable mitigation for sudden spikes.

244
MCQmedium

A company uses Amazon RDS for PostgreSQL with Multi-AZ deployment. The primary instance fails, and a failover occurs. After the failover, the application is still unable to connect to the database endpoint. The database administrator checks the RDS console and sees that the new primary is in 'available' state. What should the administrator do next to diagnose the connectivity issue?

A.Verify that the security group for the RDS instance allows inbound traffic from the application
B.Check if the subnet group for the RDS instance is correctly configured
C.Check the DNS resolution of the RDS endpoint from the application server
D.Restart the RDS instance to force a new connection
AnswerC

The CNAME record should be updated; stale DNS could cause connection failures.

Why this answer

The DNS CNAME of the RDS endpoint should have updated to point to the new primary. If the application is using the old IP or a cached DNS entry, it may not connect. Option A is incorrect because security group rules are usually unchanged.

Option B is incorrect because the subnet group is not the issue. Option D is incorrect because the primary is already in available state.

245
Multi-Selectmedium

A company runs a self-managed Redis cluster on Amazon EC2 for caching. The cluster has one primary and two replicas, each on c5.large instances. The application experiences high latency during peak hours. CloudWatch metrics show that the primary node's CPU utilization is consistently above 80% and the network bandwidth is near the instance limit. The replicas show moderate CPU usage. The team wants to reduce latency without increasing cost significantly. Which combination of actions should the team take? (Choose two.)

Select 2 answers
A.Enable Redis Cluster Mode and distribute data across multiple shards.
B.Add more EC2 instances as additional replicas to offload reads.
C.Configure the application to read from replica nodes.
D.Upgrade the primary to a c5.2xlarge instance type.
E.Migrate to Amazon ElastiCache for Redis with Cluster Mode enabled.
AnswersA, E

Correct. Enabling Redis Cluster Mode shards data across multiple nodes, reducing CPU and network load on the primary.

Why this answer

Enables Redis Cluster Mode to shard data across multiple nodes, reducing CPU and network load on the primary. Option E migrates to Amazon ElastiCache for Redis with Cluster Mode, which manages scaling and reduces operational overhead. Together, they address the bottleneck without significant cost increase.

Option C (read from replicas) does not reduce primary write/CPU load. Option D (upgrade instance) increases cost and may still hit network limits. Option B (add replicas) increases cost and does not reduce primary load.

Exam trap

Candidates may incorrectly select reading from replicas (option C) assuming it alleviates the primary's CPU, but the primary's high CPU is due to both CPU and network saturation from read/write operations; read replicas only offload read queries, not the underlying processing on the primary.

246
Multi-Selecteasy

Which THREE actions should be taken to troubleshoot an Amazon RDS for PostgreSQL instance that is unresponsive? (Choose 3.)

Select 3 answers
A.Reboot the DB instance immediately
B.Modify the DB instance to a larger instance class
C.Verify that the security group allows inbound traffic on the database port
D.Check the database error logs in CloudWatch Logs
E.Review CloudWatch metrics for CPU, memory, and disk I/O
AnswersC, D, E

Network connectivity issues can make instance appear unresponsive.

Why this answer

To troubleshoot an unresponsive Amazon RDS for PostgreSQL instance, the standard initial steps are: C) Verify that the security group allows inbound traffic on the database port – connectivity issues are a common cause of unresponsiveness. D) Check the database error logs in CloudWatch Logs – logs may reveal database-specific errors like out-of-memory or corruption. E) Review CloudWatch metrics for CPU, memory, and disk I/O – high utilization can indicate resource exhaustion.

Option A (reboot immediately) is wrong because it may destroy diagnostic evidence. Option B (modify instance class) is premature without first assessing the problem.

247
MCQmedium

A company uses Amazon RDS for PostgreSQL with logical replication to a downstream system. The replication slot grows unbounded and causes storage full issues. Which action resolves this without data loss?

A.Disable logical replication and use DMS instead
B.Increase the allocated storage size of the RDS instance
C.Monitor the replication slot and advance it using pg_replication_slot_advance
D.Delete the replication slot and recreate it
AnswerC

Advancing the slot allows WAL cleanup.

Why this answer

Monitoring and advancing the replication slot prevents WAL accumulation. Option A is wrong because disabling replication causes data loss. Option B is wrong because increasing storage is a temporary fix, not a resolution.

Option D is wrong because deleting old WAL logs may break replication.

248
Multi-Selectmedium

A company is using Amazon DynamoDB with autoscaling enabled. The table has a partition key of 'order_id' and a sort key of 'order_date'. The application performs both point queries and range queries. Recently, the 'ConsumedReadCapacityUnits' metric shows that the table is consistently using 100% of the provisioned capacity. Which THREE factors should the database engineer investigate to determine the cause?

Select 3 answers
A.Whether autoscaling is configured correctly to add capacity.
B.Whether the application is using Scan operations instead of Query operations.
C.Whether the partition key is evenly distributed across partitions.
D.Whether a specific 'order_id' is being accessed frequently, creating a hot key.
E.Whether a global secondary index is being used for queries.
AnswersB, C, D

Scans consume more read capacity than queries.

Why this answer

Scan operations read the entire table or index before applying filters, consuming far more read capacity than Query operations, which target specific partition and sort key values. If the application is using Scans instead of Queries, it would consistently consume 100% of provisioned capacity even for small result sets, leading to throttling and high utilization.

Exam trap

AWS often tests the misconception that autoscaling misconfiguration is the primary cause of high capacity utilization, when in reality the root cause is often inefficient access patterns (Scans) or uneven data distribution (hot keys) that autoscaling cannot fix.

249
MCQhard

A database specialist is troubleshooting a performance issue on a self-managed PostgreSQL database that they plan to migrate to Amazon RDS. The database has a high number of 'idle in transaction' connections. What is the impact of these connections on the database?

A.They increase CPU usage due to constant polling.
B.They hold locks and prevent cleanup of dead tuples, leading to bloat.
C.They prevent new connections from being established.
D.They cause increased disk I/O from write-ahead logging.
AnswerB

Idle transactions keep locks and prevent autovacuum from marking dead tuples.

Why this answer

Idle-in-transaction connections hold locks and prevent PostgreSQL's autovacuum from cleaning up dead tuples, leading to table bloat and performance degradation. Option A is wrong because idle transactions do not cause constant polling; CPU usage remains low. Option C is wrong because they do not prevent new connections from being established unless the max_connections limit is reached.

Option D is wrong because idle transactions do not significantly increase write-ahead logging.

250
MCQhard

A company is using Amazon Redshift for data warehousing. The data engineering team notices that queries are taking longer than expected. The cluster has two nodes of type dc2.large. The database specialist checks the system tables and finds that many queries are using the disk for temporary storage. Which action should the specialist take to improve query performance?

A.Add distribution keys to the tables to improve data distribution.
B.Enable concurrency scaling to offload queries to additional clusters.
C.Increase the number of nodes to three to distribute the workload.
D.Upgrade the cluster to a node type with more memory, such as ra3.xlplus.
AnswerD

Upgrading to ra3.xlplus nodes increases memory per node (from ~15 GB to ~32 GB), directly reducing the likelihood of disk spill for memory-intensive queries, thus improving query performance.

Why this answer

Disk spill to temporary storage indicates insufficient memory per node. Upgrading from dc2.large (∼15 GB RAM) to ra3.xlplus (∼32 GB RAM) doubles per-node memory, reducing disk spill and improving query performance. Option A is incorrect because distribution keys improve data distribution, not memory.

Option B is incorrect because concurrency scaling manages concurrent queries, not per-query memory. Option C is incorrect because adding a node increases total cluster memory but per-node memory stays the same; disk spill occurs per node, so the problem persists.

251
Multi-Selecthard

A company is migrating its on-premises Oracle database to Amazon RDS for Oracle. The database specialist needs to monitor the migration process and ensure data consistency. Which TWO AWS services should be used together to continuously monitor the replication lag and data integrity?

Select 2 answers
A.Amazon RDS Performance Insights
B.AWS Schema Conversion Tool (AWS SCT)
C.AWS Database Migration Service (AWS DMS)
D.AWS Glue
E.Amazon CloudWatch
AnswersC, E

DMS provides replication tasks and publishes latency metrics.

Why this answer

AWS DMS is the correct service because it is specifically designed for database migrations and provides built-in monitoring of replication lag via the 'CDC latency' metric. Amazon CloudWatch is the correct complementary service because it collects and visualizes DMS metrics, including replication lag and task status, and can trigger alarms if data integrity or latency thresholds are breached.

Exam trap

The trap here is that candidates may confuse AWS DMS with AWS Glue or SCT, thinking those services also handle continuous replication monitoring, but only DMS provides CDC metrics that CloudWatch can monitor for lag and integrity.

252
MCQmedium

A development team is using Amazon RDS for MySQL with read replicas to offload reporting queries. They notice that the read replica is consistently lagging behind the primary by several seconds. The primary handles 5000 writes per second. Which action would most likely reduce replica lag?

A.Increase the 'max_connections' parameter on the primary instance.
B.Increase the instance size of the read replica.
C.Disable binary logging on the primary instance to reduce I/O.
D.Convert the primary instance to a Multi-AZ deployment.
AnswerB

A larger replica can apply changes more quickly, reducing lag.

Why this answer

Increasing the instance size of the read replica provides more CPU and memory resources, allowing it to apply changes from the binary log faster, thereby reducing replica lag. Option A is incorrect because increasing 'max_connections' on the primary does not affect the replica's ability to apply changes; it only allows more connections to the primary. Option C is incorrect because disabling binary logging on the primary would break replication entirely, as the replica relies on the binary log to receive changes.

Option D is incorrect because converting the primary to Multi-AZ improves availability and failover but does not directly reduce replication lag on the read replica.

253
MCQmedium

A database specialist is troubleshooting an Amazon RDS for SQL Server instance that is running out of storage. The instance has 500 GB of provisioned storage and is using General Purpose SSD (gp2). The specialist wants to set up an alarm to notify when free storage space drops below 50 GB. Which CloudWatch metric and threshold should be used?

A.Monitor the 'FreeStorageSpace' metric in percent and set a threshold of 10.
B.Monitor the 'DiskSpaceUtilization' metric and set a threshold of 90.
C.Monitor the 'FreeStorageSpace' metric in bytes and set a threshold of 53687091200.
D.Monitor the 'FreeStorageSpace' metric in gigabytes and set a threshold of 50.
AnswerC

FreeStorageSpace is in bytes; 50 GB = 53687091200 bytes.

Why this answer

The correct metric is 'FreeStorageSpace' which is reported in bytes by CloudWatch for Amazon RDS. 50 GB equals 50 × 1024³ = 53,687,091,200 bytes. Therefore, setting a threshold of 53687091200 bytes triggers the alarm when free space drops below 50 GB. Option A is incorrect because 'FreeStorageSpace' is not available in percent; you must use bytes.

Option B is incorrect because 'DiskSpaceUtilization' is not a standard CloudWatch metric for RDS (it is used for EC2). Option D is incorrect because although 'FreeStorageSpace' is the right metric, the threshold must be specified in bytes, not gigabytes; CloudWatch does not accept a unit other than bytes for this metric.

254
Multi-Selectmedium

A company uses Amazon DynamoDB with global tables. During a regional outage, the application fails over to the secondary region. After recovery, the DBA notices that the data in the secondary region is not fully consistent with the primary. Which THREE steps should the DBA take to diagnose the issue? (Choose THREE.)

Select 3 answers
A.Verify that DynamoDB Streams is enabled on the table.
B.Disable and re-enable global tables to force resync.
C.Increase the write capacity on the secondary table.
D.Review the DynamoDB Streams error logs in CloudWatch Logs.
E.Check the ReplicationLatency metric in CloudWatch.
AnswersA, D, E

Streams are required for global tables to replicate changes.

Why this answer

Options A, D, and E are correct. Verifying DynamoDB Streams (A) ensures that change data capture is enabled for replication. Reviewing DynamoDB Streams error logs in CloudWatch Logs (D) helps identify replication errors.

Checking the ReplicationLatency metric (E) reveals if there is replication lag. Option B is not a diagnostic step; disabling and re-enabling global tables is disruptive and not recommended. Option C is incorrect because increasing write capacity on the secondary table does not address consistency issues; replication depends on streams and network, not write capacity.

255
MCQmedium

A company uses Amazon DynamoDB with on-demand capacity. Users report increased latency during peak hours. The application uses the DynamoDB API. Which monitoring metric should be examined first to identify throttling issues?

A.ThrottledRequests
B.SuccessfulRequestLatency
C.ReadThrottleEvents
D.ConsumedWriteCapacityUnits
AnswerA

ThrottledRequests directly indicates requests that were throttled.

Why this answer

(ThrottledRequests). ThrottledRequests is a CloudWatch metric that directly indicates the number of requests that were throttled due to exceeding provisioned throughput limits or the instantaneous capacity of on-demand mode. For on-demand capacity, while DynamoDB scales automatically, sudden spikes can still cause throttling.

Examining ThrottledRequests first provides the most direct indication of throttling issues. Option B (SuccessfulRequestLatency) is incorrect because it measures latency of successful requests, not throttling. Option C (ReadThrottleEvents) is incorrect because it only counts throttled read events, whereas ThrottledRequests includes both reads and writes.

Option D (ConsumedWriteCapacityUnits) is incorrect because it shows the amount of write capacity consumed, not throttled requests.

256
MCQmedium

A database administrator notices that an Amazon RDS for MySQL instance's CPU utilization is consistently above 80% during peak hours. The DB instance is a db.r5.large with 16 GB memory and 500 GB gp2 storage. The application is a read-intensive web application. Which action is MOST effective to reduce CPU load without significant cost increase?

A.Increase the instance size to db.r5.xlarge
B.Create a read replica and redirect read traffic to it
C.Enable Performance Insights to identify slow queries and optimize them
D.Increase the allocated storage to 1000 GB to improve I/O performance
AnswerB

Offloads read queries, reducing CPU on the primary instance.

Why this answer

Creating a read replica offloads read traffic from the primary instance, reducing CPU utilization without requiring a larger instance or more storage. Option A increases cost significantly. Option C may not help if the issue is CPU, not I/O.

Option D increases storage but does not directly reduce CPU.

257
MCQmedium

A company uses Amazon CloudWatch to monitor an RDS for Oracle instance. They want to receive an alert when the database connection count exceeds 90% of the maximum connections. Which CloudWatch metric should be used to create the alarm?

A.ActiveTransactions
B.DatabaseConnections
C.ReadIOPS
D.NetworkThroughput
AnswerB

Correct. This metric directly reflects the number of connections.

Why this answer

(DatabaseConnections) is correct because this metric tracks the number of client connections to the database instance, which directly reflects the connection count. To alert when connections exceed 90% of maximum connections, you would monitor DatabaseConnections and compare it to the instance's MaxConnections parameter. Option A (ActiveTransactions) is incorrect because it measures the number of concurrent transactions, not connections.

Option C (ReadIOPS) and Option D (NetworkThroughput) are unrelated metrics for disk I/O and network traffic, respectively.

258
MCQhard

A database specialist is troubleshooting an Amazon RDS for PostgreSQL instance that is experiencing intermittent connection timeouts. The application logs show errors like 'FATAL: remaining connection slots are reserved for non-replication superuser connections'. The max_connections parameter is set to 100. What should the specialist do to resolve this issue?

A.Modify the 'max_connections' parameter to a higher value and reboot the instance.
B.Increase the 'max_replication_slots' parameter to allow more replication connections.
C.Increase the value of the 'superuser_reserved_connections' parameter.
D.Enable RDS Proxy to manage database connections efficiently.
AnswerA

Increasing max_connections allows more concurrent connections and resolves the error.

Why this answer

The error indicates that the maximum number of connections has been reached. Increasing the max_connections parameter allows more concurrent connections, resolving the issue. Option B is incorrect because the error is about regular connections, not replication slots.

Option C is incorrect because the superuser_reserved_connections parameter reserves slots for superusers; the error is about all connection slots being exhausted. Option D is incorrect because RDS Proxy manages connection pooling but does not increase the connection limit.

259
MCQeasy

A company runs a PostgreSQL database on an Amazon RDS DB instance (db.t3.medium) with 100 GB of General Purpose SSD (gp2) storage. The database is used by a web application that experiences occasional slowdowns. CloudWatch metrics show that the BurstBalance metric for the storage volume drops to 0% during peak usage and then recovers. The average IOPS during peak is 600, and the baseline IOPS for the volume is 300. The team needs a cost-effective solution to eliminate the performance issues. What should the team do?

A.Upgrade the DB instance to db.t3.large.
B.Increase the gp2 volume size to 200 GB.
C.Migrate the storage to gp3 with 3000 baseline IOPS.
D.Enable Performance Insights to monitor database load.
AnswerC

gp3 provides a consistent baseline of 3000 IOPS (or 3000 if using the default) without burst credits, eliminating the burst balance issue and providing headroom.

Why this answer

To migrate to gp3 storage. gp3 provides a consistent baseline of 3000 IOPS regardless of volume size, eliminating the need for burst credits. This directly addresses the BurstBalance dropping to 0% during peak usage. Option A (upgrade instance) does not affect storage performance.

Option B (increase gp2 to 200 GB) would raise the baseline IOPS to 600 and add more burst credits, but the workload still depends on credits and may not be as cost-effective as gp3. Option D (Performance Insights) is a monitoring tool and does not improve performance.

260
MCQhard

A database engineer is troubleshooting a production Amazon Aurora MySQL DB cluster. The application is experiencing high latency on write operations. The engineer checks the Amazon CloudWatch metrics and sees that the 'AuroraBinlogReplicaLag' metric is high. What is the most likely cause of the write latency?

A.The DB cluster has insufficient storage capacity for the binlog files
B.The DB cluster has a high CPU utilization that is causing replication lag
C.The binlog replication to a downstream MySQL instance is falling behind
D.A recent failover event caused the binlog to be replayed from the last checkpoint
AnswerC

High binlog lag means the downstream replica cannot keep up, causing write delays if the source waits for acknowledgment.

Why this answer

The 'AuroraBinlogReplicaLag' metric specifically measures the lag between the Aurora MySQL cluster and an external MySQL instance that is replicating from Aurora using binary log (binlog) replication. When this lag is high, it indicates that the downstream MySQL instance is falling behind in applying binlog events, which can cause write operations on the Aurora cluster to stall or slow down due to the synchronous nature of binlog generation and the need to retain binlogs until they are consumed by the replica.

Exam trap

The trap here is that candidates often confuse 'AuroraBinlogReplicaLag' with Aurora's internal replication lag (e.g., ReplicaLag for Aurora Replicas) or with general performance metrics like CPU or storage, leading them to select incorrect options that do not address the specific binlog replication context.

How to eliminate wrong answers

Option A is wrong because insufficient storage capacity for binlog files would cause binlog file retention issues or storage full errors, but it does not directly cause high binlog replication lag; the 'AuroraBinlogReplicaLag' metric is about replication delay, not storage capacity. Option B is wrong because high CPU utilization on the DB cluster can cause general performance degradation, but the 'AuroraBinlogReplicaLag' metric is specific to the lag of binlog replication to an external MySQL instance, not to internal replication or CPU-related delays. Option D is wrong because a failover event would cause a brief interruption and replay of binlog from the last checkpoint, but this would not result in a persistently high 'AuroraBinlogReplicaLag' metric; the lag would typically be transient and recover quickly.

261
Multi-Selecteasy

Which TWO tools can be used to monitor query performance in Amazon Aurora MySQL? (Choose 2.)

Select 2 answers
A.Amazon RDS Performance Insights
B.AWS Config
C.Amazon RDS Enhanced Monitoring
D.VPC Flow Logs
E.AWS CloudTrail
AnswersA, C

Shows database load and SQL queries.

Why this answer

A is correct: Amazon RDS Performance Insights provides a visualization of database performance, including metrics like average active sessions, which helps identify query performance issues. C is correct: Amazon RDS Enhanced Monitoring provides OS-level metrics such as CPU, memory, and disk I/O, which can help correlate with query performance. B is incorrect: AWS Config is a service for configuration audit and compliance, not for real-time performance monitoring.

D is incorrect: VPC Flow Logs capture network traffic metadata and are not specific to query performance. E is incorrect: AWS CloudTrail logs API calls for governance and compliance, not database query performance.

262
MCQmedium

A company is running a production Amazon RDS for PostgreSQL database. The database has experienced a sudden spike in CPU utilization, causing application timeouts. The monitoring team needs to identify the root cause. Which AWS service or feature should be used to analyze the database load and identify the specific queries causing the high CPU?

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

Performance Insights offers a database performance tuning feature that visualizes database load and identifies the specific SQL queries causing high CPU utilization.

Why this answer

(Amazon RDS Performance Insights) is correct because it provides a database performance tuning and monitoring feature that helps quickly assess the load on your database and identify specific queries causing high CPU utilization. Option A (Enhanced Monitoring) is wrong because it provides OS-level metrics, not database query details. Option B (Amazon CloudWatch Logs) is wrong because it captures database logs, not real-time performance data.

Option D (AWS Trusted Advisor) is wrong because it provides best practice checks but not query-level analysis.

263
Multi-Selectmedium

A company is using Amazon RDS for PostgreSQL and needs to monitor the database for performance issues. Which TWO metrics in Amazon CloudWatch are most useful for identifying I/O bottlenecks?

Select 2 answers
A.ReadIOPS
B.FreeStorageSpace
C.DiskQueueDepth
D.DatabaseConnections
E.CPUUtilization
AnswersA, C

ReadIOPS and WriteIOPS show I/O operations.

Why this answer

Options A and C are correct. ReadIOPS (Option A) shows the actual number of read I/O operations per second, which is a direct indicator of I/O load. DiskQueueDepth (Option C) measures the number of pending I/O requests, indicating I/O contention or bottlenecks when the queue depth is high.

Option B (FreeStorageSpace) is about storage capacity, not performance. Option D (DatabaseConnections) reflects connection count, not I/O. Option E (CPUUtilization) relates to compute, not I/O.

264
MCQmedium

A company runs a document management system using Amazon S3 and Amazon DynamoDB. The application writes document metadata to DynamoDB and stores the document in S3. Recently, users report that occasionally documents are saved in S3 but the corresponding metadata is missing in DynamoDB. The application writes to DynamoDB first, then to S3. If the S3 upload fails, the application retries. The database specialist suspects a transaction consistency issue. The application is running on multiple EC2 instances behind an Application Load Balancer. What should the specialist recommend to ensure that both the metadata and document are stored consistently?

A.Use DynamoDB transactions to write metadata and initiate S3 upload within the same transaction.
B.Use DynamoDB Streams to trigger an AWS Lambda function that performs the S3 upload.
C.Reverse the order: upload to S3 first, then write to DynamoDB.
D.Implement an idempotency key in the application to retry the entire operation.
AnswerA

Transactions provide atomicity across multiple items.

Why this answer

Using DynamoDB transactions ensures atomicity; if the S3 upload fails, the transaction can be rolled back. Option B is wrong because DynamoDB Streams with Lambda introduces eventual consistency and possible duplicates. Option C is wrong because writing to S3 first still leaves inconsistency if DynamoDB fails.

Option D is wrong because idempotency tokens help with duplicates but not atomicity.

265
MCQeasy

A developer is troubleshooting an application that uses Amazon DynamoDB. The application is experiencing throttled requests (ProvisionedThroughputExceededException). Which CloudWatch metric should be monitored to troubleshoot this issue?

A.ThrottledRequests
B.SuccessfulRequestLatency
C.UserErrors
D.ConsumedWriteCapacityUnits
AnswerA

ThrottledRequests is a CloudWatch metric that directly counts the number of requests that were throttled due to exceeding provisioned throughput. Monitoring this metric helps identify when throttling is occurring.

Why this answer

ThrottledRequests is a CloudWatch metric that directly counts the number of requests that were throttled due to exceeding provisioned throughput. For troubleshooting throttling issues, this metric provides immediate visibility into when throttling occurs. ConsumedWriteCapacityUnits (option D) shows capacity usage but does not directly indicate throttling; high consumption may lead to throttling but is not a direct measure.

SuccessfulRequestLatency (option B) measures latency, not throttling, and UserErrors (option C) tracks client-side errors like invalid parameters, not capacity-related throttling.

266
Multi-Selectmedium

Which TWO metrics should be monitored together to detect a memory leak in an Amazon RDS for Oracle DB instance? (Choose TWO.)

Select 2 answers
A.FreeableMemory
B.SwapUsage
C.ReadIOPS
D.DatabaseConnections
E.NetworkThroughput
AnswersA, B

Declining freeable memory may indicate a memory leak.

Why this answer

Options A and B are correct. FreeableMemory shows the amount of available memory, and SwapUsage indicates the amount of swap space used. A memory leak causes increasing memory consumption, leading to swapping when free memory is exhausted.

Monitoring both metrics together helps detect this pattern. Option C (ReadIOPS) is an I/O metric, not directly memory-related. Option D (DatabaseConnections) is a connection metric, unrelated to memory leak detection.

Option E (NetworkThroughput) is a network metric, also not relevant.

267
MCQhard

A data analytics company runs Amazon Redshift clusters. A user reports that a complex query is taking much longer than expected. The DBA uses the STL_QUERY view to check the query execution. Which column in STL_QUERY should the DBA examine to identify if the query is waiting for resources?

A.aborted
B.query
C.starttime
D.service_class
AnswerD

Service class indicates the WLM queue; a high queue time suggests waiting for resources.

Why this answer

The 'service_class' column indicates the workload management (WLM) queue assigned to the query, which can help identify if the query was queued or waiting for resources. Option A is wrong because 'aborted' indicates whether the query was aborted, not waiting. Option B is wrong because 'query' is just the query ID.

Option C is wrong because 'starttime' shows when the query started, not waiting status.

268
MCQeasy

A database administrator notices that an Amazon RDS for MySQL DB instance is using more storage than expected. Which metric should be monitored to troubleshoot storage usage?

A.FreeStorageSpace
B.DatabaseConnections
C.ReadIOPS
D.NetworkThroughput
AnswerA

FreeStorageSpace shows remaining storage, helping identify usage trends.

Why this answer

FreeStorageSpace directly indicates the available storage remaining on the DB instance, which is key to troubleshooting storage usage. Option B is incorrect because DatabaseConnections measures the number of client connections, not storage. Option C is incorrect because ReadIOPS measures input/output operations per second, not storage capacity.

Option D is incorrect because NetworkThroughput measures data transfer rates, not storage.

269
Multi-Selecthard

A database specialist is troubleshooting a slow-running query on an Amazon Aurora MySQL DB cluster. The query performs a large table scan. Which THREE actions would likely improve query performance?

Select 3 answers
A.Increase the size of the DB instance to provide more memory and CPU.
B.Change the transaction isolation level to SERIALIZABLE.
C.Enable the query cache feature to cache the results of the query.
D.Enable Aurora Parallel Query to parallelize the table scan.
E.Create an index on columns used in WHERE and JOIN clauses.
AnswersA, C, E

More resources can speed up query execution.

Why this answer

Creating appropriate indexes can speed up queries by avoiding table scans. Increasing the instance size provides more memory and CPU for query execution. Enabling query caching can store results of repeated queries.

Changing isolation level and enabling parallel query may not help in all cases and may have side effects.

270
MCQmedium

A company uses Amazon DynamoDB with a table that has a partition key of 'user_id' (string) and sort key of 'timestamp' (number). The application queries for recent items for a specific user using the query API with KeyConditionExpression. The query returns items in descending order. Occasionally, the query returns items that are not the most recent. What is the most likely cause?

A.The query is using eventually consistent reads, which may not reflect the latest writes.
B.The query is not using the ScanIndexForward parameter set to false.
C.The query results are paginated and the application is not iterating through all pages.
D.The query is using a global secondary index (GSI) that has a different sort key.
AnswerA

Eventually consistent reads may return stale data.

Why this answer

DynamoDB queries by default use eventually consistent reads, which may not reflect the latest writes. In this scenario, the query is likely using eventually consistent reads, causing it to return stale data. Option A is correct.

Option B is incorrect because ScanIndexForward set to false returns items in descending order, which is what the application expects. Option C is incorrect because pagination would result in missing items, not stale data. Option D is incorrect because the query is on the base table, not a GSI.

271
MCQeasy

A startup is using Amazon ElastiCache for Redis to cache session data. They deployed a single Redis node (cache.t3.micro) in us-west-2. The application reports high latency when reading session data. CloudWatch metrics show CPUUtilization at 90% and Evictions at 100 per minute. The cache hit ratio is 80%. The database specialist suspects the node is overloaded. What should the specialist do to improve performance?

A.Scale up to a larger node type, such as cache.m5.large.
B.Add a read replica to offload read traffic.
C.Enable cluster mode and add more shards.
D.Decrease the TTL for session keys to reduce memory usage.
AnswerA

More resources reduce CPU and evictions.

Why this answer

Scale up to a larger node type, such as cache.m5.large. The current node (cache.t3.micro) is overloaded, as indicated by high CPU utilization (90%) and frequent evictions (100/min). Scaling up provides more CPU and memory resources, reducing evictions and lowering latency.

Option B (add a read replica) does not help because the issue is on the primary node; read replicas are for scaling read-heavy workloads on a primary, but here the primary is overloaded. Option C (enable cluster mode) is not suitable for a single-node setup and adds complexity; it is intended for partitioning data across multiple shards. Option D (decrease TTL) would reduce memory usage but may increase cache misses and does not address the CPU bottleneck; it could actually worsen performance by requiring more database reads.

272
MCQeasy

A company is running a MongoDB database on Amazon EC2. The database is experiencing high disk I/O latency. Which AWS service can be used to monitor the disk I/O metrics at the instance level?

A.Amazon RDS
B.Amazon CloudWatch
C.Amazon DynamoDB
D.Amazon S3
AnswerB

CloudWatch provides metrics like DiskReadBytes, DiskWriteBytes.

Why this answer

Amazon CloudWatch provides disk I/O metrics for EC2 instances. Option A is wrong because Amazon RDS is a managed database service. Option C is wrong because Amazon DynamoDB is a NoSQL database service.

Option D is wrong because Amazon S3 is an object storage service.

273
Multi-Selectmedium

Which TWO actions can help reduce Amazon RDS for MySQL replication lag between a primary instance and a read replica? (Choose two.)

Select 2 answers
A.Increase the allocated storage for the read replica.
B.Reduce the number of write-heavy DML statements on the primary.
C.Enable Multi-AZ on the primary instance.
D.Increase the instance size of the read replica.
E.Disable binary logging on the primary instance.
AnswersB, D

Fewer changes to replicate means less lag.

Why this answer

Reducing write-heavy DML on the primary (Option B) decreases the volume of changes to be replicated, directly reducing lag. Increasing the instance size of the read replica (Option D) provides more CPU and memory resources for applying changes from the binary log. Option A is incorrect because increasing allocated storage does not improve the replica's ability to apply changes; it only increases storage capacity.

Option C is incorrect because enabling Multi-AZ on the primary provides high availability but does not reduce replication lag. Option E is incorrect because binary logging is required for replication; disabling it would break replication.

274
MCQmedium

A company runs a critical application on Amazon RDS for PostgreSQL with a Multi-AZ deployment. The application experiences intermittent connection timeouts and slow query performance. The CloudWatch metrics show that the 'ReadLatency' and 'WriteLatency' metrics are elevated during peak hours. The 'CPUUtilization' is consistently below 30%, and 'DatabaseConnections' is within limits. The 'BurstBalance' for the gp2 storage is frequently dropping to 0%. The DB instance is a db.r5.large with 300 GB of gp2 storage. The company wants to resolve the latency issues without significant cost increase. Which solution should the company implement?

A.Add a read replica to offload read traffic.
B.Enable Performance Insights to identify the root cause.
C.Switch the storage type to io1 with 3000 provisioned IOPS.
D.Increase the allocated storage to 600 GB to increase baseline IOPS.
AnswerD

Larger gp2 volumes have higher baseline IOPS, reducing burst credit depletion.

Why this answer

Increasing the allocated storage to 600 GB increases the baseline IOPS of gp2 from 900 (at 300 GB) to 1800 (at 600 GB), reducing reliance on burst credits and resolving the latency issue. This is cost-effective compared to switching to io1 (Option C), which would incur higher costs for 3000 provisioned IOPS. Option A (adding a read replica) does not help with write latency, and Option B (enabling Performance Insights) only aids diagnosis, not resolution.

275
MCQhard

A company runs a critical application on Amazon RDS for PostgreSQL. The application team reports that the database occasionally becomes unresponsive for a few seconds. CloudWatch metrics show 'CPUSurplusCreditsCharged' and 'CPUSurplusCredits' are not 0. The instance is a db.t3.medium. What is the likely cause and how should it be fixed?

A.The instance is out of CPU credits and is being throttled; switch to a larger or non-burstable instance
B.Enable Enhanced Monitoring to diagnose the issue
C.Increase the allocated storage to improve I/O
D.The instance is experiencing a failover; enable Multi-AZ
AnswerA

Correct because T3 instances are burstable; if CPU credits are exhausted, the instance is throttled. Switching to a non-burstable or enabling unlimited mode resolves the issue.

Why this answer

T3 instances are burstable and use CPU credits. When credits are exhausted, they can use surplus credits, which incur charges. If the workload is consistently high, the instance may run out of credits and become throttled, causing unresponsiveness.

The fix is to switch to T3 unlimited mode (but that incurs charges) or use a non-burstable instance (e.g., M5). Option B is wrong because Enhanced Monitoring provides detailed OS-level metrics but does not prevent CPU credit exhaustion. Option C is wrong because increasing allocated storage does not affect CPU credits; it improves I/O performance.

Option D is wrong because enabling Multi-AZ provides high availability and failover but does not resolve CPU credit issues.

276
Multi-Selecthard

A company's Amazon Aurora MySQL DB cluster is experiencing a failover event. Which THREE metrics in CloudWatch should be examined to understand the cause of the failover?

Select 3 answers
A.ACUUtilization
B.ReadLatency
C.BinLogDiskUsage
D.DatabaseConnections
E.FailoverCount
AnswersA, D, E

High ACU utilization can trigger failover.

Why this answer

(ACUUtilization) is correct because high ACU utilization can indicate resource exhaustion (CPU/memory pressure) that may trigger a failover in Aurora. Option D (DatabaseConnections) is correct because a sudden spike or drop in connections could signal issues like connection exhaustion or application failures that lead to failover. Option E (FailoverCount) is correct because this metric directly tracks the number of failover events; examining the timestamp of the last increment helps correlate with the incident.

Option B (ReadLatency) is wrong because while high read latency can be a symptom, it is not a direct cause of failover; Aurora uses different mechanisms for read scaling. Option C (BinLogDiskUsage) is wrong because it relates to binary log storage for replication, not a direct trigger for failover.

277
MCQhard

A company uses Amazon RDS for SQL Server with Multi-AZ deployment. During a failover test, the application experienced a longer downtime than expected. Which monitoring metric should be reviewed to understand the failover duration?

A.FailoverTime
B.WriteLatency
C.DatabaseConnections
D.ReplicaLag
AnswerC

DatabaseConnections reflects the number of active connections. During a failover, connections are lost and then re-established. The period of low or zero connections approximates the failover duration, making it the best metric among the options.

Why this answer

The DatabaseConnections metric in Amazon CloudWatch tracks the number of active database connections. During a Multi-AZ failover, existing connections are dropped and new connections are blocked until the standby becomes the primary. By monitoring the time period when DatabaseConnections drops to zero or a low value, you can estimate the failover duration.

Options A (FailoverTime) is not a valid CloudWatch metric for RDS; the actual metric is 'Failover' which is a count, not a duration. WriteLatency may increase during failover but does not directly measure downtime. ReplicaLag applies to read replicas, not Multi-AZ failover.

Exam trap

Beware of non-existent metrics. 'FailoverTime' sounds plausible but is not a CloudWatch metric. The actual metric is 'Failover' (count).

278
Multi-Selecteasy

A database administrator is monitoring an Amazon RDS for PostgreSQL DB instance. The administrator notices that the DB instance is using more memory than expected. Which TWO metrics in Amazon CloudWatch can help diagnose memory usage?

Select 2 answers
A.NetworkReceiveThroughput
B.FreeableMemory
C.ReadIOPS
D.DatabaseConnections
E.SwapUsage
AnswersB, E

This metric shows the amount of available RAM.

Why this answer

The correct answers are FreeableMemory (B) and SwapUsage (E). FreeableMemory reflects the amount of available memory on the instance; a low value indicates high memory usage. SwapUsage tracks the amount of swap space being used; when memory is exhausted, the OS begins swapping, which directly indicates memory pressure.

The other metrics are unrelated to memory: NetworkReceiveThroughput (A) measures network traffic, ReadIOPS (C) measures I/O operations, and DatabaseConnections (D) shows the number of connections, not memory consumption.

279
MCQmedium

A company uses Amazon RDS for MySQL with Multi-AZ deployment. The database experiences intermittent write latency spikes. CloudWatch shows elevated 'WriteLatency' and 'WriteIOPS' but normal 'CPUUtilization'. Which is the MOST likely cause?

A.A parameter group change was applied without rebooting
B.The instance is exceeding the provisioned IOPS burst balance
C.A read replica is being used for write operations
D.Multi-AZ replication is causing synchronous writes to the standby
AnswerB

When EBS burst balance depletes, write latency spikes occur even with low CPU.

Why this answer

Intermittent write latency spikes with high WriteIOPS and normal CPU utilization indicate storage performance issues. For RDS MySQL using gp2 or io1 storage, exceeding the provisioned IOPS burst balance (for gp2) or provisioned IOPS (for io1) causes throttling and increased latency. Option A is incorrect because parameter group changes require a reboot and affect all operations, not just intermittent writes.

Option C is incorrect because read replicas are read-only and cannot be used for write operations. Option D is incorrect because Multi-AZ replication uses synchronous standby replication, which typically does not cause noticeable write latency spikes; latency from replication is usually minimal.

280
MCQeasy

A database administrator notices that an Amazon RDS for Oracle DB instance's CPU utilization is consistently above 90% during peak hours. The application is read-heavy. Which action can reduce CPU load?

A.Disable Multi-AZ to free up resources
B.Increase the allocated storage
C.Enable Performance Insights to optimize queries
D.Create a read replica and direct read traffic to it
AnswerD

Offloading reads to a read replica reduces CPU load on the primary instance.

Why this answer

Creating a read replica offloads read traffic from the primary instance, reducing CPU utilization. For a read-heavy workload, this is an effective scaling strategy. Option A is incorrect because disabling Multi-AZ does not free up significant resources and reduces availability.

Option B (increase storage) does not directly reduce CPU load; it addresses storage capacity. Option C (Performance Insights) helps identify performance bottlenecks but does not reduce CPU load by itself.

281
MCQeasy

An administrator notices that the CloudWatch metric 'ReadLatency' for an Amazon RDS for SQL Server instance has increased significantly. Which of the following is the most likely cause?

A.The DB instance is experiencing high CPU utilization.
B.The DB instance is running out of memory.
C.The DB instance is using a burstable instance class that has exhausted its credits.
D.The DB instance does not have enough provisioned IOPS.
AnswerD

Insufficient provisioned IOPS means the database cannot service I/O requests as fast as needed, causing queuing and increased read latency. This is the most likely cause.

Why this answer

High ReadLatency indicates that read operations are taking longer than expected. This is most directly caused by insufficient I/O throughput, i.e., not enough provisioned IOPS for the workload. When the database requests more IOPS than are provisioned, I/O operations queue up, increasing latency.

Option D is correct because insufficient provisioned IOPS is a primary cause of increased ReadLatency. Option A is incorrect: high CPU utilization can affect overall performance but does not directly cause read latency unless it leads to I/O contention. Option B is incorrect: running out of memory can cause disk swapping, which may increase latency, but it is less direct than I/O throttling.

Option C is incorrect: burstable instance classes (like T-series) use CPU credits; exhaustion affects CPU performance, not storage I/O latency.

282
MCQmedium

A developer is troubleshooting an application that uses Amazon DynamoDB. The application sometimes receives ProvisionedThroughputExceededException errors. The table has on-demand capacity mode. The errors occur in short bursts. What is the most likely cause?

A.The table has a low read/write capacity mode limit that needs to be increased.
B.The global secondary index (GSI) has a different throughput limit.
C.The table has reached the maximum provisioned throughput.
D.The request rate exceeds the partition's throughput capacity in a short burst.
AnswerD

On-demand can throttle if a single partition's throughput is exceeded.

Why this answer

On-demand capacity mode can handle up to the table's previous peak traffic. However, if traffic spikes suddenly, DynamoDB might throttle. Option D is correct because on-demand has a limit on the maximum throughput per partition.

Option A is wrong because indexes share the table's capacity. Option B is wrong because on-demand does not have provisioned limits. Option C is wrong because the table is on-demand, not provisioned.

283
MCQmedium

A company is running a production Amazon RDS for MySQL DB instance. The application team reports intermittent high latency and connection timeouts. A quick check shows that the DB instance's CPU utilization is consistently above 90% during peak hours. The database size is 500 GB and the instance class is db.r5.large. Which combination of actions should a database specialist take to resolve the performance issue?

A.Increase the allocated storage to 1 TB and enable auto-scaling for storage.
B.Scale up the DB instance to db.r5.xlarge and review slow query logs to optimize poorly performing queries.
C.Enable Multi-AZ and increase the allocated storage to 1 TB to improve I/O performance.
D.Enable Performance Insights and create a CloudWatch alarm to notify when CPU exceeds 80%.
AnswerB

Scaling up provides more CPU and memory; slow query logs help identify and fix inefficient queries.

Why this answer

Scaling up the DB instance to db.r5.xlarge provides more compute capacity, directly addressing high CPU utilization. Additionally, reviewing slow query logs helps identify and optimize inefficient queries that may be causing CPU spikes. Option A is incorrect because increasing storage does not improve CPU performance; it only addresses storage capacity or I/O issues.

Option C is incorrect because enabling Multi-AZ provides high availability but does not increase compute capacity, and increasing storage does not help with CPU. Option D is incorrect because Performance Insights helps diagnose performance issues but does not resolve them, and CloudWatch alarms only provide notifications without fixing the underlying problem.

284
Matchingmedium

Match each AWS database-related CLI command to its function.

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

Concepts
Matches

Creates a new RDS DB instance

Inserts or replaces an item in a DynamoDB table

Returns details about Redshift clusters

Creates an ElastiCache cache cluster

Lists manual and automated DB snapshots

Why these pairings

The correct matches pair each AWS CLI command with its corresponding database service. Common confusions involve swapping commands between RDS, DynamoDB, Redshift, and ElastiCache. Remember that each service has its own command namespace (e.g., 'aws rds', 'aws dynamodb', 'aws redshift', 'aws elasticache').

285
MCQhard

A company is running a MongoDB-compatible Amazon DocumentDB cluster with one writer and two readers. The application writes a large amount of data during batch processing, and after a batch completes, the writer's CPU is high, and the readers have significant replica lag. The team wants to reduce replica lag without affecting the batch performance. What should they do?

A.Change the storage type to Provisioned IOPS on all instances
B.Increase the instance size of the readers to improve apply throughput
C.Reduce the batch size to lower the write rate
D.Increase the instance size of the writer to handle the batch faster
AnswerB

Larger readers can apply oplog entries faster, reducing lag.

Why this answer

Replica lag in Amazon DocumentDB occurs when readers are unable to apply writes from the writer's oplog quickly enough. Increasing the instance size of the readers provides more CPU and memory resources, improving their apply throughput and reducing lag without affecting the writer's batch performance. Option A is incorrect because changing the storage type to Provisioned IOPS may improve I/O but does not directly address the reader's apply capacity.

Option C is incorrect because reducing batch size would lower the write rate and degrade batch performance, which the team wants to avoid. Option D is incorrect because increasing the writer's instance size may help the writer handle more writes, but it does not help readers apply those writes faster; it could even increase the write rate and worsen replica lag.

286
MCQhard

A company runs an Amazon Aurora MySQL DB cluster with one writer and two readers. They notice that one reader instance is consistently showing higher than expected lag. The other reader is fine. What is the most likely cause?

A.The writer instance is experiencing high write activity
B.There is a network connectivity issue between the writer and that reader
C.The reader instance is being used for heavy analytical queries
D.The reader instance has a different DB parameter group
AnswerC

Heavy read workload on a reader can cause replication lag.

Why this answer

An imbalanced workload on that reader can cause it to lag. Option A is wrong because writer load affects all replicas. Option B is wrong because network issues would affect both readers.

Option D is wrong because parameter group change would affect both readers if applied to cluster.

287
Multi-Selecteasy

Which TWO actions should be taken to troubleshoot high memory usage on an Amazon ElastiCache for Redis node? (Choose two.)

Select 1 answer
A.Monitor the Evictions CloudWatch metric.
B.Increase the maxmemory parameter to allow more memory usage.
C.Monitor CPUUtilization CloudWatch metric.
D.Enable cluster mode to distribute memory across shards.
E.Enable Reserved Memory parameter group setting.
AnswersA

Correct. Monitoring the Evictions metric directly indicates memory pressure because Redis evicts keys when it reaches the maxmemory limit. A high eviction count signals high memory usage.

Why this answer

Monitoring the Evictions CloudWatch metric is the only valid action among the options for troubleshooting high memory usage on an Amazon ElastiCache for Redis node. Option B is incorrect because the maxmemory parameter is determined by the node type and cannot be increased; it is fixed. Options C, D, and E are not direct troubleshooting steps for memory pressure.

Option C monitors CPU, not memory. Option D (enabling cluster mode) is a scaling action, not a troubleshooting step for an existing node. Option E (Reserved Memory) is a preventive setting but not a primary troubleshooting action.

288
MCQeasy

Refer to the exhibit. A DBA is troubleshooting a performance issue on an RDS for MySQL DB instance. The DBA runs the AWS CLI command shown. Based on the output, which of the following is a potential performance bottleneck?

A.The storage type is gp2, which may have limited IOPS performance.
B.The DB instance is not Multi-AZ, causing failover delay.
C.The DB instance status is 'available', meaning it is not accepting connections.
D.The engine version 8.0.27 has a known performance bug.
AnswerA

gp2 is burstable; under sustained load, performance may degrade.

Why this answer

The instance uses gp2 storage, which has burstable IOPS. If the burst balance is depleted, performance can degrade. The engine version is recent, Multi-AZ is not enabled, but that affects availability, not necessarily performance.

DB instance status is available so no issue there.

289
MCQhard

A company runs a critical MySQL database on Amazon RDS Single-AZ (db.m5.large) with 200 GB of Provisioned IOPS (io1) storage set to 3000 IOPS. The application team reports that write operations are occasionally slow. CloudWatch metrics show that the Write IOPS metric peaks at 3500 IOPS during the slowdowns, but the average is 2000 IOPS. The Read IOPS average is 500 IOPS. The queue depth metric occasionally spikes to 20. The storage configuration includes a 50 GB General Purpose SSD (gp2) log volume attached to the same RDS instance. Which change will MOST effectively resolve the write latency?

A.Change the storage type to gp3 with 3000 baseline IOPS.
B.Move the log volume to the same io1 volume to reduce I/O overhead.
C.Increase the provisioned IOPS on the io1 volume to 4000.
D.Enable Multi-AZ for failover protection.
AnswerC

Increasing provisioned IOPS to match peak demand (3500) gives headroom and reduces queue depth.

Why this answer

The io1 volume is provisioned at 3000 IOPS, but the workload bursts to 3500 IOPS, causing queue depth to spike. Increasing the provisioned IOPS to 4000 ensures that the volume can handle the peak without queuing. Option A is incorrect because changing to gp3 with 3000 baseline IOPS does not address the peak IOPS requirement; gp3 can burst but the consistent peak above baseline may still cause throttling.

Option B is incorrect because moving the log volume to the same io1 volume would mix I/O streams and could increase contention, not reduce it. Option D is incorrect because enabling Multi-AZ provides high availability and fails over to a standby, but does not increase IOPS capacity or resolve write latency.

← PreviousPage 4 of 4 · 289 questions total

Ready to test yourself?

Try a timed practice session using only Monitoring and Troubleshooting questions.