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 14

Question 130

A data-sharing workload has S3 read access but cannot decrypt an encrypted cross-account report. Which developer action MOST directly meets the stated constraint?

  1. Add only s3:GetObject and assume it grants kms:Decrypt.
  2. Authorize the external principal through the KMS key policy and the caller's IAM permissions for the needed cryptographic operation.
  3. Turn on public bucket read to bypass the KMS key policy.
  4. Enable supported IAM database authentication, generate an auth token with the SDK, and connect over TLS with required database grants.

Explanation

Correct Answer

B:

Authorize the external principal through the KMS key policy and the caller's IAM permissions for the needed cryptographic operation. Cross-account KMS use needs key-policy authorization in the owning account and corresponding caller permissions. For this second operating case, verify that the external role can use the approved KMS key while unrelated principals remain denied.

Incorrect Answers

A:

Add only s3:GetObject and assume it grants kms:Decrypt. This shortcut would leave the KMS key-policy cross-account requirement unresolved; an S3 object permission alone does not give decrypt access to its KMS key.

C:

Turn on public bucket read to bypass the KMS key policy. This shortcut would leave the KMS key-policy cross-account requirement unresolved; an S3 object permission alone does not give decrypt access to its KMS key.

D:

This technique primarily addresses IAM authentication and TLS for RDS; it would not demonstrate KMS key-policy cross-account or directly prove that the external role can use the approved KMS key while unrelated principals remain denied.

Question 131

A rollback exercise needs to switch a function's traffic pointer without editing code packages. Which developer action MOST directly meets the stated constraint?

  1. Overwrite a published Lambda version with new code.
  2. Test $LATEST and assume aliases always follow it automatically.
  3. Run consumer contract tests across supported API versions and stage new behavior before promotion.
  4. Publish immutable Lambda versions and point separate aliases to the intended tested version.

Explanation

Correct Answer

D:

Publish immutable Lambda versions and point separate aliases to the intended tested version. Lambda versions snapshot function code and configuration; aliases provide movable references. For this second operating case, verify that calls through each alias invoke the expected immutable version and production remains stable.

Incorrect Answers

A:

Overwrite a published Lambda version with new code. This shortcut would leave the Lambda alias version testing requirement unresolved; invoking the unqualified mutable $LATEST for production tests confuses tested and deployed revisions.

B:

Test $LATEST and assume aliases always follow it automatically. This shortcut would leave the Lambda alias version testing requirement unresolved; invoking the unqualified mutable $LATEST for production tests confuses tested and deployed revisions.

C:

This technique primarily addresses contract testing versioned API; it would not demonstrate Lambda alias version testing or directly prove that calls through each alias invoke the expected immutable version and production remains stable.

Question 132

A service stores a partner API credential and needs controlled update and audited retrieval. Which developer action MOST directly meets the stated constraint?

  1. Store the secret in Secrets Manager and use a supported rotation workflow with least-privilege GetSecretValue.
  2. Commit rotated passwords to the Git repository.
  3. Use a plaintext build log as the secret vault.
  4. Apply field-level authorization and mask sensitive attributes before serializing responses.

Explanation

Correct Answer

A:

Store the secret in Secrets Manager and use a supported rotation workflow with least-privilege GetSecretValue. Secrets Manager versions and rotation workflows manage sensitive values outside deployment artifacts. For this second operating case, verify that rotated secret versions become available to authorized consumers and the application refreshes its cached credential.

Incorrect Answers

B:

Commit rotated passwords to the Git repository. This shortcut would leave the Secrets Manager rotation requirement unresolved; a long-lived credential hardcoded into a container image stays stale after rotation.

C:

Use a plaintext build log as the secret vault. This shortcut would leave the Secrets Manager rotation requirement unresolved; a long-lived credential hardcoded into a container image stays stale after rotation.

D:

This technique primarily addresses PII response field masking; it would not demonstrate Secrets Manager rotation or directly prove that rotated secret versions become available to authorized consumers and the application refreshes its cached credential.

Question 133

A Python service must authenticate API calls to AWS without putting a static signature string into requests. Which developer action MOST directly meets the stated constraint?

  1. Assign distinct least-privilege execution roles to functions according to their required service calls.
  2. Remove the signature header and rely on network privacy.
  3. Use an AWS SDK with its default credential provider chain and SigV4 request signing.
  4. Paste a fixed signed header into every outgoing request.

Explanation

Correct Answer

C:

Use an AWS SDK with its default credential provider chain and SigV4 request signing. SigV4 signs request components using AWS credentials and short-lived credentials include a session token. For this second operating case, verify that aPI requests carry valid signatures derived from current credentials and pass IAM authorization.

Incorrect Answers

A:

This technique primarily addresses Lambda execution-role separation; it would not demonstrate SigV4 authenticated SDK requests or directly prove that aPI requests carry valid signatures derived from current credentials and pass IAM authorization.

B:

Remove the signature header and rely on network privacy. This shortcut would leave the SigV4 authenticated SDK requests requirement unresolved; manually reusing an old signature fails when headers, body, timestamps, or credentials change.

D:

Paste a fixed signed header into every outgoing request. This shortcut would leave the SigV4 authenticated SDK requests requirement unresolved; manually reusing an old signature fails when headers, body, timestamps, or credentials change.

Question 134

A data processor's release checks need controlled success and failure events for regression testing. Which developer action MOST directly meets the stated constraint?

  1. Treat a successful Docker image push as proof all event paths work.
  2. Run sam validate and template linting before packaging and deploying the application.
  3. Create versioned JSON test event fixtures and assert both expected outputs and error paths during automated tests.
  4. Replace every event fixture with an empty JSON object.

Explanation

Correct Answer

C:

Create versioned JSON test event fixtures and assert both expected outputs and error paths during automated tests. Explicit test fixtures make regression behavior reproducible across deployments. For this second operating case, verify that candidate builds pass deterministic positive and negative test cases with expected response contracts.

Incorrect Answers

A:

Treat a successful Docker image push as proof all event paths work. This shortcut would leave the deployment test event generation requirement unresolved; tests using only happy-path payloads miss error handling and event-shape incompatibilities.

B:

This technique primarily addresses SAM template validation; it would not demonstrate deployment test event generation or directly prove that candidate builds pass deterministic positive and negative test cases with expected response contracts.

D:

Replace every event fixture with an empty JSON object. This shortcut would leave the deployment test event generation requirement unresolved; tests using only happy-path payloads miss error handling and event-shape incompatibilities.

Question 135

A payment processor must have a bounded concurrency allocation while a reporting job spikes. Which developer action MOST directly meets the stated constraint?

  1. Attach Lambda to appropriate subnets and security groups with allowed routes and database connectivity.
  2. Use CloudFront cache invalidation to reserve Lambda execution slots.
  3. Set every function reserved concurrency equal to the account total.
  4. Configure reserved concurrency for the critical function at a measured level within account limits.

Explanation

Correct Answer

D:

Configure reserved concurrency for the critical function at a measured level within account limits. Reserved concurrency reserves and caps function concurrency; provisioned concurrency addresses pre-initialized capacity. For this second operating case, verify that function concurrency metrics show the reserved limit applied and other functions retain available capacity.

Incorrect Answers

A:

This technique primarily addresses Lambda VPC private data access; it would not demonstrate Lambda concurrency reservation or directly prove that function concurrency metrics show the reserved limit applied and other functions retain available capacity.

B:

Use CloudFront cache invalidation to reserve Lambda execution slots. This shortcut would leave the Lambda concurrency reservation requirement unresolved; uncontrolled shared concurrency can let a noisy function starve other executions.

C:

Set every function reserved concurrency equal to the account total. This shortcut would leave the Lambda concurrency reservation requirement unresolved; uncontrolled shared concurrency can let a noisy function starve other executions.

Question 136

A federated user must obtain scoped temporary AWS credentials instead of embedding access keys in the app. Which developer action MOST directly meets the stated constraint?

  1. Use an Amazon Cognito user pool as the user directory and authenticate users to obtain tokens.
  2. Embed root account access keys in the app bundle.
  3. Use only a user pool token as an S3 SigV4 signing secret.
  4. Exchange trusted identities through a Cognito identity pool for role-scoped temporary AWS credentials.

Explanation

Correct Answer

D:

Exchange trusted identities through a Cognito identity pool for role-scoped temporary AWS credentials. Cognito identity pools broker temporary AWS credentials for supported identity providers. For this second operating case, verify that federated users obtain expiring role credentials constrained to the intended S3 paths.

Incorrect Answers

A:

This technique primarily addresses Cognito user pool authentication; it would not demonstrate Cognito identity pool AWS access or directly prove that federated users obtain expiring role credentials constrained to the intended S3 paths.

B:

Embed root account access keys in the app bundle. This shortcut would leave the Cognito identity pool AWS access requirement unresolved; shipping permanent IAM access keys in a client creates unrestricted reusable credentials.

C:

Use only a user pool token as an S3 SigV4 signing secret. This shortcut would leave the Cognito identity pool AWS access requirement unresolved; shipping permanent IAM access keys in a client creates unrestricted reusable credentials.

Question 137

A document index returns results quickly for exact terms but not for certain expensive aggregations. Which developer action MOST directly meets the stated constraint?

  1. Add unused DynamoDB read capacity to reduce OpenSearch shard work.
  2. Inspect query profiles, shard pressure, and index mappings before optimizing the search request.
  3. Move the query into a browser loop with more requests.
  4. Add expiration jitter and single-flight request coalescing or locking around cache repopulation.

Explanation

Correct Answer

B:

Inspect query profiles, shard pressure, and index mappings before optimizing the search request. Search engine query structure and indexing choices can dominate latency beyond API worker CPU. For this second operating case, verify that profile output identifies the costly query phase and a revised query reduces latency under representative load.

Incorrect Answers

A:

Add unused DynamoDB read capacity to reduce OpenSearch shard work. This shortcut would leave the OpenSearch query performance profiling requirement unresolved; scaling only the API tier does not correct an expensive OpenSearch query pattern.

C:

Move the query into a browser loop with more requests. This shortcut would leave the OpenSearch query performance profiling requirement unresolved; scaling only the API tier does not correct an expensive OpenSearch query pattern.

D:

This technique primarily addresses application cache stampede; it would not demonstrate OpenSearch query performance profiling or directly prove that profile output identifies the costly query phase and a revised query reduces latency under representative load.

Question 138

A queue worker should test batch partial failure outputs before a production release. Which developer action MOST directly meets the stated constraint?

  1. Build test events using realistic SQS Records metadata and verify handler output plus failure identifiers.
  2. Assert only that the Lambda function imports successfully.
  3. Deploy API changes to an isolated API Gateway stage with stage-specific configuration.
  4. Disable tests for malformed records entirely.

Explanation

Correct Answer

A:

Build test events using realistic SQS Records metadata and verify handler output plus failure identifiers. Event-driven tests must exercise the actual source envelope and partial failure contract. For this second operating case, verify that contract tests prove valid records process once logically and only failed IDs are reported.

Incorrect Answers

B:

Assert only that the Lambda function imports successfully. This shortcut would leave the SQS handler contract tests requirement unresolved; testing a bare JSON object instead of an SQS event misses envelope parsing defects.

C:

This technique primarily addresses API Gateway staging endpoints; it would not demonstrate SQS handler contract tests or directly prove that contract tests prove valid records process once logically and only failed IDs are reported.

D:

Disable tests for malformed records entirely. This shortcut would leave the SQS handler contract tests requirement unresolved; testing a bare JSON object instead of an SQS event misses envelope parsing defects.

Question 139

A CI stage builds a container and should fail before image publish if unit tests fail. Which developer action MOST directly meets the stated constraint?

  1. Mark every test command with ignore-error behavior.
  2. Upload artifacts before dependencies are installed.
  3. Configure stage-specific variables or integrations pointing to the intended Lambda alias and grant invoke permissions.
  4. Define buildspec phases that install, test, and package artifacts in the correct order with failure propagation.

Explanation

Correct Answer

D:

Define buildspec phases that install, test, and package artifacts in the correct order with failure propagation. CodeBuild buildspec phases and exit codes control which artifacts advance in CI. For this second operating case, verify that the build fails on a seeded test failure and publishes an artifact only after tests succeed.

Incorrect Answers

A:

Mark every test command with ignore-error behavior. This shortcut would leave the CodeBuild buildspec sequencing requirement unresolved; packaging before test validation can promote artifacts containing known defects.

B:

Upload artifacts before dependencies are installed. This shortcut would leave the CodeBuild buildspec sequencing requirement unresolved; packaging before test validation can promote artifacts containing known defects.

C:

This technique primarily addresses API Gateway stage variables; it would not demonstrate CodeBuild buildspec sequencing or directly prove that the build fails on a seeded test failure and publishes an artifact only after tests succeed.

Question 140

A streaming application needs per-customer record order while spreading load across independent partitions. Which developer action MOST directly meets the stated constraint?

  1. Expect global order across unrelated shards.
  2. Select a stable partition key for each entity and distribute different keys across Kinesis shards.
  3. Write a stable event ID with a conditional DynamoDB write and skip a side effect when that ID was processed.
  4. Publish all records with a single literal partition key.

Explanation

Correct Answer

B:

Select a stable partition key for each entity and distribute different keys across Kinesis shards. Kinesis ordering is guaranteed within a shard and partition key choices determine shard affinity. For this second operating case, verify that records for one entity remain ordered while shard-level incoming and processing rates stay within quotas.

Incorrect Answers

A:

Expect global order across unrelated shards. This shortcut would leave the Kinesis shard partitioning requirement unresolved; using one constant partition key creates a hot shard even when more shards are available.

C:

This technique primarily addresses idempotent event handling; it would not demonstrate Kinesis shard partitioning or directly prove that records for one entity remain ordered while shard-level incoming and processing rates stay within quotas.

D:

Publish all records with a single literal partition key. This shortcut would leave the Kinesis shard partitioning requirement unresolved; using one constant partition key creates a hot shard even when more shards are available.

AWS Certified Developer - Associate DVA-C02 Practice Tests