100% Latest & Updated Amazon AWS Certified Developer - Associate DVA-C02 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 330
A team applies a reviewed fix for this situation: A Lambda function passes mocked unit tests but fails in a real account because its execution role cannot read the intended DynamoDB table. Which observed outcome would most convincingly validate the fix?
- A measured load test completes without out-of-memory termination while resource consumption stays within budget.
- The deployed function reads its intended fixture and receives denial on an unrelated table.
- The deployed package hash matches the artifact tested in CI and dependency behavior remains stable.
- A deliberately failing integration test blocks production promotion and preserves the last approved artifact.
Explanation
Correct Answer
B:The deployed function reads its intended fixture and receives denial on an unrelated table. This verifies the result of add a constrained integration test with the actual execution-role permissions and approved test table.
Incorrect Answers
A: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.
C:This would verify another situation: 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 validate the current case.
D:This would verify another situation: A CodePipeline action promotes an artifact to production when build succeeds even though integration tests for the same revision are still running. It does not validate the current case.
Question 331
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. Select TWO complementary measures that correctly repair and validate this failure.
- A controlled poison message is retried or isolated while successful messages are not needlessly reprocessed.
- Validate the function's subnet and security groups, database endpoint resolution and permitted inbound database port.
- A controlled normal transaction is excluded while high-risk events reach only the approved fraud subscription.
- Publish the intended message attributes and configure a subscription filter policy for the fraud alert category.
- Make every subscriber discard every message after receiving it instead of fixing routing.
Explanation
Correct Answers
C:A controlled normal transaction is excluded while high-risk events reach only the approved fraud subscription. This is the observable result required before accepting the correction.
D:Publish the intended message attributes and configure a subscription filter policy for the fraud alert category. The underlying cause is: The subscription has no effective message-attribute filtering contract and routes all eligible published messages.
Incorrect Answers
A:This would validate a different case: One malformed record in an SQS batch makes a Lambda handler raise an exception and all previously processed messages reappear after visibility timeout. It does not verify the outcome required here.
B:That corrective action is for a different case: A Lambda function runs in a private VPC subnet and cannot reach its intended RDS endpoint, although the stored database username and password are correct. It does not resolve this incident.
E:Make every subscriber discard every message after receiving it instead of fixing routing. That shortcut conflicts with the stated requirement.
Question 332
An API Gateway REST integration returns HTTP 502 while its Lambda invocation logs show a successful handler return with malformed proxy response fields. Select TWO complementary measures that correctly repair and validate this failure.
- Implement a lightweight readiness endpoint that reflects required startup dependencies without exposing secrets.
- Return the supported proxy response shape and validate serialized body and status-code types.
- The chosen configuration meets latency requirements and processes the identical document output without unacceptable extra cost.
- Increase the API Gateway timeout while continuing to send an invalid response object.
- A controlled API invocation returns the expected status and JSON body without an integration-generated 502.
Explanation
Correct Answers
B:Return the supported proxy response shape and validate serialized body and status-code types. The underlying cause is: The Lambda proxy integration response does not satisfy the expected statusCode, headers and body contract.
E:A controlled API invocation returns the expected status and JSON body without an integration-generated 502. This is the observable result required before accepting the correction.
Incorrect Answers
A:That corrective action is for a different case: A Kubernetes-style container endpoint reports ready whenever the process runs but cannot serve requests until its downstream cache warms after startup. It does not resolve this incident.
C:This would validate a different case: A Lambda function is configured with very low memory and CPU allocation; its compute-heavy document conversion spends most time in local processing. It does not verify the outcome required here.
D:Increase the API Gateway timeout while continuing to send an invalid response object. That shortcut conflicts with the stated requirement.
Question 333
A CloudWatch dashboard displays Lambda invocation count as successful purchases even though the handler frequently returns business validation errors. 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.
- Infrastructure invocation metrics have been confused with an accepted domain-specific business outcome.
- The health-check configuration is out of sync with the deployed application's readiness endpoint.
- Service client configuration references a different Region from the intended resource and deployment context.
Explanation
Correct Answer
B:Infrastructure invocation metrics have been confused with an accepted domain-specific business outcome. The corresponding fix is to publish a bounded business-success custom metric with clearly defined labels and correlate it with actual accepted payments.
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.
C:This diagnosis addresses another AWS 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. The dependency here is different.
D: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.
Question 334
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. Select TWO complementary measures that correctly repair and validate this failure.
- Apply an approved keyed tokenization or privacy-preserving identifier design with appropriate reidentification controls.
- Grant narrowly scoped KMS decrypt access through the applicable IAM and key policy controls for the intended role.
- An approved encrypted object is readable while decrypting another customer's objects remains denied.
- Turn off encryption on all stored customer data to make GetObject succeed.
- The approved function publishes a test event while unauthorized roles in either account remain denied.
Explanation
Correct Answers
B:Grant narrowly scoped KMS decrypt access through the applicable IAM and key policy controls for the intended role. The underlying cause is: Storage-object permission and cryptographic key authorization are separate required checks.
C:An approved encrypted object is readable while decrypting another customer's objects remains denied. This is the observable result required before accepting the correction.
Incorrect Answers
A:That corrective action is for 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 resolve this incident.
D:Turn off encryption on all stored customer data to make GetObject succeed. That shortcut conflicts with the stated requirement.
E:This would validate a different case: A Lambda function cannot publish to an SNS topic in another account although the execution role allows sns:Publish. It does not verify the outcome required here.
Question 335
After resolving the following incident, which ongoing safeguard most directly prevents recurrence? A Kubernetes-style container endpoint reports ready whenever the process runs but cannot serve requests until its downstream cache warms after startup.
- Monitor cache hit rate, staleness and downstream load under realistic warm and cold invocations.
- Exercise cold startup, cache warming and dependency failure readiness paths in deployment tests.
- Monitor allocation growth, heap snapshots and concurrency-sensitive state in performance tests.
- Log safe Region and resource identifiers and test cross-Region configuration in staging.
Explanation
Correct Answer
B:Exercise cold startup, cache warming and dependency failure readiness paths in deployment tests. This safeguards against a recurring cause: The health probe measures process existence instead of the application's actual request-readiness prerequisites.
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 Node.js Lambda function allocates large objects at module scope per invocation and memory increases over successive warm requests. It is not the control for this recurring failure.
D: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.
Question 336
After resolving the following incident, which ongoing safeguard most directly prevents recurrence? An order service increments a DynamoDB inventory balance twice after a transient network retry of the same purchase request.
- Test unknown-success network failures with concurrent requests and verify durable request deduplication.
- Pin tested layer ARNs and run build checks for each supported runtime and architecture combination.
- Contract-test EventBridge source and detail-type values against deployed event patterns in continuous integration.
- Test replay at shard boundaries and monitor iterator age and batch failure metrics together.
Explanation
Correct Answer
A:Test unknown-success network failures with concurrent requests and verify durable request deduplication. This safeguards against a recurring cause: Uncertain success and non-idempotent updates allow a repeated request to apply the stock change more than once.
Incorrect Answers
B:That safeguard addresses another case: A Lambda function imports a shared layer that was built for an incompatible runtime and fails before the handler starts. 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: A Lambda stream consumer processes an exceptionally large Kinesis batch and repeats previously successful records after one record triggers a runtime exception. It is not the control for this recurring failure.
Question 337
A team applies a reviewed fix for this situation: 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 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 same authorized cart survives container replacement and remains isolated from other shopper identities.
- Login lookups use a bounded key-based access path and avoid reading unrelated account records.
- The function succeeds after a controlled secret rotation without source-code changes or credential logging.
Explanation
Correct Answer
B:The same authorized cart survives container replacement and remains isolated from other shopper identities. This verifies the result of persist the authorized cart in an appropriately keyed durable store or scoped distributed session service.
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: An online DynamoDB account lookup performs a full Scan for every login even though users always supply an email address. It does not validate the current case.
D:This would verify another situation: A Lambda application stores a rotating partner API key as a hardcoded configuration constant inside deployed source code. It does not validate the current case.
Question 338
After resolving the following incident, which ongoing safeguard most directly prevents recurrence? A Lambda stream consumer processes an exceptionally large Kinesis batch and repeats previously successful records after one record triggers a runtime exception.
- Run inventory tests beyond the service page size and store resumable progress for interrupted scans.
- Keep versioned event fixtures and enforce schema checks for each producer-to-consumer integration.
- Test replay at shard boundaries and monitor iterator age and batch failure metrics together.
- Require code review, static scanning and denied-resource fixtures for AI-assisted code changes.
Explanation
Correct Answer
C:Test replay at shard boundaries and monitor iterator age and batch failure metrics together. This safeguards against a recurring cause: The checkpoint and retry scope are not aligned with record-level failure handling and idempotent effects.
Incorrect Answers
A:That safeguard addresses another case: 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 is not the control for this recurring failure.
B:That safeguard addresses another case: A Lambda target receives an EventBridge envelope but its handler reads customerId at the top level instead of under detail. It is not the control for this recurring failure.
D:That safeguard addresses another 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 is not the control for this recurring failure.
Question 339
A Lambda target receives an EventBridge envelope but its handler reads customerId at the top level instead of under detail. 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.
- The integration code assumes the wrong documented event-envelope structure for this event source.
- The partition-key strategy concentrates a large workload on a small physical key distribution.
- The credential lifecycle is coupled to code deployment and risks accidental exposure in artifacts and logs.
Explanation
Correct Answer
B:The integration code assumes the wrong documented event-envelope structure for this event source. The corresponding fix is to parse the expected EventBridge detail field after validating source, detail-type and event schema.
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 DynamoDB table partitions all tenant activity by one static calendar-day key and hot writes throttle despite spare overall capacity. The dependency here is different.
D: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.
Question 340
An SNS topic fans out all order events to an expensive image-processing subscriber even though that subscriber needs only product-media updates. Select TWO complementary measures that correctly repair and validate this failure.
- The failed request can be traced to a specific denied principal and narrow corrective policy change.
- Publish a bounded business-success custom metric with clearly defined labels and correlate it with actual accepted payments.
- Increase subscriber memory while continuing to process every irrelevant order event.
- A mixed-event fixture invokes the image processor only for permitted media events without dropping relevant updates.
- Configure an SNS subscription filter policy for the approved media event attributes and validate publisher metadata.
Explanation
Correct Answers
D:A mixed-event fixture invokes the image processor only for permitted media events without dropping relevant updates. This is the observable result required before accepting the correction.
E:Configure an SNS subscription filter policy for the approved media event attributes and validate publisher metadata. The underlying cause is: Unfiltered subscriber delivery wastes processing and creates avoidable downstream concurrency and cost.
Incorrect Answers
A:This would validate a different case: A newly deployed API occasionally returns HTTP 403 from a second service, and application logs omit the AWS principal making the downstream request. It does not verify the outcome required here.
B:That corrective action is for a different case: A CloudWatch dashboard displays Lambda invocation count as successful purchases even though the handler frequently returns business validation errors. It does not resolve this incident.
C:Increase subscriber memory while continuing to process every irrelevant order event. That shortcut conflicts with the stated requirement.
AWS Certified Developer - Associate DVA-C02 Practice Tests