Question 1,401 of 724
DVA-C02 Troubleshooting and Optimization Practice Question
A developer is troubleshooting a slow-performing Amazon RDS for MySQL database. Which TWO actions should the developer take to improve query performance?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Increase the instance size to provide more CPU and memory.
Increasing the instance size provides more CPU and memory, which can improve query processing speed. Option D is correct because enabling the slow query log allows you to identify and analyze poorly performing queries so you can optimize them. Option A is incorrect: while deleting unused indexes reduces write overhead, indexes typically improve read performance, so removing them would not help with slow queries. Option B is incorrect: Multi-AZ deployment is for high availability and failover, not for improving read performance; read replicas would be more appropriate. Option E is incorrect: deleting binary log files frees storage but does not directly improve query performance.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Delete unused indexes to reduce write overhead.
Why it's wrong here
Removing unused indexes primarily reduces write amplification and storage footprint, but it does not directly accelerate the SELECT queries that are likely causing the slowness. If the indexes are truly unused, their absence won't affect read performance, and if any of the slow queries actually rely on them, dropping them could force full table scans and make performance worse. The bottleneck is more likely resource saturation or a suboptimal query plan, not index overhead.
- ✗
Enable Multi-AZ deployment for better read performance.
Why it's wrong here
Enabling Multi-AZ deploys a standby replica in a different Availability Zone and provides automatic failover for high availability, but that standby does not serve any read traffic. Because the primary instance continues to handle all queries, the additional replica does not increase read throughput or reduce server load. For horizontal read scaling, you would need to create one or more Read Replicas and route traffic to them, which is a different feature.
- ✓
Increase the instance size to provide more CPU and memory.
Why this is correct
Scaling up to a larger instance class directly addresses the symptoms by giving the database engine more vCPUs and more memory. With additional memory, the InnoDB buffer pool can cache more data and index pages, reducing disk I/O, while extra CPU accelerates query execution, sorting, and joins. This is an appropriate immediate mitigation when CloudWatch metrics show high CPU utilization or high swap usage, though it doesn't fix inefficient queries.
- ✓
Enable the slow query log to identify poorly performing queries.
Why this is correct
Enabling the slow query log causes RDS to record queries that exceed a configurable execution-time threshold, making it possible to pinpoint exactly which statements are consuming the most time. This is a critical diagnostic step because it turns a vague 'slow database' complaint into a concrete list of queries to analyze with EXPLAIN for missing indexes or poorly written joins. It is the right first step before making structural changes to the schema or instance.
- ✗
Delete the binary log files to free up storage.
Why it's wrong here
Binary log files support replication, point-in-time recovery, and some monitoring features; deleting them frees storage space, but the reported problem is slow query performance, not a full or nearly full disk. Unless the database is erroring due to insufficient free space, removing binlogs will have no effect on query latency and may actually disable the ability to perform point-in-time recovery if deletion is not done through the managed retention settings. Storage pressure should be addressed by scaling the allocated storage or modifying backup retention, not by manually deleting logs.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Last reviewed: Jun 20, 2026
This DVA-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DVA-C02 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.