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 8

Question 70

Unit tests call a paid third-party API and become flaky during external outages. Which implementation approach BEST addresses this requirement?

  1. Replace every external test with a generic ping to localhost.
  2. Put production API credentials in public test fixtures.
  3. Mock external dependency responses in unit tests and retain separate contract or integration tests.
  4. Turn off test assertions whenever the partner is unavailable.

Explanation

Correct Answer

C:

Mock external dependency responses in unit tests and retain separate contract or integration tests. Mocks isolate code logic while independent integration checks validate real API contracts. A confirming test would show: Tests deterministically exercise success, timeout, and error handling without contacting the live partner.

Incorrect Answers

A:

Replace every external test with a generic ping to localhost. This suggestion does not establish the required API external dependency mocks; the relevant risk is that relying only on live third-party calls makes tests slow and nondeterministic.

B:

Put production API credentials in public test fixtures. This suggestion does not establish the required API external dependency mocks; the relevant risk is that relying only on live third-party calls makes tests slow and nondeterministic.

D:

Turn off test assertions whenever the partner is unavailable. This suggestion does not establish the required API external dependency mocks; the relevant risk is that relying only on live third-party calls makes tests slow and nondeterministic.

Question 71

A serverless API experiences slow first requests after idle periods with large dependency packages. Which implementation approach BEST addresses this requirement?

  1. Increase SQS message retention to remove Lambda initialization.
  2. Inspect Lambda init-duration and handler-duration metrics and reduce startup work or use provisioned concurrency when justified.
  3. Store imported modules in an API Gateway stage variable.
  4. Disable CloudWatch logs to guarantee warm execution.

Explanation

Correct Answer

B:

Inspect Lambda init-duration and handler-duration metrics and reduce startup work or use provisioned concurrency when justified. Lambda cold-start initialization is distinct from code execution duration. A confirming test would show: Telemetry separates initialization delay from handler time and shows improvement after the change.

Incorrect Answers

A:

Increase SQS message retention to remove Lambda initialization. This suggestion does not establish the required Lambda Init Duration diagnosis; the relevant risk is that optimizing only DynamoDB Query speed cannot eliminate time spent before the handler begins.

C:

Store imported modules in an API Gateway stage variable. This suggestion does not establish the required Lambda Init Duration diagnosis; the relevant risk is that optimizing only DynamoDB Query speed cannot eliminate time spent before the handler begins.

D:

Disable CloudWatch logs to guarantee warm execution. This suggestion does not establish the required Lambda Init Duration diagnosis; the relevant risk is that optimizing only DynamoDB Query speed cannot eliminate time spent before the handler begins.

Question 72

An API should be callable only from a known VPC endpoint, not the entire internet. Which implementation approach BEST addresses this requirement?

  1. Rely on endpoint naming conventions without a resource policy.
  2. Configure CORS headers as the only network access restriction.
  3. Define an API Gateway resource policy with explicit conditions for approved source VPC endpoints.
  4. Set a low throttling burst rate to block unauthorized networks.

Explanation

Correct Answer

C:

Define an API Gateway resource policy with explicit conditions for approved source VPC endpoints. Resource policies can restrict the source principals or network context independently from route authorizers. A confirming test would show: Requests from the intended endpoint succeed and other source contexts receive access denied.

Incorrect Answers

A:

Rely on endpoint naming conventions without a resource policy. This suggestion does not establish the required API Gateway resource policy; the relevant risk is that omitting the source restriction can leave a supposedly internal API exposed to more callers.

B:

Configure CORS headers as the only network access restriction. This suggestion does not establish the required API Gateway resource policy; the relevant risk is that omitting the source restriction can leave a supposedly internal API exposed to more callers.

D:

Set a low throttling burst rate to block unauthorized networks. This suggestion does not establish the required API Gateway resource policy; the relevant risk is that omitting the source restriction can leave a supposedly internal API exposed to more callers.

Question 73

A Lambda function update must route only 10 percent of traffic to a new version before full rollout. Which implementation approach BEST addresses this requirement?

  1. Use an S3 lifecycle rule to split Lambda alias requests.
  2. Configure CodeDeploy Lambda traffic shifting with alarms and a tested rollback policy.
  3. Delete CloudWatch alarms during the canary window.
  4. Overwrite the production published version instead of using aliases.

Explanation

Correct Answer

B:

Configure CodeDeploy Lambda traffic shifting with alarms and a tested rollback policy. Canary deployment limits initial exposure by progressively shifting live traffic to a candidate version. A confirming test would show: Alias routing starts at the selected small percentage and alarms can trigger rollback.

Incorrect Answers

A:

Use an S3 lifecycle rule to split Lambda alias requests. This suggestion does not establish the required CodeDeploy Lambda canary; the relevant risk is that switching all traffic at once removes early canary detection.

C:

Delete CloudWatch alarms during the canary window. This suggestion does not establish the required CodeDeploy Lambda canary; the relevant risk is that switching all traffic at once removes early canary detection.

D:

Overwrite the production published version instead of using aliases. This suggestion does not establish the required CodeDeploy Lambda canary; the relevant risk is that switching all traffic at once removes early canary detection.

Question 74

A session store records an expiration timestamp but the app must deny an expired session immediately. Which implementation approach BEST addresses this requirement?

  1. Assume DynamoDB TTL removes a record at the exact second.
  2. Use a GSI to force TTL deletion instantly.
  3. Turn off expiration checks when Time to Live is enabled.
  4. Check the epoch expiration attribute in application logic while using DynamoDB TTL for eventual cleanup.

Explanation

Correct Answer

D:

Check the epoch expiration attribute in application logic while using DynamoDB TTL for eventual cleanup. DynamoDB TTL deletion is asynchronous and must not be the only immediate expiry enforcement. A confirming test would show: An expired item is denied by the app even when the physical DynamoDB item has not yet disappeared.

Incorrect Answers

A:

Assume DynamoDB TTL removes a record at the exact second. This suggestion does not establish the required DynamoDB TTL expiry semantics; the relevant risk is that treating TTL cleanup as synchronous can keep expired data valid until deletion occurs.

B:

Use a GSI to force TTL deletion instantly. This suggestion does not establish the required DynamoDB TTL expiry semantics; the relevant risk is that treating TTL cleanup as synchronous can keep expired data valid until deletion occurs.

C:

Turn off expiration checks when Time to Live is enabled. This suggestion does not establish the required DynamoDB TTL expiry semantics; the relevant risk is that treating TTL cleanup as synchronous can keep expired data valid until deletion occurs.

Question 75

Two Lambda functions need different access to the same customer dataset and billing reports. Which implementation approach BEST addresses this requirement?

  1. Assign distinct least-privilege execution roles to functions according to their required service calls.
  2. Make the data bucket public so both functions can access it.
  3. Share an IAM user's long-term key as a global environment variable.
  4. Attach AdministratorAccess to every Lambda to avoid policy errors.

Explanation

Correct Answer

A:

Assign distinct least-privilege execution roles to functions according to their required service calls. Separate execution roles reduce blast radius when individual workloads are compromised. A confirming test would show: IAM policy simulation or live tests show each function cannot use the other's unrelated resources.

Incorrect Answers

B:

Make the data bucket public so both functions can access it. This suggestion does not establish the required Lambda execution-role separation; the relevant risk is that reusing an administrator role for every function violates workload-level least privilege.

C:

Share an IAM user's long-term key as a global environment variable. This suggestion does not establish the required Lambda execution-role separation; the relevant risk is that reusing an administrator role for every function violates workload-level least privilege.

D:

Attach AdministratorAccess to every Lambda to avoid policy errors. This suggestion does not establish the required Lambda execution-role separation; the relevant risk is that reusing an administrator role for every function violates workload-level least privilege.

Question 76

A JSON API must admit only callers with valid bearer access tokens issued by a trusted user directory. Which implementation approach BEST addresses this requirement?

  1. Configure a JWT authorizer with the trusted issuer and audience and bind it to protected API routes.
  2. Accept every token whose JSON payload includes a username.
  3. Compare only whether bearer-token length is greater than ten.
  4. Turn off all authorizers once TLS is enabled.

Explanation

Correct Answer

A:

Configure a JWT authorizer with the trusted issuer and audience and bind it to protected API routes. JWT verification checks cryptographic signature and claims, not only whether a header exists. A confirming test would show: Valid JWTs reach integrations while expired, bad-signature, or wrong-audience tokens are rejected.

Incorrect Answers

B:

Accept every token whose JSON payload includes a username. This suggestion does not establish the required API Gateway JWT authorizer; the relevant risk is that merely checking that Authorization is nonempty accepts fabricated or expired tokens.

C:

Compare only whether bearer-token length is greater than ten. This suggestion does not establish the required API Gateway JWT authorizer; the relevant risk is that merely checking that Authorization is nonempty accepts fabricated or expired tokens.

D:

Turn off all authorizers once TLS is enabled. This suggestion does not establish the required API Gateway JWT authorizer; the relevant risk is that merely checking that Authorization is nonempty accepts fabricated or expired tokens.

Question 77

A Python Lambda needs distinct API base URLs in staging and production without code forks. Which implementation approach BEST addresses this requirement?

  1. Commit a different handler source for every environment variable.
  2. Treat environment variables as shared storage between parallel invocations.
  3. Put sensitive credentials directly in plaintext logs.
  4. Set environment-specific Lambda configuration or AWS AppConfig values and read them at runtime.

Explanation

Correct Answer

D:

Set environment-specific Lambda configuration or AWS AppConfig values and read them at runtime. Runtime configuration separates deployment settings from executable code when values differ by environment. A confirming test would show: Invocations in each environment show the configured nonsecret value without changing application source.

Incorrect Answers

A:

Commit a different handler source for every environment variable. This suggestion does not establish the required Lambda environment configuration; the relevant risk is that hardcoded stage URLs in application source can send production traffic to the wrong backend.

B:

Treat environment variables as shared storage between parallel invocations. This suggestion does not establish the required Lambda environment configuration; the relevant risk is that hardcoded stage URLs in application source can send production traffic to the wrong backend.

C:

Put sensitive credentials directly in plaintext logs. This suggestion does not establish the required Lambda environment configuration; the relevant risk is that hardcoded stage URLs in application source can send production traffic to the wrong backend.

Question 78

A client uploads very large video files over unstable networks and must resume failed parts. Which implementation approach BEST addresses this requirement?

  1. Retry the full multi-gigabyte PUT for every lost packet.
  2. Use the S3 multipart upload API with part tracking and complete or abort the upload correctly.
  3. Set public-read on the bucket to resume failed parts.
  4. Treat uploaded parts as a complete object before CompleteMultipartUpload.

Explanation

Correct Answer

B:

Use the S3 multipart upload API with part tracking and complete or abort the upload correctly. Multipart uploads allow independent parts and require a final completion call. A confirming test would show: Uploaded parts can be retried independently and the completed object is present only after completion.

Incorrect Answers

A:

Retry the full multi-gigabyte PUT for every lost packet. This suggestion does not establish the required S3 multipart upload recovery; the relevant risk is that unfinished multipart uploads accumulate stored parts and cannot be read as a completed object.

C:

Set public-read on the bucket to resume failed parts. This suggestion does not establish the required S3 multipart upload recovery; the relevant risk is that unfinished multipart uploads accumulate stored parts and cannot be read as a completed object.

D:

Treat uploaded parts as a complete object before CompleteMultipartUpload. This suggestion does not establish the required S3 multipart upload recovery; the relevant risk is that unfinished multipart uploads accumulate stored parts and cannot be read as a completed object.

Question 79

A staging deployment should use a different feature flag than production without changing code. Which implementation approach BEST addresses this requirement?

  1. Store feature flags in an unvalidated browser cookie only.
  2. Commit different copies of the application for every flag value.
  3. Store environment-specific configuration in AWS AppConfig and deploy validated configuration versions.
  4. Rely on IAM key rotation to change application feature behavior.

Explanation

Correct Answer

C:

Store environment-specific configuration in AWS AppConfig and deploy validated configuration versions. Configuration releases can be separated from binary releases with validators and deployment controls. A confirming test would show: The correct environment retrieves its scoped configuration and a failed rollout can be rolled back.

Incorrect Answers

A:

Store feature flags in an unvalidated browser cookie only. This suggestion does not establish the required environment-specific AppConfig; the relevant risk is that copying production flags into staging accidentally enables functionality in the wrong environment.

B:

Commit different copies of the application for every flag value. This suggestion does not establish the required environment-specific AppConfig; the relevant risk is that copying production flags into staging accidentally enables functionality in the wrong environment.

D:

Rely on IAM key rotation to change application feature behavior. This suggestion does not establish the required environment-specific AppConfig; the relevant risk is that copying production flags into staging accidentally enables functionality in the wrong environment.

Question 80

A developer manually changes an API Gateway resource outside CloudFormation and deployment behavior diverges. Which implementation approach BEST addresses this requirement?

  1. Manually edit each resource again after every pipeline run.
  2. Run CloudFormation drift detection for supported resource types and reconcile unexpected changes into the source template.
  3. Delete the entire cloud account when one property differs.
  4. Assume a successful unit test proves there is no stack drift.

Explanation

Correct Answer

B:

Run CloudFormation drift detection for supported resource types and reconcile unexpected changes into the source template. IaC tracks declared infrastructure; out-of-band console edits can cause state divergence. A confirming test would show: Drift results identify divergent supported properties and a later deployment restores intended state.

Incorrect Answers

A:

Manually edit each resource again after every pipeline run. This suggestion does not establish the required infrastructure drift detection; the relevant risk is that manual configuration changes may be overwritten or missed by the next IaC deployment.

C:

Delete the entire cloud account when one property differs. This suggestion does not establish the required infrastructure drift detection; the relevant risk is that manual configuration changes may be overwritten or missed by the next IaC deployment.

D:

Assume a successful unit test proves there is no stack drift. This suggestion does not establish the required infrastructure drift detection; the relevant risk is that manual configuration changes may be overwritten or missed by the next IaC deployment.

AWS Certified Developer - Associate DVA-C02 Practice Tests