DVA-C02 Exam Domain Deep Dive: Troubleshooting & Optimization

TL;DR
- DVA-C02 has four domains, and "Troubleshooting and Optimization" is only 18% of them. Development with AWS Services (32%) and Security (26%) carry more than half the score, so a troubleshooting deep dive on its own won't get you to 720.
- It's 65 questions in 130 minutes, USD 150 for associate level, pass mark 720/1000. Four weeks at roughly 10 hours a week is enough if you already ship Lambda functions against a real table in us-east-1.
- Drill three things before anything else: IAM policy evaluation order, DynamoDB conditional writes plus throttling behaviour, and Lambda timeout/retry semantics per invocation type. Most of the questions I had to reason through came from those three.
Domain weights, fees, and whether you should book at all
The official exam guide splits DVA-C02 into four domains, and the weights are nowhere near equal.
| Domain | Weight | What it looks like on the page |
|---|---|---|
| Development with AWS Services | 32% | Lambda handlers, DynamoDB access patterns, API Gateway integrations, S3/SQS/SNS/SES from code, KMS encryption |
| Security | 26% | IAM policies and roles, Cognito, KMS, secrets handling, cross-account access |
| Deployment | 24% | SAM/CDK/CloudFormation, CodePipeline, CodeDeploy, blue/green and canary, environment configuration |
| Troubleshooting and Optimization | 18% | CloudWatch metrics and Logs Insights, X-Ray, retries and timeouts, memory sizing, caching layers |
Roughly twelve questions land in the optimization domain. That's the part this article's keyword points at, and it's why prep posts over-weight it. In practice, those scenario questions lean on facts you picked up in the other three domains — a "function is slow under load" question is really asking whether you understand Lambda memory-to-CPU scaling or DynamoDB partition behaviour.
The exam: 65 questions, 130 minutes, mix of single-answer and multiple-response, scored 100–1000 with 720 to pass. Associate exams are USD 150 as I write this in 2026-03; AWS sets that fee and does adjust it, so check the certification page rather than trusting a blog post. You can sit it at a test centre or online-proctored. Retakes require a 14-day wait, and the credential is valid three years.
When not to book it yet. If you've never deployed a Lambda that talks to a real database, this exam reads like trivia. The questions describe symptoms and expect you to recognise which service produces them, and that recognition comes from having broken something yourself. Also skip it if you're heading for SAA-C03 as an infra person — the overlap is real but the emphasis is different, and paying USD 150 twice in one month to discover that stings. And if your job only needs you to push CloudFormation stacks all day, the certificate isn't your bottleneck.
A four-week plan that survives an on-call week
I studied in the gaps around a rotation, which meant some days were 40 minutes and some were zero. A plan with slack beats a heroic weekend every time.
| Week | Focus | Output you can point at |
|---|---|---|
| 1 | Lambda, API Gateway, DynamoDB basics | A SAM app in us-east-1 doing CRUD against a real table |
| 2 | Security: IAM, Cognito, KMS | A Cognito user pool gating an API, plus one deliberately broken policy |
| 3 | Deployment: CloudFormation, CodeDeploy, pipelines | Blue/green deploy of the week-1 app |
| 4 | Troubleshooting plus timed practice | Two timed 65-question runs and a notebook of every wrong answer |
Keep the sandbox in one region. us-east-1 is the cheapest place to experiment and most doc examples match it, which matters when a sample ARN doesn't work because it points at eu-west-1.
Tear it down nightly if you're paying personally. A single m5.xlarge dev box plus a NAT Gateway left running for four weeks adds up fast on a personal account, and you'll spend more energy worrying about it than studying.
# confirm which identity your CLI is actually using
aws sts get-caller-identity
# deploy the SAM app
sam build && sam deploy --guided --region us-east-1
# inspect the real timeout and memory of a function
aws lambda get-function-configuration
--function-name orders-api
--region us-east-1
--query '{Timeout:Timeout,Memory:MemorySize,Runtime:Runtime}'
That last command returns a small JSON blob. If `MemorySize` is 128 and `Timeout` is 3, you're looking at the service defaults — which is exactly the setup the exam uses when it describes "intermittent timeouts under load".
Book the slot after week two, not before. Booking on day one creates panic-study; booking at week two gives you a real deadline with room to push it once if work explodes.
## High-yield traps: IAM evaluation, DynamoDB writes, Lambda lifecycle
**IAM.** An explicit deny wins over everything. A resource-based policy that grants access does not override an identity-based deny, and the exam loves the case where an S3 bucket policy allows a cross-account role but the role's own policy never grants `s3:GetObject`. Effective permission is the union of identity and resource policies, minus any deny, minus any permissions boundary or SCP intersection. Draw that once as a Venn diagram and you'll stop missing it.
**DynamoDB.** Conditional writes fail with `ConditionalCheckFailedException`. That's not a server error — your code should treat it as a normal branch and return a 409, not retry it. Throttling shows up as `ProvisionedThroughputExceededException` on provisioned capacity and `RequestLimitExceeded` on on-demand; the SDK retries with jittered exponential backoff, which is why your logs show latency spikes instead of hard failures. Hot partitions cause most of it, and the fix is a better partition key or DAX, not a bigger table.
**Lambda.** Default timeout is 3 seconds, and when it fires the log line is literally:
Task timed out after 3.00 seconds
Retry behaviour depends entirely on how the function was invoked. Synchronous calls (API Gateway, ALB) get no retry at all. Asynchronous invocations get two retries before the event goes to a DLQ or destination. Stream sources like Kinesis keep retrying until the record expires. That asymmetry gets asked in at least three disguises.
```bash
# find the timeouts you didn't notice
aws logs start-query
--log-group-name /aws/lambda/orders-api
--start-time 1770000000 --end-time 1770086400
--query-string 'fields @timestamp, @message | filter @message like /Task timed out/ | sort @timestamp desc | limit 20'
--region us-east-1
## Field notes: the 403 that took 40 minutes
At 02:14 on 2026-02-11, a self-hosted CI runner started failing every deploy step that touched S3. The error wasn't the one we expected:
An error occurred (InvalidSignatureException) when calling the PutObject operation:
Signature expired: 20260211T104512Z is now earlier than 20260211T105130Z (20260211T105630Z)
The first configuration mistake was mine. I read "signature" and went straight to IAM, widening the instance role to `s3:*` on `*`. Nothing changed, because a signature-format failure never reaches IAM evaluation — the request is rejected before the authoriser looks at policies. That's the lesson the exam keeps probing: `InvalidSignatureException` / `SignatureDoesNotMatch` is a credentials-and-canonical-request problem, `AccessDenied` is a permissions problem.
Diagnosis took two commands. Comparing the runner's clock against the STS response header showed a drift of just over six minutes, left behind when the VM had been suspended and resumed that evening:
```bash
date -u
curl -sI https://sts.us-east-1.amazonaws.com | grep -i '^date:'
sudo chronyc makestep
Anything past five minutes of skew and SigV4 starts rejecting requests. We forced a chrony step, confirmed both timestamps matched to the second, and the pipeline went green on the next run. Verification was simple: rerun the same job twice, then check `aws sts get-caller-identity` still resolved to the expected role ARN. The permanent fix was a systemd health check that restarts chronyd if drift exceeds 60 seconds.
Leave a Reply