DVA-C03 practice questions
Free AWS Certified Developer – Associate practice, with shuffled choices and an explanation behind every answer. A little practice, a clearer next step.
Loading your practice…
From the videos
These questions come from the course videos. Information as of November 2026.
DVA-C03 sample questions
10 of the 188 questions, as plain text. Start a session above for shuffled choices, a score and the reason behind every choice.
The order consumer reads a standard SQS queue, and now and then it receives the same order twice, which creates two tickets. What should the developer do?
- Make the consumer idempotent, keyed by order ID
- Shorten the visibility timeout of the queue
- Turn on long polling for the consumer
- Add a second consumer to the same queue
Show the answer
Make the consumer idempotent, keyed by order ID
A standard queue delivers each message at least once, so the consumer must give the same result when an order comes back. “Shorten the visibility timeout of the queue” would make messages come back sooner, with even more repeated orders. “Turn on long polling for the consumer” would reduce empty responses, while repeated orders still arrive. And “Add a second consumer to the same queue” would process messages in parallel, with the same repeated orders.
Security requires that every request to the tickets bucket over plain HTTP is refused. What should the developer add?
- A bucket policy that requires TLS
- SSE-KMS as the default encryption
- A certificate from ACM on the bucket
- Automatic rotation of the KMS key
Show the answer
A bucket policy that requires TLS
A bucket policy can deny every request whose secure transport condition is false. “SSE-KMS as the default encryption” only protects stored data, not data on the network. “A certificate from ACM on the bucket” is used by services like CloudFront and load balancers, not attached to a bucket. And “Automatic rotation of the KMS key” would change the key material every year, with no effect on HTTP.
A Python library with native code works on the developer's laptop, but the zip function fails to load the library on Lambda, which runs on x86. What should the developer do?
- Raise the memory of the function
- Rely on the SDK of the runtime
- Add an environment variable with the path
- Package the wheels built for Linux on x86
Show the answer
Package the wheels built for Linux on x86
Libraries with native code must match the platform of the function, so the package needs the wheels built for Linux on that architecture. “Raise the memory of the function” would add memory and CPU, with the same wrong library. “Rely on the SDK of the runtime” only provides the AWS SDK, not other libraries. And “Add an environment variable with the path” would point to binaries that still do not match.
After the team adds DAX, reads that set ConsistentRead to true are as slow as before, while other reads are much faster. Why?
- The DAX cluster is too small for the load
- DAX passes these reads to DynamoDB
- The table needs more read capacity units
- The item cache was not warmed up yet
Show the answer
DAX passes these reads to DynamoDB
DAX passes strongly consistent reads to DynamoDB, without caching their results. “The DAX cluster is too small for the load” is unlikely, since the other reads are much faster. “The table needs more read capacity units” would not explain why only these reads skip the cache. And “The item cache was not warmed up yet” would only slow the first reads, not all of them.
A function writes two-gigabyte video files to its tmp folder while it processes them, and fails with a no space left error. What should the developer change?
- The memory setting of the function
- A layer that holds the video files
- The timeout of the function
- Its ephemeral storage
Show the answer
Its ephemeral storage
The tmp folder starts at five hundred twelve megabytes, and its ephemeral storage can go up to ten thousand two hundred forty megabytes. “The memory setting of the function” would add memory and CPU, not space in the tmp folder. “A layer that holds the video files” would only add read-only content within the package limits. And “The timeout of the function” would give more time, while the disk stays full.
A role in another account must decrypt files encrypted with a customer managed KMS key of AnyCompany Tickets. What must allow it?
- Only the IAM policy of the role in the other account
- The key policy, and the role's own IAM policy
- A bucket policy on the encrypted files
- An AWS managed key in place of it
Show the answer
The key policy, and the role's own IAM policy
The key policy must allow the other account, and that account must give the role permission to use the key. “Only the IAM policy of the role in the other account” would not be enough, since the key policy is the main control of a key. “A bucket policy on the encrypted files” would allow access to the objects, not the use of the key. And “An AWS managed key in place of it” is unable to be shared with another account through its key policy.
The ECR repository of the ticket service holds thousands of untagged images from past builds. The team wants them removed automatically after fourteen days. What should the developer add?
- Tag immutability on the repository
- Enhanced scanning on the repository
- A lifecycle policy for untagged images
- A weekly job that deletes every image
Show the answer
A lifecycle policy for untagged images
A lifecycle policy selects images by tag status, and expires the untagged ones after fourteen days. “Tag immutability on the repository” would protect tags from being reused, without deleting anything. “Enhanced scanning on the repository” would look for vulnerabilities, not old images. And “A weekly job that deletes every image” would delete the images in use, and needs a job to maintain.
A Python function uses only pure Python libraries. The team wants better price performance without changing the code. What should the developer change?
- The memory, to the minimum
- The architecture of the function, to arm64
- Provisioned concurrency for the function
- SnapStart for the function
Show the answer
The architecture of the function, to arm64
On the arm64 architecture, functions run on Graviton processors, built for better price performance. “The memory, to the minimum” would cut the CPU, and can make the function slower. “Provisioned concurrency for the function” would remove cold starts, for an extra charge. And “SnapStart for the function” only shortens cold starts, without lowering the cost of each run.
The payment function retries every failed call to the partner, including 400 Bad Request responses, which fail again on each attempt. What should the developer change?
- Retry only throttling, timeouts, and 5XX errors
- Retry at once, with no wait between attempts
- Raise the maximum number of attempts
- Switch the SDK to the adaptive retry mode
Show the answer
Retry only throttling, timeouts, and 5XX errors
An error that comes from the request itself fails again every time, while throttling, timeouts, and server errors can succeed later. “Retry at once, with no wait between attempts” would hit the partner even harder, with the same failures. “Raise the maximum number of attempts” would repeat the bad requests even more times. And “Switch the SDK to the adaptive retry mode” only adds client-side rate limiting, and still retries the bad requests.
A role in account A must read a bucket in account B. The bucket policy allows the role, but the role has no policy for S3, and requests are denied. What is missing?
- A new statement in the bucket policy for the role
- A trust policy on the role that names account B
- An identity-based policy on the role for S3
- An access key for a user in account B
Show the answer
An identity-based policy on the role for S3
Across accounts, both the resource-based policy and the caller's own policy must allow the action. “A new statement in the bucket policy for the role” would repeat what the bucket policy already allows. “A trust policy on the role that names account B” only says who can assume the role, not what it can do. And “An access key for a user in account B” would use long-term credentials instead of fixing the policy.
Original practice questions written for Cert Espresso, not real exam questions.