Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free Amazon AWS Certified Developer - Associate Exams DVA-C03 Exam Questions

Last updated: · 10 practice questions with answers and explanations

Page: 1 / 37 Total 543 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Development with AWS Services

Skill tested: Select asynchronous AWS service patterns to decouple components and absorb workload spikes.

An online retailer's checkout API currently calls an inventory service and then a slow shipment-planning service synchronously. Shipment planning can take several minutes during seasonal peaks, causing API timeouts and tying up application capacity. The retailer needs to accept orders quickly, preserve each accepted request for later processing, and retry transient shipment-planning failures without requiring the checkout service to remain available. The processing order among different orders is not important, and the team wants to minimize custom orchestration code. Which design best meets these requirements?

Correct Answer: C. Publish each accepted order to an Amazon SQS standard queue, and have a Lambda function consume messages with a configured visibility timeout and retry handling.
Explanation:

An SQS queue persists accepted orders independently of the checkout service and lets consumers process work asynchronously as capacity permits. Lambda event source mapping retries failed messages according to its behavior, while visibility timeout settings help prevent concurrent processing of the same message during normal execution. A synchronous invocation or API timeout adjustment still couples checkout latency and availability to shipment planning. DynamoDB polling adds custom coordination and repeated reads. EventBridge supports event routing, but direct Lambda invocation does not provide the same durable work-queue semantics for this workload.

Question 2

New Multiple answers

Topic: Development with AWS Services

Skill tested: Implement resilient AWS SDK calls with bounded exponential backoff and idempotent request handling.

A payment service uses the AWS SDK to call a downstream service that occasionally returns throttling errors and transient 5xx responses. A small number of requests have been charged twice after clients retried when they did not receive a response. The business requires recovery from transient faults while preventing duplicate charges, and it places a strict upper bound on how long a request may consume resources. Which TWO changes best satisfy these requirements? Select TWO.

Correct Answer: A. Attach a stable idempotency key to each logical payment and make the payment operation deduplicate requests using that key.; D. Retry transient throttling and server errors with exponential backoff and jitter, bounded by a maximum attempt count or elapsed-time limit.
Explanation:

Bounded exponential backoff with jitter reduces pressure on a throttled or recovering service while ensuring retries stop within the application's resource and latency budget. A stable idempotency key lets the receiving payment operation recognize retries of the same logical charge and avoid duplicate effects. Unlimited retries can exhaust resources and amplify an outage. Disabling retries sacrifices resilience to transient failures, while extending a connection timeout does not address duplicate effects. Generating a new key per attempt defeats deduplication.

Question 3

New Single answer

Topic: Development with AWS Services

Skill tested: Choose DynamoDB Streams and Lambda for processing ordered changes to individual records.

A financial application stores account balances in DynamoDB and must publish a balance-change event whenever a record is modified. Consumers need to observe the change records in order for each individual account, but changes for different accounts may be processed concurrently. The application team wants to avoid adding a separate polling process and needs to replay or inspect records only within the stream's available retention period. Which approach is most appropriate?

Correct Answer: D. Enable DynamoDB Streams with the required view type and process the stream using a Lambda event source mapping.
Explanation:

DynamoDB Streams captures item-level changes, and Lambda event source mappings process stream records while preserving ordering for records belonging to the same item or partition-key sequence. This matches the requirement for per-account ordering without requiring the application to poll and diff the table. A table scan is inefficient and can miss intermediate states between scans. SQS standard queues do not guarantee message ordering. Publishing only the latest value cannot reliably reconstruct every intermediate change.

Question 4

New Multiple answers

Topic: Security

Skill tested: Apply least-privilege IAM role permissions and secure, time-limited S3 object access.

A document-processing application runs on EC2 instances and stores generated reports in a private S3 bucket. Users authenticate to the application, which must let an authorized user download one specific report for a short period. The application must not expose AWS access keys to users, and instance permissions must not allow broad bucket access. Which TWO measures should the developer implement? Select TWO.

Correct Answer: C. Generate an S3 presigned URL for the authorized object with a short expiration and return that URL to the user.; E. Attach an instance profile role that allows only the required S3 object operation on the report bucket's relevant object ARN scope.
Explanation:

An EC2 instance profile supplies temporary credentials to the application without embedding long-lived keys. Restricting its policy to the required object actions and resource scope follows least privilege. A presigned URL gives a user temporary access to a specific object using the signing principal's permissions, without sharing AWS credentials; its expiration should match the short access window. Returning IAM keys exposes reusable credentials. Public access is not authorization, and a long-lived URL violates the time-limited requirement.

Question 5

New Single answer

Topic: Security

Skill tested: Use IAM role assumption for controlled cross-account AWS resource access.

A deployment tool runs in an engineering account and must upload artifacts to a dedicated S3 bucket in a production account. The organization prohibits long-lived credentials and requires the production account to control which external principals can assume deployment access. The deployment tool already has an execution role in the engineering account. Which configuration is the best fit?

Correct Answer: B. Create a production-account IAM role with a trust policy for the engineering execution role and an identity policy limited to the required S3 actions; allow the engineering role to call sts:AssumeRole.
Explanation:

Cross-account role assumption creates temporary credentials and lets the production account define both who may assume the role and what the assumed role can do. The trust policy identifies the engineering execution role, while the role's permissions limit access to the required S3 operations. The engineering role also needs permission to call sts:AssumeRole. Long-lived IAM user keys violate the stated policy. A bucket policy alone does not provide the controlled role session requested, and public writes are unsafe.

Question 6

New Multiple answers

Topic: Security

Skill tested: Separate application configuration from secrets using Parameter Store and Secrets Manager appropriately.

A service deployed in multiple environments reads a database endpoint, a feature threshold, and a database password at startup. Operators need to change the feature threshold without rebuilding the container. The database password must be encrypted, tightly permissioned, and rotated automatically by a supported integration. The service runs with an IAM task role, and the team wants to avoid embedding environment-specific values in the image. Which TWO choices meet these requirements? Select TWO.

Correct Answer: C. Store the feature threshold as an environment-specific Systems Manager Parameter Store parameter and grant the task role read access to that parameter.; D. Store the database password in AWS Secrets Manager, configure supported rotation, and grant the task role access only to the required secret.
Explanation:

Parameter Store is suitable for environment-specific configuration such as a feature threshold, and an IAM task role can retrieve only the needed parameter without rebuilding the image. Secrets Manager is designed for secret lifecycle management and supports configured rotation integrations; access can be restricted to the specific secret. Baking values into an image makes changes cumbersome and risks exposing secrets. An unencrypted, broadly accessible parameter is not an appropriate password store. Public S3 access violates the security requirement.

Question 7

New Single answer

Topic: Testing and Deployment

Skill tested: Manage immutable container image releases in Amazon ECR using image digests.

A team deploys a containerized Lambda function from Amazon ECR. During an incident, engineers discover that the tag `production` was moved to a newer image even though the function configuration had not changed. The team needs deployments to identify an exact image artifact and make rollback reproducible. Which release practice best addresses the problem?

Correct Answer: A. Enable ECR tag immutability for release tags and deploy a unique, immutable image tag or image digest for each release.
Explanation:

A unique immutable tag or image digest identifies the exact container image used by a release, supporting repeatable deployment and rollback. ECR tag immutability prevents an existing release tag from being repointed to different image content. Recording a mutable tag does not ensure that it still identifies the same artifact. Environment-specific mutable tags retain the same failure mode. Lambda container images are deployed from ECR, not directly from an S3 object URL.

Question 8

New Multiple answers

Topic: Testing and Deployment

Skill tested: Validate infrastructure changes with isolated AWS SAM deployments and automated tests.

A development team maintains a Lambda-based API using AWS SAM. Before merging infrastructure changes, it wants to catch template and packaging errors, then run integration tests against AWS services without modifying the shared production stack. The tests must exercise deployed resources, and the team wants each run to clean up its temporary environment. Which TWO actions best meet these goals? Select TWO.

Correct Answer: C. Deploy each test run to a uniquely named nonproduction stack, run integration tests against it, and delete the stack after testing.; D. Run AWS SAM template validation and build or package checks in the pipeline before deployment.
Explanation:

SAM validation and build or packaging checks catch structural and artifact problems early, before deployment. A uniquely named nonproduction stack provides real AWS integration coverage while isolating concurrent runs and protecting production. Deleting the temporary stack after tests controls resource accumulation. Deploying tests to production risks customer impact. Local unit tests cannot validate deployed IAM permissions and service integrations by themselves. A shared stack creates concurrency conflicts and skipping validation misses preventable errors.

Question 9

New Single answer

Topic: Troubleshooting and Optimization

Skill tested: Use CloudWatch Logs Insights to isolate application errors by request identifier.

A serverless API intermittently returns HTTP 500 responses. The application writes structured JSON logs to CloudWatch Logs, including `requestId`, `statusCode`, and `errorType`. Engineers have a request identifier from a customer report and need to identify the corresponding error records quickly across the relevant log group. They do not want to export the entire log group or alter application code. What should they do next?

Correct Answer: D. Use CloudWatch Logs Insights to query the log group, filter records by the requestId, and display the errorType and statusCode fields.
Explanation:

CloudWatch Logs Insights can query structured log events and filter by the known request identifier, allowing engineers to inspect relevant error fields without exporting all logs or changing code. Stored-bytes metrics do not identify individual requests. X-Ray traces are not created retroactively, and changing sampling cannot recover a trace that was not recorded. Logs Insights supports filtering structured JSON fields, so a full local export is unnecessary.

Question 10

New Single answer

Topic: Troubleshooting and Optimization

Skill tested: Diagnose Lambda throttling using concurrency metrics and configure appropriate concurrency capacity.

A Lambda function processes an API's bursty request traffic. Users report sporadic throttling even though the function's average duration and average request rate appear low. CloudWatch shows the account is near its concurrent execution quota, while the function's configured reserved concurrency is also lower than its peak demand. Other functions in the account need to retain capacity, and the team cannot simply raise the account quota immediately. What is the best next action?

Correct Answer: B. Review concurrent execution and throttling metrics, then allocate a deliberate reserved concurrency value within the account quota that protects this function while preserving capacity for other workloads.
Explanation:

Concurrent executions and throttling metrics help distinguish a function-level concurrency cap from account-wide capacity pressure. Reserved concurrency can protect capacity for a function and also caps its use, so it should be set deliberately within the account's available quota while leaving room for other workloads. Removing the reservation may expose the function to competition and does not increase the account quota. A function cannot reserve more than the account can provide. Increasing memory may affect execution duration and throughput but does not raise the account concurrency quota.