100% Latest & Updated Amazon AWS Certified Developer - Associate DVA-C02 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 10
An S3-backed application generates presigned download URLs for confidential attachments without verifying document ownership before signing. Select THREE complementary measures that correctly repair and validate, and prevent recurrence of this failure.
- Clients receive actionable codes without tokens, and authorized operators can trace the error securely.
- Check attachment ownership and request context before issuing a narrowly scoped, expiring presigned URL.
- Maintain negative ownership fixtures for link generation and test URL expiry and object-key tampering.
- Bind the export prefix to an authenticated tenant identity and verify resource ownership before generating output.
- Sign every key supplied by the client because the URL itself contains a signature.
- Authorized users obtain only their documents and attempts to sign another user's object are denied.
Explanation
Correct Answers
B:Check attachment ownership and request context before issuing a narrowly scoped, expiring presigned URL. The underlying cause is: The signing backend authorizes the raw object key rather than the requesting user's entitlement to that object.
C:Maintain negative ownership fixtures for link generation and test URL expiry and object-key tampering. This protects against the following risk: The signing backend authorizes the raw object key rather than the requesting user's entitlement to that object.
F:Authorized users obtain only their documents and attempts to sign another user's object are denied. This is the observable result required before accepting the correction.
Incorrect Answers
A:This would validate a different case: An API error handler includes access tokens and raw service exceptions in JSON responses sent to all callers. It does not verify the outcome required here.
D:That corrective action is for a different case: 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 does not resolve this incident.
E:Sign every key supplied by the client because the URL itself contains a signature. That shortcut conflicts with the stated requirement.
Question 11
A team applies a reviewed fix for this situation: An EventBridge rule meant to match a new payment event stops invoking its Lambda target after the producer changes detail-type capitalization. Which observed outcome would most convincingly validate the fix?
- Numeric range queries return the expected product set and the active alias points to the validated index.
- Repeated delivery of one purchase changes inventory once and independent purchases remain correctly counted.
- A synthetic event with the approved envelope matches and reaches the authorized target exactly as intended.
- Concurrent checkout attempts never reserve more stock than exists even when cached views are stale.
Explanation
Correct Answer
C:A synthetic event with the approved envelope matches and reaches the authorized target exactly as intended. This verifies the result of update the producer event contract or the rule's detail-type pattern and confirm the intended event bus and target permissions.
Incorrect Answers
A: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.
B:This would verify another situation: An order service increments a DynamoDB inventory balance twice after a transient network retry of the same purchase request. It does not validate the current case.
D:This would verify another situation: A service caches frequently changing product availability in DAX but checkout accepts a stale cached value as definitive stock. It does not validate the current case.
Question 12
A DynamoDB application encrypts customer values with a shared manually managed data key stored as plaintext in its repository. Which technical dependency most directly explains this behavior?
- Tenant isolation is enforced from caller-controlled text instead of a trusted authorization context.
- The client-side encryption key is exposed through source distribution and lacks a protected lifecycle.
- The execution role trust relationship does not permit the service running the state machine to assume it.
- The response model does not enforce data minimization and permits sensitive fields beyond the support purpose.
Explanation
Correct Answer
B:The client-side encryption key is exposed through source distribution and lacks a protected lifecycle. The corresponding fix is to use an approved KMS-backed envelope encryption design and protect data keys according to the application threat model.
Incorrect Answers
A:This diagnosis addresses another AWS case: 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. The dependency here is different.
C:This diagnosis addresses another AWS case: A Step Functions execution fails to invoke Lambda because the workflow role trusts EC2 instead of the Step Functions service principal. The dependency here is different.
D:This diagnosis addresses another AWS case: A support API exposes full customer card details from DynamoDB even though agents need only last four digits and a reference code. The dependency here is different.
Question 13
An API Gateway Lambda authorizer returns an Allow policy for an entire API wildcard after validating permission for one read-only resource. Which technical dependency most directly explains this behavior?
- An authorization decision for one method and resource is incorrectly generalized to privileged routes.
- Encryption at rest is not a transport security control for the application-to-partner connection.
- The intended recipient identity and key-policy permissions have not been coordinated for cross-account decryption.
- The presigning workflow allows a broader operation than the intended user action and permission boundary.
Explanation
Correct Answer
A:An authorization decision for one method and resource is incorrectly generalized to privileged routes. The corresponding fix is to constrain the authorizer policy to appropriate method ARNs and bind per-request authorization to the intended user/resource context.
Incorrect Answers
B: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.
C:This diagnosis addresses another AWS 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. The dependency here is different.
D: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.
Question 14
A Lambda image endpoint loads an expensive configuration database record for every invocation even though the record changes only once per hour. Which technical dependency most directly explains this behavior?
- Catch-all exception handling misclassifies terminal failures and removes meaningful incident evidence.
- 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.
- Repeated external reads perform unnecessary work that a bounded safe cache could eliminate.
Explanation
Correct Answer
D:Repeated external reads perform unnecessary work that a bounded safe cache could eliminate. The corresponding fix is to cache approved nonsecret configuration with expiration and refresh behavior appropriate to staleness requirements.
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 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: 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 15
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. Which engineering change best addresses the underlying issue?
- Generate method- and object-scoped signed requests under a least-privilege principal with appropriate expiry.
- Bind the export prefix to an authenticated tenant identity and verify resource ownership before generating output.
- Enforce the appropriate access token use and verify configured OAuth scopes and resource-level permissions.
- Grant narrowly scoped KMS decrypt access through the applicable IAM and key policy controls for the intended role.
Explanation
Correct Answer
B:Bind the export prefix to an authenticated tenant identity and verify resource ownership before generating output. It directly addresses the case cause (Tenant isolation is enforced from caller-controlled text instead of a trusted authorization context.) and should be verified by: Cross-tenant prefix probes fail while an authorized tenant can export only its own records.
Incorrect Answers
A:That change addresses a developer creates short-lived download links but signs requests without constraining the HTTP method, resource or allowed signing credentials; it would not repair this incident.
C:That change addresses a Lambda API accepts an ID token in place of the OAuth access token used for protected API scopes and grants an unintended operation; it would not repair this incident.
D:That change addresses 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; it would not repair this incident.
Question 16
A Lambda processor receives records compressed by an upstream service but attempts to parse the raw compressed bytes as UTF-8 JSON text. Which technical dependency most directly explains this behavior?
- The producer's encoding contract and the consumer's decoding implementation do not match.
- The chosen partition key collapses unrelated records into the same hash range and defeats shard distribution.
- An uncertain acknowledgement and at-least-once delivery are being mistaken for a guarantee of unique business processing.
- Eventually consistent cache reads are being used where the business operation requires current authoritative state.
Explanation
Correct Answer
A:The producer's encoding contract and the consumer's decoding implementation do not match. The corresponding fix is to detect or validate the documented compression encoding and decompress safely before schema validation and parsing.
Incorrect Answers
B:This diagnosis addresses another AWS case: A game telemetry producer chooses one constant Kinesis partition key and one shard becomes throttled while available shards remain idle. The dependency here is different.
C:This diagnosis addresses another AWS case: An order API retries its SQS SendMessage call after a client timeout and downstream workers create duplicate shipment records for the same order. The dependency here is different.
D: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.
Question 17
An ECS application contains long-lived IAM access keys in environment variables even though its task has an assigned execution role. Select TWO complementary measures that correctly repair and validate this failure.
- Share the static administrator key across all tasks to avoid role configuration work.
- Configure an authorized cross-account key policy and permitted IAM use, including encryption context constraints where appropriate.
- A controlled token rotation succeeds and unauthorized developers cannot read the production secret.
- The running task calls only permitted AWS actions and continues working after the old static keys are revoked.
- Use an appropriately scoped ECS task role with SDK default credential retrieval and remove embedded long-lived keys.
Explanation
Correct Answers
D:The running task calls only permitted AWS actions and continues working after the old static keys are revoked. This is the observable result required before accepting the correction.
E:Use an appropriately scoped ECS task role with SDK default credential retrieval and remove embedded long-lived keys. The underlying cause is: Static credentials bypass role-based rotation and may override the intended scoped task role credential chain.
Incorrect Answers
A:Share the static administrator key across all tasks to avoid role configuration work. That shortcut conflicts with the stated requirement.
B:That corrective action is for a different 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 does not resolve this incident.
C:This would validate a different case: An application embeds its payment gateway token directly in a Lambda environment variable managed in plain text by several developers. It does not verify the outcome required here.
Question 18
A team applies a reviewed fix for this situation: An order microservice writes free-form log strings without request IDs, making it impossible to follow one transaction across API Gateway and Lambda. 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.
- Repeat requests hit the edge cache, origin requests decline and a new asset version displays correctly.
- The chosen configuration meets latency requirements and processes the identical document output without unacceptable extra cost.
- A controlled API invocation returns the expected status and JSON body without an integration-generated 502.
Explanation
Correct Answer
A:A single transaction's safe logs can be joined across services without exposing credentials or raw customer data. This verifies the result of emit structured logs with request and trace identifiers while excluding protected values from logged fields.
Incorrect Answers
B:This would verify another situation: A CloudFront-served application sends all static asset requests to the origin because cache-control and behavior rules effectively disable caching. It does not validate the current case.
C:This would verify another situation: 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 validate the current case.
D:This would verify another situation: An API Gateway REST integration returns HTTP 502 while its Lambda invocation logs show a successful handler return with malformed proxy response fields. It does not validate the current case.
Question 19
One malformed record in an SQS batch makes a Lambda handler raise an exception and all previously processed messages reappear after visibility timeout. Select THREE complementary measures that correctly repair and validate, and prevent recurrence of this failure.
- A controlled poison message is retried or isolated while successful messages are not needlessly reprocessed.
- Delete the whole SQS queue whenever a message cannot be parsed.
- Update the producer event contract or the rule's detail-type pattern and confirm the intended event bus and target permissions.
- A fixture larger than one response page reconciles every expected object key without duplicate processing.
- Enable supported partial batch response behavior and return failed message identifiers while keeping sink effects idempotent.
- Test mixed-success SQS batches and verify that the event-source mapping honors batch item failure responses.
Explanation
Correct Answers
A:A controlled poison message is retried or isolated while successful messages are not needlessly reprocessed. This is the observable result required before accepting the correction.
E:Enable supported partial batch response behavior and return failed message identifiers while keeping sink effects idempotent. The underlying cause is: Default whole-batch failure handling repeats successfully processed records unless partial failures and idempotency are implemented.
F:Test mixed-success SQS batches and verify that the event-source mapping honors batch item failure responses. This protects against the following risk: Default whole-batch failure handling repeats successfully processed records unless partial failures and idempotency are implemented.
Incorrect Answers
B:Delete the whole SQS queue whenever a message cannot be parsed. That shortcut conflicts with the stated requirement.
C:That corrective action is for a different case: An EventBridge rule meant to match a new payment event stops invoking its Lambda target after the producer changes detail-type capitalization. It does not resolve this incident.
D:This would validate a different 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 does not verify the outcome required here.
Question 20
After resolving the following incident, which ongoing safeguard most directly prevents recurrence? A login service expects DynamoDB TTL to remove an expired session at the exact expiry timestamp and continues accepting expired records while deletion lags.
- Version and regression-test SNS filter attributes and subscription policies when events evolve.
- Test business expiry behavior separately from eventual storage deletion and TTL metrics.
- Pin tested layer ARNs and run build checks for each supported runtime and architecture combination.
- Monitor partition-key hot spots and verify distribution during producer release tests.
Explanation
Correct Answer
B:Test business expiry behavior separately from eventual storage deletion and TTL metrics. This safeguards against a recurring cause: DynamoDB TTL background deletion is asynchronous and does not enforce immediate application session invalidation.
Incorrect Answers
A:That safeguard addresses another case: 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. It is not the control for this recurring failure.
C: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.
D:That safeguard addresses another case: A game telemetry producer chooses one constant Kinesis partition key and one shard becomes throttled while available shards remain idle. It is not the control for this recurring failure.
AWS Certified Developer - Associate DVA-C02 Practice Tests