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 42

Question 410

After resolving the following incident, which ongoing safeguard most directly prevents recurrence? An order microservice writes free-form log strings without request IDs, making it impossible to follow one transaction across API Gateway and Lambda.

  1. Monitor cache hit rate, staleness and downstream load under realistic warm and cold invocations.
  2. Require correlation ID propagation and structured-log schemas in service integration tests.
  3. Log safe Region and resource identifiers and test cross-Region configuration in staging.
  4. Review subscription filter coverage when event schemas evolve and monitor filtered delivery counts.

Explanation

Correct Answer

B:

Require correlation ID propagation and structured-log schemas in service integration tests. This safeguards against a recurring cause: The operational events lack a stable correlation identifier shared through the request path.

Incorrect Answers

A:

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.

C:

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: An SNS topic fans out all order events to an expensive image-processing subscriber even though that subscriber needs only product-media updates. It is not the control for this recurring failure.

Question 411

A team applies a reviewed fix for this situation: An ECS application contains long-lived IAM access keys in environment variables even though its task has an assigned execution role. Which observed outcome would most convincingly validate the fix?

  1. Cross-tenant prefix probes fail while an authorized tenant can export only its own records.
  2. The running task calls only permitted AWS actions and continues working after the old static keys are revoked.
  3. A threat-model review shows predictable candidate inputs cannot trivially recover protected identities from public tokens.
  4. Synthetic sensitive fields do not appear in logs while correlation IDs and safe error context remain available.

Explanation

Correct Answer

B:

The running task calls only permitted AWS actions and continues working after the old static keys are revoked. This verifies the result of use an appropriately scoped ECS task role with SDK default credential retrieval and remove embedded long-lived keys.

Incorrect Answers

A:

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.

C:

This would verify another situation: A developer uses an unkeyed hash of predictable email addresses as a public customer identifier and calls it irreversible anonymization. It does not validate the current case.

D:

This would verify another situation: A Lambda handler prints complete inbound API payloads to CloudWatch Logs, exposing personal addresses and session tokens in troubleshooting records. It does not validate the current case.

Question 412

An application decrypts data with a customer-managed KMS key in the source AWS account but fails after moving the encrypted data to a second account. Which engineering change best addresses the underlying issue?

  1. Configure an authorized cross-account key policy and permitted IAM use, including encryption context constraints where appropriate.
  2. Return consistent sanitized error codes and correlation IDs while preserving protected internal diagnostics separately.
  3. Enforce the appropriate access token use and verify configured OAuth scopes and resource-level permissions.
  4. Move the token into a scoped secret-management service and retrieve it through approved runtime authorization with rotation behavior.

Explanation

Correct Answer

A:

Configure an authorized cross-account key policy and permitted IAM use, including encryption context constraints where appropriate. It directly addresses the case cause (The intended recipient identity and key-policy permissions have not been coordinated for cross-account decryption.) and should be verified by: The designated target principal decrypts only approved data while an unrelated account principal cannot use the key.

Incorrect Answers

B:

That change addresses an API error handler includes access tokens and raw service exceptions in JSON responses sent to all callers; it would not repair this incident.

C:

That change addresses 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 would not repair this incident.

D:

That change addresses an application embeds its payment gateway token directly in a Lambda environment variable managed in plain text by several developers; it would not repair this incident.

Question 413

A CodePipeline source revision succeeds but a CodeBuild project produces an artifact containing files from an earlier unclean local build. Which engineering change best addresses the underlying issue?

  1. Repackage the code so the deployed handler path, modules and ZIP directory root agree.
  2. Use isolated stage stacks or resource names and inspect deployment changes before applying the updated template.
  3. Use clean reproducible builds with explicit artifact paths and record source revision and resulting digest.
  4. Build representative EventBridge envelopes and run handler contract tests against the actual integration schema.

Explanation

Correct Answer

C:

Use clean reproducible builds with explicit artifact paths and record source revision and resulting digest. It directly addresses the case cause (The build environment or packaging step does not guarantee a clean, source-bound output.) and should be verified by: The artifact's version marker and hash correspond exactly to the source commit that triggered the pipeline.

Incorrect Answers

A:

That change addresses a Python Lambda project includes its source file but omits the required top-level package directory layout for the configured handler; it would not repair this incident.

B:

That change addresses a developer updates an AWS SAM template in a shared test account and unexpectedly removes a resource another team's integration tests still need; it would not repair this incident.

D:

That change addresses 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; it would not repair this incident.

Question 414

A team applies a reviewed fix for this situation: A CloudFront-served application sends all static asset requests to the origin because cache-control and behavior rules effectively disable caching. Which observed outcome would most convincingly validate the fix?

  1. Injected permanent partner rejection marks execution failed with context while transient failures follow bounded retries.
  2. Repeat requests hit the edge cache, origin requests decline and a new asset version displays correctly.
  3. A single transaction's safe logs can be joined across services without exposing credentials or raw customer data.
  4. A controlled API invocation returns the expected status and JSON body without an integration-generated 502.

Explanation

Correct Answer

B:

Repeat requests hit the edge cache, origin requests decline and a new asset version displays correctly. This verifies the result of use an appropriate CloudFront cache policy and immutable asset versioning while preserving required authentication boundaries.

Incorrect Answers

A:

This would verify another situation: A Step Functions task sends requests to a third-party endpoint but the workflow catches every error as success, hiding permanent partner rejections. It does not validate the current case.

C:

This would verify another situation: An order microservice writes free-form log strings without request IDs, making it impossible to follow one transaction across API Gateway and Lambda. It does not validate the current case.

D:

This would verify another situation: An API Gateway REST integration returns HTTP 502 while its Lambda invocation logs show a successful handler return with malformed proxy response fields. It does not validate the current case.

Question 415

A developer encrypts a sensitive payload at rest with an S3 bucket setting but sends that payload over an unencrypted partner HTTP connection. Which technical dependency most directly explains this behavior?

  1. Base64 decoding alone does not authenticate token origin or prove that its claims are still valid.
  2. Encryption at rest is not a transport security control for the application-to-partner connection.
  3. The application confuses authentication identity claims with the access-token authorization contract.
  4. The signing backend authorizes the raw object key rather than the requesting user's entitlement to that object.

Explanation

Correct Answer

B:

Encryption at rest is not a transport security control for the application-to-partner connection. The corresponding fix is to require authenticated TLS transport and approved endpoint identity validation for the outbound request.

Incorrect Answers

A:

This diagnosis addresses another AWS case: A web backend trusts any decoded Cognito user-pool JWT payload without checking its signature, issuer, token use or expiry. The dependency here is different.

C:

This diagnosis addresses another AWS case: A Lambda API accepts an ID token in place of the OAuth access token used for protected API scopes and grants an unintended operation. The dependency here is different.

D:

This diagnosis addresses another AWS case: An S3-backed application generates presigned download URLs for confidential attachments without verifying document ownership before signing. The dependency here is different.

Question 416

After resolving the following incident, which ongoing safeguard most directly prevents recurrence? An API Gateway Lambda authorizer returns an Allow policy for an entire API wildcard after validating permission for one read-only resource.

  1. Maintain role-specific response-shape and sensitive-data redaction regression fixtures.
  2. Test encrypted-object reads and denied neighboring key access in deployment quality gates.
  3. Test the authorizer's cache policy scope and denied-method fixtures with realistic identities.
  4. Test secret refresh, role access, and artifact scans whenever deployment configuration changes.

Explanation

Correct Answer

C:

Test the authorizer's cache policy scope and denied-method fixtures with realistic identities. This safeguards against a recurring cause: An authorization decision for one method and resource is incorrectly generalized to privileged routes.

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 S3 application uses SSE-KMS but a Lambda download fails because its role can call GetObject but cannot decrypt with the customer-managed key. It is not the control for this recurring failure.

D:

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.

Question 417

A team deploys new Lambda code but an API Gateway integration still points to an unversioned function instead of the reviewed alias. Select TWO complementary measures that correctly repair and validate this failure.

  1. Assume uploading a new function ZIP automatically updates every API Gateway stage.
  2. Bundle or layer the tested compatible dependency set and validate imports from the actual deployment artifact.
  3. The intended stack updates without deleting another team's approved test resources.
  4. The production endpoint invokes the planned alias version and rollback changes only the controlled release mapping.
  5. Reference the reviewed qualified Lambda alias in the integration and verify its permissions and stage deployment.

Explanation

Correct Answers

D:

The production endpoint invokes the planned alias version and rollback changes only the controlled release mapping. This is the observable result required before accepting the correction.

E:

Reference the reviewed qualified Lambda alias in the integration and verify its permissions and stage deployment. The underlying cause is: The API deployment target bypasses the intended versioned release and rollback boundary.

Incorrect Answers

A:

Assume uploading a new function ZIP automatically updates every API Gateway stage. That shortcut conflicts with the stated requirement.

B:

That corrective action is for a different case: A Lambda deployment artifact is built without a required Python dependency, and the function raises ImportError immediately after deployment. It does not resolve this incident.

C:

This would validate a different case: A developer updates an AWS SAM template in a shared test account and unexpectedly removes a resource another team's integration tests still need. It does not verify the outcome required here.

Question 418

A team applies a reviewed fix for this situation: A team generates test cases with Amazon Q Developer and automatically accepts them, but the tests assert behavior from an obsolete API specification. Which observed outcome would most convincingly validate the fix?

  1. The obsolete test assertion fails review while the approved request and response contract passes.
  2. A successful test creates the intended downstream state while a poison message routes through the defined failure path.
  3. The deployed target accepts the real envelope and rejects malformed events with controlled errors.
  4. A request to the public custom domain reaches the intended stage without accessing staging-only operations.

Explanation

Correct Answer

A:

The obsolete test assertion fails review while the approved request and response contract passes. This verifies the result of review generated assertions against versioned API requirements and run current contract and regression fixtures.

Incorrect Answers

B:

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

C:

This would verify another situation: 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. It does not validate the current case.

D:

This would verify another situation: An API Gateway custom domain points to a different stage after a deployment even though the backend Lambda versions were correctly published. It does not validate the current case.

Question 419

A Lambda function imports a shared layer that was built for an incompatible runtime and fails before the handler starts. Which engineering change best addresses the underlying issue?

  1. Partition by a suitable high-cardinality event or entity key while preserving any required per-key ordering semantics.
  2. Review generated changes, replace broad permissions with the minimum actions and resources, and run approved security and behavior tests.
  3. Use a suitably keyed base-table or local secondary index strongly consistent read path when strict consistency is required.
  4. Publish or select a layer compiled for the actual runtime and architecture and test imports in that environment.

Explanation

Correct Answer

D:

Publish or select a layer compiled for the actual runtime and architecture and test imports in that environment. It directly addresses the case cause (Layer binaries or dependencies are incompatible with the configured runtime or CPU architecture.) and should be verified by: The deployed function initializes and passes representative requests using the exact published layer version.

Incorrect Answers

A:

That change addresses a game telemetry producer chooses one constant Kinesis partition key and one shard becomes throttled while available shards remain idle; it would not repair this incident.

B:

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.

C:

That change addresses a DynamoDB application requires immediate read-after-write consistency but queries a global secondary index and occasionally reads an older version; it would not repair this incident.

Question 420

A team applies a reviewed fix for this situation: A customer search feature indexes JSON documents in OpenSearch but maps product price as text and numeric range filters behave incorrectly. Which observed outcome would most convincingly validate the fix?

  1. The same authorized cart survives container replacement and remains isolated from other shopper identities.
  2. A controlled normal transaction is excluded while high-risk events reach only the approved fraud subscription.
  3. Transient throttling recovers within the agreed budget while persistent throttling yields a controlled failure instead of a storm.
  4. Numeric range queries return the expected product set and the active alias points to the validated index.

Explanation

Correct Answer

D:

Numeric range queries return the expected product set and the active alias points to the validated index. This verifies the result of create a compatible mapping with an appropriate numeric field and reindex verified documents under a controlled alias cutover.

Incorrect Answers

A:

This would verify another situation: A stateless containerized checkout API stores shopping-cart state only in a process dictionary and loses carts when traffic shifts to a new task. It does not validate the current case.

B:

This would verify another situation: A publishing service sends an SNS notification to every subscriber even though only the fraud service should receive alerts with eventType equal to high_risk. It does not validate the current case.

C:

This would verify another situation: A payment application calls a rate-limited partner REST API and immediately retries HTTP 429 responses until the partner suspends access. It does not validate the current case.

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.