Troubleshooting and Optimization (22%)
Domain 4 is 22% of the scored content of the AWS Certified Developer – Associate (DVA-C03) exam. AWS facts were checked against current AWS documentation in November 2026.
| Task | Statement |
|---|---|
| 4.1 | Assist in a root cause analysis |
| 4.2 | Apply logging, monitoring, and observability best practices |
| 4.3 | Optimize applications by using AWS services and features |
Overview
Domain 4: Troubleshooting and Optimization AWS Certified Developer – Associate (DVA-C03): root cause analysis, observability and performance
Welcome to Domain 4 of the AWS Certified Developer Associate exam, DVA-C03: Troubleshooting and Optimization. It is 22 percent of the scored content, about 11 of the 50 scored questions, up from 18 percent in DVA-C02.
Task 4.1 is root cause analysis: debugging code and integrations, interpreting metrics, logs and traces, querying logs and troubleshooting failed deployments.
Task 4.2 is observability: structured logging, custom metrics, notification alerts, tracing and health checks.
Task 4.3 is optimization: concurrency, memory and compute, messaging, caching and finding bottlenecks.
Each task now includes using A I tools to analyze errors and find optimizations.
Amazon CloudWatch appears in almost every question.
The key: gather evidence from metrics, logs and traces before you change anything.
Exam key takeaway: Domain 4 tests reading metrics, logs and traces to find root causes, instrumenting code for observability, and tuning concurrency, memory, messaging and caching.
4.1 Assist in a root cause analysis
Reading Common Errors Task 4.1 · Match the symptom to the cause and the fix
| Symptom | Likely Cause | Fix |
|---|---|---|
| ThrottlingException, 429, ProvisionedThroughputExceeded | Request rate above quota or capacity | Backoff with jitter; raise capacity or quota |
| AccessDenied / 403 | Missing IAM or resource policy permission, or KMS key access | Check the role, policy and key policy |
| Lambda "Task timed out" | Slow dependency, no NAT for internet, too little memory | Check VPC egress; raise memory or timeout |
| API Gateway 502 / 504 | Malformed Lambda proxy response; integration timeout | Return statusCode and body; speed up back end |
| SQS messages processed twice | Visibility timeout shorter than processing time | Raise timeout; make consumers idempotent |
| Deployment failed | CloudFormation events, CodeDeploy hook logs, CodeBuild logs | Read the first failure event |
Task 4.1 is root cause analysis, starting with error messages. Throttling errors, H T T P 429 or provisioned throughput exceeded, mean the request rate is above a quota or capacity. Retry with backoff and jitter, and raise capacity or the quota.
Access denied, or 403, means a missing permission in the role, a resource policy or a K M S key policy.
A Lambda task timed out error often means a slow dependency, a function in a V P C with no N A T or endpoint, or too little memory.
API Gateway 502 errors often come from a malformed Lambda proxy response, and 504 errors from the integration timing out.
S Q S messages processed twice usually mean the visibility timeout is shorter than processing time. Raise it, and make consumers idempotent.
For failed deployments, read the first failure in CloudFormation stack events, CodeDeploy lifecycle hook logs or CodeBuild build logs.
Exam key takeaway: Throttling needs backoff or capacity, access denied needs policies, timeouts need egress, memory or faster dependencies, 502s need proper proxy responses, and duplicates need longer visibility.
Querying Logs, Traces and AI Help Task 4.1 · Find the evidence quickly
- Logs Insights: CloudWatch Logs Insights queries log groups with commands such as fields, filter, stats and sort, for example counting errors in 5-minute bins.
- Metrics: Metrics show where it hurts: Lambda errors, duration and throttles, iterator age for streams, and the age of the oldest S Q S message.
- Traces: Traces show the service map and a timeline for each request, revealing the slowest or failing downstream call.
- Integration issues: For integration issues, check the event shape, permissions, timeouts and retries, then inspect and redrive messages from dead-letter queues.
- CloudWatch investigations: CloudWatch investigations use A I to correlate metrics, logs, traces and recent changes and suggest likely root causes during incidents.
- AI in the IDE: In the I D E, Kiro can explain errors and stack traces and propose fixes, which you verify before applying.
Exam key takeaway: Query with Logs Insights, read the right metrics, follow traces to the slow call, check event shapes and DLQs, and use CloudWatch investigations and Kiro for AI-assisted analysis.
4.2 Apply logging, monitoring, and observability best practices
Building Observability into Code Task 4.2 · Logs, metrics, alerts, traces and health checks
| Need | How | Note |
|---|---|---|
| Structured logging | JSON log lines with request ID, user action and state | Lambda JSON log format, log levels |
| Custom metrics | Embedded metric format in logs, or PutMetricData | High resolution down to 1 second |
| Alerts | CloudWatch alarms to SNS; EventBridge rules for events | Quota usage, deployment completions |
| Tracing | OpenTelemetry (ADOT) or X-Ray SDK; annotations are indexed | X-Ray SDKs in maintenance mode |
| Service view | CloudWatch Application Signals; Lambda Insights | Latency, errors, SLOs |
| Health checks | ALB target health, ECS container checks, EKS liveness and readiness probes | Replace unhealthy targets |
Task 4.2 is observability. Write structured J S O N logs with request I Ds, user actions and state, using Lambda's J S O N log format and log levels.
Emit custom metrics with the embedded metric format inside log lines, which needs no extra A P I calls, or with PutMetricData, at resolutions down to one second.
Alert with CloudWatch alarms that notify S N S, and EventBridge rules for events such as deployment completions or Service Quotas usage approaching limits.
Trace with OpenTelemetry through the A W S Distro, or the X-Ray S D K. Annotations are indexed for filtering, metadata is not. The X-Ray S D Ks and daemon have been in maintenance mode since February 2026, so prefer OpenTelemetry for new code.
CloudWatch Application Signals gives a ready view of latency, errors and S L Os per service, and Lambda Insights adds function-level system metrics.
Monitor workload health with load balancer target health checks, E C S container health checks, and Kubernetes liveness and readiness probes.
Exam key takeaway: Log structured JSON, emit EMF metrics, alarm through SNS and EventBridge, trace with OpenTelemetry, view services in Application Signals, and use health checks and probes.
4.3 Optimize applications by using AWS services and features
Concurrency, Memory and Compute Task 4.3 · Make code faster and cheaper under load
| Lever | What It Does | When |
|---|---|---|
| Lambda memory | More memory gives more CPU | CPU-bound or slow functions |
| Provisioned concurrency | Pre-initialized environments | Cold starts hurt latency |
| Reserved concurrency | Caps and guarantees a function's concurrency | Protect downstream databases |
| Connection pooling | RDS Proxy; reuse clients outside the handler | Lambda to relational databases |
| Thread pools | Bounded pools, timeouts, async I/O | Containers and EC2 apps |
| EC2 Auto Scaling | Target tracking on a load metric | Variable traffic |
Task 4.3 is optimization. Lambda memory also sets C P U, so raising memory often makes functions faster and can lower cost. Power tuning finds the best setting.
Provisioned concurrency removes cold starts for latency-sensitive functions, and SnapStart speeds up start-up for supported runtimes.
Reserved concurrency caps a function, which protects downstream systems such as databases from too many connections.
Reuse connections: create clients outside the handler, and put R D S Proxy in front of relational databases to pool connections.
In containers and EC2 apps, use bounded thread pools with timeouts and asynchronous I O.
And EC2 Auto Scaling with target tracking adds capacity as load grows.
Exam key takeaway: Tune Lambda memory, remove cold starts with provisioned concurrency or SnapStart, cap with reserved concurrency, pool connections with RDS Proxy, bound thread pools, and auto scale EC2.
Messaging, Caching and Bottlenecks Task 4.3 · Efficient messaging, fewer repeated calls, and finding the slow part
- SQS efficiency: Optimize S Q S with long polling, waiting up to 20 seconds, and batch send, receive and delete, which cut empty receives and cost.
- SNS fan-out: With S N S fan-out, use subscription filter policies so each consumer gets only relevant messages, and raw message delivery to skip the envelope.
- Caching: Cache repeated reads with ElastiCache, DAX, CloudFront or the API Gateway cache, with T T Ls that match how fresh data must be.
- Find bottlenecks: Find bottlenecks with CloudWatch metrics, Application Signals and traces, looking at 99th percentile latency, throttles and queue age.
- Right-size: Right-size with Compute Optimizer recommendations for Lambda and EC2, and Lambda power tuning, based on measurements rather than guesses.
- AI optimization help: A I tools can point out hot paths, inefficient code and unused resources, but benchmark every change they suggest.
Exam key takeaway: Long-poll and batch SQS, filter SNS, cache with the right TTL, find bottlenecks in p99 latency, throttles and queue age, right-size with Compute Optimizer, and benchmark AI suggestions.
Review
Exam Distractors: What to Reject Fixes that treat the symptom or add cost without evidence
- Retry throttled calls instantly in a loop. Exponential backoff with jitter.
- Filter X-Ray traces on metadata fields. Use annotations; they are indexed.
- Short polling an empty SQS queue constantly. Long polling.
- Opening a new DB connection per invocation. Reuse clients; RDS Proxy.
- Raising the Lambda timeout to fix a VPC hang. Add a NAT gateway or endpoint.
- Calling PutMetricData for every request. Embedded metric format.
Exam key takeaway: Reject instant retries, filtering on trace metadata, constant short polling, new connections per call, timeout bumps for VPC egress problems, and PutMetricData on every request.
Where current AWS differs from the exam guide
- The AWS X-Ray SDKs and daemon entered maintenance mode on February 25, 2026 and reach end of support on February 25, 2027; the X-Ray service continues, and AWS recommends OpenTelemetry for instrumentation.
References
- AWS Certified Developer – Associate exam page — checked Nov 30, 2026
Check your understanding
Count ERROR lines per minute across a Lambda log group.Show answerHide answer
Answer
CloudWatch Logs Insights.Find which downstream call makes one API slow.Show answerHide answer
Answer
Distributed tracing.SQS messages processed twice by slow workers.Show answerHide answer
Answer
Increase the visibility timeout.Lambda floods an RDS database with connections.Show answerHide answer
Answer
RDS Proxy.First requests after idle periods are slow.Show answerHide answer
Answer
Provisioned concurrency.