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 8

Question 70

After resolving the following incident, which ongoing safeguard most directly prevents recurrence? An application embeds its payment gateway token directly in a Lambda environment variable managed in plain text by several developers.

  1. Test secret refresh, role access, and artifact scans whenever deployment configuration changes.
  2. Monitor certificate expiry and rehearse trust-chain updates before production rotation dates.
  3. Test both sides of the assume-role relationship during cross-account integration releases.
  4. Test audience mismatch, identity propagation and cross-service authorization under least privilege.

Explanation

Correct Answer

A:

Test secret refresh, role access, and artifact scans whenever deployment configuration changes. This safeguards against a recurring cause: The secret is distributed through configuration access without a controlled secret lifecycle or minimum necessary permissions.

Incorrect Answers

B:

That safeguard addresses another case: A service pins a private certificate file inside a Lambda deployment package and does not redeploy when the certificate expires. It is not the control for this recurring failure.

C:

That safeguard addresses another case: A microservice assumes an IAM role in a second AWS account but receives AccessDenied despite a permissive identity policy in the caller account. It is not the control for this recurring failure.

D:

That safeguard addresses another case: A service-to-service request forwards an unvalidated user token as if it were a trusted workload identity across multiple microservices. It is not the control for this recurring failure.

Question 71

A team applies a reviewed fix for this 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. Which observed outcome would most convincingly validate the fix?

  1. The function succeeds after a controlled secret rotation without source-code changes or credential logging.
  2. A controlled normal transaction is excluded while high-risk events reach only the approved fraud subscription.
  3. Numeric range queries return the expected product set and the active alias points to the validated index.
  4. Representative compressed and malformed payloads follow the intended success or error paths without silent data corruption.

Explanation

Correct Answer

B:

A controlled normal transaction is excluded while high-risk events reach only the approved fraud subscription. This verifies the result of publish the intended message attributes and configure a subscription filter policy for the fraud alert category.

Incorrect Answers

A:

This would verify another situation: A Lambda application stores a rotating partner API key as a hardcoded configuration constant inside deployed source code. It does not validate the current case.

C:

This would verify another situation: A customer search feature indexes JSON documents in OpenSearch but maps product price as text and numeric range filters behave incorrectly. It does not validate the current case.

D:

This would verify another situation: A Lambda processor receives records compressed by an upstream service but attempts to parse the raw compressed bytes as UTF-8 JSON text. It does not validate the current case.

Question 72

After resolving the following incident, which ongoing safeguard most directly prevents recurrence? A developer creates short-lived download links but signs requests without constraining the HTTP method, resource or allowed signing credentials.

  1. Test both sides of the assume-role relationship during cross-account integration releases.
  2. Review outbound schemas and test synthetic secret leakage on all third-party event destinations.
  3. Test presigned URL method misuse and credential scope whenever link-generation code changes.
  4. Apply response redaction and negative secret fixtures to all error paths, including integration failures.

Explanation

Correct Answer

C:

Test presigned URL method misuse and credential scope whenever link-generation code changes. This safeguards against a recurring cause: The presigning workflow allows a broader operation than the intended user action and permission boundary.

Incorrect Answers

A:

That safeguard addresses another case: A microservice assumes an IAM role in a second AWS account but receives AccessDenied despite a permissive identity policy in the caller account. It is not the control for this recurring failure.

B:

That safeguard addresses another case: A microservice forwards raw end-user tokens from headers to a third-party analytics endpoint, although analytics needs only event type and status. It is not the control for this recurring failure.

D:

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.

Question 73

A Step Functions state sends an API request that starts a third-party batch job and immediately marks the workflow complete before the batch finishes. Select THREE complementary measures that correctly repair and validate, and prevent recurrence of this failure.

  1. Insert a fixed two-second wait and declare all longer jobs successful.
  2. The workflow succeeds only when the actual remote job completes and routes failed jobs to a reviewable error path.
  3. An expired session is denied immediately even if its DynamoDB item still exists during background cleanup.
  4. Integration-test callback delays, lost tokens, job failures and workflow timeouts independently of request success.
  5. Use deadline-aware outbound calls, an idempotency key and durable processing state or a suitable asynchronous workflow.
  6. Model a supported callback token or bounded status polling state that waits for a verified terminal batch outcome.

Explanation

Correct Answers

B:

The workflow succeeds only when the actual remote job completes and routes failed jobs to a reviewable error path. This is the observable result required before accepting the correction.

D:

Integration-test callback delays, lost tokens, job failures and workflow timeouts independently of request success. This protects against the following risk: The external API acknowledgement has been treated as the completed asynchronous business operation.

F:

Model a supported callback token or bounded status polling state that waits for a verified terminal batch outcome. The underlying cause is: The external API acknowledgement has been treated as the completed asynchronous business operation.

Incorrect Answers

A:

Insert a fixed two-second wait and declare all longer jobs successful. That shortcut conflicts with the stated requirement.

C:

This would validate a different case: A login service expects DynamoDB TTL to remove an expired session at the exact expiry timestamp and continues accepting expired records while deletion lags. It does not verify the outcome required here.

E:

That corrective action is for a different case: A Lambda function invokes a slow partner API and frequently times out, causing clients to retry a write whose completion status is unknown. It does not resolve this incident.

Question 74

A CI workflow publishes Docker images under one mutable tag and the ECS service pulls a different image during a multi-AZ scale-out. Which technical dependency most directly explains this behavior?

  1. The published package does not contain the runtime dependency closure expected by the handler.
  2. The staging and production integration versions are not aligned with the intended release.
  3. Mutable artifact references allow tasks in one nominal release to resolve to different image content.
  4. The test fixture does not represent the service's documented event envelope.

Explanation

Correct Answer

C:

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

Incorrect Answers

A:

This diagnosis addresses another AWS case: A Lambda deployment artifact is built without a required Python dependency, and the function raises ImportError immediately after deployment. The dependency here is different.

B:

This diagnosis addresses another AWS case: An API Gateway method works in the test console but its deployed production stage still points to an older Lambda alias. The dependency here is different.

D:

This diagnosis addresses another AWS case: 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. The dependency here is different.

Question 75

A customer search feature indexes JSON documents in OpenSearch but maps product price as text and numeric range filters behave incorrectly. Select THREE complementary measures that correctly repair and validate, and prevent recurrence of this failure.

  1. Create a compatible mapping with an appropriate numeric field and reindex verified documents under a controlled alias cutover.
  2. Numeric range queries return the expected product set and the active alias points to the validated index.
  3. An expired URL is rejected and an authorized fresh URL completes an upload to the intended key.
  4. Check representative field mappings and query results before index version promotion.
  5. Sort price strings lexicographically and claim the resulting ranges are numerical.
  6. Detect or validate the documented compression encoding and decompress safely before schema validation and parsing.

Explanation

Correct Answers

A:

Create a compatible mapping with an appropriate numeric field and reindex verified documents under a controlled alias cutover. The underlying cause is: The indexed field mapping does not represent the numeric comparison semantics required by the application.

B:

Numeric range queries return the expected product set and the active alias points to the validated index. This is the observable result required before accepting the correction.

D:

Check representative field mappings and query results before index version promotion. This protects against the following risk: The indexed field mapping does not represent the numeric comparison semantics required by the application.

Incorrect Answers

C:

This would validate a different case: A browser uploads media using a presigned S3 URL after its short expiry, causing intermittent HTTP 403 responses during slow mobile sessions. It does not verify the outcome required here.

E:

Sort price strings lexicographically and claim the resulting ranges are numerical. That shortcut conflicts with the stated requirement.

F:

That corrective action is for a different case: A Lambda processor receives records compressed by an upstream service but attempts to parse the raw compressed bytes as UTF-8 JSON text. It does not resolve this incident.

Question 76

A developer uses an unkeyed hash of predictable email addresses as a public customer identifier and calls it irreversible anonymization. Select TWO complementary measures that correctly repair and validate this failure.

  1. Generate method- and object-scoped signed requests under a least-privilege principal with appropriate expiry.
  2. Apply an approved keyed tokenization or privacy-preserving identifier design with appropriate reidentification controls.
  3. Assume applying SHA-256 alone makes a guessable email address impossible to recover.
  4. A threat-model review shows predictable candidate inputs cannot trivially recover protected identities from public tokens.
  5. Requests for another tenant's order return denial even when the caller holds a valid session token.

Explanation

Correct Answers

B:

Apply an approved keyed tokenization or privacy-preserving identifier design with appropriate reidentification controls. The underlying cause is: Low-entropy identifiers remain vulnerable to dictionary attacks despite using a one-way hash function.

D:

A threat-model review shows predictable candidate inputs cannot trivially recover protected identities from public tokens. This is the observable result required before accepting the correction.

Incorrect Answers

A:

That corrective action is for a different case: A developer creates short-lived download links but signs requests without constraining the HTTP method, resource or allowed signing credentials. It does not resolve this incident.

C:

Assume applying SHA-256 alone makes a guessable email address impossible to recover. That shortcut conflicts with the stated requirement.

E:

This would validate a different case: An application accepts a Cognito access token for tenant A while fetching order details belonging to tenant B using an unvalidated path parameter. It does not verify the outcome required here.

Question 77

A Lambda application stores a rotating partner API key as a hardcoded configuration constant inside deployed source code. Select THREE complementary measures that correctly repair and validate, and prevent recurrence of this failure.

  1. Test secret refresh behavior and scan deployed artifacts and logs for exposed credential values.
  2. The function succeeds after a controlled secret rotation without source-code changes or credential logging.
  3. Login lookups use a bounded key-based access path and avoid reading unrelated account records.
  4. Attach a stable order event identifier and make the shipment side effect idempotent through conditional persistence.
  5. Retrieve the approved credential from an access-controlled secrets store with narrow runtime authorization and rotation handling.
  6. Commit the key to version control so every developer can repair production quickly.

Explanation

Correct Answers

A:

Test secret refresh behavior and scan deployed artifacts and logs for exposed credential values. This protects against the following risk: The credential lifecycle is coupled to code deployment and risks accidental exposure in artifacts and logs.

B:

The function succeeds after a controlled secret rotation without source-code changes or credential logging. This is the observable result required before accepting the correction.

E:

Retrieve the approved credential from an access-controlled secrets store with narrow runtime authorization and rotation handling. The underlying cause is: The credential lifecycle is coupled to code deployment and risks accidental exposure in artifacts and logs.

Incorrect Answers

C:

This would validate a different case: An online DynamoDB account lookup performs a full Scan for every login even though users always supply an email address. It does not verify the outcome required here.

D:

That corrective action is for a different case: An order API retries its SQS SendMessage call after a client timeout and downstream workers create duplicate shipment records for the same order. It does not resolve this incident.

F:

Commit the key to version control so every developer can repair production quickly. That shortcut conflicts with the stated requirement.

Question 78

A team applies a reviewed fix for this situation: A Lambda deployment artifact is built without a required Python dependency, and the function raises ImportError immediately after deployment. Which observed outcome would most convincingly validate the fix?

  1. The deployed Lambda version initializes successfully and executes the representative handler fixture.
  2. The artifact's version marker and hash correspond exactly to the source commit that triggered the pipeline.
  3. A simulated bad release restores the exact previously verified version with expected response behavior.
  4. A deliberately failing integration test blocks production promotion and preserves the last approved artifact.

Explanation

Correct Answer

A:

The deployed Lambda version initializes successfully and executes the representative handler fixture. This verifies the result of bundle or layer the tested compatible dependency set and validate imports from the actual deployment artifact.

Incorrect Answers

B:

This would verify another situation: A CodePipeline source revision succeeds but a CodeBuild project produces an artifact containing files from an earlier unclean local build. It does not validate the current case.

C:

This would verify another situation: A Lambda alias was shifted to an unhealthy version, but operators cannot restore the last known-good version because deployment metadata records only latest. 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 79

After resolving the following incident, which ongoing safeguard most directly prevents recurrence? A developer uses an unkeyed hash of predictable email addresses as a public customer identifier and calls it irreversible anonymization.

  1. Test reidentification risk and review key governance whenever pseudonymization methods change.
  2. Test signing-key rotation and negative JWT fixtures in authentication middleware changes.
  3. Monitor certificate expiry and rehearse trust-chain updates before production rotation dates.
  4. Test certificate failures and transport enforcement as separate security scenarios from storage encryption.

Explanation

Correct Answer

A:

Test reidentification risk and review key governance whenever pseudonymization methods change. This safeguards against a recurring cause: Low-entropy identifiers remain vulnerable to dictionary attacks despite using a one-way hash function.

Incorrect Answers

B:

That safeguard addresses another case: A web backend trusts any decoded Cognito user-pool JWT payload without checking its signature, issuer, token use or expiry. It is not the control for this recurring failure.

C:

That safeguard addresses another case: A service pins a private certificate file inside a Lambda deployment package and does not redeploy when the certificate expires. It is not the control for this recurring failure.

D:

That safeguard addresses another 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 is not the control for this recurring failure.

Question 80

An online DynamoDB account lookup performs a full Scan for every login even though users always supply an email address. Select TWO complementary measures that correctly repair and validate this failure.

  1. Define a supported email lookup index or explicit alternate-key mapping and use Query with appropriate authorization.
  2. Use Scan with a larger page size and describe it as an indexed point lookup.
  3. Persist the authorized cart in an appropriately keyed durable store or scoped distributed session service.
  4. A controlled normal transaction is excluded while high-risk events reach only the approved fraud subscription.
  5. Login lookups use a bounded key-based access path and avoid reading unrelated account records.

Explanation

Correct Answers

A:

Define a supported email lookup index or explicit alternate-key mapping and use Query with appropriate authorization. The underlying cause is: The read implementation lacks a designed key or index matching the predominant query predicate.

E:

Login lookups use a bounded key-based access path and avoid reading unrelated account records. This is the observable result required before accepting the correction.

Incorrect Answers

B:

Use Scan with a larger page size and describe it as an indexed point lookup. That shortcut conflicts with the stated requirement.

C:

That corrective action is for a different case: 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 resolve this incident.

D:

This would validate a different case: 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 verify the outcome required here.

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.