DVA-C02 is the AWS associate exam for the person writing the code rather than drawing the architecture. It assumes you already build on AWS with an SDK open; if you configure AWS more than you call it, SAA-C03 is the closer fit, and CLF-C02 is the cheaper place to start.
Development with AWS Services is the largest of its four domains, and it concentrates on what application code actually calls: Lambda, DynamoDB, API Gateway, S3 and the SDKs themselves. Security comes next, handled from inside an application, with identity and encryption done in code rather than in the console. Deployment covers shipping through a pipeline, and Troubleshooting and Optimization covers instrumenting what you have shipped well enough to debug it once it is live.
What is being tested is whether you can build against AWS's APIs rather than its console, so the questions below are written from the developer's side of that line: what the code does, what it is allowed to do, and what happens when it fails.
9 questions
Question 1 of 25
That system must let a diner cancel and immediately free the slot for others. What DynamoDB operation and condition fit?
Answer: B
A conditional delete ensures only the owning diner can cancel, and removing the item frees the composite key for a new booking.
Question 2 of 25
An SQS consumer needs more time to process a particularly large or slow message before it becomes visible again to other consumers. What should be adjusted for that specific message?
Answer: D
ChangeMessageVisibility lets a consumer extend the visibility timeout for a specific in-flight message it's still processing, preventing it from becoming visible to other consumers prematurely while genuinely still being worked on.
Question 3 of 25
An application ingests high-volume, real-time clickstream data and needs to process it as it arrives, rather than in scheduled batches. Which service is designed for this?
Answer: B
Kinesis Data Streams is built for real-time ingestion and processing of high-volume streaming data like clickstreams, letting consumers process records as they arrive rather than waiting for a batch window.
Question 4 of 25
That feature-flag service must roll a flag change out gradually and roll back automatically if errors rise. What AppConfig feature does this?
Answer: A
AppConfig deployment strategies control rollout pace and can roll back automatically when an associated alarm fires.
Question 5 of 25
An application's Lambda function needs to return a response to API Gateway that includes custom HTTP headers (like a CORS header) alongside the response body. What must the function's return value structure include?
Answer: C
For a proxy-style Lambda integration, API Gateway expects the function to return a structured object with statusCode, headers, and body fields - the headers field is exactly where CORS or other custom headers are set.
Question 6 of 25
A developer wants a Lambda function to be invoked every 15 minutes with no external event. What should be configured?
Answer: C
EventBridge scheduled rules invoke a function on a rate or cron expression independent of any data event.
Question 7 of 25
An SQS queue needs to guarantee messages are processed in the exact order they were sent, with no duplicate processing. What should be used?
Answer: D
FIFO queues specifically guarantee strict ordering (within a message group) and exactly-once processing, unlike standard queues which prioritize throughput and availability over strict order.
Question 8 of 25
A developer wants to trace a request as it flows through API Gateway, Lambda, and DynamoDB, identifying where latency is actually occurring across that chain. What should be enabled?
Answer: C
X-Ray traces individual requests end-to-end across multiple integrated services, visualizing exactly where time is spent - the right tool for pinpointing a specific bottleneck across a multi-service chain.
Question 9 of 25
A developer building a video platform needs uploaded videos transcoded into three resolutions in parallel, then a manifest generated once all three finish. What orchestration fits?
Answer: B
A Parallel state runs the three transcodes concurrently and proceeds to the manifest step only when all branches complete.
5 questions
Question 10 of 25
A developer wants CloudFront to be the only way to reach an S3 origin, blocking direct bucket URLs. What should be configured?
Answer: A
OAC lets CloudFront sign origin requests, and a bucket policy restricted to the distribution rejects direct access.
Question 11 of 25
A developer wants a KMS key using a public/private key pair, so external parties can encrypt data with a public key without needing AWS credentials, while only the application can decrypt with the private key. What KMS key type supports this?
Answer: D
Asymmetric KMS keys use a public/private key pair - the public portion can be distributed for external parties to encrypt data without AWS credentials, while only holders of the private key (managed by KMS) can decrypt.
Question 12 of 25
A developer must ensure a Lambda function's environment variables containing a config value are encrypted with a company-controlled key rather than the default. What should be set?
Answer: C
Lambda encrypts environment variables at rest and lets a customer managed key be specified for control over that encryption.
Question 13 of 25
An application's Lambda function needs to decrypt data encrypted with a KMS key owned by a different AWS account, as part of a legitimate cross-account architecture. What must be true for this to succeed?
Answer: C
Cross-account KMS access requires both sides to grant permission - the key's own policy in the owning account must allow the external principal, and that principal's own IAM policy must also permit the KMS action - a two-sided grant, not either side alone.
Question 14 of 25
A developer's API Gateway must accept requests only from the company's mobile app, not from arbitrary callers who obtain the endpoint. What is the appropriate mechanism?
Answer: C
Per-user token validation authenticates each request - an embedded API key is extractable from any client binary and identifies the app, not the user, and an unpublished URL is not a security control.
6 questions
Question 15 of 25
A developer's SAM template needs to define an EventBridge scheduled rule that triggers a Lambda function nightly. What SAM resource type or event source supports this without writing raw CloudFormation for the rule?
Answer: A
SAM provides a simplified Schedule event source type directly on a function's resource definition, letting a scheduled trigger be defined without hand-writing the underlying raw CloudFormation Events::Rule resource.
Question 16 of 25
That team's SAM template has a Lambda function referencing a local code directory. What sequence packages and deploys it?
Answer: A
sam build prepares the function artifacts and sam deploy packages and deploys the resulting stack - deploying the raw template without building skips artifact preparation.
Question 17 of 25
A developer's Lambda function needs a large shared dependency used by five other functions. What avoids bundling it five times?
Answer: C
A layer packages the dependency once and is attached to each function, keeping individual packages small.
Question 18 of 25
That team's ECS task definition references image tag 'latest', and a redeploy did not pick up the new image. Why?
Answer: D
A mutable 'latest' tag gives ECS no signal that anything changed - referencing an immutable tag or digest per build is what triggers a real rollout.
Question 19 of 25
A developer wants CloudFormation to fail early if a parameter value is outside an allowed set. What template feature enforces this?
Answer: A
Parameter constraints such as AllowedValues reject invalid input before the stack attempts any resource creation.
Question 20 of 25
An application's CodeBuild project needs access to a private npm registry requiring authentication during the build phase, without hardcoding the registry credential in buildspec.yml. What is the recommended approach?
Answer: D
Retrieving the credential from Secrets Manager or Parameter Store at build time keeps it out of the version-controlled buildspec.yml file entirely, the same discipline applied to any other runtime secret in this project's broader security practices.
5 questions
Question 21 of 25
An application's Lambda function's Duration metric shows a value very close to, but never exceeding, its configured timeout on every single invocation. What is the most likely explanation?
Answer: C
Duration consistently sitting near the timeout ceiling (even if technically never breaching it) is a real warning sign the function is close to failing - worth investigating whether the timeout needs raising or the function's actual work needs optimizing, rather than dismissing it as coincidental.
Question 22 of 25
An application's Step Functions execution fails at a specific state, and the developer wants to see exactly what input that state received and what error caused the failure. Where should this be reviewed?
Answer: D
A Step Functions execution's event history records the actual input, output, and error detail at each state transition - the definition file only shows the intended structure, not what actually happened during a specific real execution.
Question 23 of 25
A developer's application shows increased latency specifically on cold-started Lambda invocations for a function using a container image, compared to a similarly-sized zip-based function. What is a likely contributing factor?
Answer: C
Container images tend to be larger than an equivalent zip deployment package, and image size is a real factor in cold-start initialization time - worth investigating whether the image can be slimmed down, or whether Provisioned Concurrency is warranted if this path is genuinely latency-sensitive.
Question 24 of 25
A DynamoDB table is experiencing throttled requests during a traffic spike, and CloudWatch metrics show ConsumedWriteCapacityUnits nearing the table's provisioned limit uniformly across all partitions. What is a reasonable next step?
Answer: B
Uniform consumption near the provisioned limit across all partitions (as opposed to one partition being disproportionately hot) points at genuinely insufficient overall capacity, not a key-design problem - increasing capacity or moving to On-Demand mode is the direct fix for this specific pattern.
Question 25 of 25
A developer's Lambda function works locally but fails in AWS with 'Unable to import module'. What is the most likely cause?
Answer: C
This error means the runtime could not find a module the handler imports - almost always a dependency present locally but not bundled into the package or provided by a layer.
20 more free after signup, then the full 400-question bank for $12.
Get 20 more free questions