Amazon AWS Certified Developer - Associate DVA-C02 Exam Dumps, Practice Test Questions

100% Latest & Updated Amazon AWS Certified Developer - Associate DVA-C02 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!

Amazon AWS Certified Developer - Associate DVA-C02 Premium Bundle
$79.97
$59.98

AWS Certified Developer - Associate DVA-C02 Premium Bundle

  • Premium File: 653 Questions & Answers. Last update: Nov 12, 2026
  • Training Course: 430 Video Lectures
  • Study Guide: 1091 Pages
  • Latest Questions
  • 100% Accurate Answers
  • Fast Exam Updates

AWS Certified Developer - Associate DVA-C02 Premium Bundle

Amazon AWS Certified Developer - Associate DVA-C02 Premium Bundle
  • Premium File: 653 Questions & Answers. Last update: Nov 12, 2026
  • Training Course: 430 Video Lectures
  • Study Guide: 1091 Pages
  • Latest Questions
  • 100% Accurate Answers
  • Fast Exam Updates
$79.97
$59.98

Amazon AWS Certified Developer - Associate DVA-C02 Practice Test 12

Question 110

A stateless containerized checkout API stores shopping-cart state only in a process dictionary and loses carts when traffic shifts to a new task. Which engineering change best addresses the underlying issue?

  1. Detect or validate the documented compression encoding and decompress safely before schema validation and parsing.
  2. Persist the authorized cart in an appropriately keyed durable store or scoped distributed session service.
  3. Use supported partial batch response or bisect handling where applicable and idempotent downstream writes.
  4. Redesign keys to distribute writes across suitable high-cardinality identifiers while supporting documented lookup patterns.

Explanation

Correct Answer

B:

Persist the authorized cart in an appropriately keyed durable store or scoped distributed session service. It directly addresses the case cause (Application state is tied to one transient compute instance rather than a shared state contract.) and should be verified by: The same authorized cart survives container replacement and remains isolated from other shopper identities.

Incorrect Answers

A:

That change addresses a Lambda processor receives records compressed by an upstream service but attempts to parse the raw compressed bytes as UTF-8 JSON text; it would not repair this incident.

C:

That change addresses a Lambda stream consumer processes an exceptionally large Kinesis batch and repeats previously successful records after one record triggers a runtime exception; it would not repair this incident.

D:

That change addresses a DynamoDB table partitions all tenant activity by one static calendar-day key and hot writes throttle despite spare overall capacity; it would not repair this incident.

Question 111

A support API exposes full customer card details from DynamoDB even though agents need only last four digits and a reference code. Select TWO complementary measures that correctly repair and validate this failure.

  1. Return full records to support agents and ask them not to read unneeded fields.
  2. Review the caller IAM policy together with an SNS topic policy granting only the intended cross-account principal.
  3. An agent sees only the permitted masked representation, and a request for restricted fields is denied.
  4. The client refuses an invalid certificate and transfers the payload only through the intended encrypted endpoint.
  5. Return an allowlisted projection with approved masking and enforce least-privilege access for support roles.

Explanation

Correct Answers

C:

An agent sees only the permitted masked representation, and a request for restricted fields is denied. This is the observable result required before accepting the correction.

E:

Return an allowlisted projection with approved masking and enforce least-privilege access for support roles. The underlying cause is: The response model does not enforce data minimization and permits sensitive fields beyond the support purpose.

Incorrect Answers

A:

Return full records to support agents and ask them not to read unneeded fields. That shortcut conflicts with the stated requirement.

B:

That corrective action is for a different case: A Lambda function cannot publish to an SNS topic in another account although the execution role allows sns:Publish. It does not resolve this incident.

D:

This would validate a different case: A developer encrypts a sensitive payload at rest with an S3 bucket setting but sends that payload over an unencrypted partner HTTP connection. It does not verify the outcome required here.

Question 112

After resolving the following incident, which ongoing safeguard most directly prevents recurrence? A Lambda service logs detailed failures but has no alarm tied to failed business transactions, so the on-call team learns about a payment outage from customers.

  1. Test API Gateway proxy response envelopes rather than testing only direct Lambda return values.
  2. Log safe Region and resource identifiers and test cross-Region configuration in staging.
  3. Periodically test alarm thresholds, subscription delivery and escalation ownership independently of logs.
  4. Monitor cache hit rate, staleness and downstream load under realistic warm and cold invocations.

Explanation

Correct Answer

C:

Periodically test alarm thresholds, subscription delivery and escalation ownership independently of logs. This safeguards against a recurring cause: Diagnostic log entries are not connected to actionable operational monitoring and delivery notifications.

Incorrect Answers

A:

That safeguard addresses another case: An API Gateway REST integration returns HTTP 502 while its Lambda invocation logs show a successful handler return with malformed proxy response fields. It is not the control for this recurring failure.

B:

That safeguard addresses another case: A Lambda request makes an SDK call that succeeds in one Region but fails with ResourceNotFound in another because its client uses a default Region. It is not the control for this recurring failure.

D:

That safeguard addresses another case: A Lambda image endpoint loads an expensive configuration database record for every invocation even though the record changes only once per hour. It is not the control for this recurring failure.

Question 113

After resolving the following incident, which ongoing safeguard most directly prevents recurrence? A Lambda unit test mocks an EventBridge event as a flat payload but the actual event carries fields under detail and the deployed handler crashes.

  1. Keep versioned sample event fixtures and test both valid and invalid producer payloads.
  2. Run automated destructive-change guards and human review for stateful resource diffs.
  3. Rehearse traffic shifting and rollback alarms with representative failure conditions before production deployment.
  4. Require clean-build checks and artifact provenance during release promotion.

Explanation

Correct Answer

A:

Keep versioned sample event fixtures and test both valid and invalid producer payloads. This safeguards against a recurring cause: The test fixture does not represent the service's documented event envelope.

Incorrect Answers

B:

That safeguard addresses another case: A new application version deploys with AWS SAM, but the CloudFormation change set includes removal of a production DynamoDB table unexpectedly. It is not the control for this recurring failure.

C:

That safeguard addresses another case: A CodeDeploy Lambda rollout shifts all traffic to a new version at once and customers encounter failures before an alarm can stop the release. It is not the control for this recurring failure.

D:

That safeguard addresses another case: A CodePipeline source revision succeeds but a CodeBuild project produces an artifact containing files from an earlier unclean local build. It is not the control for this recurring failure.

Question 114

A team applies a reviewed fix for this situation: An S3 application uses SSE-KMS but a Lambda download fails because its role can call GetObject but cannot decrypt with the customer-managed key. Which observed outcome would most convincingly validate the fix?

  1. An approved encrypted object is readable while decrypting another customer's objects remains denied.
  2. The running task calls only permitted AWS actions and continues working after the old static keys are revoked.
  3. Cross-tenant prefix probes fail while an authorized tenant can export only its own records.
  4. An ID token cannot invoke the protected action and a correctly scoped access token can invoke only its intended operation.

Explanation

Correct Answer

A:

An approved encrypted object is readable while decrypting another customer's objects remains denied. This verifies the result of grant narrowly scoped KMS decrypt access through the applicable IAM and key policy controls for the intended role.

Incorrect Answers

B:

This would verify another situation: An ECS application contains long-lived IAM access keys in environment variables even though its task has an assigned execution role. It does not validate the current case.

C:

This would verify another situation: A multi-tenant data export Lambda assumes an S3 key prefix from the request body and permits tenant A to select tenant B's export prefix. It does not validate the current case.

D:

This would verify another situation: A Lambda API accepts an ID token in place of the OAuth access token used for protected API scopes and grants an unintended operation. It does not validate the current case.

Question 115

After resolving the following incident, which ongoing safeguard most directly prevents recurrence? A service encrypts every application response with one reusable symmetric key and logs that key during debugging to make support easier.

  1. Test secret refresh, role access, and artifact scans whenever deployment configuration changes.
  2. Exercise authenticated-but-unauthorized requests separately from missing or invalid token tests.
  3. Test URL, body, header and storage-prefix tenant tampering in every export release.
  4. Scan redacted logs and review cryptographic key permissions in every release that handles sensitive values.

Explanation

Correct Answer

D:

Scan redacted logs and review cryptographic key permissions in every release that handles sensitive values. This safeguards against a recurring cause: A cryptographic secret is exposed through operational telemetry and is not protected by access separation.

Incorrect Answers

A:

That safeguard addresses another case: An application embeds its payment gateway token directly in a Lambda environment variable managed in plain text by several developers. It is not the control for this recurring failure.

B:

That safeguard addresses another case: An API Gateway route sends every authenticated request to a Lambda with broad IAM permissions, and the handler never checks the user's permitted action. It is not the control for this recurring failure.

C:

That safeguard addresses another case: A multi-tenant data export Lambda assumes an S3 key prefix from the request body and permits tenant A to select tenant B's export prefix. It is not the control for this recurring failure.

Question 116

After resolving the following incident, which ongoing safeguard most directly prevents recurrence? A Lambda function cannot publish to an SNS topic in another account although the execution role allows sns:Publish.

  1. Maintain role-specific response-shape and sensitive-data redaction regression fixtures.
  2. Apply response redaction and negative secret fixtures to all error paths, including integration failures.
  3. Test key rotation and decryption authorization with versions and denied identity fixtures.
  4. Test identity and resource policy intersections for all cross-account integrations.

Explanation

Correct Answer

D:

Test identity and resource policy intersections for all cross-account integrations. This safeguards against a recurring cause: Cross-account access may also require the target topic's resource policy to allow the approved caller.

Incorrect Answers

A:

That safeguard addresses another case: A support API exposes full customer card details from DynamoDB even though agents need only last four digits and a reference code. It is not the control for this recurring failure.

B:

That safeguard addresses another case: An API error handler includes access tokens and raw service exceptions in JSON responses sent to all callers. It is not the control for this recurring failure.

C:

That safeguard addresses another case: A DynamoDB application encrypts customer values with a shared manually managed data key stored as plaintext in its repository. It is not the control for this recurring failure.

Question 117

An order service increments a DynamoDB inventory balance twice after a transient network retry of the same purchase request. Which engineering change best addresses the underlying issue?

  1. Validate the function's subnet and security groups, database endpoint resolution and permitted inbound database port.
  2. Use an idempotency record and conditional or transactional update bound to a stable purchase request ID.
  3. Review generated changes, replace broad permissions with the minimum actions and resources, and run approved security and behavior tests.
  4. Update the producer event contract or the rule's detail-type pattern and confirm the intended event bus and target permissions.

Explanation

Correct Answer

B:

Use an idempotency record and conditional or transactional update bound to a stable purchase request ID. It directly addresses the case cause (Uncertain success and non-idempotent updates allow a repeated request to apply the stock change more than once.) and should be verified by: Repeated delivery of one purchase changes inventory once and independent purchases remain correctly counted.

Incorrect Answers

A:

That change addresses a Lambda function runs in a private VPC subnet and cannot reach its intended RDS endpoint, although the stored database username and password are correct; it would not repair this incident.

C:

That change addresses a developer accepts Amazon Q Developer's suggested IAM and SDK code without reviewing it, and a generated call requests permission to unrelated customer data; it would not repair this incident.

D:

That change addresses an EventBridge rule meant to match a new payment event stops invoking its Lambda target after the producer changes detail-type capitalization; it would not repair this incident.

Question 118

A service pins a private certificate file inside a Lambda deployment package and does not redeploy when the certificate expires. Which technical dependency most directly explains this behavior?

  1. An authorization decision for one method and resource is incorrectly generalized to privileged routes.
  2. Cross-account role assumption requires both caller permission and a target role trust policy that admits the principal.
  3. Certificate lifecycle and deployment artifact lifetimes are incorrectly coupled without monitoring or rotation.
  4. The execution role trust relationship does not permit the service running the state machine to assume it.

Explanation

Correct Answer

C:

Certificate lifecycle and deployment artifact lifetimes are incorrectly coupled without monitoring or rotation. The corresponding fix is to use a supported certificate-management lifecycle and verified rotation or deployment process for the authenticated endpoint.

Incorrect Answers

A:

This diagnosis addresses another AWS case: An API Gateway Lambda authorizer returns an Allow policy for an entire API wildcard after validating permission for one read-only resource. The dependency here is different.

B:

This diagnosis addresses another AWS case: A microservice assumes an IAM role in a second AWS account but receives AccessDenied despite a permissive identity policy in the caller account. The dependency here is different.

D:

This diagnosis addresses another AWS case: A Step Functions execution fails to invoke Lambda because the workflow role trusts EC2 instead of the Step Functions service principal. The dependency here is different.

Question 119

A team applies a reviewed fix for this situation: An application emits asynchronous SQS events but tests check only the initial HTTP success response, missing a downstream poison-message failure. Which observed outcome would most convincingly validate the fix?

  1. A successful test creates the intended downstream state while a poison message routes through the defined failure path.
  2. Injected failures during initial traffic shift stop promotion and restore the intended prior version.
  3. The deployed package hash matches the artifact tested in CI and dependency behavior remains stable.
  4. A deliberately failing integration test blocks production promotion and preserves the last approved artifact.

Explanation

Correct Answer

A:

A successful test creates the intended downstream state while a poison message routes through the defined failure path. This verifies the result of add event-driven integration fixtures that assert downstream side effects, retries and failure destinations after controlled delivery.

Incorrect Answers

B:

This would verify another situation: A CodeDeploy Lambda rollout shifts all traffic to a new version at once and customers encounter failures before an alarm can stop the release. It does not validate the current case.

C:

This would verify another situation: A Lambda handler deployment is approved from a green build, but the packaged source contains an unexpected dependency version introduced by a branch merge. It does not validate the current case.

D:

This would verify another situation: A CodePipeline action promotes an artifact to production when build succeeds even though integration tests for the same revision are still running. It does not validate the current case.

Question 120

A CI workflow publishes Docker images under one mutable tag and the ECS service pulls a different image during a multi-AZ scale-out. Select THREE complementary measures that correctly repair and validate, and prevent recurrence of this failure.

  1. Publish an immutable digest and deploy that exact digest in the reviewed task definition revision.
  2. New and existing tasks in the deployment resolve to the same intended container image digest.
  3. Continuously overwrite the production image tag while rolling updates are in progress.
  4. A successful test creates the intended downstream state while a poison message routes through the defined failure path.
  5. Externalize reviewed stage-specific settings through approved parameters or AWS AppConfig and validate them before launch.
  6. Validate image provenance and reject release configurations that rely only on mutable tags.

Explanation

Correct Answers

A:

Publish an immutable digest and deploy that exact digest in the reviewed task definition revision. The underlying cause is: Mutable artifact references allow tasks in one nominal release to resolve to different image content.

B:

New and existing tasks in the deployment resolve to the same intended container image digest. This is the observable result required before accepting the correction.

F:

Validate image provenance and reject release configurations that rely only on mutable tags. This protects against the following risk: Mutable artifact references allow tasks in one nominal release to resolve to different image content.

Incorrect Answers

C:

Continuously overwrite the production image tag while rolling updates are in progress. That shortcut conflicts with the stated requirement.

D:

This would validate a different case: An application emits asynchronous SQS events but tests check only the initial HTTP success response, missing a downstream poison-message failure. It does not verify the outcome required here.

E:

That corrective action is for a different case: A scheduled Lambda job uses an environment-specific API endpoint hardcoded for staging even after the deployment reaches production. It does not resolve this incident.

AWS Certified Developer - Associate DVA-C02 Practice Tests

UP

SPECIAL OFFER: GET 10% OFF

This is ONE TIME OFFER

ExamSnap Discount Offer
Enter Your Email Address to Receive Your 10% Off Discount Code

A confirmation link will be sent to this email address to verify your login. *We value your privacy. We will not rent or sell your email address.

Download Free Demo of VCE Exam Simulator

Experience Avanset VCE Exam Simulator for yourself.

Simply submit your e-mail address below to get started with our interactive software demo of your free trial.

Free Demo Limits: In the demo version you will be able to access only first 5 questions from exam.