100% Latest & Updated Amazon AWS Certified Developer - Associate DVA-C02 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 240
After resolving the following incident, which ongoing safeguard most directly prevents recurrence? An EventBridge rule meant to match a new payment event stops invoking its Lambda target after the producer changes detail-type capitalization.
- Contract-test EventBridge source and detail-type values against deployed event patterns in continuous integration.
- Track initialization duration and dependency size in pre-release Lambda performance tests.
- Test business expiry behavior separately from eventual storage deletion and TTL metrics.
- Test secret refresh behavior and scan deployed artifacts and logs for exposed credential values.
Explanation
Correct Answer
A:Contract-test EventBridge source and detail-type values against deployed event patterns in continuous integration. This safeguards against a recurring cause: Event patterns match exact fields and the producer's event envelope no longer matches the deployed rule.
Incorrect Answers
B: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.
C:That safeguard addresses another case: A login service expects DynamoDB TTL to remove an expired session at the exact expiry timestamp and continues accepting expired records while deletion lags. It is not the control for this recurring failure.
D:That safeguard addresses another case: A Lambda application stores a rotating partner API key as a hardcoded configuration constant inside deployed source code. It is not the control for this recurring failure.
Question 241
After resolving the following incident, which ongoing safeguard most directly prevents recurrence? An application emits asynchronous SQS events but tests check only the initial HTTP success response, missing a downstream poison-message failure.
- Track end-to-end event IDs in tests instead of relying solely on producer status codes.
- Rehearse traffic shifting and rollback alarms with representative failure conditions before production deployment.
- Review pipeline stage dependencies and compare commit and artifact IDs across every gate.
- Record exact alias, version and stack output identifiers in every deployment validation run.
Explanation
Correct Answer
A:Track end-to-end event IDs in tests instead of relying solely on producer status codes. This safeguards against a recurring cause: Request acceptance is being confused with completion of the end-to-end event processing contract.
Incorrect Answers
B:That safeguard addresses another case: A CodeDeploy Lambda rollout shifts all traffic to a new version at once and customers encounter failures before an alarm can stop the release. It is not the control for this recurring failure.
C:That safeguard addresses another case: A CodePipeline action promotes an artifact to production when build succeeds even though integration tests for the same revision are still running. It is not the control for this recurring failure.
D:That safeguard addresses another case: A CloudFormation update creates a new Lambda alias but a deployment script still targets the old unqualified function ARN in its smoke test. It is not the control for this recurring failure.
Question 242
After resolving the following incident, which ongoing safeguard most directly prevents recurrence? A DynamoDB table partitions all tenant activity by one static calendar-day key and hot writes throttle despite spare overall capacity.
- Load-test key distributions and evaluate hot partition metrics before schema rollout.
- Version the transport encoding contract and keep compressed-message test fixtures across deployment changes.
- Pin tested layer ARNs and run build checks for each supported runtime and architecture combination.
- Maintain negative request fixtures and validate model updates before deploying a new API stage.
Explanation
Correct Answer
A:Load-test key distributions and evaluate hot partition metrics before schema rollout. This safeguards against a recurring cause: The partition-key strategy concentrates a large workload on a small physical key distribution.
Incorrect Answers
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.
C:That safeguard addresses another case: A Lambda function imports a shared layer that was built for an incompatible runtime and fails before the handler starts. It is not the control for this recurring failure.
D:That safeguard addresses another case: An API Gateway REST endpoint accepts requests missing customerId and passes invalid records to a Lambda function that stores them. It is not the control for this recurring failure.
Question 243
A service caches frequently changing product availability in DAX but checkout accepts a stale cached value as definitive stock. Which technical dependency most directly explains this behavior?
- Default whole-batch failure handling repeats successfully processed records unless partial failures and idempotency are implemented.
- The asynchronous failure path lacks a correctly configured destination or equivalent durable failure capture.
- Eventually consistent cache reads are being used where the business operation requires current authoritative state.
- The external API acknowledgement has been treated as the completed asynchronous business operation.
Explanation
Correct Answer
C:Eventually consistent cache reads are being used where the business operation requires current authoritative state. The corresponding fix is to perform final stock reservation with a conditional authoritative DynamoDB write rather than trusting cached availability.
Incorrect Answers
A: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.
B:This diagnosis addresses another AWS case: An asynchronously invoked Lambda fails on malformed event data, but operators find no durable record of discarded events after retry attempts end. The dependency here is different.
D:This diagnosis addresses another AWS case: A Step Functions state sends an API request that starts a third-party batch job and immediately marks the workflow complete before the batch finishes. The dependency here is different.
Question 244
A team applies a reviewed fix for this situation: A Lambda function imports a shared layer that was built for an incompatible runtime and fails before the handler starts. Which observed outcome would most convincingly validate the fix?
- The workflow succeeds only when the actual remote job completes and routes failed jobs to a reviewable error path.
- Multi-page test accounts display all authorized records with no gaps or duplicate page boundaries.
- The deployed function initializes and passes representative requests using the exact published layer version.
- An expired session is denied immediately even if its DynamoDB item still exists during background cleanup.
Explanation
Correct Answer
C:The deployed function initializes and passes representative requests using the exact published layer version. This verifies the result of publish or select a layer compiled for the actual runtime and architecture and test imports in that environment.
Incorrect Answers
A:This would verify another situation: A Step Functions state sends an API request that starts a third-party batch job and immediately marks the workflow complete before the batch finishes. It does not validate the current case.
B:This would verify another situation: A developer reads one page of a DynamoDB Query response and a history screen omits newer records when an account exceeds the result limit. It does not validate the current case.
D:This would verify another situation: A login service expects DynamoDB TTL to remove an expired session at the exact expiry timestamp and continues accepting expired records while deletion lags. It does not validate the current case.
Question 245
After resolving the following incident, which ongoing safeguard most directly prevents recurrence? A developer accepts Amazon Q Developer's suggested IAM and SDK code without reviewing it, and a generated call requests permission to unrelated customer data.
- Require code review, static scanning and denied-resource fixtures for AI-assisted code changes.
- Include paginated results and stable cursor handling in account-history regression fixtures.
- Load-test key distributions and evaluate hot partition metrics before schema rollout.
- Document consistency requirements per access pattern and test each indexed read path separately.
Explanation
Correct Answer
A:Require code review, static scanning and denied-resource fixtures for AI-assisted code changes. This safeguards against a recurring cause: Generated source is being treated as trusted rather than code requiring human review and least-privilege validation.
Incorrect Answers
B:That safeguard addresses another case: A developer reads one page of a DynamoDB Query response and a history screen omits newer records when an account exceeds the result limit. It is not the control for this recurring failure.
C:That safeguard addresses another case: A DynamoDB table partitions all tenant activity by one static calendar-day key and hot writes throttle despite spare overall capacity. It is not the control for this recurring failure.
D:That safeguard addresses another case: A DynamoDB application requires immediate read-after-write consistency but queries a global secondary index and occasionally reads an older version. It is not the control for this recurring failure.
Question 246
A team applies a reviewed fix for this situation: A service caches frequently changing product availability in DAX but checkout accepts a stale cached value as definitive stock. Which observed outcome would most convincingly validate the fix?
- A representative event reaches the handler and produces the intended customer operation without missing-field exceptions.
- The same authorized cart survives container replacement and remains isolated from other shopper identities.
- A malformed event is isolated and unaffected records complete without duplicated observable updates.
- Concurrent checkout attempts never reserve more stock than exists even when cached views are stale.
Explanation
Correct Answer
D:Concurrent checkout attempts never reserve more stock than exists even when cached views are stale. This verifies the result of perform final stock reservation with a conditional authoritative DynamoDB write rather than trusting cached availability.
Incorrect Answers
A:This would verify another situation: A Lambda target receives an EventBridge envelope but its handler reads customerId at the top level instead of under detail. It does not validate the current case.
B: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.
C:This would verify another situation: A Lambda stream consumer processes an exceptionally large Kinesis batch and repeats previously successful records after one record triggers a runtime exception. It does not validate the current case.
Question 247
A team applies a reviewed fix for this situation: A Lambda request makes an SDK call that succeeds in one Region but fails with ResourceNotFound in another because its client uses a default Region. Which observed outcome would most convincingly validate the fix?
- New tasks receive traffic only after initialization completes and fail readiness when critical dependencies are unavailable.
- A controlled rejected purchase increments invocation metrics but not successful purchase counts.
- The same fixture targets the correct regional resource and receives the expected authorized response.
- A single transaction's safe logs can be joined across services without exposing credentials or raw customer data.
Explanation
Correct Answer
C:The same fixture targets the correct regional resource and receives the expected authorized response. This verifies the result of construct the client with the reviewed resource Region and verify resource identifiers and service endpoint configuration.
Incorrect Answers
A:This would verify another situation: A Kubernetes-style container endpoint reports ready whenever the process runs but cannot serve requests until its downstream cache warms after startup. It does not validate the current case.
B:This would verify another situation: A CloudWatch dashboard displays Lambda invocation count as successful purchases even though the handler frequently returns business validation errors. It does not validate the current case.
D:This would verify another situation: An order microservice writes free-form log strings without request IDs, making it impossible to follow one transaction across API Gateway and Lambda. It does not validate the current case.
Question 248
A CloudFormation update creates a new Lambda alias but a deployment script still targets the old unqualified function ARN in its smoke test. Select THREE complementary measures that correctly repair and validate, and prevent recurrence of this failure.
- The smoke test identifies the intended alias version and fails if traffic routes to the old handler.
- Record exact alias, version and stack output identifiers in every deployment validation run.
- Invoke and verify the new qualified alias and inspect the IaC change set before rollout.
- New and existing tasks in the deployment resolve to the same intended container image digest.
- Bundle or layer the tested compatible dependency set and validate imports from the actual deployment artifact.
- Test any Lambda function with the same name regardless of the published alias.
Explanation
Correct Answers
A:The smoke test identifies the intended alias version and fails if traffic routes to the old handler. This is the observable result required before accepting the correction.
B:Record exact alias, version and stack output identifiers in every deployment validation run. This protects against the following risk: The test invocation does not exercise the exact deployed version and traffic-shift destination.
C:Invoke and verify the new qualified alias and inspect the IaC change set before rollout. The underlying cause is: The test invocation does not exercise the exact deployed version and traffic-shift destination.
Incorrect Answers
D:This would validate a different 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 does not verify the outcome required here.
E:That corrective action is for a different case: A Lambda deployment artifact is built without a required Python dependency, and the function raises ImportError immediately after deployment. It does not resolve this incident.
F:Test any Lambda function with the same name regardless of the published alias. That shortcut conflicts with the stated requirement.
Question 249
A Lambda handler deployment is approved from a green build, but the packaged source contains an unexpected dependency version introduced by a branch merge. Which technical dependency most directly explains this behavior?
- The custom domain base-path mapping or stage deployment routing is inconsistent with the intended environment.
- Automated tests did not validate the exact immutable artifact that was later promoted.
- The packaged workload's resource requirements are not reflected in the deployed task definition.
- Mutable artifact references allow tasks in one nominal release to resolve to different image content.
Explanation
Correct Answer
B:Automated tests did not validate the exact immutable artifact that was later promoted. The corresponding fix is to generate and test a provenance-tagged artifact and deploy the same digest after all required checks pass.
Incorrect Answers
A:This diagnosis addresses another AWS case: An API Gateway custom domain points to a different stage after a deployment even though the backend Lambda versions were correctly published. The dependency here is different.
C:This diagnosis addresses another AWS case: A developer increases an ECS application's memory needs but the deployment task definition still uses the old hard memory limit and the new task is killed. The dependency here is different.
D:This diagnosis addresses another AWS 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. The dependency here is different.
Question 250
After resolving the following incident, which ongoing safeguard most directly prevents recurrence? An order API retries its SQS SendMessage call after a client timeout and downstream workers create duplicate shipment records for the same order.
- Document consistency requirements per access pattern and test each indexed read path separately.
- Pin tested layer ARNs and run build checks for each supported runtime and architecture combination.
- Test replay at shard boundaries and monitor iterator age and batch failure metrics together.
- Exercise lost-acknowledgement retries and reconcile side effects by the business event identifier.
Explanation
Correct Answer
D:Exercise lost-acknowledgement retries and reconcile side effects by the business event identifier. This safeguards against a recurring cause: An uncertain acknowledgement and at-least-once delivery are being mistaken for a guarantee of unique business processing.
Incorrect Answers
A:That safeguard addresses another case: A DynamoDB application requires immediate read-after-write consistency but queries a global secondary index and occasionally reads an older version. It is not the control for this recurring failure.
B:That safeguard addresses another case: A Lambda function imports a shared layer that was built for an incompatible runtime and fails before the handler starts. It is not the control for this recurring failure.
C:That safeguard addresses another case: A Lambda stream consumer processes an exceptionally large Kinesis batch and repeats previously successful records after one record triggers a runtime exception. It is not the control for this recurring failure.
AWS Certified Developer - Associate DVA-C02 Practice Tests