DVA-C02 Troubleshooting and Optimization Practice Question
A company runs a Node.js application on AWS Elastic Beanstalk. The application is experiencing high latency. The developer suspects the database queries are slow. Which step should the developer take first to diagnose the issue?
⚠ Common exam trap
DVA-C02 often tests the principle of diagnosing before acting, with distractors that suggest immediate fixes like migration or scaling without evidence.
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
✓
Enable enhanced health reporting and monitor CloudWatch metrics for database connection time.
The first step should be to enable enhanced health reporting and monitor CloudWatch metrics for database connection time. This provides visibility into the application's performance and helps identify if the database is indeed the bottleneck.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Migrate the database to Amazon DynamoDB for better performance.
Why it's wrong here
Migrating a relational database to Amazon DynamoDB is a significant architectural change, requiring extensive refactoring of application code and data models. This option is premature because the root cause of the performance issue has not been identified; the problem might not even stem from the database type itself. Undertaking such a large-scale migration without proper diagnosis is costly, time-consuming, and may not resolve the actual performance bottleneck.
- ✓
Enable enhanced health reporting and monitor CloudWatch metrics for database connection time.
Why this is correct
Elastic Beanstalk's enhanced health reporting provides detailed system and application metrics, including crucial database connection statistics, directly to Amazon CloudWatch. Monitoring "database connection time" specifically allows for direct diagnosis of latency issues between the application instances and the database. This approach provides actionable data to pinpoint whether the database itself, network latency, or application-level connection pooling is the bottleneck, enabling targeted resolution.
- ✗
Add database indexing to improve query performance.
Why it's wrong here
While database indexing can significantly improve the performance of specific queries, it is a targeted optimization that should only be applied after identifying the exact slow queries. Indiscriminately adding indexes can consume additional storage, slow down write operations, and may not address the actual performance bottleneck if the issue is, for example, high database connection latency or inefficient application code. Diagnosis of specific query patterns is a prerequisite for effective indexing.
- ✗
Increase the instance size to improve performance.
Why it's wrong here
Increasing the instance size (scaling up) for the Elastic Beanstalk environment primarily provides more CPU, memory, and network bandwidth to the application servers. This approach treats the symptom by throwing more resources at the problem without identifying the root cause. If the bottleneck is database latency, inefficient queries, or external service calls, larger application instances will not resolve the underlying issue and will only lead to increased operational costs without a proportional performance gain.
Go deeper
Related to this question
About these practice questions
Courseiva writes every DVA-C02 question from scratch — 1,135 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official Amazon Web Services exam blueprint
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.