DVA-C02 Troubleshooting and Optimization Practice Question
Which TWO actions can help reduce latency for a web application hosted on EC2 instances behind an Application Load Balancer? (Select TWO.)
⚠ Common exam trap
DVA-C02 often tests the misconception that adding AZs or scaling instance size reduces latency, when those address availability and capacity, not network round-trip time.
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
✓
Use Amazon CloudFront as a content delivery network.
Option B is correct because Amazon CloudFront caches content at edge locations closer to end users, reducing round-trip time and offloading requests from the ALB and EC2 origin, which directly lowers latency for the web application. Option E is correct because ALBs natively support HTTP/2, and enabling it allows multiplexed streams over a single TCP connection, reducing connection overhead and improving page load latency for clients. Option A is not necessarily correct because a larger instance type increases compute capacity but does not inherently reduce network latency. Option C is incorrect because disabling keep-alive forces new TCP/TLS handshakes per request, increasing latency. Option D is incorrect because using multiple Availability Zones improves availability and fault tolerance, not latency.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Increase the EC2 instance size to a larger type.
Why it's wrong here
Increasing the EC2 instance size primarily provides more compute resources, such as CPU, memory, and potentially network bandwidth *within* the instance. While this can improve the application's processing speed and ability to handle more requests concurrently, it does not directly address network latency caused by the physical distance between the user and the server, or the overhead of establishing network connections. Latency is often dominated by network propagation delay, not server processing time, unless the instance is severely under-provisioned and experiencing CPU/memory bottlenecks.
- ✓
Use Amazon CloudFront as a content delivery network.
Why this is correct
Amazon CloudFront, a global content delivery network (CDN), significantly reduces latency by caching static and dynamic content at edge locations worldwide. When a user requests content, CloudFront serves it from the nearest edge location, minimizing the physical distance data must travel. This reduces the round-trip time (RTT) between the user and the content source, resulting in faster load times and an improved user experience compared to fetching all content directly from the origin server in a single AWS region.
- ✗
Disable keep-alive connections on the ALB.
Why it's wrong here
Disabling keep-alive connections (also known as persistent connections) on the Application Load Balancer (ALB) would force a new TCP three-way handshake for every HTTP request. This constant connection establishment and teardown introduces significant overhead, consuming more network resources and increasing the overall latency per request. Keep-alive connections are designed to reuse an existing TCP connection for multiple requests, thereby reducing latency by eliminating repetitive setup costs. Therefore, disabling them would worsen, not reduce, latency.
- ✗
Use multiple Availability Zones for the ALB.
Why it's wrong here
Deploying an Application Load Balancer (ALB) across multiple Availability Zones (AZs) primarily enhances fault tolerance and high availability. If one AZ experiences an outage, traffic can seamlessly failover to healthy targets in other AZs. However, this configuration does not inherently reduce network latency for individual user requests, as the ALB still operates within a specific AWS region, and users' physical distance to that region remains unchanged. Latency reduction typically involves moving content closer to the user geographically.
- ✓
Enable HTTP/2 on the Application Load Balancer.
Why this is correct
Enabling HTTP/2 on the Application Load Balancer (ALB) significantly reduces latency by allowing multiple requests and responses to be multiplexed over a single TCP connection. Unlike HTTP/1.1, which often requires multiple connections or suffers from head-of-line blocking, HTTP/2 streams requests concurrently, minimizing connection setup overhead and improving resource utilization. This results in faster page loads, especially for web applications that fetch many small assets, as it avoids the latency associated with establishing new connections for each resource.
Visual reference
Go deeper
Related to this question
About these practice questions
This DVA-C02 question is part of Courseiva's 1,135-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam 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.