100% Latest & Updated Amazon AWS Certified Developer - Associate DVA-C02 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 460
After resolving the following incident, which ongoing safeguard most directly prevents recurrence? A team deploys new Lambda code but an API Gateway integration still points to an unversioned function instead of the reviewed alias.
- Check API integration targets and alias qualifiers in every deployment smoke test.
- Compare stage configurations in pipeline checks and reject production deployments with test environment identifiers.
- Add resource-identity assertions and denied test-resource references to the deployment gate.
- Assert test-mode provider credentials and outbound endpoint destinations in the pipeline setup.
Explanation
Correct Answer
A:Check API integration targets and alias qualifiers in every deployment smoke test. This safeguards against a recurring cause: The API deployment target bypasses the intended versioned release and rollback boundary.
Incorrect Answers
B:That safeguard addresses another case: A scheduled Lambda job uses an environment-specific API endpoint hardcoded for staging even after the deployment reaches production. It is not the control for this recurring failure.
C:That safeguard addresses another case: A production release reuses a staging API Gateway stage variable that resolves to a sandbox DynamoDB table with test customer records. It is not the control for this recurring failure.
D:That safeguard addresses another case: A checkout integration test calls a live payment provider and charges a customer account every time the CI pipeline runs. It is not the control for this recurring failure.
Question 461
An S3-backed application generates presigned download URLs for confidential attachments without verifying document ownership before signing. Which engineering change best addresses the underlying issue?
- Keep keys out of application logs, use appropriate managed key protection and limit decrypt rights to intended principals.
- Use an approved KMS-backed envelope encryption design and protect data keys according to the application threat model.
- Check attachment ownership and request context before issuing a narrowly scoped, expiring presigned URL.
- Log structured allowlisted metadata and redact secrets and personal values before emitting operational events.
Explanation
Correct Answer
C:Check attachment ownership and request context before issuing a narrowly scoped, expiring presigned URL. It directly addresses the case cause (The signing backend authorizes the raw object key rather than the requesting user's entitlement to that object.) and should be verified by: Authorized users obtain only their documents and attempts to sign another user's object are denied.
Incorrect Answers
A:That change addresses a service encrypts every application response with one reusable symmetric key and logs that key during debugging to make support easier; it would not repair this incident.
B:That change addresses a DynamoDB application encrypts customer values with a shared manually managed data key stored as plaintext in its repository; it would not repair this incident.
D:That change addresses a Lambda handler prints complete inbound API payloads to CloudWatch Logs, exposing personal addresses and session tokens in troubleshooting records; it would not repair this incident.
Question 462
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. Which engineering change best addresses the underlying issue?
- Constrain the authorizer policy to appropriate method ARNs and bind per-request authorization to the intended user/resource context.
- Build an allowlisted sanitized event schema that excludes bearer credentials and unrelated personal fields.
- Grant narrowly scoped KMS decrypt access through the applicable IAM and key policy controls for the intended role.
- Return consistent sanitized error codes and correlation IDs while preserving protected internal diagnostics separately.
Explanation
Correct Answer
C:Grant narrowly scoped KMS decrypt access through the applicable IAM and key policy controls for the intended role. It directly addresses the case cause (Storage-object permission and cryptographic key authorization are separate required checks.) and should be verified by: An approved encrypted object is readable while decrypting another customer's objects remains denied.
Incorrect Answers
A: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.
B:That change addresses a microservice forwards raw end-user tokens from headers to a third-party analytics endpoint, although analytics needs only event type and status; it would not repair this incident.
D:That change addresses an API error handler includes access tokens and raw service exceptions in JSON responses sent to all callers; it would not repair this incident.
Question 463
After resolving the following incident, which ongoing safeguard most directly prevents recurrence? A microservice assumes an IAM role in a second AWS account but receives AccessDenied despite a permissive identity policy in the caller account.
- Test source/target key grants and expected encryption context after cross-account data-flow changes.
- Test both sides of the assume-role relationship during cross-account integration releases.
- Test stored and reflected script-like payloads through the full API-to-rendering workflow.
- Apply response redaction and negative secret fixtures to all error paths, including integration failures.
Explanation
Correct Answer
B:Test both sides of the assume-role relationship during cross-account integration releases. This safeguards against a recurring cause: Cross-account role assumption requires both caller permission and a target role trust policy that admits the principal.
Incorrect Answers
A:That safeguard addresses another case: 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. It is not the control for this recurring failure.
C:That safeguard addresses another case: A developer sanitizes a user-submitted comment only on the browser, and malicious HTML is stored and displayed to other users. It is not the control for this recurring failure.
D:That safeguard addresses another case: An API error handler includes access tokens and raw service exceptions in JSON responses sent to all callers. It is not the control for this recurring failure.
Question 464
An API Gateway custom domain points to a different stage after a deployment even though the backend Lambda versions were correctly published. Which engineering change best addresses the underlying issue?
- Review actual memory usage and publish a task-definition revision with appropriate supported CPU and memory settings.
- Inspect and correct API mapping and stage identifiers, then verify requests through the actual custom domain.
- Apply reviewed per-stage variables or AppConfig values and assert resource identity at deployment time.
- Add event-driven integration fixtures that assert downstream side effects, retries and failure destinations after controlled delivery.
Explanation
Correct Answer
B:Inspect and correct API mapping and stage identifiers, then verify requests through the actual custom domain. It directly addresses the case cause (The custom domain base-path mapping or stage deployment routing is inconsistent with the intended environment.) and should be verified by: A request to the public custom domain reaches the intended stage without accessing staging-only operations.
Incorrect Answers
A:That change addresses 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 would not repair this incident.
C:That change addresses a production release reuses a staging API Gateway stage variable that resolves to a sandbox DynamoDB table with test customer records; it would not repair this incident.
D: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.
Question 465
A stateless containerized checkout API stores shopping-cart state only in a process dictionary and loses carts when traffic shifts to a new task. Which technical dependency most directly explains this behavior?
- 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.
- Application state is tied to one transient compute instance rather than a shared state contract.
- Uncertain success and non-idempotent updates allow a repeated request to apply the stock change more than once.
Explanation
Correct Answer
C:Application state is tied to one transient compute instance rather than a shared state contract. The corresponding fix is to persist the authorized cart in an appropriately keyed durable store or scoped distributed session service.
Incorrect Answers
A: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.
B: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.
D:This diagnosis addresses another AWS case: An order service increments a DynamoDB inventory balance twice after a transient network retry of the same purchase request. The dependency here is different.
Question 466
A Lambda alias was shifted to an unhealthy version, but operators cannot restore the last known-good version because deployment metadata records only latest. Which technical dependency most directly explains this behavior?
- The packaged workload's resource requirements are not reflected in the deployed task definition.
- The test fixture does not represent the service's documented event envelope.
- 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
D:Release history and alias version identifiers are not preserved as rollback artifacts. The corresponding fix is to record immutable published versions and implement a tested rollback through alias or supported deployment controls.
Incorrect Answers
A: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.
B:This diagnosis addresses another AWS case: 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. 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.
Question 467
A CI workflow publishes Docker images under one mutable tag and the ECS service pulls a different image during a multi-AZ scale-out. Which engineering change best addresses the underlying issue?
- Use isolated stage stacks or resource names and inspect deployment changes before applying the updated template.
- Repackage the code so the deployed handler path, modules and ZIP directory root agree.
- Publish an immutable digest and deploy that exact digest in the reviewed task definition revision.
- Deploy pinned image digests or immutable release tags and record the exact reviewed artifact in the service revision.
Explanation
Correct Answer
C:Publish an immutable digest and deploy that exact digest in the reviewed task definition revision. It directly addresses the case cause (Mutable artifact references allow tasks in one nominal release to resolve to different image content.) and should be verified by: New and existing tasks in the deployment resolve to the same intended container image digest.
Incorrect Answers
A:That change addresses 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 would not repair this incident.
B:That change addresses a Python Lambda project includes its source file but omits the required top-level package directory layout for the configured handler; it would not repair this incident.
D:That change addresses an ECS service uses an image tag named latest and a rollback launches a different container image than the previous production version; it would not repair this incident.
Question 468
A developer creates short-lived download links but signs requests without constraining the HTTP method, resource or allowed signing credentials. Which technical dependency most directly explains this behavior?
- An authorization decision for one method and resource is incorrectly generalized to privileged routes.
- The Lambda execution role controls AWS service access but does not enforce each end user's business permissions.
- The presigning workflow allows a broader operation than the intended user action and permission boundary.
- The signing backend authorizes the raw object key rather than the requesting user's entitlement to that object.
Explanation
Correct Answer
C:The presigning workflow allows a broader operation than the intended user action and permission boundary. The corresponding fix is to generate method- and object-scoped signed requests under a least-privilege principal with appropriate expiry.
Incorrect Answers
A: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.
B:This diagnosis addresses another AWS case: An API Gateway route sends every authenticated request to a Lambda with broad IAM permissions, and the handler never checks the user's permitted action. The dependency here is different.
D:This diagnosis addresses another AWS case: An S3-backed application generates presigned download URLs for confidential attachments without verifying document ownership before signing. The dependency here is different.
Question 469
An order service increments a DynamoDB inventory balance twice after a transient network retry of the same purchase request. Select TWO complementary measures that correctly repair and validate this failure.
- Repeated delivery of one purchase changes inventory once and independent purchases remain correctly counted.
- Use an idempotency record and conditional or transactional update bound to a stable purchase request ID.
- Use supported partial batch response or bisect handling where applicable and idempotent downstream writes.
- Assume an SDK retry cannot repeat a previously committed inventory update.
- The workflow succeeds only when the actual remote job completes and routes failed jobs to a reviewable error path.
Explanation
Correct Answers
A:Repeated delivery of one purchase changes inventory once and independent purchases remain correctly counted. This is the observable result required before accepting the correction.
B:Use an idempotency record and conditional or transactional update bound to a stable purchase request ID. The underlying cause is: Uncertain success and non-idempotent updates allow a repeated request to apply the stock change more than once.
Incorrect Answers
C:That corrective action is for a different case: 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 resolve this incident.
D:Assume an SDK retry cannot repeat a previously committed inventory update. That shortcut conflicts with the stated requirement.
E:This would validate a different 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. It does not verify the outcome required here.
Question 470
An application tracks only average latency and misses a small cohort of timeouts that breach the published p99 API performance objective. Which engineering change best addresses the underlying issue?
- Publish suitable latency distributions and p95/p99 metrics with errors and traffic context.
- 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.
- Profile representative conversion jobs across supported Lambda memory sizes and select a measured cost-latency balance.
Explanation
Correct Answer
A:Publish suitable latency distributions and p95/p99 metrics with errors and traffic context. It directly addresses the case cause (Averages conceal tail latency and do not represent the stated high-percentile service objective.) and should be verified by: A synthetic slow-tail fixture triggers the defined p99 signal even when average latency remains normal.
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 Lambda function is configured with very low memory and CPU allocation; its compute-heavy document conversion spends most time in local processing; it would not repair this incident.
AWS Certified Developer - Associate DVA-C02 Practice Tests