100% Latest & Updated Amazon AWS Certified Developer - Associate DVA-C02 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 140
An order API retries its SQS SendMessage call after a client timeout and downstream workers create duplicate shipment records for the same order. Which technical dependency most directly explains this behavior?
- The deployment has not reserved a concurrency budget for the critical path or bounded the producer's demand.
- An uncertain acknowledgement and at-least-once delivery are being mistaken for a guarantee of unique business processing.
- The credential lifecycle is coupled to code deployment and risks accidental exposure in artifacts and logs.
- Eventually consistent cache reads are being used where the business operation requires current authoritative state.
Explanation
Correct Answer
B:An uncertain acknowledgement and at-least-once delivery are being mistaken for a guarantee of unique business processing. The corresponding fix is to attach a stable order event identifier and make the shipment side effect idempotent through conditional persistence.
Incorrect Answers
A:This diagnosis addresses another AWS case: A high-traffic Lambda producer consumes all account concurrency, throttling a separate critical notification function during spikes. The dependency here is different.
C:This diagnosis addresses another AWS case: A Lambda application stores a rotating partner API key as a hardcoded configuration constant inside deployed source code. The dependency here is different.
D:This diagnosis addresses another AWS case: A service caches frequently changing product availability in DAX but checkout accepts a stale cached value as definitive stock. The dependency here is different.
Question 141
A Lambda deployment artifact is built without a required Python dependency, and the function raises ImportError immediately after deployment. Select TWO complementary measures that correctly repair and validate this failure.
- Publish an immutable digest and deploy that exact digest in the reviewed task definition revision.
- Assume a local virtual environment guarantees dependencies are included in the uploaded ZIP.
- A successful test creates the intended downstream state while a poison message routes through the defined failure path.
- The deployed Lambda version initializes successfully and executes the representative handler fixture.
- Bundle or layer the tested compatible dependency set and validate imports from the actual deployment artifact.
Explanation
Correct Answers
D:The deployed Lambda version initializes successfully and executes the representative handler fixture. This is the observable result required before accepting the correction.
E:Bundle or layer the tested compatible dependency set and validate imports from the actual deployment artifact. The underlying cause is: The published package does not contain the runtime dependency closure expected by the handler.
Incorrect Answers
A:That corrective action is for 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 resolve this incident.
B:Assume a local virtual environment guarantees dependencies are included in the uploaded ZIP. That shortcut conflicts with the stated requirement.
C:This would validate a different case: An application emits asynchronous SQS events but tests check only the initial HTTP success response, missing a downstream poison-message failure. It does not verify the outcome required here.
Question 142
An application decrypts data with a customer-managed KMS key in the source AWS account but fails after moving the encrypted data to a second account. Which technical dependency most directly explains this behavior?
- The intended recipient identity and key-policy permissions have not been coordinated for cross-account decryption.
- Tenant isolation is enforced from caller-controlled text instead of a trusted authorization context.
- The downstream service lacks a clear issuer, audience and delegation contract for the token it receives.
- An authorization decision for one method and resource is incorrectly generalized to privileged routes.
Explanation
Correct Answer
A:The intended recipient identity and key-policy permissions have not been coordinated for cross-account decryption. The corresponding fix is to configure an authorized cross-account key policy and permitted IAM use, including encryption context constraints where appropriate.
Incorrect Answers
B:This diagnosis addresses another AWS case: 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. The dependency here is different.
C:This diagnosis addresses another AWS case: A service-to-service request forwards an unvalidated user token as if it were a trusted workload identity across multiple microservices. The dependency here is different.
D:This diagnosis addresses another AWS case: An API Gateway Lambda authorizer returns an Allow policy for an entire API wildcard after validating permission for one read-only resource. The dependency here is different.
Question 143
A Lambda API accepts an ID token in place of the OAuth access token used for protected API scopes and grants an unintended operation. Select TWO complementary measures that correctly repair and validate this failure.
- A threat-model review shows predictable candidate inputs cannot trivially recover protected identities from public tokens.
- Enforce the appropriate access token use and verify configured OAuth scopes and resource-level permissions.
- Authorize a write merely because a token includes a readable email address.
- Use an approved KMS-backed envelope encryption design and protect data keys according to the application threat model.
- An ID token cannot invoke the protected action and a correctly scoped access token can invoke only its intended operation.
Explanation
Correct Answers
B:Enforce the appropriate access token use and verify configured OAuth scopes and resource-level permissions. The underlying cause is: The application confuses authentication identity claims with the access-token authorization contract.
E:An ID token cannot invoke the protected action and a correctly scoped access token can invoke only its intended operation. This is the observable result required before accepting the correction.
Incorrect Answers
A:This would validate a different case: A developer uses an unkeyed hash of predictable email addresses as a public customer identifier and calls it irreversible anonymization. It does not verify the outcome required here.
C:Authorize a write merely because a token includes a readable email address. That shortcut conflicts with the stated requirement.
D:That corrective action is for a different case: A DynamoDB application encrypts customer values with a shared manually managed data key stored as plaintext in its repository. It does not resolve this incident.
Question 144
A team applies a reviewed fix for this situation: A service pins a private certificate file inside a Lambda deployment package and does not redeploy when the certificate expires. Which observed outcome would most convincingly validate the fix?
- An approved principal assumes the role and a neighboring unintended principal is rejected.
- The connection remains trusted after controlled certificate renewal and rejects an expired certificate.
- Authorized users obtain only their documents and attempts to sign another user's object are denied.
- An ID token cannot invoke the protected action and a correctly scoped access token can invoke only its intended operation.
Explanation
Correct Answer
B:The connection remains trusted after controlled certificate renewal and rejects an expired certificate. This verifies the result of use a supported certificate-management lifecycle and verified rotation or deployment process for the authenticated endpoint.
Incorrect Answers
A:This would verify another situation: A microservice assumes an IAM role in a second AWS account but receives AccessDenied despite a permissive identity policy in the caller account. It does not validate the current case.
C:This would verify another situation: An S3-backed application generates presigned download URLs for confidential attachments without verifying document ownership before signing. It does not validate the current case.
D:This would verify another 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. It does not validate the current case.
Question 145
A checkout integration test calls a live payment provider and charges a customer account every time the CI pipeline runs. Which technical dependency most directly explains this behavior?
- The deployment plan has an unreviewed destructive infrastructure change outside the intended application code update.
- The test crosses an external billing boundary without using a controlled sandbox or mock dependency.
- The custom domain base-path mapping or stage deployment routing is inconsistent with the intended environment.
- A mutable image tag is being treated as an immutable release artifact identity.
Explanation
Correct Answer
B:The test crosses an external billing boundary without using a controlled sandbox or mock dependency. The corresponding fix is to inject a deterministic payment mock or provider-approved sandbox in CI and reserve live calls for explicitly authorized tests.
Incorrect Answers
A:This diagnosis addresses another AWS case: A new application version deploys with AWS SAM, but the CloudFormation change set includes removal of a production DynamoDB table unexpectedly. The dependency here is different.
C: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.
D:This diagnosis addresses another AWS case: An ECS service uses an image tag named latest and a rollback launches a different container image than the previous production version. The dependency here is different.
Question 146
After resolving the following incident, which ongoing safeguard most directly prevents recurrence? A scheduled Lambda job uses an environment-specific API endpoint hardcoded for staging even after the deployment reaches production.
- Check API integration targets and alias qualifiers in every deployment smoke test.
- Rehearse traffic shifting and rollback alarms with representative failure conditions before production deployment.
- Compare stage configurations in pipeline checks and reject production deployments with test environment identifiers.
- Validate change sets and stage scoping in shared-environment deployment reviews.
Explanation
Correct Answer
C:Compare stage configurations in pipeline checks and reject production deployments with test environment identifiers. This safeguards against a recurring cause: The build embeds environment configuration that does not match its deployment stage.
Incorrect Answers
A:That safeguard addresses another case: A team deploys new Lambda code but an API Gateway integration still points to an unversioned function instead of the reviewed alias. It is not the control for this recurring failure.
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.
D:That safeguard addresses another case: A developer updates an AWS SAM template in a shared test account and unexpectedly removes a resource another team's integration tests still need. It is not the control for this recurring failure.
Question 147
A service caches frequently changing product availability in DAX but checkout accepts a stale cached value as definitive stock. Which engineering change best addresses the underlying issue?
- Parse the expected EventBridge detail field after validating source, detail-type and event schema.
- Iterate through continuation tokens using the supported SDK paginator until the complete intended key set is exhausted.
- Publish the intended message attributes and configure a subscription filter policy for the fraud alert category.
- Perform final stock reservation with a conditional authoritative DynamoDB write rather than trusting cached availability.
Explanation
Correct Answer
D:Perform final stock reservation with a conditional authoritative DynamoDB write rather than trusting cached availability. It directly addresses the case cause (Eventually consistent cache reads are being used where the business operation requires current authoritative state.) and should be verified by: Concurrent checkout attempts never reserve more stock than exists even when cached views are stale.
Incorrect Answers
A:That change addresses a Lambda target receives an EventBridge envelope but its handler reads customerId at the top level instead of under detail; it would not repair this incident.
B:That change addresses 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 would not repair this incident.
C:That change addresses 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 would not repair this incident.
Question 148
After resolving the following incident, which ongoing safeguard most directly prevents recurrence? A developer reads one page of a DynamoDB Query response and a history screen omits newer records when an account exceeds the result limit.
- Simulate lost acknowledgements and ensure all retries use the same logical operation identity.
- Include paginated results and stable cursor handling in account-history regression fixtures.
- Exercise lost-acknowledgement retries and reconcile side effects by the business event identifier.
- Contract-test EventBridge source and detail-type values against deployed event patterns in continuous integration.
Explanation
Correct Answer
B:Include paginated results and stable cursor handling in account-history regression fixtures. This safeguards against a recurring cause: A single Query call is assumed to return the complete logical result set despite pagination.
Incorrect Answers
A:That safeguard addresses another case: A Lambda function invokes a slow partner API and frequently times out, causing clients to retry a write whose completion status is unknown. It is not the control for this recurring failure.
C:That safeguard addresses another case: An order API retries its SQS SendMessage call after a client timeout and downstream workers create duplicate shipment records for the same order. It is not the control for this recurring failure.
D:That safeguard addresses another case: An EventBridge rule meant to match a new payment event stops invoking its Lambda target after the producer changes detail-type capitalization. It is not the control for this recurring failure.
Question 149
After resolving the following incident, which ongoing safeguard most directly prevents recurrence? A Lambda target receives an EventBridge envelope but its handler reads customerId at the top level instead of under detail.
- Load-test key distributions and evaluate hot partition metrics before schema rollout.
- Exercise asynchronous retry exhaustion and destination permissions in a dedicated failure-path test.
- Capture required access patterns and query costs before adopting new DynamoDB tables or indexes.
- Keep versioned event fixtures and enforce schema checks for each producer-to-consumer integration.
Explanation
Correct Answer
D:Keep versioned event fixtures and enforce schema checks for each producer-to-consumer integration. This safeguards against a recurring cause: The integration code assumes the wrong documented event-envelope structure for this event source.
Incorrect Answers
A: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.
B:That safeguard addresses another case: An asynchronously invoked Lambda fails on malformed event data, but operators find no durable record of discarded events after retry attempts end. It is not the control for this recurring failure.
C:That safeguard addresses another case: An online DynamoDB account lookup performs a full Scan for every login even though users always supply an email address. It is not the control for this recurring failure.
Question 150
A scheduled Lambda job uses an environment-specific API endpoint hardcoded for staging even after the deployment reaches production. Which engineering change best addresses the underlying issue?
- Record immutable published versions and implement a tested rollback through alias or supported deployment controls.
- Add event-driven integration fixtures that assert downstream side effects, retries and failure destinations after controlled delivery.
- Externalize reviewed stage-specific settings through approved parameters or AWS AppConfig and validate them before launch.
- Inspect the stack change set, correct the template and enforce appropriate retention or protection policies before execution.
Explanation
Correct Answer
C:Externalize reviewed stage-specific settings through approved parameters or AWS AppConfig and validate them before launch. It directly addresses the case cause (The build embeds environment configuration that does not match its deployment stage.) and should be verified by: A production fixture calls only the approved production endpoint while staging continues to use isolated resources.
Incorrect Answers
A:That change addresses a Lambda alias was shifted to an unhealthy version, but operators cannot restore the last known-good version because deployment metadata records only latest; it would not repair this incident.
B:That change addresses an application emits asynchronous SQS events but tests check only the initial HTTP success response, missing a downstream poison-message failure; it would not repair this incident.
D:That change addresses a new application version deploys with AWS SAM, but the CloudFormation change set includes removal of a production DynamoDB table unexpectedly; it would not repair this incident.
AWS Certified Developer - Associate DVA-C02 Practice Tests