100% Latest & Updated Amazon AWS Certified Developer - Associate DVA-C02 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 420
A team applies a reviewed fix for this situation: A customer search feature indexes JSON documents in OpenSearch but maps product price as text and numeric range filters behave incorrectly. Which observed outcome would most convincingly validate the fix?
- The same authorized cart survives container replacement and remains isolated from other shopper identities.
- A controlled normal transaction is excluded while high-risk events reach only the approved fraud subscription.
- Transient throttling recovers within the agreed budget while persistent throttling yields a controlled failure instead of a storm.
- Numeric range queries return the expected product set and the active alias points to the validated index.
Explanation
Correct Answer
D:Numeric range queries return the expected product set and the active alias points to the validated index. This verifies the result of create a compatible mapping with an appropriate numeric field and reindex verified documents under a controlled alias cutover.
Incorrect Answers
A:This would verify another situation: 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 validate the current case.
B:This would verify another 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. It does not validate the current case.
C:This would verify another situation: A payment application calls a rate-limited partner REST API and immediately retries HTTP 429 responses until the partner suspends access. It does not validate the current case.
Question 421
A developer creates short-lived download links but signs requests without constraining the HTTP method, resource or allowed signing credentials. Which engineering change best addresses the underlying issue?
- Review the caller IAM policy together with an SNS topic policy granting only the intended cross-account principal.
- Constrain the authorizer policy to appropriate method ARNs and bind per-request authorization to the intended user/resource context.
- Use an appropriately scoped ECS task role with SDK default credential retrieval and remove embedded long-lived keys.
- Generate method- and object-scoped signed requests under a least-privilege principal with appropriate expiry.
Explanation
Correct Answer
D:Generate method- and object-scoped signed requests under a least-privilege principal with appropriate expiry. It directly addresses the case cause (The presigning workflow allows a broader operation than the intended user action and permission boundary.) and should be verified by: The approved GET succeeds while unauthorized writes and access to unrelated object keys fail.
Incorrect Answers
A:That change addresses a Lambda function cannot publish to an SNS topic in another account although the execution role allows sns:Publish; it would not repair this incident.
B:That change addresses an API Gateway Lambda authorizer returns an Allow policy for an entire API wildcard after validating permission for one read-only resource; it would not repair this incident.
C:That change addresses an ECS application contains long-lived IAM access keys in environment variables even though its task has an assigned execution role; it would not repair this incident.
Question 422
An ECS application contains long-lived IAM access keys in environment variables even though its task has an assigned execution role. Which engineering change best addresses the underlying issue?
- Require authenticated TLS transport and approved endpoint identity validation for the outbound request.
- Use a supported certificate-management lifecycle and verified rotation or deployment process for the authenticated endpoint.
- Use an appropriately scoped ECS task role with SDK default credential retrieval and remove embedded long-lived keys.
- Validate inputs server-side and contextually encode user-controlled content in the response template.
Explanation
Correct Answer
C:Use an appropriately scoped ECS task role with SDK default credential retrieval and remove embedded long-lived keys. It directly addresses the case cause (Static credentials bypass role-based rotation and may override the intended scoped task role credential chain.) and should be verified by: The running task calls only permitted AWS actions and continues working after the old static keys are revoked.
Incorrect Answers
A:That change addresses a developer encrypts a sensitive payload at rest with an S3 bucket setting but sends that payload over an unencrypted partner HTTP connection; it would not repair this incident.
B:That change addresses a service pins a private certificate file inside a Lambda deployment package and does not redeploy when the certificate expires; it would not repair this incident.
D:That change addresses a developer sanitizes a user-submitted comment only on the browser, and malicious HTML is stored and displayed to other users; it would not repair this incident.
Question 423
A team applies a reviewed fix for this situation: A new application version deploys with AWS SAM, but the CloudFormation change set includes removal of a production DynamoDB table unexpectedly. Which observed outcome would most convincingly validate the fix?
- The deployed function reads its intended fixture and receives denial on an unrelated table.
- The deployed target accepts the real envelope and rejects malformed events with controlled errors.
- A clean dry-run shows only authorized resource changes and the live table remains present.
- The smoke test identifies the intended alias version and fails if traffic routes to the old handler.
Explanation
Correct Answer
C:A clean dry-run shows only authorized resource changes and the live table remains present. This verifies the result of inspect the stack change set, correct the template and enforce appropriate retention or protection policies before execution.
Incorrect Answers
A:This would verify another situation: A Lambda function passes mocked unit tests but fails in a real account because its execution role cannot read the intended DynamoDB table. It does not validate the current case.
B: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.
D:This would verify another situation: A CloudFormation update creates a new Lambda alias but a deployment script still targets the old unqualified function ARN in its smoke test. It does not validate the current case.
Question 424
A developer creates short-lived download links but signs requests without constraining the HTTP method, resource or allowed signing credentials. Select THREE complementary measures that correctly repair and validate, and prevent recurrence of this failure.
- Generate method- and object-scoped signed requests under a least-privilege principal with appropriate expiry.
- Log structured allowlisted metadata and redact secrets and personal values before emitting operational events.
- Test presigned URL method misuse and credential scope whenever link-generation code changes.
- A controlled markup payload displays as inert text while legitimate comments remain readable.
- The approved GET succeeds while unauthorized writes and access to unrelated object keys fail.
- Use permanent administrator credentials to sign arbitrary read and write URLs.
Explanation
Correct Answers
A:Generate method- and object-scoped signed requests under a least-privilege principal with appropriate expiry. The underlying cause is: The presigning workflow allows a broader operation than the intended user action and permission boundary.
C:Test presigned URL method misuse and credential scope whenever link-generation code changes. This protects against the following risk: The presigning workflow allows a broader operation than the intended user action and permission boundary.
E:The approved GET succeeds while unauthorized writes and access to unrelated object keys fail. This is the observable result required before accepting the correction.
Incorrect Answers
B:That corrective action is for a different case: A Lambda handler prints complete inbound API payloads to CloudWatch Logs, exposing personal addresses and session tokens in troubleshooting records. It does not resolve this incident.
D: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:Use permanent administrator credentials to sign arbitrary read and write URLs. That shortcut conflicts with the stated requirement.
Question 425
A team applies a reviewed fix for this situation: A Lambda API accepts an ID token in place of the OAuth access token used for protected API scopes and grants an unintended operation. Which observed outcome would most convincingly validate the fix?
- Cross-tenant prefix probes fail while an authorized tenant can export only its own records.
- An ID token cannot invoke the protected action and a correctly scoped access token can invoke only its intended operation.
- An approved encrypted object is readable while decrypting another customer's objects remains denied.
- An authorized client can decrypt ciphertext while repository readers cannot recover the plaintext key.
Explanation
Correct Answer
B:An ID token cannot invoke the protected action and a correctly scoped access token can invoke only its intended operation. This verifies the result of enforce the appropriate access token use and verify configured OAuth scopes and resource-level permissions.
Incorrect Answers
A:This would verify another situation: A multi-tenant data export Lambda assumes an S3 key prefix from the request body and permits tenant A to select tenant B's export prefix. It does not validate the current case.
C:This would verify another situation: An S3 application uses SSE-KMS but a Lambda download fails because its role can call GetObject but cannot decrypt with the customer-managed key. It does not validate the current case.
D:This would verify another situation: A DynamoDB application encrypts customer values with a shared manually managed data key stored as plaintext in its repository. It does not validate the current case.
Question 426
After resolving the following incident, which ongoing safeguard most directly prevents recurrence? A stateless containerized checkout API stores shopping-cart state only in a process dictionary and loses carts when traffic shifts to a new task.
- Test network connectivity independently from credential validity whenever Lambda VPC configuration changes.
- Version the transport encoding contract and keep compressed-message test fixtures across deployment changes.
- Exercise task replacement and concurrent access in tests without relying on connection affinity.
- Track initialization duration and dependency size in pre-release Lambda performance tests.
Explanation
Correct Answer
C:Exercise task replacement and concurrent access in tests without relying on connection affinity. This safeguards against a recurring cause: Application state is tied to one transient compute instance rather than a shared state contract.
Incorrect Answers
A:That safeguard addresses another case: A Lambda function runs in a private VPC subnet and cannot reach its intended RDS endpoint, although the stored database username and password are correct. It is not the control for this recurring failure.
B:That safeguard addresses another 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 is not the control for this recurring failure.
D:That safeguard addresses another case: A Lambda API endpoint has high first-request latency after deployments because a large package loads heavy optional libraries during initialization. It is not the control for this recurring failure.
Question 427
After resolving the following incident, which ongoing safeguard most directly prevents recurrence? A DynamoDB application requires immediate read-after-write consistency but queries a global secondary index and occasionally reads an older version.
- Document consistency requirements per access pattern and test each indexed read path separately.
- Include peak temporary-disk checks and cleanup paths in the function's performance test suite.
- Test retry and circuit-breaker behavior against simulated 429 and 5xx partner responses.
- Run inventory tests beyond the service page size and store resumable progress for interrupted scans.
Explanation
Correct Answer
A:Document consistency requirements per access pattern and test each indexed read path separately. This safeguards against a recurring cause: Global secondary index reads provide eventual consistency and cannot supply a strongly consistent read mode.
Incorrect Answers
B:That safeguard addresses another case: A Lambda image conversion function fills the available /tmp directory with temporary video frames even though memory utilization remains low. It is not the control for this recurring failure.
C:That safeguard addresses another case: A payment application calls a rate-limited partner REST API and immediately retries HTTP 429 responses until the partner suspends access. It is not the control for this recurring failure.
D:That safeguard addresses another case: An AWS SDK program lists the first page of S3 objects and a nightly reconciliation misses records once a prefix exceeds the page limit. It is not the control for this recurring failure.
Question 428
A scheduled Lambda job uses an environment-specific API endpoint hardcoded for staging even after the deployment reaches production. Which technical dependency most directly explains this behavior?
- The build embeds environment configuration that does not match its deployment stage.
- Mocked logic tests do not validate the deployed role's real service permissions and resource identity.
- The test crosses an external billing boundary without using a controlled sandbox or mock dependency.
- The test invocation does not exercise the exact deployed version and traffic-shift destination.
Explanation
Correct Answer
A:The build embeds environment configuration that does not match its deployment stage. The corresponding fix is to externalize reviewed stage-specific settings through approved parameters or AWS AppConfig and validate them before launch.
Incorrect Answers
B:This diagnosis addresses another AWS case: A Lambda function passes mocked unit tests but fails in a real account because its execution role cannot read the intended DynamoDB table. The dependency here is different.
C:This diagnosis addresses another AWS case: A checkout integration test calls a live payment provider and charges a customer account every time the CI pipeline runs. The dependency here is different.
D:This diagnosis addresses another AWS case: A CloudFormation update creates a new Lambda alias but a deployment script still targets the old unqualified function ARN in its smoke test. The dependency here is different.
Question 429
An API Gateway REST integration returns HTTP 502 while its Lambda invocation logs show a successful handler return with malformed proxy response fields. Which engineering change best addresses the underlying issue?
- Return the supported proxy response shape and validate serialized body and status-code types.
- Cache approved nonsecret configuration with expiration and refresh behavior appropriate to staleness requirements.
- Eliminate unbounded retained references and profile memory usage under repeated representative warm invocations.
- Use supported trace-context propagation and appropriate downstream instrumentation and permissions.
Explanation
Correct Answer
A:Return the supported proxy response shape and validate serialized body and status-code types. It directly addresses the case cause (The Lambda proxy integration response does not satisfy the expected statusCode, headers and body contract.) and should be verified by: A controlled API invocation returns the expected status and JSON body without an integration-generated 502.
Incorrect Answers
B:That change addresses a Lambda image endpoint loads an expensive configuration database record for every invocation even though the record changes only once per hour; it would not repair this incident.
C:That change addresses a Node.js Lambda function allocates large objects at module scope per invocation and memory increases over successive warm requests; it would not repair this incident.
D:That change addresses a developer adds X-Ray segments to a Lambda request but never propagates trace context to a downstream HTTP service, producing disconnected service maps; it would not repair this incident.
Question 430
A DynamoDB application encrypts customer values with a shared manually managed data key stored as plaintext in its repository. Select THREE complementary measures that correctly repair and validate, and prevent recurrence of this failure.
- Store the unencrypted data key in a Git repository because the table itself uses encryption at rest.
- Test key rotation and decryption authorization with versions and denied identity fixtures.
- Requests for another tenant's order return denial even when the caller holds a valid session token.
- Use an approved KMS-backed envelope encryption design and protect data keys according to the application threat model.
- Validate inputs server-side and contextually encode user-controlled content in the response template.
- An authorized client can decrypt ciphertext while repository readers cannot recover the plaintext key.
Explanation
Correct Answers
B:Test key rotation and decryption authorization with versions and denied identity fixtures. This protects against the following risk: The client-side encryption key is exposed through source distribution and lacks a protected lifecycle.
D:Use an approved KMS-backed envelope encryption design and protect data keys according to the application threat model. The underlying cause is: The client-side encryption key is exposed through source distribution and lacks a protected lifecycle.
F:An authorized client can decrypt ciphertext while repository readers cannot recover the plaintext key. This is the observable result required before accepting the correction.
Incorrect Answers
A:Store the unencrypted data key in a Git repository because the table itself uses encryption at rest. That shortcut conflicts with the stated requirement.
C: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.
E:That corrective action is for 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 resolve this incident.
AWS Certified Developer - Associate DVA-C02 Practice Tests