Skip to content
AWS Certified Developer – Associate (DVA-C03) Exam Prep

Lesson 4 of 4 · 13 min

x
4/4

Troubleshooting and Optimization (22%)

Video lesson: DVA-C03 Domain 4: Troubleshooting and Optimization

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.

TaskStatement
4.1Assist in a root cause analysis
4.2Apply logging, monitoring, and observability best practices
4.3Optimize 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

SymptomLikely CauseFix
ThrottlingException, 429, ProvisionedThroughputExceededRequest rate above quota or capacityBackoff with jitter; raise capacity or quota
AccessDenied / 403Missing IAM or resource policy permission, or KMS key accessCheck the role, policy and key policy
Lambda "Task timed out"Slow dependency, no NAT for internet, too little memoryCheck VPC egress; raise memory or timeout
API Gateway 502 / 504Malformed Lambda proxy response; integration timeoutReturn statusCode and body; speed up back end
SQS messages processed twiceVisibility timeout shorter than processing timeRaise timeout; make consumers idempotent
Deployment failedCloudFormation events, CodeDeploy hook logs, CodeBuild logsRead 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

NeedHowNote
Structured loggingJSON log lines with request ID, user action and stateLambda JSON log format, log levels
Custom metricsEmbedded metric format in logs, or PutMetricDataHigh resolution down to 1 second
AlertsCloudWatch alarms to SNS; EventBridge rules for eventsQuota usage, deployment completions
TracingOpenTelemetry (ADOT) or X-Ray SDK; annotations are indexedX-Ray SDKs in maintenance mode
Service viewCloudWatch Application Signals; Lambda InsightsLatency, errors, SLOs
Health checksALB target health, ECS container checks, EKS liveness and readiness probesReplace 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

LeverWhat It DoesWhen
Lambda memoryMore memory gives more CPUCPU-bound or slow functions
Provisioned concurrencyPre-initialized environmentsCold starts hurt latency
Reserved concurrencyCaps and guarantees a function's concurrencyProtect downstream databases
Connection poolingRDS Proxy; reuse clients outside the handlerLambda to relational databases
Thread poolsBounded pools, timeouts, async I/OContainers and EC2 apps
EC2 Auto ScalingTarget tracking on a load metricVariable 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

  1. Retry throttled calls instantly in a loop. Exponential backoff with jitter.
  2. Filter X-Ray traces on metadata fields. Use annotations; they are indexed.
  3. Short polling an empty SQS queue constantly. Long polling.
  4. Opening a new DB connection per invocation. Reuse clients; RDS Proxy.
  5. Raising the Lambda timeout to fix a VPC hang. Add a NAT gateway or endpoint.
  6. 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

  1. AWS Certified Developer – Associate exam page — checked Nov 30, 2026

Check your understanding

  • Count ERROR lines per minute across a Lambda log group.Show answer

    Answer

    CloudWatch Logs Insights.
  • Find which downstream call makes one API slow.Show answer

    Answer

    Distributed tracing.
  • SQS messages processed twice by slow workers.Show answer

    Answer

    Increase the visibility timeout.
  • Lambda floods an RDS database with connections.Show answer

    Answer

    RDS Proxy.
  • First requests after idle periods are slow.Show answer

    Answer

    Provisioned concurrency.

Next step: take a DVA-C03 practice exam

You have reached the end of the course. Take practice exam 1 without notes, check your score by domain, then go back to the lessons for your weakest domain before the next exam. There are 10 exams with 650 questions in all, and every answer is explained.

Previous

Progress is saved in this browser.

Finish Course