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 7

Question 60

An API Gateway Lambda authorizer returns an Allow policy for an entire API wildcard after validating permission for one read-only resource. Select THREE complementary measures that correctly repair and validate, and prevent recurrence of this failure.

  1. Test the authorizer's cache policy scope and denied-method fixtures with realistic identities.
  2. Constrain the authorizer policy to appropriate method ARNs and bind per-request authorization to the intended user/resource context.
  3. Use a supported certificate-management lifecycle and verified rotation or deployment process for the authenticated endpoint.
  4. The same user can GET the approved record but cannot DELETE a different record through the authorization cache.
  5. A controlled markup payload displays as inert text while legitimate comments remain readable.
  6. Return Allow for every API method once a user has signed in successfully.

Explanation

Correct Answers

A:

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

B:

Constrain the authorizer policy to appropriate method ARNs and bind per-request authorization to the intended user/resource context. The underlying cause is: An authorization decision for one method and resource is incorrectly generalized to privileged routes.

D:

The same user can GET the approved record but cannot DELETE a different record through the authorization cache. This is the observable result required before accepting the correction.

Incorrect Answers

C:

That corrective action is for a different case: A service pins a private certificate file inside a Lambda deployment package and does not redeploy when the certificate expires. It does not resolve this incident.

E:

This would validate a different case: A developer sanitizes a user-submitted comment only on the browser, and malicious HTML is stored and displayed to other users. It does not verify the outcome required here.

F:

Return Allow for every API method once a user has signed in successfully. That shortcut conflicts with the stated requirement.

Question 61

A team applies a reviewed fix for this situation: An ECS service uses an image tag named latest and a rollback launches a different container image than the previous production version. Which observed outcome would most convincingly validate the fix?

  1. A rollback restores the identical image digest and reproduces the previous known-good application behavior.
  2. A clean dry-run shows only authorized resource changes and the live table remains present.
  3. A simulated bad release restores the exact previously verified version with expected response behavior.
  4. The production endpoint invokes the planned alias version and rollback changes only the controlled release mapping.

Explanation

Correct Answer

A:

A rollback restores the identical image digest and reproduces the previous known-good application behavior. This verifies the result of deploy pinned image digests or immutable release tags and record the exact reviewed artifact in the service revision.

Incorrect Answers

B:

This would verify another situation: A new application version deploys with AWS SAM, but the CloudFormation change set includes removal of a production DynamoDB table unexpectedly. 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 team deploys new Lambda code but an API Gateway integration still points to an unversioned function instead of the reviewed alias. It does not validate the current case.

Question 62

A DynamoDB application requires immediate read-after-write consistency but queries a global secondary index and occasionally reads an older version. Which technical dependency most directly explains this behavior?

  1. Global secondary index reads provide eventual consistency and cannot supply a strongly consistent read mode.
  2. The external side effect outlives the handler deadline and the application does not track idempotent completion.
  3. Default whole-batch failure handling repeats successfully processed records unless partial failures and idempotency are implemented.
  4. Layer binaries or dependencies are incompatible with the configured runtime or CPU architecture.

Explanation

Correct Answer

A:

Global secondary index reads provide eventual consistency and cannot supply a strongly consistent read mode. The corresponding fix is to use a suitably keyed base-table or local secondary index strongly consistent read path when strict consistency is required.

Incorrect Answers

B:

This diagnosis addresses another AWS case: A Lambda function invokes a slow partner API and frequently times out, causing clients to retry a write whose completion status is unknown. The dependency here is different.

C:

This diagnosis addresses another AWS case: One malformed record in an SQS batch makes a Lambda handler raise an exception and all previously processed messages reappear after visibility timeout. The dependency here is different.

D:

This diagnosis addresses another AWS case: A Lambda function imports a shared layer that was built for an incompatible runtime and fails before the handler starts. The dependency here is different.

Question 63

After resolving the following incident, which ongoing safeguard most directly prevents recurrence? A Python Lambda project includes its source file but omits the required top-level package directory layout for the configured handler.

  1. Validate archive member paths and handler strings in deployment packaging checks.
  2. Run automated destructive-change guards and human review for stateful resource diffs.
  3. Rehearse rollback and retain version-to-source mappings for each promoted release.
  4. Assert test-mode provider credentials and outbound endpoint destinations in the pipeline setup.

Explanation

Correct Answer

A:

Validate archive member paths and handler strings in deployment packaging checks. This safeguards against a recurring cause: The handler import path does not match the archive root and Python module structure at runtime.

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 Lambda alias was shifted to an unhealthy version, but operators cannot restore the last known-good version because deployment metadata records only latest. It is not the control for this recurring failure.

D:

That safeguard addresses another case: A checkout integration test calls a live payment provider and charges a customer account every time the CI pipeline runs. It is not the control for this recurring failure.

Question 64

After resolving the following incident, which ongoing safeguard most directly prevents recurrence? A Step Functions task sends requests to a third-party endpoint but the workflow catches every error as success, hiding permanent partner rejections.

  1. Test each documented error category and inspect execution histories after workflow changes.
  2. Review subscription filter coverage when event schemas evolve and monitor filtered delivery counts.
  3. Periodically test alarm thresholds, subscription delivery and escalation ownership independently of logs.
  4. Profile call waterfalls and concurrency limits rather than only measuring individual SDK method duration.

Explanation

Correct Answer

A:

Test each documented error category and inspect execution histories after workflow changes. This safeguards against a recurring cause: Catch-all exception handling misclassifies terminal failures and removes meaningful incident evidence.

Incorrect Answers

B:

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.

C:

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

D:

That safeguard addresses another case: A mobile backend makes five sequential AWS SDK calls for independent reads and misses its API latency SLA despite low individual service latency. It is not the control for this recurring failure.

Question 65

A team applies a reviewed fix for this situation: A game telemetry producer chooses one constant Kinesis partition key and one shard becomes throttled while available shards remain idle. Which observed outcome would most convincingly validate the fix?

  1. A forced write followed by the approved strong-read path returns the current item for the critical operation.
  2. Repeated delivery of one purchase changes inventory once and independent purchases remain correctly counted.
  3. The deployed function initializes and passes representative requests using the exact published layer version.
  4. Load testing distributes writes across shards and maintains required ordering within each chosen entity key.

Explanation

Correct Answer

D:

Load testing distributes writes across shards and maintains required ordering within each chosen entity key. This verifies the result of partition by a suitable high-cardinality event or entity key while preserving any required per-key ordering semantics.

Incorrect Answers

A:

This would verify another situation: A DynamoDB application requires immediate read-after-write consistency but queries a global secondary index and occasionally reads an older version. It does not validate the current case.

B:

This would verify another situation: An order service increments a DynamoDB inventory balance twice after a transient network retry of the same purchase request. It does not validate the current case.

C:

This would verify another situation: A Lambda function imports a shared layer that was built for an incompatible runtime and fails before the handler starts. It does not validate the current case.

Question 66

A microservice forwards raw end-user tokens from headers to a third-party analytics endpoint, although analytics needs only event type and status. Which engineering change best addresses the underlying issue?

  1. Build an allowlisted sanitized event schema that excludes bearer credentials and unrelated personal fields.
  2. Validate the signature with the expected Cognito JWKS and check issuer, intended client, token use, expiry and scopes.
  3. Correct the service-principal trust and scope the execution role's Lambda invoke permissions to the intended functions.
  4. Grant only the required sts:AssumeRole action and update the target role trust relationship for the approved principal.

Explanation

Correct Answer

A:

Build an allowlisted sanitized event schema that excludes bearer credentials and unrelated personal fields. It directly addresses the case cause (The analytics integration crosses the trust boundary with unnecessary authentication and personal data.) and should be verified by: Captured partner requests contain only approved analytics attributes and no reusable authentication tokens.

Incorrect Answers

B:

That change addresses a web backend trusts any decoded Cognito user-pool JWT payload without checking its signature, issuer, token use or expiry; it would not repair this incident.

C:

That change addresses a Step Functions execution fails to invoke Lambda because the workflow role trusts EC2 instead of the Step Functions service principal; it would not repair this incident.

D:

That change addresses a microservice assumes an IAM role in a second AWS account but receives AccessDenied despite a permissive identity policy in the caller account; it would not repair this incident.

Question 67

After resolving the following incident, which ongoing safeguard most directly prevents recurrence? A deployment pipeline sends a test event to a Lambda but never asserts output values, so a handler returns HTTP 200 with an invalid business result.

  1. Maintain positive and negative test events with explicit expected outcomes for published handler versions.
  2. Track end-to-end event IDs in tests instead of relying solely on producer status codes.
  3. Validate image provenance and reject release configurations that rely only on mutable tags.
  4. Check API integration targets and alias qualifiers in every deployment smoke test.

Explanation

Correct Answer

A:

Maintain positive and negative test events with explicit expected outcomes for published handler versions. This safeguards against a recurring cause: A successful function invocation is incorrectly treated as proof that its domain logic is correct.

Incorrect Answers

B:

That safeguard addresses another case: An application emits asynchronous SQS events but tests check only the initial HTTP success response, missing a downstream poison-message failure. It is not the control for this recurring failure.

C:

That safeguard addresses another case: A CI workflow publishes Docker images under one mutable tag and the ECS service pulls a different image during a multi-AZ scale-out. It is not the control for this recurring failure.

D:

That safeguard addresses another case: A team deploys new Lambda code but an API Gateway integration still points to an unversioned function instead of the reviewed alias. It is not the control for this recurring failure.

Question 68

A CodePipeline action promotes an artifact to production when build succeeds even though integration tests for the same revision are still running. Select THREE complementary measures that correctly repair and validate, and prevent recurrence of this failure.

  1. Approve production after the first green step regardless of downstream test results.
  2. Use isolated stage stacks or resource names and inspect deployment changes before applying the updated template.
  3. The obsolete test assertion fails review while the approved request and response contract passes.
  4. A deliberately failing integration test blocks production promotion and preserves the last approved artifact.
  5. Make deployment explicitly depend on successful integration and security tests for the same immutable revision.
  6. Review pipeline stage dependencies and compare commit and artifact IDs across every gate.

Explanation

Correct Answers

D:

A deliberately failing integration test blocks production promotion and preserves the last approved artifact. This is the observable result required before accepting the correction.

E:

Make deployment explicitly depend on successful integration and security tests for the same immutable revision. The underlying cause is: Pipeline dependencies allow release approval before the required test stage reaches a successful terminal state.

F:

Review pipeline stage dependencies and compare commit and artifact IDs across every gate. This protects against the following risk: Pipeline dependencies allow release approval before the required test stage reaches a successful terminal state.

Incorrect Answers

A:

Approve production after the first green step regardless of downstream test results. That shortcut conflicts with the stated requirement.

B:

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

C:

This would validate a different case: A team generates test cases with Amazon Q Developer and automatically accepts them, but the tests assert behavior from an obsolete API specification. It does not verify the outcome required here.

Question 69

A team applies a reviewed fix for this situation: A scheduled Lambda job uses an environment-specific API endpoint hardcoded for staging even after the deployment reaches production. Which observed outcome would most convincingly validate the fix?

  1. The deployed target accepts the real envelope and rejects malformed events with controlled errors.
  2. New and existing tasks in the deployment resolve to the same intended container image digest.
  3. The obsolete test assertion fails review while the approved request and response contract passes.
  4. A production fixture calls only the approved production endpoint while staging continues to use isolated resources.

Explanation

Correct Answer

D:

A production fixture calls only the approved production endpoint while staging continues to use isolated resources. This verifies the result of externalize reviewed stage-specific settings through approved parameters or AWS AppConfig and validate them before launch.

Incorrect Answers

A:

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.

B:

This would verify another situation: A CI workflow publishes Docker images under one mutable tag and the ECS service pulls a different image during a multi-AZ scale-out. It does not validate the current case.

C:

This would verify another situation: A team generates test cases with Amazon Q Developer and automatically accepts them, but the tests assert behavior from an obsolete API specification. It does not validate the current case.

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.

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.