100% Latest & Updated Amazon AWS Certified Developer - Associate DVA-C02 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 120
A CI workflow publishes Docker images under one mutable tag and the ECS service pulls a different image during a multi-AZ scale-out. Select THREE complementary measures that correctly repair and validate, and prevent recurrence of this failure.
- Publish an immutable digest and deploy that exact digest in the reviewed task definition revision.
- New and existing tasks in the deployment resolve to the same intended container image digest.
- Continuously overwrite the production image tag while rolling updates are in progress.
- A successful test creates the intended downstream state while a poison message routes through the defined failure path.
- Externalize reviewed stage-specific settings through approved parameters or AWS AppConfig and validate them before launch.
- Validate image provenance and reject release configurations that rely only on mutable tags.
Explanation
Correct Answers
A:Publish an immutable digest and deploy that exact digest in the reviewed task definition revision. The underlying cause is: Mutable artifact references allow tasks in one nominal release to resolve to different image content.
B:New and existing tasks in the deployment resolve to the same intended container image digest. This is the observable result required before accepting the correction.
F:Validate image provenance and reject release configurations that rely only on mutable tags. This protects against the following risk: Mutable artifact references allow tasks in one nominal release to resolve to different image content.
Incorrect Answers
C:Continuously overwrite the production image tag while rolling updates are in progress. That shortcut conflicts with the stated requirement.
D: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.
E:That corrective action is for a different case: A scheduled Lambda job uses an environment-specific API endpoint hardcoded for staging even after the deployment reaches production. It does not resolve this incident.
Question 121
A team applies a reviewed fix for this situation: A Lambda function cannot publish to an SNS topic in another account although the execution role allows sns:Publish. Which observed outcome would most convincingly validate the fix?
- An approved encrypted object is readable while decrypting another customer's objects remains denied.
- The approved function publishes a test event while unauthorized roles in either account remain denied.
- The connection remains trusted after controlled certificate renewal and rejects an expired certificate.
- Captured partner requests contain only approved analytics attributes and no reusable authentication tokens.
Explanation
Correct Answer
B:The approved function publishes a test event while unauthorized roles in either account remain denied. This verifies the result of review the caller IAM policy together with an SNS topic policy granting only the intended cross-account principal.
Incorrect Answers
A: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.
C:This would verify another situation: A service pins a private certificate file inside a Lambda deployment package and does not redeploy when the certificate expires. It does not validate the current case.
D:This would verify another situation: A microservice forwards raw end-user tokens from headers to a third-party analytics endpoint, although analytics needs only event type and status. It does not validate the current case.
Question 122
A Python Lambda project includes its source file but omits the required top-level package directory layout for the configured handler. Which technical dependency most directly explains this behavior?
- A successful function invocation is incorrectly treated as proof that its domain logic is correct.
- The handler import path does not match the archive root and Python module structure at runtime.
- Request acceptance is being confused with completion of the end-to-end event processing contract.
- Release history and alias version identifiers are not preserved as rollback artifacts.
Explanation
Correct Answer
B:The handler import path does not match the archive root and Python module structure at runtime. The corresponding fix is to repackage the code so the deployed handler path, modules and ZIP directory root agree.
Incorrect Answers
A:This diagnosis addresses another AWS case: A deployment pipeline sends a test event to a Lambda but never asserts output values, so a handler returns HTTP 200 with an invalid business result. The dependency here is different.
C:This diagnosis addresses another AWS case: An application emits asynchronous SQS events but tests check only the initial HTTP success response, missing a downstream poison-message failure. The dependency here is different.
D:This diagnosis addresses another AWS case: A Lambda alias was shifted to an unhealthy version, but operators cannot restore the last known-good version because deployment metadata records only latest. The dependency here is different.
Question 123
A high-traffic Lambda producer consumes all account concurrency, throttling a separate critical notification function during spikes. Select THREE complementary measures that correctly repair and validate, and prevent recurrence of this failure.
- Use appropriate reserved concurrency and buffering policies to protect the notification workflow and account quota.
- Issue a fresh scoped presigned URL before retrying and set an expiration policy appropriate to the upload flow.
- Monitor throttles, unreserved concurrency and queue age under combined workload peaks.
- An expired session is denied immediately even if its DynamoDB item still exists during background cleanup.
- Give every function unlimited concurrent retries whenever throttling appears.
- A burst test keeps notification latency within the objective while producer backpressure remains controlled.
Explanation
Correct Answers
A:Use appropriate reserved concurrency and buffering policies to protect the notification workflow and account quota. The underlying cause is: The deployment has not reserved a concurrency budget for the critical path or bounded the producer's demand.
C:Monitor throttles, unreserved concurrency and queue age under combined workload peaks. This protects against the following risk: The deployment has not reserved a concurrency budget for the critical path or bounded the producer's demand.
F:A burst test keeps notification latency within the objective while producer backpressure remains controlled. This is the observable result required before accepting the correction.
Incorrect Answers
B:That corrective action is for a different case: A browser uploads media using a presigned S3 URL after its short expiry, causing intermittent HTTP 403 responses during slow mobile sessions. It does not resolve this incident.
D:This would validate a different 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 does not verify the outcome required here.
E:Give every function unlimited concurrent retries whenever throttling appears. That shortcut conflicts with the stated requirement.
Question 124
A team applies a reviewed fix for this situation: A Kubernetes-style container endpoint reports ready whenever the process runs but cannot serve requests until its downstream cache warms after startup. Which observed outcome would most convincingly validate the fix?
- A load fixture makes fewer configuration calls while updates become visible within the agreed freshness window.
- New tasks become healthy on the intended path and traffic shifts without repeated task restarts.
- New tasks receive traffic only after initialization completes and fail readiness when critical dependencies are unavailable.
- Memory stays bounded across a multi-request fixture without changing response correctness.
Explanation
Correct Answer
C:New tasks receive traffic only after initialization completes and fail readiness when critical dependencies are unavailable. This verifies the result of implement a lightweight readiness endpoint that reflects required startup dependencies without exposing secrets.
Incorrect Answers
A:This would verify another situation: A Lambda image endpoint loads an expensive configuration database record for every invocation even though the record changes only once per hour. It does not validate the current case.
B:This would verify another situation: An ECS rolling deployment keeps replacing tasks because the container health check targets a removed HTTP route even though the application serves traffic on a new path. It does not validate the current case.
D:This would verify another situation: A Node.js Lambda function allocates large objects at module scope per invocation and memory increases over successive warm requests. It does not validate the current case.
Question 125
A CodePipeline action promotes an artifact to production when build succeeds even though integration tests for the same revision are still running. Which engineering change best addresses the underlying issue?
- Invoke and verify the new qualified alias and inspect the IaC change set before rollout.
- Inspect the stage deployment and integration URI, then publish the correct stage or alias binding under release controls.
- Review generated assertions against versioned API requirements and run current contract and regression fixtures.
- Make deployment explicitly depend on successful integration and security tests for the same immutable revision.
Explanation
Correct Answer
D:Make deployment explicitly depend on successful integration and security tests for the same immutable revision. It directly addresses the case cause (Pipeline dependencies allow release approval before the required test stage reaches a successful terminal state.) and should be verified by: A deliberately failing integration test blocks production promotion and preserves the last approved artifact.
Incorrect Answers
A:That change addresses a CloudFormation update creates a new Lambda alias but a deployment script still targets the old unqualified function ARN in its smoke test; it would not repair this incident.
B:That change addresses an API Gateway method works in the test console but its deployed production stage still points to an older Lambda alias; it would not repair this incident.
C:That change addresses a team generates test cases with Amazon Q Developer and automatically accepts them, but the tests assert behavior from an obsolete API specification; it would not repair this incident.
Question 126
A team applies a reviewed fix for this situation: An API Gateway Lambda authorizer returns an Allow policy for an entire API wildcard after validating permission for one read-only resource. Which observed outcome would most convincingly validate the fix?
- An agent sees only the permitted masked representation, and a request for restricted fields is denied.
- A threat-model review shows predictable candidate inputs cannot trivially recover protected identities from public tokens.
- The same user can GET the approved record but cannot DELETE a different record through the authorization cache.
- A controlled token rotation succeeds and unauthorized developers cannot read the production secret.
Explanation
Correct Answer
C:The same user can GET the approved record but cannot DELETE a different record through the authorization cache. This verifies the result of constrain the authorizer policy to appropriate method ARNs and bind per-request authorization to the intended user/resource context.
Incorrect Answers
A:This would verify another situation: A support API exposes full customer card details from DynamoDB even though agents need only last four digits and a reference code. It does not validate the current case.
B:This would verify another situation: A developer uses an unkeyed hash of predictable email addresses as a public customer identifier and calls it irreversible anonymization. It does not validate the current case.
D:This would verify another situation: An application embeds its payment gateway token directly in a Lambda environment variable managed in plain text by several developers. It does not validate the current case.
Question 127
An API Gateway REST endpoint accepts requests missing customerId and passes invalid records to a Lambda function that stores them. Which engineering change best addresses the underlying issue?
- Use an idempotency record and conditional or transactional update bound to a stable purchase request ID.
- Retrieve the approved credential from an access-controlled secrets store with narrow runtime authorization and rotation handling.
- Define the required request model and enable request validation before the integration proceeds to Lambda.
- Follow LastEvaluatedKey and return a safe continuation cursor while preserving query authorization constraints.
Explanation
Correct Answer
C:Define the required request model and enable request validation before the integration proceeds to Lambda. It directly addresses the case cause (The API boundary lacks an applicable request validation step for required payload fields.) and should be verified by: A request without customerId is rejected at the API boundary while a valid payload reaches the function.
Incorrect Answers
A:That change addresses an order service increments a DynamoDB inventory balance twice after a transient network retry of the same purchase request; it would not repair this incident.
B:That change addresses a Lambda application stores a rotating partner API key as a hardcoded configuration constant inside deployed source code; it would not repair this incident.
D:That change addresses 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 would not repair this incident.
Question 128
A team applies a reviewed fix for this situation: A deployment pipeline sends a test event to a Lambda but never asserts output values, so a handler returns HTTP 200 with an invalid business result. Which observed outcome would most convincingly validate the fix?
- A deliberately incorrect response causes the deployment test to fail before production promotion.
- The deployed target accepts the real envelope and rejects malformed events with controlled errors.
- A measured load test completes without out-of-memory termination while resource consumption stays within budget.
- A successful test creates the intended downstream state while a poison message routes through the defined failure path.
Explanation
Correct Answer
A:A deliberately incorrect response causes the deployment test to fail before production promotion. This verifies the result of assert response schema, important business fields, and expected side effects against a controlled fixture.
Incorrect Answers
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.
C:This would verify another situation: 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. It does not validate the current case.
D:This would verify another situation: An application emits asynchronous SQS events but tests check only the initial HTTP success response, missing a downstream poison-message failure. It does not validate the current case.
Question 129
A new application version deploys with AWS SAM, but the CloudFormation change set includes removal of a production DynamoDB table unexpectedly. Which technical dependency most directly explains this behavior?
- The staging deployment lacks isolation and a reviewed change-set boundary for shared infrastructure.
- The packaged workload's resource requirements are not reflected in the deployed task definition.
- The staging and production integration versions are not aligned with the intended release.
- The deployment plan has an unreviewed destructive infrastructure change outside the intended application code update.
Explanation
Correct Answer
D:The deployment plan has an unreviewed destructive infrastructure change outside the intended application code update. The corresponding fix is to inspect the stack change set, correct the template and enforce appropriate retention or protection policies before execution.
Incorrect Answers
A:This diagnosis addresses another AWS 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. The dependency here is different.
B: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.
C:This diagnosis addresses another AWS case: An API Gateway method works in the test console but its deployed production stage still points to an older Lambda alias. The dependency here is different.
Question 130
After resolving the following incident, which ongoing safeguard most directly prevents recurrence? An SQS FIFO worker processes updates for unrelated customers slowly because every message is assigned the identical message group ID.
- Test cache lag against concurrency and document which reads must bypass caches for correctness.
- Test unknown-success network failures with concurrent requests and verify durable request deduplication.
- Test message-group cardinality and per-entity ordering with concurrent representative workloads.
- Test business expiry behavior separately from eventual storage deletion and TTL metrics.
Explanation
Correct Answer
C:Test message-group cardinality and per-entity ordering with concurrent representative workloads. This safeguards against a recurring cause: FIFO ordering serializes messages within one group and the producer has unnecessarily collapsed independent work.
Incorrect Answers
A:That safeguard addresses another case: A service caches frequently changing product availability in DAX but checkout accepts a stale cached value as definitive stock. It is not the control for this recurring failure.
B:That safeguard addresses another case: An order service increments a DynamoDB inventory balance twice after a transient network retry of the same purchase request. It is not the control for this recurring failure.
D: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.
AWS Certified Developer - Associate DVA-C02 Practice Tests