100% Latest & Updated Amazon AWS Certified Developer - Associate DVA-C02 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 400
An EventBridge rule meant to match a new payment event stops invoking its Lambda target after the producer changes detail-type capitalization. Which engineering change best addresses the underlying issue?
- Update the producer event contract or the rule's detail-type pattern and confirm the intended event bus and target permissions.
- Follow LastEvaluatedKey and return a safe continuation cursor while preserving query authorization constraints.
- Configure an authorized on-failure destination and capture the event context without leaking sensitive payload fields.
- Trim unused dependencies and initialization work and measure whether provisioned concurrency is justified for the latency requirement.
Explanation
Correct Answer
A:Update the producer event contract or the rule's detail-type pattern and confirm the intended event bus and target permissions. It directly addresses the case cause (Event patterns match exact fields and the producer's event envelope no longer matches the deployed rule.) and should be verified by: A synthetic event with the approved envelope matches and reaches the authorized target exactly as intended.
Incorrect Answers
B: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.
C:That change addresses an asynchronously invoked Lambda fails on malformed event data, but operators find no durable record of discarded events after retry attempts end; it would not repair this incident.
D:That change addresses a Lambda API endpoint has high first-request latency after deployments because a large package loads heavy optional libraries during initialization; it would not repair this incident.
Question 401
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. Which engineering change best addresses the underlying issue?
- Use clean reproducible builds with explicit artifact paths and record source revision and resulting digest.
- Make deployment explicitly depend on successful integration and security tests for the same immutable revision.
- Externalize reviewed stage-specific settings through approved parameters or AWS AppConfig and validate them before launch.
- Build representative EventBridge envelopes and run handler contract tests against the actual integration schema.
Explanation
Correct Answer
D:Build representative EventBridge envelopes and run handler contract tests against the actual integration schema. It directly addresses the case cause (The test fixture does not represent the service's documented event envelope.) and should be verified by: The deployed target accepts the real envelope and rejects malformed events with controlled errors.
Incorrect Answers
A:That change addresses a CodePipeline source revision succeeds but a CodeBuild project produces an artifact containing files from an earlier unclean local build; it would not repair this incident.
B:That change addresses a CodePipeline action promotes an artifact to production when build succeeds even though integration tests for the same revision are still running; it would not repair this incident.
C:That change addresses a scheduled Lambda job uses an environment-specific API endpoint hardcoded for staging even after the deployment reaches production; it would not repair this incident.
Question 402
A team applies a reviewed fix for this situation: A Step Functions task sends requests to a third-party endpoint but the workflow catches every error as success, hiding permanent partner rejections. Which observed outcome would most convincingly validate the fix?
- A single transaction's safe logs can be joined across services without exposing credentials or raw customer data.
- A mixed-event fixture invokes the image processor only for permitted media events without dropping relevant updates.
- A controlled rejected purchase increments invocation metrics but not successful purchase counts.
- Injected permanent partner rejection marks execution failed with context while transient failures follow bounded retries.
Explanation
Correct Answer
D:Injected permanent partner rejection marks execution failed with context while transient failures follow bounded retries. This verifies the result of classify retryable versus permanent errors and route terminal failures to an observable failed state or approved recovery.
Incorrect Answers
A: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.
B:This would verify another situation: An SNS topic fans out all order events to an expensive image-processing subscriber even though that subscriber needs only product-media updates. It does not validate the current case.
C: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.
Question 403
A team applies a reviewed fix for this situation: 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 observed outcome would most convincingly validate the fix?
- A valid intended token is accepted while tampered, expired and wrong-user-pool tokens are rejected.
- The designated target principal decrypts only approved data while an unrelated account principal cannot use the key.
- An approved principal assumes the role and a neighboring unintended principal is rejected.
- Authorized users obtain only their documents and attempts to sign another user's object are denied.
Explanation
Correct Answer
B:The designated target principal decrypts only approved data while an unrelated account principal cannot use the key. This verifies the result of configure an authorized cross-account key policy and permitted IAM use, including encryption context constraints where appropriate.
Incorrect Answers
A:This would verify another situation: A web backend trusts any decoded Cognito user-pool JWT payload without checking its signature, issuer, token use or expiry. It does not validate the current case.
C: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.
D: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.
Question 404
A Node.js Lambda function allocates large objects at module scope per invocation and memory increases over successive warm requests. Which technical dependency most directly explains this behavior?
- The investigation lacks identity and authorization context to diagnose which execution role or resource policy denied the call.
- Service client configuration references a different Region from the intended resource and deployment context.
- Mutable long-lived in-process references retain request data and create memory pressure across execution reuse.
- The Lambda proxy integration response does not satisfy the expected statusCode, headers and body contract.
Explanation
Correct Answer
C:Mutable long-lived in-process references retain request data and create memory pressure across execution reuse. The corresponding fix is to eliminate unbounded retained references and profile memory usage under repeated representative warm invocations.
Incorrect Answers
A:This diagnosis addresses another AWS case: A newly deployed API occasionally returns HTTP 403 from a second service, and application logs omit the AWS principal making the downstream request. The dependency here is different.
B:This diagnosis addresses another AWS case: 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. The dependency here is different.
D:This diagnosis addresses another AWS case: An API Gateway REST integration returns HTTP 502 while its Lambda invocation logs show a successful handler return with malformed proxy response fields. The dependency here is different.
Question 405
A Lambda handler deployment is approved from a green build, but the packaged source contains an unexpected dependency version introduced by a branch merge. Select TWO complementary measures that correctly repair and validate this failure.
- The deployed Lambda version initializes successfully and executes the representative handler fixture.
- Generate and test a provenance-tagged artifact and deploy the same digest after all required checks pass.
- Rebuild from the default branch during deployment and assume the output is identical.
- The deployed package hash matches the artifact tested in CI and dependency behavior remains stable.
- Add event-driven integration fixtures that assert downstream side effects, retries and failure destinations after controlled delivery.
Explanation
Correct Answers
B:Generate and test a provenance-tagged artifact and deploy the same digest after all required checks pass. The underlying cause is: Automated tests did not validate the exact immutable artifact that was later promoted.
D:The deployed package hash matches the artifact tested in CI and dependency behavior remains stable. This is the observable result required before accepting the correction.
Incorrect Answers
A:This would validate 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 verify the outcome required here.
C:Rebuild from the default branch during deployment and assume the output is identical. That shortcut conflicts with the stated requirement.
E:That corrective action is for 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 resolve this incident.
Question 406
A Lambda application stores a rotating partner API key as a hardcoded configuration constant inside deployed source code. Which technical dependency most directly explains this behavior?
- Application state is tied to one transient compute instance rather than a shared state contract.
- Global secondary index reads provide eventual consistency and cannot supply a strongly consistent read mode.
- The external API acknowledgement has been treated as the completed asynchronous business operation.
- The credential lifecycle is coupled to code deployment and risks accidental exposure in artifacts and logs.
Explanation
Correct Answer
D:The credential lifecycle is coupled to code deployment and risks accidental exposure in artifacts and logs. The corresponding fix is to retrieve the approved credential from an access-controlled secrets store with narrow runtime authorization and rotation handling.
Incorrect Answers
A:This diagnosis addresses another AWS 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. The dependency here is different.
B:This diagnosis addresses another AWS case: A DynamoDB application requires immediate read-after-write consistency but queries a global secondary index and occasionally reads an older version. The dependency here is different.
C: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 407
An application tracks only average latency and misses a small cohort of timeouts that breach the published p99 API performance objective. Which technical dependency most directly explains this behavior?
- Catch-all exception handling misclassifies terminal failures and removes meaningful incident evidence.
- Repeated external reads perform unnecessary work that a bounded safe cache could eliminate.
- Averages conceal tail latency and do not represent the stated high-percentile service objective.
- Mutable long-lived in-process references retain request data and create memory pressure across execution reuse.
Explanation
Correct Answer
C:Averages conceal tail latency and do not represent the stated high-percentile service objective. The corresponding fix is to publish suitable latency distributions and p95/p99 metrics with errors and traffic context.
Incorrect Answers
A:This diagnosis addresses another AWS case: A Step Functions task sends requests to a third-party endpoint but the workflow catches every error as success, hiding permanent partner rejections. The dependency here is different.
B:This diagnosis addresses another AWS case: A Lambda image endpoint loads an expensive configuration database record for every invocation even though the record changes only once per hour. The dependency here is different.
D:This diagnosis addresses another AWS case: A Node.js Lambda function allocates large objects at module scope per invocation and memory increases over successive warm requests. The dependency here is different.
Question 408
A developer reads one page of a DynamoDB Query response and a history screen omits newer records when an account exceeds the result limit. Select THREE complementary measures that correctly repair and validate, and prevent recurrence of this failure.
- Include paginated results and stable cursor handling in account-history regression fixtures.
- Configure an authorized on-failure destination and capture the event context without leaking sensitive payload fields.
- Multi-page test accounts display all authorized records with no gaps or duplicate page boundaries.
- The same authorized cart survives container replacement and remains isolated from other shopper identities.
- Follow LastEvaluatedKey and return a safe continuation cursor while preserving query authorization constraints.
- Replace the account-specific Query with a full-table Scan to collect all records.
Explanation
Correct Answers
A:Include paginated results and stable cursor handling in account-history regression fixtures. This protects against the following risk: A single Query call is assumed to return the complete logical result set despite pagination.
C:Multi-page test accounts display all authorized records with no gaps or duplicate page boundaries. This is the observable result required before accepting the correction.
E:Follow LastEvaluatedKey and return a safe continuation cursor while preserving query authorization constraints. The underlying cause is: A single Query call is assumed to return the complete logical result set despite pagination.
Incorrect Answers
B:That corrective action is for a different case: An asynchronously invoked Lambda fails on malformed event data, but operators find no durable record of discarded events after retry attempts end. It does not resolve this incident.
D:This would validate a different 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 does not verify the outcome required here.
F:Replace the account-specific Query with a full-table Scan to collect all records. That shortcut conflicts with the stated requirement.
Question 409
A login service expects DynamoDB TTL to remove an expired session at the exact expiry timestamp and continues accepting expired records while deletion lags. Select THREE complementary measures that correctly repair and validate, and prevent recurrence of this failure.
- The deployed function initializes and passes representative requests using the exact published layer version.
- Test business expiry behavior separately from eventual storage deletion and TTL metrics.
- Check the session expiry attribute in application authorization and use TTL only for eventual physical cleanup.
- Review generated changes, replace broad permissions with the minimum actions and resources, and run approved security and behavior tests.
- Treat the presence of a TTL timestamp as proof an expired session is never readable.
- An expired session is denied immediately even if its DynamoDB item still exists during background cleanup.
Explanation
Correct Answers
B:Test business expiry behavior separately from eventual storage deletion and TTL metrics. This protects against the following risk: DynamoDB TTL background deletion is asynchronous and does not enforce immediate application session invalidation.
C:Check the session expiry attribute in application authorization and use TTL only for eventual physical cleanup. The underlying cause is: DynamoDB TTL background deletion is asynchronous and does not enforce immediate application session invalidation.
F:An expired session is denied immediately even if its DynamoDB item still exists during background cleanup. This is the observable result required before accepting the correction.
Incorrect Answers
A:This would validate a different case: A Lambda function imports a shared layer that was built for an incompatible runtime and fails before the handler starts. It does not verify the outcome required here.
D:That corrective action is for a different case: 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. It does not resolve this incident.
E:Treat the presence of a TTL timestamp as proof an expired session is never readable. That shortcut conflicts with the stated requirement.
Question 410
After resolving the following incident, which ongoing safeguard most directly prevents recurrence? An order microservice writes free-form log strings without request IDs, making it impossible to follow one transaction across API Gateway and Lambda.
- Monitor cache hit rate, staleness and downstream load under realistic warm and cold invocations.
- Require correlation ID propagation and structured-log schemas in service integration tests.
- Log safe Region and resource identifiers and test cross-Region configuration in staging.
- Review subscription filter coverage when event schemas evolve and monitor filtered delivery counts.
Explanation
Correct Answer
B:Require correlation ID propagation and structured-log schemas in service integration tests. This safeguards against a recurring cause: The operational events lack a stable correlation identifier shared through the request path.
Incorrect Answers
A:That safeguard addresses another case: A Lambda image endpoint loads an expensive configuration database record for every invocation even though the record changes only once per hour. It is not the control for this recurring failure.
C:That safeguard addresses another case: 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. It is not the control for this recurring failure.
D:That safeguard addresses another case: An SNS topic fans out all order events to an expensive image-processing subscriber even though that subscriber needs only product-media updates. It is not the control for this recurring failure.
AWS Certified Developer - Associate DVA-C02 Practice Tests