cert
cert-1
cert-2

Pass Amazon AWS Certified Developer - Associate DVA-C02 Exam in First Attempt Guaranteed!

Get 100% Latest Exam Questions, Accurate & Verified Answers to Pass the Actual Exam!
30 Days Free Updates, Instant Download!

cert-5
cert-6
AWS Certified Developer - Associate DVA-C02 Exam - Verified By Experts
AWS Certified Developer - Associate DVA-C02 Premium Bundle
$29.98

AWS Certified Developer - Associate DVA-C02 Premium Bundle

$79.99
$109.97
  • Premium File 653 Questions & Answers. Last update: Nov 10, 2026
  • Training Course 430 Video Lectures
  • Study Guide 1091 Pages
 
$109.97
$79.99
accept 27 downloads in last 7 days
block-screenshots
Purchase Amazon AWS Certified Developer - Associate DVA-C02 Exam Training Products Individually
Amazon AWS Certified Developer - Associate DVA-C02 Premium File
Premium File 653 Q&A
$76.99$69.99
Amazon AWS Certified Developer - Associate DVA-C02 Video Training Course
Training Course 430 Lectures
$21.99 $19.99
Amazon AWS Certified Developer - Associate DVA-C02 PDF Study Guide
Study Guide 1091 Pages
$21.99 $19.99
Amazon AWS Certified Developer - Associate DVA-C02 Practice Test 52

Question 510

A Lambda handler must read a nonsecret feature mode and memory setting for its deployed environment. The incident review finds the following problem: Hardcoded stage URLs in application source can send production traffic to the wrong backend. What is the BEST targeted corrective action?

  1. Publish the correct environment configuration and redeploy or refresh affected consumers.
  2. Treat environment variables as shared storage between parallel invocations.
  3. Put sensitive credentials directly in plaintext logs.
  4. Commit a different handler source for every environment variable.

Explanation

Correct Answer

A:

Publish the correct environment configuration and redeploy or refresh affected consumers. This directly addresses the recorded Lambda environment configuration failure and should be checked by observing that invocations in each environment show the configured nonsecret value without changing application source.

Incorrect Answers

B:

Treat environment variables as shared storage between parallel invocations. This does not repair the identified Lambda environment configuration failure; the targeted remediation is to publish the correct environment configuration and redeploy or refresh affected consumers.

C:

Put sensitive credentials directly in plaintext logs. This does not repair the identified Lambda environment configuration failure; the targeted remediation is to publish the correct environment configuration and redeploy or refresh affected consumers.

D:

Commit a different handler source for every environment variable. This does not repair the identified Lambda environment configuration failure; the targeted remediation is to publish the correct environment configuration and redeploy or refresh affected consumers.

Question 511

A production stack update fails with a permission or dependency error shown in resource events. The incident review finds the following problem: Debugging handler business code cannot fix a stack resource creation permission error. What is the BEST targeted corrective action?

  1. Correct the resource configuration or deployment role permission and reapply a reviewed change set.
  2. Raise a DynamoDB item TTL to repair a template validation failure.
  3. Ignore stack events and deploy the same malformed template repeatedly.
  4. Change only the API base URL for an IAM resource creation error.

Explanation

Correct Answer

A:

Correct the resource configuration or deployment role permission and reapply a reviewed change set. This directly addresses the recorded failed CloudFormation deployment failure and should be checked by observing that the failed resource event includes a concrete status reason that matches the attempted operation.

Incorrect Answers

B:

Raise a DynamoDB item TTL to repair a template validation failure. This does not repair the identified failed CloudFormation deployment failure; the targeted remediation is to correct the resource configuration or deployment role permission and reapply a reviewed change set.

C:

Ignore stack events and deploy the same malformed template repeatedly. This does not repair the identified failed CloudFormation deployment failure; the targeted remediation is to correct the resource configuration or deployment role permission and reapply a reviewed change set.

D:

Change only the API base URL for an IAM resource creation error. This does not repair the identified failed CloudFormation deployment failure; the targeted remediation is to correct the resource configuration or deployment role permission and reapply a reviewed change set.

Question 512

A checkout integration test needs to control a partner's timeout and invalid-signature responses. The incident review finds the following problem: Relying only on live third-party calls makes tests slow and nondeterministic. What is the BEST targeted corrective action?

  1. Put production API credentials in public test fixtures.
  2. Replace every external test with a generic ping to localhost.
  3. Inject a mockable client and add controlled error fixtures plus a separate integration check.
  4. Turn off test assertions whenever the partner is unavailable.

Explanation

Correct Answer

C:

Inject a mockable client and add controlled error fixtures plus a separate integration check. This directly addresses the recorded API external dependency mocks failure and should be checked by observing that tests deterministically exercise success, timeout, and error handling without contacting the live partner.

Incorrect Answers

A:

Put production API credentials in public test fixtures. This does not repair the identified API external dependency mocks failure; the targeted remediation is to inject a mockable client and add controlled error fixtures plus a separate integration check.

B:

Replace every external test with a generic ping to localhost. This does not repair the identified API external dependency mocks failure; the targeted remediation is to inject a mockable client and add controlled error fixtures plus a separate integration check.

D:

Turn off test assertions whenever the partner is unavailable. This does not repair the identified API external dependency mocks failure; the targeted remediation is to inject a mockable client and add controlled error fixtures plus a separate integration check.

Question 513

A browser-based app stores temporary tokens and should not reuse one after its expiry time. The incident review finds the following problem: Ignoring exp claims leaves a path for stale tokens to be reused as authorization. What is the BEST targeted corrective action?

  1. Set access tokens to never expire because users dislike sign-in.
  2. Accept tokens without verifying their signature.
  3. Refresh through the supported provider flow and reject invalid or expired access tokens.
  4. Encode a username in base64 and treat it as a JWT.

Explanation

Correct Answer

C:

Refresh through the supported provider flow and reject invalid or expired access tokens. This directly addresses the recorded bearer token refresh and expiry failure and should be checked by observing that the client obtains a fresh access token and the protected API rejects an expired one.

Incorrect Answers

A:

Set access tokens to never expire because users dislike sign-in. This does not repair the identified bearer token refresh and expiry failure; the targeted remediation is to refresh through the supported provider flow and reject invalid or expired access tokens.

B:

Accept tokens without verifying their signature. This does not repair the identified bearer token refresh and expiry failure; the targeted remediation is to refresh through the supported provider flow and reject invalid or expired access tokens.

D:

Encode a username in base64 and treat it as a JWT. This does not repair the identified bearer token refresh and expiry failure; the targeted remediation is to refresh through the supported provider flow and reject invalid or expired access tokens.

Question 514

A Lambda produces mixed plain text and exception dumps and operators need machine-queryable event fields. The incident review finds the following problem: Unstructured logs with missing correlation fields make incident reconstruction slow. What is the BEST targeted corrective action?

  1. Add a consistent log schema and sanitize secret or PII fields before writing events.
  2. Disable error logs and rely solely on customer screenshots.
  3. Use an S3 bucket name as the only error severity field.
  4. Serialize full bearer tokens into every structured log record.

Explanation

Correct Answer

A:

Add a consistent log schema and sanitize secret or PII fields before writing events. This directly addresses the recorded structured JSON logging failure and should be checked by observing that log queries can reliably filter the same fields across success and failure events.

Incorrect Answers

B:

Disable error logs and rely solely on customer screenshots. This does not repair the identified structured JSON logging failure; the targeted remediation is to add a consistent log schema and sanitize secret or PII fields before writing events.

C:

Use an S3 bucket name as the only error severity field. This does not repair the identified structured JSON logging failure; the targeted remediation is to add a consistent log schema and sanitize secret or PII fields before writing events.

D:

Serialize full bearer tokens into every structured log record. This does not repair the identified structured JSON logging failure; the targeted remediation is to add a consistent log schema and sanitize secret or PII fields before writing events.

Question 515

A rollback needs to deploy exactly the container bytes that passed integration testing last week. The incident review finds the following problem: A mutable latest tag can point to different image bytes on separate deployments. What is the BEST targeted corrective action?

  1. Rebuild source from the main branch during a rollback.
  2. Pull latest without recording its digest.
  3. Replace mutable tags with the approved digest and record that digest in release metadata.
  4. Change only the ECS service description without updating task image references.

Explanation

Correct Answer

C:

Replace mutable tags with the approved digest and record that digest in release metadata. This directly addresses the recorded immutable container image tags failure and should be checked by observing that the running task image digest matches the tested build artifact after deployment and rollback.

Incorrect Answers

A:

Rebuild source from the main branch during a rollback. This does not repair the identified immutable container image tags failure; the targeted remediation is to replace mutable tags with the approved digest and record that digest in release metadata.

B:

Pull latest without recording its digest. This does not repair the identified immutable container image tags failure; the targeted remediation is to replace mutable tags with the approved digest and record that digest in release metadata.

D:

Change only the ECS service description without updating task image references. This does not repair the identified immutable container image tags failure; the targeted remediation is to replace mutable tags with the approved digest and record that digest in release metadata.

Question 516

A backup application needs to retry portions of multi-gigabyte objects without retransmitting the whole object. The incident review finds the following problem: Unfinished multipart uploads accumulate stored parts and cannot be read as a completed object. What is the BEST targeted corrective action?

  1. Treat uploaded parts as a complete object before CompleteMultipartUpload.
  2. Set public-read on the bucket to resume failed parts.
  3. Retry the full multi-gigabyte PUT for every lost packet.
  4. Retry failed parts, complete with recorded part ETags, and abort abandoned uploads.

Explanation

Correct Answer

D:

Retry failed parts, complete with recorded part ETags, and abort abandoned uploads. This directly addresses the recorded S3 multipart upload recovery failure and should be checked by observing that uploaded parts can be retried independently and the completed object is present only after completion.

Incorrect Answers

A:

Treat uploaded parts as a complete object before CompleteMultipartUpload. This does not repair the identified S3 multipart upload recovery failure; the targeted remediation is to retry failed parts, complete with recorded part ETags, and abort abandoned uploads.

B:

Set public-read on the bucket to resume failed parts. This does not repair the identified S3 multipart upload recovery failure; the targeted remediation is to retry failed parts, complete with recorded part ETags, and abort abandoned uploads.

C:

Retry the full multi-gigabyte PUT for every lost packet. This does not repair the identified S3 multipart upload recovery failure; the targeted remediation is to retry failed parts, complete with recorded part ETags, and abort abandoned uploads.

Question 517

Developers ask Amazon Q Developer for tests during a refactor and need to validate security assumptions. The incident review finds the following problem: Accepting generated code without review can introduce incorrect APIs or excessive permissions. What is the BEST targeted corrective action?

  1. Treat AI output as authoritative without executing tests.
  2. Run focused tests, scan IAM usage, and review suggested edits before merging.
  3. Disable version control because suggestions are machine-generated.
  4. Grant administrator access to every generated component.

Explanation

Correct Answer

B:

Run focused tests, scan IAM usage, and review suggested edits before merging. This directly addresses the recorded Amazon Q Developer review failure and should be checked by observing that test results and code review demonstrate generated changes meet requirements without new permissions exposure.

Incorrect Answers

A:

Treat AI output as authoritative without executing tests. This does not repair the identified Amazon Q Developer review failure; the targeted remediation is to run focused tests, scan IAM usage, and review suggested edits before merging.

C:

Disable version control because suggestions are machine-generated. This does not repair the identified Amazon Q Developer review failure; the targeted remediation is to run focused tests, scan IAM usage, and review suggested edits before merging.

D:

Grant administrator access to every generated component. This does not repair the identified Amazon Q Developer review failure; the targeted remediation is to run focused tests, scan IAM usage, and review suggested edits before merging.

Question 518

A video metadata parser needs faster execution and its CPU allocation is too small at the current memory size. The incident review finds the following problem: Holding memory at the minimum can constrain compute even when the function has spare heap. What is the BEST targeted corrective action?

  1. Add a public S3 ACL to accelerate processing.
  2. Increase API Gateway stage cache size to give Lambda more CPU.
  3. Double the function timeout without changing CPU allocation.
  4. Benchmark memory and duration together, then choose a cost-performance point.

Explanation

Correct Answer

D:

Benchmark memory and duration together, then choose a cost-performance point. This directly addresses the recorded Lambda memory CPU tuning failure and should be checked by observing that duration and billed-duration measurements improve at a tested memory setting without breaching budget.

Incorrect Answers

A:

Add a public S3 ACL to accelerate processing. This does not repair the identified Lambda memory CPU tuning failure; the targeted remediation is to benchmark memory and duration together, then choose a cost-performance point.

B:

Increase API Gateway stage cache size to give Lambda more CPU. This does not repair the identified Lambda memory CPU tuning failure; the targeted remediation is to benchmark memory and duration together, then choose a cost-performance point.

C:

Double the function timeout without changing CPU allocation. This does not repair the identified Lambda memory CPU tuning failure; the targeted remediation is to benchmark memory and duration together, then choose a cost-performance point.

Question 519

A locally run test harness needs role credentials to call a single AWS API without storing secrets in its repository. The incident review finds the following problem: Hardcoded long-lived keys can leak through artifacts and remain usable after local sessions end. What is the BEST targeted corrective action?

  1. Migrate the developer flow to short-lived configured credentials and rotate any embedded keys.
  2. Disable all credential-expiration checks in the SDK.
  3. Send credentials in query strings to simplify debugging.
  4. Commit a shared access key in a config JSON file.

Explanation

Correct Answer

A:

Migrate the developer flow to short-lived configured credentials and rotate any embedded keys. This directly addresses the recorded temporary credential storage failure and should be checked by observing that the application authenticates using temporary provider credentials and the repository contains no keys.

Incorrect Answers

B:

Disable all credential-expiration checks in the SDK. This does not repair the identified temporary credential storage failure; the targeted remediation is to migrate the developer flow to short-lived configured credentials and rotate any embedded keys.

C:

Send credentials in query strings to simplify debugging. This does not repair the identified temporary credential storage failure; the targeted remediation is to migrate the developer flow to short-lived configured credentials and rotate any embedded keys.

D:

Commit a shared access key in a config JSON file. This does not repair the identified temporary credential storage failure; the targeted remediation is to migrate the developer flow to short-lived configured credentials and rotate any embedded keys.

Question 520

An IaC-managed stack has configuration differences from its recorded template. The incident review finds the following problem: Manual configuration changes may be overwritten or missed by the next IaC deployment. What is the BEST targeted corrective action?

  1. Delete the entire cloud account when one property differs.
  2. Assume a successful unit test proves there is no stack drift.
  3. Review drift, update the template when changes are valid, and redeploy controlled state.
  4. Manually edit each resource again after every pipeline run.

Explanation

Correct Answer

C:

Review drift, update the template when changes are valid, and redeploy controlled state. This directly addresses the recorded infrastructure drift detection failure and should be checked by observing that drift results identify divergent supported properties and a later deployment restores intended state.

Incorrect Answers

A:

Delete the entire cloud account when one property differs. This does not repair the identified infrastructure drift detection failure; the targeted remediation is to review drift, update the template when changes are valid, and redeploy controlled state.

B:

Assume a successful unit test proves there is no stack drift. This does not repair the identified infrastructure drift detection failure; the targeted remediation is to review drift, update the template when changes are valid, and redeploy controlled state.

D:

Manually edit each resource again after every pipeline run. This does not repair the identified infrastructure drift detection failure; the targeted remediation is to review drift, update the template when changes are valid, and redeploy controlled state.

AWS Certified Developer - Associate DVA-C02 Practice Tests