AWS Developer Associate · DVA-C02
DVA-C02 Practice Exam: 700 Questions with Explanations
Preparing for the AWS Certified Developer – Associate (DVA-C02) certification? CertCrack gives you 700 original practice questions mapped to the official DVA-C02 exam guide — development with AWS services (32%), security (26%), deployment (24%), and troubleshooting and optimization (18%). Every question includes a detailed explanation so you learn the why, not just the answer.
What's inside
- 700 original questions — written fresh for DVA-C02, mapped to the official exam objectives
- Detailed explanations on every question, including why wrong answers are wrong
- Full PDF included — download the complete question bank for offline study
- 3 months (90 days) of access to the interactive online question bank
- Free 30-question sample quiz and free sample PDF — no account needed to try
Try 30 sample questions
These are real samples from the DVA-C02 bank — the full version has 700 like these.
1. A developer wants to invoke a Lambda function over HTTPS without setting up API Gateway, for a low-traffic internal tool. Which feature should the developer use?
- An Application Load Balancer with a Lambda target group
- Amazon CloudFront with a custom origin
- Lambda function URLs, which provide a dedicated HTTPS endpoint with configurable auth (NONE or AWS_IAM)
- AWS AppSync
2. A team wants immutable deployments on Beanstalk but their deployment takes 20 minutes due to a large fleet. They want to keep the safety of immutable while reducing deploy time. What is a reasonable optimization?
- Add more instances to deploy faster
- Reduce fleet size via right-sizing, or accept the time as the cost of immutable safety — alternatively use rolling with additional batch for a faster but slightly less isolated deployment
- Switch to all-at-once, which is equally safe
- Immutable deploy time cannot be influenced
3. A developer assumes a role with the default session duration. Sixty minutes later the application starts receiving expired-token errors. Why?
- STS automatically renews the credentials in the background
- The role was deleted after one hour
- The temporary credentials expired; the application must call AssumeRole again for fresh credentials
- The credentials converted into permanent IAM user keys
4. A security review requires that a Lambda function's environment variables containing database credentials be encrypted with a customer managed KMS key rather than the default AWS managed key. How should the team comply?
- No action is needed; environment variables are never encrypted.
- Move the credentials to the function's /tmp storage, which uses customer managed keys.
- Store the credentials in AWS Secrets Manager and leave the environment variables as they are.
- Configure a customer managed KMS key on the function's environment variable encryption settings, so Lambda uses it instead of the default AWS managed key.
5. A team runs an A/B test of two application versions for a week, routing 50% of users to each, then permanently adopts the winner. Which deployment concept does this resemble and what distinguishes it from blue/green?
- It resembles blue/green's two-environment setup, but blue/green is a deployment safety technique with a quick cutover, whereas a week-long 50/50 split is an experimentation pattern, not a deployment strategy
- It is exactly canary deployment, which always runs for a week
- It is a rolling deployment with two batches
- It is an immutable deployment because two fleets exist
6. Which of the following is a managed policy?
- An AWS managed policy such as AmazonS3ReadOnlyAccess that AWS maintains and updates centrally
- An inline policy embedded directly in a single IAM user
- A bucket policy attached to an S3 bucket
- A permissions boundary document
7. A mobile app lets users sign in with Google and then upload photos directly to S3. Which STS operation gives the app temporary AWS credentials after Google authentication?
- AssumeRole
- GetSessionToken
- AssumeRoleWithSAML
- AssumeRoleWithWebIdentity
8. A team debates rolling vs. immutable for their Beanstalk application. Their top priority is the safest possible deployment and cost is a secondary concern. Their second priority is fast rollback. Which should they choose and why?
- Rolling, because it is the safest strategy available on Beanstalk
- All at once, because it completes fastest and therefore has the smallest failure window
- Rolling with additional batch, because it never provisions new instances
- Immutable, because the old fleet stays intact until the new fleet is verified, making rollback a simple traffic shift back
9. During flash-sale spikes, an application intermittently receives ProvisionedThroughputExceededException from DynamoDB. The exceptions clear on their own within seconds, and overall consumed capacity stays within provisioned limits. What is the most appropriate client-side handling?
- Let the AWS SDK retry throttled requests with exponential backoff and jitter, and use Contributor Insights to find any hot keys driving the spikes
- Disable SDK retries so failures surface immediately and operators can raise capacity manually
- Switch all reads to strongly consistent to reduce the number of retryable errors
- Increase the Lambda function timeout so requests wait longer for capacity
10. A Lambda function needs 2 vCPUs for a compute-heavy task. What should the developer know about Lambda CPU allocation?
- CPU is fixed at 1 vCPU regardless of memory
- CPU can be set independently via the console
- CPU scales proportionally with memory; at about 3 GB the function gets roughly 2 vCPUs, so there is no separate CPU setting
- Graviton must be enabled for 2 vCPUs
11. What is the difference between an identity pool's authenticated role and unauthenticated role?
- The authenticated role serves signed-in users with broader permissions, while the unauthenticated role serves guests with minimal permissions
- They are the same role under two names
- The unauthenticated role receives administrative permissions
- Roles are optional in identity pools
12. A developer runs a database migration that must execute exactly once per deployment, after the new code is in place but before traffic shifts. In Beanstalk, where should this go?
- A commands: entry, which runs on every instance on every deploy including scaling events
- In the Dockerfile CMD
- As a cron job on the instances
- A container_command in .ebextensions, which runs once per deployment on the instance (leader-only for multi-instance via leader election)
13. During load testing, an API's p99 Latency metric climbs to 2.5 seconds while IntegrationLatency for the same period stays under 200 ms. The integration is a Lambda function that logs show completes quickly. Where should the developer investigate?
- The Lambda function's cold starts, because IntegrationLatency excludes them
- The DynamoDB table the Lambda reads from, since slow queries inflate API Gateway latency
- Processing that happens inside API Gateway before or after the integration call, such as the Lambda authorizer, request/response mapping templates, or throttling delays
- The client's network connection, because the Latency metric is measured at the client's device
14. An EKS cluster runs microservices that need access to DynamoDB and S3 without storing any AWS keys in the cluster. Which approach is correct?
- Create an IAM user for each pod and mount its keys as a secret
- Store long-lived access keys in the cluster's Secrets Manager
- Use IAM roles for service accounts (IRSA), mapping Kubernetes service accounts to IAM roles through the cluster's OIDC provider
- Use the account's root credentials in a DaemonSet
15. A developer publishes a Lambda version after testing. A teammate asks whether the code of that published version can be edited later to fix a bug. What is the correct answer?
- Published Lambda versions are immutable; the developer must publish a new version with the fix
- Yes, versions can be edited in the console at any time
- Only the $LATEST version is immutable
- Versions auto-update when the underlying runtime is patched
16. A developer wants messages that fail processing after 5 attempts to be isolated for inspection. What should be configured?
- A FIFO queue
- A dead-letter queue with maxReceiveCount=5 on the source queue's redrive policy
- Long polling
- Message timers
17. A developer wants to prevent any stack update from replacing a production database, while still allowing other updates. Which is the right control?
- Setting the stack to REVIEW_IN_PROGRESS
- A stack policy denying Update:Replace on the database resource
- DeletionPolicy: Delete on the database
- Removing the database from the template
18. A startup wants the cheapest, lowest-latency option for a simple Lambda-backed JSON API with JWT authorization and no need for usage plans. Which should they choose?
- REST API with caching enabled
- HTTP API, which offers lower latency and cost than REST APIs with JWT authorizer support
- WebSocket API
- Application Load Balancer
19. A team defines their API in an OpenAPI 3.0 specification and wants to import it into API Gateway to create the methods and models automatically. What should they do?
- Manually recreate each method
- Use CloudFormation only for Lambda
- Use the API Gateway import API or console import, which creates resources and methods from the OpenAPI definition
- Export from CloudWatch
20. Two warehouse scanners can update the same inventory item's quantity simultaneously. The team added a versionNumber attribute and wants an update to succeed only if the version has not changed since it was read, retrying on conflict. Which DynamoDB feature implements this optimistic locking?
- Strongly consistent reads, which serialize concurrent writers
- TransactWriteItems across the item and a lock record
- Enabling DynamoDB Streams to detect conflicting writes after the fact
- An UpdateItem with a ConditionExpression such as versionNumber = :expected, incrementing the version on each successful write
21. A code review finds AWS access keys committed in the application source. What is the complete remediation?
- Leave them — the repository is private
- Rotate the keys next quarter
- Add a code comment warning future developers
- Remove the keys from the code immediately, revoke and rotate them, replace them with IAM roles or Secrets Manager, and scan the repository history for other exposures
22. What can a resource policy on an API Gateway REST API do?
- Replace the need for authorizers entirely
- Issue bearer tokens to clients
- Encrypt request payloads
- Allow or deny invocation based on source IP, VPC/VPC endpoint, or AWS principal — evaluated before authorizers run
23. A pipeline execution is stuck: the deploy action has been running for an hour against an unhealthy environment, and the team wants to stop it immediately without deleting the pipeline. What should they do?
- Disable the pipeline's source trigger so no new executions start
- Stop the pipeline execution from the pipeline's execution history in the console or CLI
- Delete the deploy action from the pipeline definition to cancel the run
- Wait for the action to time out, since executions cannot be stopped manually
24. A developer enables caching on a REST API method to reduce backend load. A client reports seeing another user's data in a cached response. What is the MOST likely cause?
- Caching is not supported on REST APIs
- The TTL is too long
- The cache key does not include the Authorization header or user-identifying parameter, so responses are shared across users
- Lambda concurrency is too low
25. A developer needs to copy a DynamoDB table's data to another account for migration. Which approach is simplest and serverless?
- Manual retyping
- DAX replication
- Email CSVs
- Export the table to S3, then import from S3 into the destination table (DynamoDB import from S3)
26. A worker queue processes image-resize jobs. Occasionally a corrupt image makes the consumer crash; the message becomes visible again, gets picked up, and crashes the consumer in an endless cycle, blocking healthy messages behind it in a FIFO queue. How should the developer isolate these poison messages?
- Increase the visibility timeout to 12 hours so the poison message stays hidden longer
- Configure a redrive policy on the source queue with a maxReceiveCount (for example 3), routing repeatedly-failing messages to a dead-letter queue for inspection
- Enable content-based deduplication so the corrupt image is only delivered once
- Shorten the message retention period so poison messages expire quickly
27. A message in an SQS queue is picked up by a consumer but processing takes longer than the visibility timeout. What happens?
- The message becomes visible again and may be delivered to another consumer, risking duplicate processing
- The message is deleted
- The queue is paused
- The message is encrypted
28. A team wants deployments where a failed new version never touches production traffic, and they want the old environment preserved for instant rollback. They run on EC2 with a load balancer. Which strategy should they choose?
- Blue/green: run the new version on a separate (green) environment, shift traffic only after validation, keep blue for instant rollback
- Rolling: update instances in place behind the load balancer
- All-at-once: fastest path to the new version
- Rolling with additional batch: adds capacity during the update
29. How does Secrets Manager rotate credentials for an RDS database?
- By running manual SQL supplied by the developer each time
- From the developer's laptop over a VPN
- With a Lambda rotation function — AWS supplies templates — that updates both the secret and the database password in a coordinated multi-step flow
- Through IAM policy changes alone
30. A company requires cryptographic verification that only approved, signed Lambda deployment packages can run in production. Which feature should the developer use?
- Environment variable encryption
- VPC endpoints
- Function URLs with AWS_IAM auth
- AWS Lambda code signing with AWS Signer, which validates signatures before allowing deployment
Get full access
One payment unlocks the online question bank and the full PDF.
$10 · 3 months access
Get full access Also available on Udemy Download the free sample PDF (30 questions)15-day money-back guarantee (before 25% of questions attempted). PDF downloads are non-refundable.
Exam facts: AWS Certified Developer – Associate (DVA-C02)
- Exam: AWS Certified Developer – Associate (DVA-C02)
- Cost: $150 USD
- Duration: 130 minutes
- Questions: 65 — multiple choice and multiple response (50 scored, 15 unscored)
- Passing score: 720 (scaled score of 100–1,000)
- Validity: 3 years
Frequently asked questions
How long do I get access?
Three months (90 days) from purchase, covering both the interactive online bank and the full PDF download. Access can be extended.
Is there a free trial?
Yes — a free 30-question sample quiz and a free sample PDF are available with no account required, so you can judge the quality before paying.
Are these questions like the real DVA-C02 exam?
All 700 questions are mapped to the official DVA-C02 exam objectives, written in the same style and difficulty as the real exam.
Can I study offline?
Yes. Your purchase includes the complete question bank as a downloadable PDF for offline study.
What is the refund policy?
Full access is refundable within 15 days, or before 25% of the questions have been attempted — whichever comes first. Downloaded PDFs are non-refundable.
How much does the DVA-C02 exam cost?
The AWS Certified Developer – Associate exam costs $150 USD.
How many questions are on the DVA-C02 exam?
65 questions in 130 minutes — multiple choice and multiple response. 50 questions are scored and 15 are unscored trial questions, and you can't tell which is which during the exam.
What is the passing score for DVA-C02?
720 on AWS's scaled score range of 100 to 1,000. Scoring is compensatory — you need to pass the exam overall, not each section.
How long is the Developer Associate certification valid?
Three years. Before it expires, you recertify by passing the current version of the exam or a higher-level AWS exam.
Where can I practice for the DVA-C02 exam for free?
Right here on CertCrack. Start with the free 30-question sample quiz and the free sample PDF on this page — no account needed — and read the free Developer Associate study guidebook. When you're ready for the full bank, this page gives you every practice question with detailed explanations for $10.