100% Latest & Updated Amazon AWS Certified Developer - Associate DVA-C02 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 190
A Lambda handler prints complete inbound API payloads to CloudWatch Logs, exposing personal addresses and session tokens in troubleshooting records. Which technical dependency most directly explains this behavior?
- Debug logging ignores data classification and unnecessarily retains sensitive fields outside their intended processing boundary.
- The signing backend authorizes the raw object key rather than the requesting user's entitlement to that object.
- Encryption at rest is not a transport security control for the application-to-partner connection.
- The application confuses authentication identity claims with the access-token authorization contract.
Explanation
Correct Answer
A:Debug logging ignores data classification and unnecessarily retains sensitive fields outside their intended processing boundary. The corresponding fix is to log structured allowlisted metadata and redact secrets and personal values before emitting operational events.
Incorrect Answers
B: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.
C:This diagnosis addresses another AWS case: A developer encrypts a sensitive payload at rest with an S3 bucket setting but sends that payload over an unencrypted partner HTTP connection. The dependency here is different.
D:This diagnosis addresses another AWS case: A Lambda API accepts an ID token in place of the OAuth access token used for protected API scopes and grants an unintended operation. The dependency here is different.
Question 191
After resolving the following incident, which ongoing safeguard most directly prevents recurrence? A CodePipeline action promotes an artifact to production when build succeeds even though integration tests for the same revision are still running.
- 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.
- Add resource-identity assertions and denied test-resource references to the deployment gate.
- Keep versioned sample event fixtures and test both valid and invalid producer payloads.
Explanation
Correct Answer
A:Review pipeline stage dependencies and compare commit and artifact IDs across every gate. This safeguards against a recurring cause: Pipeline dependencies allow release approval before the required test stage reaches a successful terminal state.
Incorrect Answers
B: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.
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 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 is not the control for this recurring failure.
Question 192
A checkout integration test calls a live payment provider and charges a customer account every time the CI pipeline runs. Select THREE complementary measures that correctly repair and validate, and prevent recurrence of this failure.
- Inject a deterministic payment mock or provider-approved sandbox in CI and reserve live calls for explicitly authorized tests.
- Use production payment credentials because they provide more realistic test responses.
- CI tests produce predictable success and rejection cases without any real payment transaction.
- The production endpoint invokes the planned alias version and rollback changes only the controlled release mapping.
- Generate and test a provenance-tagged artifact and deploy the same digest after all required checks pass.
- Assert test-mode provider credentials and outbound endpoint destinations in the pipeline setup.
Explanation
Correct Answers
A:Inject a deterministic payment mock or provider-approved sandbox in CI and reserve live calls for explicitly authorized tests. The underlying cause is: The test crosses an external billing boundary without using a controlled sandbox or mock dependency.
C:CI tests produce predictable success and rejection cases without any real payment transaction. This is the observable result required before accepting the correction.
F:Assert test-mode provider credentials and outbound endpoint destinations in the pipeline setup. This protects against the following risk: The test crosses an external billing boundary without using a controlled sandbox or mock dependency.
Incorrect Answers
B:Use production payment credentials because they provide more realistic test responses. That shortcut conflicts with the stated requirement.
D:This would validate a different case: A team deploys new Lambda code but an API Gateway integration still points to an unversioned function instead of the reviewed alias. It does not verify the outcome required here.
E:That corrective action is for a different case: A Lambda handler deployment is approved from a green build, but the packaged source contains an unexpected dependency version introduced by a branch merge. It does not resolve this incident.
Question 193
A Step Functions task sends requests to a third-party endpoint but the workflow catches every error as success, hiding permanent partner rejections. Which engineering change best addresses the underlying issue?
- Classify retryable versus permanent errors and route terminal failures to an observable failed state or approved recovery.
- Publish a bounded business-success custom metric with clearly defined labels and correlate it with actual accepted payments.
- Profile representative conversion jobs across supported Lambda memory sizes and select a measured cost-latency balance.
- Eliminate unbounded retained references and profile memory usage under repeated representative warm invocations.
Explanation
Correct Answer
A:Classify retryable versus permanent errors and route terminal failures to an observable failed state or approved recovery. It directly addresses the case cause (Catch-all exception handling misclassifies terminal failures and removes meaningful incident evidence.) and should be verified by: Injected permanent partner rejection marks execution failed with context while transient failures follow bounded retries.
Incorrect Answers
B:That change addresses a CloudWatch dashboard displays Lambda invocation count as successful purchases even though the handler frequently returns business validation errors; it would not repair this incident.
C: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.
D: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.
Question 194
A Kubernetes-style container endpoint reports ready whenever the process runs but cannot serve requests until its downstream cache warms after startup. Select TWO complementary measures that correctly repair and validate this failure.
- Mark every started process ready before its dependencies initialize.
- Implement a lightweight readiness endpoint that reflects required startup dependencies without exposing secrets.
- Configure the actual application readiness path and verify target-group and container health timing under the release.
- Injected permanent partner rejection marks execution failed with context while transient failures follow bounded retries.
- New tasks receive traffic only after initialization completes and fail readiness when critical dependencies are unavailable.
Explanation
Correct Answers
B:Implement a lightweight readiness endpoint that reflects required startup dependencies without exposing secrets. The underlying cause is: The health probe measures process existence instead of the application's actual request-readiness prerequisites.
E:New tasks receive traffic only after initialization completes and fail readiness when critical dependencies are unavailable. This is the observable result required before accepting the correction.
Incorrect Answers
A:Mark every started process ready before its dependencies initialize. That shortcut conflicts with the stated requirement.
C:That corrective action is for a different case: 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 resolve this incident.
D:This would validate a different case: A Step Functions task sends requests to a third-party endpoint but the workflow catches every error as success, hiding permanent partner rejections. It does not verify the outcome required here.
Question 195
After resolving the following incident, which ongoing safeguard most directly prevents recurrence? A Lambda API endpoint has high first-request latency after deployments because a large package loads heavy optional libraries during initialization.
- 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.
- Test retry and circuit-breaker behavior against simulated 429 and 5xx partner responses.
- Capture required access patterns and query costs before adopting new DynamoDB tables or indexes.
Explanation
Correct Answer
B:Track initialization duration and dependency size in pre-release Lambda performance tests. This safeguards against a recurring cause: Cold-start initialization performs unnecessary work before the request handler can serve traffic.
Incorrect Answers
A:That safeguard addresses another case: 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 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 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 196
A web backend trusts any decoded Cognito user-pool JWT payload without checking its signature, issuer, token use or expiry. Which technical dependency most directly explains this behavior?
- Base64 decoding alone does not authenticate token origin or prove that its claims are still valid.
- Low-entropy identifiers remain vulnerable to dictionary attacks despite using a one-way hash function.
- The presigning workflow allows a broader operation than the intended user action and permission boundary.
- Storage-object permission and cryptographic key authorization are separate required checks.
Explanation
Correct Answer
A:Base64 decoding alone does not authenticate token origin or prove that its claims are still valid. The corresponding fix is to validate the signature with the expected Cognito JWKS and check issuer, intended client, token use, expiry and scopes.
Incorrect Answers
B:This diagnosis addresses another AWS case: A developer uses an unkeyed hash of predictable email addresses as a public customer identifier and calls it irreversible anonymization. The dependency here is different.
C:This diagnosis addresses another AWS case: A developer creates short-lived download links but signs requests without constraining the HTTP method, resource or allowed signing credentials. The dependency here is different.
D:This diagnosis addresses another AWS case: 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. The dependency here is different.
Question 197
A team applies a reviewed fix for this 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. Which observed outcome would most convincingly validate the fix?
- Representative compressed and malformed payloads follow the intended success or error paths without silent data corruption.
- The workflow succeeds only when the actual remote job completes and routes failed jobs to a reviewable error path.
- Numeric range queries return the expected product set and the active alias points to the validated index.
- A forced timeout results in one committed partner operation and a queryable final business status.
Explanation
Correct Answer
B:The workflow succeeds only when the actual remote job completes and routes failed jobs to a reviewable error path. This verifies the result of model a supported callback token or bounded status polling state that waits for a verified terminal batch outcome.
Incorrect Answers
A:This would verify another situation: A Lambda processor receives records compressed by an upstream service but attempts to parse the raw compressed bytes as UTF-8 JSON text. It does not validate the current case.
C:This would verify another situation: A customer search feature indexes JSON documents in OpenSearch but maps product price as text and numeric range filters behave incorrectly. It does not validate the current case.
D:This would verify another situation: A Lambda function invokes a slow partner API and frequently times out, causing clients to retry a write whose completion status is unknown. It does not validate the current case.
Question 198
After resolving the following incident, which ongoing safeguard most directly prevents recurrence? A high-traffic Lambda producer consumes all account concurrency, throttling a separate critical notification function during spikes.
- Capture required access patterns and query costs before adopting new DynamoDB tables or indexes.
- Monitor throttles, unreserved concurrency and queue age under combined workload peaks.
- Contract-test EventBridge source and detail-type values against deployed event patterns in continuous integration.
- Maintain negative request fixtures and validate model updates before deploying a new API stage.
Explanation
Correct Answer
B:Monitor throttles, unreserved concurrency and queue age under combined workload peaks. This safeguards against a recurring cause: The deployment has not reserved a concurrency budget for the critical path or bounded the producer's demand.
Incorrect Answers
A: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.
C: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.
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 199
A payment application calls a rate-limited partner REST API and immediately retries HTTP 429 responses until the partner suspends access. Which technical dependency most directly explains this behavior?
- The external side effect outlives the handler deadline and the application does not track idempotent completion.
- The deployment has not reserved a concurrency budget for the critical path or bounded the producer's demand.
- The retry loop ignores rate-limit signals and has no bounded backoff or circuit-breaker policy.
- The asynchronous failure path lacks a correctly configured destination or equivalent durable failure capture.
Explanation
Correct Answer
C:The retry loop ignores rate-limit signals and has no bounded backoff or circuit-breaker policy. The corresponding fix is to apply capped exponential backoff with jitter and supported Retry-After handling and fail predictably after a defined retry budget.
Incorrect Answers
A:This diagnosis addresses another AWS case: A Lambda function invokes a slow partner API and frequently times out, causing clients to retry a write whose completion status is unknown. The dependency here is different.
B: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.
D: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.
Question 200
A CodeDeploy Lambda rollout shifts all traffic to a new version at once and customers encounter failures before an alarm can stop the release. Select THREE complementary measures that correctly repair and validate, and prevent recurrence of this failure.
- Injected failures during initial traffic shift stop promotion and restore the intended prior version.
- Rehearse traffic shifting and rollback alarms with representative failure conditions before production deployment.
- Deploy pinned image digests or immutable release tags and record the exact reviewed artifact in the service revision.
- Use a supported canary or linear Lambda traffic-shifting configuration with pre/post traffic hooks and alarms.
- A rollback restores the identical image digest and reproduces the previous known-good application behavior.
- Increase the function timeout and continue full rollout after the alarm fires.
Explanation
Correct Answers
A:Injected failures during initial traffic shift stop promotion and restore the intended prior version. This is the observable result required before accepting the correction.
B:Rehearse traffic shifting and rollback alarms with representative failure conditions before production deployment. This protects against the following risk: The deployment has no staged exposure or effective rollback trigger for the new code.
D:Use a supported canary or linear Lambda traffic-shifting configuration with pre/post traffic hooks and alarms. The underlying cause is: The deployment has no staged exposure or effective rollback trigger for the new code.
Incorrect Answers
C:That corrective action is for a different case: An ECS service uses an image tag named latest and a rollback launches a different container image than the previous production version. It does not resolve this incident.
E:This would validate a different case: An ECS service uses an image tag named latest and a rollback launches a different container image than the previous production version. It does not verify the outcome required here.
F:Increase the function timeout and continue full rollout after the alarm fires. That shortcut conflicts with the stated requirement.
AWS Certified Developer - Associate DVA-C02 Practice Tests