100% Latest & Updated Amazon AWS Certified Developer - Associate DVA-C02 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
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.
Question 341
An SQS FIFO worker processes updates for unrelated customers slowly because every message is assigned the identical message group ID. Select TWO complementary measures that correctly repair and validate this failure.
- A maximum-size media fixture completes without ephemeral storage exhaustion and preserves the expected output.
- Use a stable per-customer message group identifier that maintains customer ordering without serializing unrelated customers.
- Switch to an unordered queue while claiming strict per-customer sequence is still guaranteed.
- Use appropriate reserved concurrency and buffering policies to protect the notification workflow and account quota.
- Parallel customer groups progress independently while sequential updates for one customer retain their order.
Explanation
Correct Answers
B:Use a stable per-customer message group identifier that maintains customer ordering without serializing unrelated customers. The underlying cause is: FIFO ordering serializes messages within one group and the producer has unnecessarily collapsed independent work.
E:Parallel customer groups progress independently while sequential updates for one customer retain their order. This is the observable result required before accepting the correction.
Incorrect Answers
A:This would validate a different case: A Lambda image conversion function fills the available /tmp directory with temporary video frames even though memory utilization remains low. It does not verify the outcome required here.
C:Switch to an unordered queue while claiming strict per-customer sequence is still guaranteed. That shortcut conflicts with the stated requirement.
D:That corrective action is for a different case: A high-traffic Lambda producer consumes all account concurrency, throttling a separate critical notification function during spikes. It does not resolve this incident.
Question 342
A Lambda deployment artifact is built without a required Python dependency, and the function raises ImportError immediately after deployment. Which engineering change best addresses the underlying issue?
- Use isolated stage stacks or resource names and inspect deployment changes before applying the updated template.
- Bundle or layer the tested compatible dependency set and validate imports from the actual deployment artifact.
- Make deployment explicitly depend on successful integration and security tests for the same immutable revision.
- Add a constrained integration test with the actual execution-role permissions and approved test table.
Explanation
Correct Answer
B:Bundle or layer the tested compatible dependency set and validate imports from the actual deployment artifact. It directly addresses the case cause (The published package does not contain the runtime dependency closure expected by the handler.) and should be verified by: The deployed Lambda version initializes successfully and executes the representative handler fixture.
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.
C: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.
D:That change addresses a Lambda function passes mocked unit tests but fails in a real account because its execution role cannot read the intended DynamoDB table; it would not repair this incident.
Question 343
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. Which engineering change best addresses the underlying issue?
- Build an allowlisted sanitized event schema that excludes bearer credentials and unrelated personal fields.
- Enforce application-level role and resource authorization in the handler before performing privileged actions.
- Bind the export prefix to an authenticated tenant identity and verify resource ownership before generating output.
- Configure an authorized cross-account key policy and permitted IAM use, including encryption context constraints where appropriate.
Explanation
Correct Answer
B:Enforce application-level role and resource authorization in the handler before performing privileged actions. It directly addresses the case cause (The Lambda execution role controls AWS service access but does not enforce each end user's business permissions.) and should be verified by: A low-privilege user cannot trigger the administrative action while an authorized user receives the expected result.
Incorrect Answers
A: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.
C:That change addresses a multi-tenant data export Lambda assumes an S3 key prefix from the request body and permits tenant A to select tenant B's export prefix; it would not repair this incident.
D:That change addresses 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 would not repair this incident.
Question 344
An API error handler includes access tokens and raw service exceptions in JSON responses sent to all callers. Which technical dependency most directly explains this behavior?
- The Lambda execution role controls AWS service access but does not enforce each end user's business permissions.
- The client-side encryption key is exposed through source distribution and lacks a protected lifecycle.
- Diagnostic responses expose secret-bearing internal context beyond what requesters require to handle errors.
- Encryption at rest is not a transport security control for the application-to-partner connection.
Explanation
Correct Answer
C:Diagnostic responses expose secret-bearing internal context beyond what requesters require to handle errors. The corresponding fix is to return consistent sanitized error codes and correlation IDs while preserving protected internal diagnostics separately.
Incorrect Answers
A: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.
B:This diagnosis addresses another AWS case: A DynamoDB application encrypts customer values with a shared manually managed data key stored as plaintext in its repository. The dependency here is different.
D: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.
Question 345
After resolving the following incident, which ongoing safeguard most directly prevents recurrence? A developer adds X-Ray segments to a Lambda request but never propagates trace context to a downstream HTTP service, producing disconnected service maps.
- Test cache headers, invalidation and auth-sensitive path exclusions before distribution changes.
- Test trace continuity and sampling behavior across every network and asynchronous handoff.
- Test each documented error category and inspect execution histories after workflow changes.
- Review subscription filter coverage when event schemas evolve and monitor filtered delivery counts.
Explanation
Correct Answer
B:Test trace continuity and sampling behavior across every network and asynchronous handoff. This safeguards against a recurring cause: Distributed trace propagation is not applied across the service-to-service network boundary.
Incorrect Answers
A:That safeguard addresses another case: A CloudFront-served application sends all static asset requests to the origin because cache-control and behavior rules effectively disable caching. It is not the control for this recurring failure.
C:That safeguard addresses another 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 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.
Question 346
A team applies a reviewed fix for this situation: A login service expects DynamoDB TTL to remove an expired session at the exact expiry timestamp and continues accepting expired records while deletion lags. Which observed outcome would most convincingly validate the fix?
- Load testing distributes writes across shards and maintains required ordering within each chosen entity key.
- A burst test keeps notification latency within the objective while producer backpressure remains controlled.
- Cold and warm invocation latency meet the service objective with the same correct business response.
- An expired session is denied immediately even if its DynamoDB item still exists during background cleanup.
Explanation
Correct Answer
D:An expired session is denied immediately even if its DynamoDB item still exists during background cleanup. This verifies the result of check the session expiry attribute in application authorization and use TTL only for eventual physical cleanup.
Incorrect Answers
A:This would verify another situation: A game telemetry producer chooses one constant Kinesis partition key and one shard becomes throttled while available shards remain idle. It does not validate the current case.
B:This would verify another situation: A high-traffic Lambda producer consumes all account concurrency, throttling a separate critical notification function during spikes. It does not validate the current case.
C:This would verify another situation: A Lambda API endpoint has high first-request latency after deployments because a large package loads heavy optional libraries during initialization. It does not validate the current case.
Question 347
A Lambda service logs detailed failures but has no alarm tied to failed business transactions, so the on-call team learns about a payment outage from customers. Which technical dependency most directly explains this behavior?
- The edge distribution's caching policy is inconsistent with the versioned static-content access pattern.
- Diagnostic log entries are not connected to actionable operational monitoring and delivery notifications.
- Function compute utilization is not evidence that an external database dependency has sufficient read or write capacity.
- The Lambda proxy integration response does not satisfy the expected statusCode, headers and body contract.
Explanation
Correct Answer
B:Diagnostic log entries are not connected to actionable operational monitoring and delivery notifications. The corresponding fix is to emit an approved failure metric and configure CloudWatch alarms with a verified SNS or equivalent on-call destination.
Incorrect Answers
A:This diagnosis addresses another AWS case: A CloudFront-served application sends all static asset requests to the origin because cache-control and behavior rules effectively disable caching. The dependency here is different.
C:This diagnosis addresses another AWS case: A Lambda application reports frequent downstream DynamoDB 429-style throttles but dashboards show low function CPU and developers assume the handler is healthy. 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 348
A CloudWatch dashboard displays Lambda invocation count as successful purchases even though the handler frequently returns business validation errors. Which engineering change best addresses the underlying issue?
- Use an appropriate CloudFront cache policy and immutable asset versioning while preserving required authentication boundaries.
- Publish a bounded business-success custom metric with clearly defined labels and correlate it with actual accepted payments.
- Cache approved nonsecret configuration with expiration and refresh behavior appropriate to staleness requirements.
- Classify retryable versus permanent errors and route terminal failures to an observable failed state or approved recovery.
Explanation
Correct Answer
B:Publish a bounded business-success custom metric with clearly defined labels and correlate it with actual accepted payments. It directly addresses the case cause (Infrastructure invocation metrics have been confused with an accepted domain-specific business outcome.) and should be verified by: A controlled rejected purchase increments invocation metrics but not successful purchase counts.
Incorrect Answers
A:That change addresses a CloudFront-served application sends all static asset requests to the origin because cache-control and behavior rules effectively disable caching; it would not repair this incident.
C: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.
D:That change addresses a Step Functions task sends requests to a third-party endpoint but the workflow catches every error as success, hiding permanent partner rejections; it would not repair this incident.
Question 349
A Lambda processor receives records compressed by an upstream service but attempts to parse the raw compressed bytes as UTF-8 JSON text. Which engineering change best addresses the underlying issue?
- Define a supported email lookup index or explicit alternate-key mapping and use Query with appropriate authorization.
- Detect or validate the documented compression encoding and decompress safely before schema validation and parsing.
- Define the required request model and enable request validation before the integration proceeds to Lambda.
- Check the session expiry attribute in application authorization and use TTL only for eventual physical cleanup.
Explanation
Correct Answer
B:Detect or validate the documented compression encoding and decompress safely before schema validation and parsing. It directly addresses the case cause (The producer's encoding contract and the consumer's decoding implementation do not match.) and should be verified by: Representative compressed and malformed payloads follow the intended success or error paths without silent data corruption.
Incorrect Answers
A:That change addresses an online DynamoDB account lookup performs a full Scan for every login even though users always supply an email address; it would not repair this incident.
C:That change addresses an API Gateway REST endpoint accepts requests missing customerId and passes invalid records to a Lambda function that stores them; it would not repair this incident.
D:That change addresses 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 would not repair this incident.
Question 350
After resolving the following incident, which ongoing safeguard most directly prevents recurrence? A Lambda function is configured with very low memory and CPU allocation; its compute-heavy document conversion spends most time in local processing.
- Include CPU-bound representative benchmarks and cost-per-request in optimization release evidence.
- Include safe principal context and correlation IDs in cross-service error diagnostics.
- Require correlation ID propagation and structured-log schemas in service integration tests.
- Track dependency errors and request rates alongside function health instead of checking CPU alone.
Explanation
Correct Answer
A:Include CPU-bound representative benchmarks and cost-per-request in optimization release evidence. This safeguards against a recurring cause: Insufficient allocated compute resources prolong CPU-bound execution and can make total runtime less cost-efficient.
Incorrect Answers
B:That safeguard addresses another 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 is not the control for this recurring failure.
C:That safeguard addresses another case: An order microservice writes free-form log strings without request IDs, making it impossible to follow one transaction across API Gateway and Lambda. It is not the control for this recurring failure.
D:That safeguard addresses another case: A Lambda application reports frequent downstream DynamoDB 429-style throttles but dashboards show low function CPU and developers assume the handler is healthy. It is not the control for this recurring failure.
AWS Certified Developer - Associate DVA-C02 Practice Tests