AWS Certified Developer Associate DVA-C02 Practice Question
An e-commerce startup runs a checkout microservice as an AWS Lambda function invoked by Amazon API Gateway. During seasonal promotions, the 95th-percentile latency for the checkout API rises sharply as request volume increases. CloudWatch metrics confirm that function duration grows with concurrency, but the average memory utilization remains well below the allocated quota. Before changing configuration or architecture, the development team wants detailed timing information for each invocation to identify exactly where time is being spent. Which action should the team take first to collect the necessary data?
Enable active tracing with AWS X-Ray to gather detailed execution traces for each invocation.
Redesign the workflow to decouple processing steps by introducing an Amazon SQS queue.
Increase the function's memory allocation to give each invocation more CPU resources.
Add an in-memory or external cache to reduce repeated data-fetch operations.
Enabling active tracing with AWS X-Ray for the Lambda function records a segment for each invocation, capturing sub-segment timing for initialization, invocation, and any downstream calls. The generated trace map and timelines let engineers see whether latency is dominated by code execution, cold starts, or external services. With concrete data, they can decide whether to increase memory, add caching, or refactor specific calls. Adjusting memory, decoupling with Amazon SQS, or adding a cache might help, but doing so before collecting traces risks fixing the wrong problem without evidence.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is AWS X-Ray, and how does it assist in analyzing Lambda function performance?
Open an interactive chat with Bash
What are cold starts, and how can AWS X-Ray help identify them?
Open an interactive chat with Bash
How does concurrency impact AWS Lambda performance, and what does memory utilization indicate?
Open an interactive chat with Bash
AWS Certified Developer Associate DVA-C02
Troubleshooting and Optimization
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .