Amazon AWS Certified Developer - Associate DVA-C02 Practice Test 27
Question 260
A JSON API must admit only callers with valid bearer access tokens issued by a trusted user directory. After implementing the planned API Gateway JWT authorizer change, which observation is the MOST direct proof that its specific requirement has been met?
- CloudTrail shows the expected assumed role session and only the allowed target-account API actions succeed.
- Authorized requests query only their tenant partition while cross-tenant requests are blocked.
- Valid JWTs reach integrations while expired, bad-signature, or wrong-audience tokens are rejected.
- An approved role can decrypt the wrapped data key while an unauthorized role cannot.
Explanation
Correct Answer
C:Valid JWTs reach integrations while expired, bad-signature, or wrong-audience tokens are rejected. This directly validates API Gateway JWT authorizer under the stated workload and confirms the intended AWS behavior: jWT verification checks cryptographic signature and claims, not only whether a header exists.
Incorrect Answers
A:This observation tests IAM STS AssumeRole cross-account, rather than confirming API Gateway JWT authorizer. It does not by itself establish that valid JWTs reach integrations while expired, bad-signature, or wrong-audience tokens are rejected.
B:This observation tests multi-tenant DynamoDB row isolation, rather than confirming API Gateway JWT authorizer. It does not by itself establish that valid JWTs reach integrations while expired, bad-signature, or wrong-audience tokens are rejected.
D:This observation tests KMS envelope encryption, rather than confirming API Gateway JWT authorizer. It does not by itself establish that valid JWTs reach integrations while expired, bad-signature, or wrong-audience tokens are rejected.
Question 261
An onboarding workflow invokes verification, account creation, and compensation with observable retries. After implementing the planned Step Functions orchestration change, which observation is the MOST direct proof that its specific requirement has been met?
- Function concurrency metrics show the reserved limit applied and other functions retain available capacity.
- Recorded integration requests contain the exact backend field names and values expected by the service.
- Queries against the index return the requested items without scanning unrelated base-table partitions.
- Execution history shows state transitions, retries, and the branch taken after an error.
Explanation
Correct Answer
D:Execution history shows state transitions, retries, and the branch taken after an error. This directly validates Step Functions orchestration under the stated workload and confirms the intended AWS behavior: a managed state machine expresses multi-step application coordination beyond a single long-running handler.
Incorrect Answers
A:This observation tests Lambda concurrency reservation, rather than confirming Step Functions orchestration. It does not by itself establish that execution history shows state transitions, retries, and the branch taken after an error.
B:This observation tests API Gateway mapping templates, rather than confirming Step Functions orchestration. It does not by itself establish that execution history shows state transitions, retries, and the branch taken after an error.
C:This observation tests DynamoDB GSI access pattern, rather than confirming Step Functions orchestration. It does not by itself establish that execution history shows state transitions, retries, and the branch taken after an error.
Question 262
A checkout service writes an order and immediately reads it from the same Region's base table. After implementing the planned DynamoDB strong read consistency change, which observation is the MOST direct proof that its specific requirement has been met?
- An immediate post-write read returns the latest committed item in the supported read path.
- Execution history shows state transitions, retries, and the branch taken after an error.
- One competing write succeeds and the other receives a conditional-check failure.
- Each function loads the expected dependency version under the declared runtime and architecture.
Explanation
Correct Answer
A:An immediate post-write read returns the latest committed item in the supported read path. This directly validates DynamoDB strong read consistency under the stated workload and confirms the intended AWS behavior: strongly consistent reads are available on DynamoDB tables and LSIs in a Region, not GSIs.
Incorrect Answers
B:This observation tests Step Functions orchestration, rather than confirming DynamoDB strong read consistency. It does not by itself establish that an immediate post-write read returns the latest committed item in the supported read path.
C:This observation tests DynamoDB conditional update, rather than confirming DynamoDB strong read consistency. It does not by itself establish that an immediate post-write read returns the latest committed item in the supported read path.
D:This observation tests Lambda layer dependency management, rather than confirming DynamoDB strong read consistency. It does not by itself establish that an immediate post-write read returns the latest committed item in the supported read path.
Question 263
A Lambda-backed application connects to an RDS database and wants to avoid a long-lived database password. After implementing the planned IAM authentication and TLS for RDS change, which observation is the MOST direct proof that its specific requirement has been met?
- An approved role can decrypt the wrapped data key while an unauthorized role cannot.
- Authenticated connections accept fresh tokens for the mapped database user and reject unauthorized principals.
- CloudTrail shows the expected assumed role session and only the allowed target-account API actions succeed.
- Policy evaluation identifies a matching explicit deny even though an Allow statement also matches.
Explanation
Correct Answer
B:Authenticated connections accept fresh tokens for the mapped database user and reject unauthorized principals. This directly validates IAM authentication and TLS for RDS under the stated workload and confirms the intended AWS behavior: iAM database authentication issues short-lived login tokens but database user permissions still control SQL access.
Incorrect Answers
A:This observation tests KMS envelope encryption, rather than confirming IAM authentication and TLS for RDS. It does not by itself establish that authenticated connections accept fresh tokens for the mapped database user and reject unauthorized principals.
C:This observation tests IAM STS AssumeRole cross-account, rather than confirming IAM authentication and TLS for RDS. It does not by itself establish that authenticated connections accept fresh tokens for the mapped database user and reject unauthorized principals.
D:This observation tests IAM policy explicit deny, rather than confirming IAM authentication and TLS for RDS. It does not by itself establish that authenticated connections accept fresh tokens for the mapped database user and reject unauthorized principals.
Question 264
An API connects to RDS with a password that must rotate without a source-code change. After implementing the planned Secrets Manager rotation change, which observation is the MOST direct proof that its specific requirement has been met?
- The object can be retrieved and decrypted by the approved principal without broad KMS rights.
- Authorized reads with decryption return the intended value while unauthorized callers cannot decrypt it.
- IAM policy simulation or live tests show each function cannot use the other's unrelated resources.
- Rotated secret versions become available to authorized consumers and the application refreshes its cached credential.
Explanation
Correct Answer
D:Rotated secret versions become available to authorized consumers and the application refreshes its cached credential. This directly validates Secrets Manager rotation under the stated workload and confirms the intended AWS behavior: secrets Manager versions and rotation workflows manage sensitive values outside deployment artifacts.
Incorrect Answers
A:This observation tests S3 SSE-KMS access, rather than confirming Secrets Manager rotation. It does not by itself establish that rotated secret versions become available to authorized consumers and the application refreshes its cached credential.
B:This observation tests Parameter Store secure strings, rather than confirming Secrets Manager rotation. It does not by itself establish that rotated secret versions become available to authorized consumers and the application refreshes its cached credential.
C:This observation tests Lambda execution-role separation, rather than confirming Secrets Manager rotation. It does not by itself establish that rotated secret versions become available to authorized consumers and the application refreshes its cached credential.
Question 265
A team uses AI assistance to propose AWS SDK code but must prevent unchecked suggestions from reaching production. After implementing the planned Amazon Q Developer review change, which observation is the MOST direct proof that its specific requirement has been met?
- Recorded integration requests contain the exact backend field names and values expected by the service.
- The target receives a record including request details and failure response context.
- Only failed message IDs are retried while acknowledged batch records remain completed.
- Test results and code review demonstrate generated changes meet requirements without new permissions exposure.
Explanation
Correct Answer
D:Test results and code review demonstrate generated changes meet requirements without new permissions exposure. This directly validates Amazon Q Developer review under the stated workload and confirms the intended AWS behavior: aI coding suggestions accelerate development but do not replace validation or security review.
Incorrect Answers
A:This observation tests API Gateway mapping templates, rather than confirming Amazon Q Developer review. It does not by itself establish that test results and code review demonstrate generated changes meet requirements without new permissions exposure.
B:This observation tests Lambda destinations versus DLQ, rather than confirming Amazon Q Developer review. It does not by itself establish that test results and code review demonstrate generated changes meet requirements without new permissions exposure.
C:This observation tests Lambda event source partial batch response, rather than confirming Amazon Q Developer review. It does not by itself establish that test results and code review demonstrate generated changes meet requirements without new permissions exposure.
Question 266
A Lambda SQS consumer must handle the Records envelope and malformed message bodies correctly. After implementing the planned SQS handler contract tests change, which observation is the MOST direct proof that its specific requirement has been met?
- Contract tests prove valid records process once logically and only failed IDs are reported.
- Alias routing starts at the selected small percentage and alarms can trigger rollback.
- The accepted tests fail on a known bug and pass once the defect is fixed without leaking secrets.
- Test requests route to the test deployment while production routes keep serving the previous version.
Explanation
Correct Answer
A:Contract tests prove valid records process once logically and only failed IDs are reported. This directly validates SQS handler contract tests under the stated workload and confirms the intended AWS behavior: event-driven tests must exercise the actual source envelope and partial failure contract.
Incorrect Answers
B:This observation tests CodeDeploy Lambda canary, rather than confirming SQS handler contract tests. It does not by itself establish that contract tests prove valid records process once logically and only failed IDs are reported.
C:This observation tests AI-assisted test review, rather than confirming SQS handler contract tests. It does not by itself establish that contract tests prove valid records process once logically and only failed IDs are reported.
D:This observation tests API Gateway staging endpoints, rather than confirming SQS handler contract tests. It does not by itself establish that contract tests prove valid records process once logically and only failed IDs are reported.
Question 267
A busy Lambda fetches a secret on each request and causes avoidable Secrets Manager API traffic. After implementing the planned credential caching refresh change, which observation is the MOST direct proof that its specific requirement has been met?
- CloudTrail and target logs show requests authorized only for the permitted source principal.
- Network captures and storage samples contain encrypted payloads before S3 receives them.
- Secret-read API volume declines while newly rotated credentials are adopted within the specified refresh window.
- Rotated secret versions become available to authorized consumers and the application refreshes its cached credential.
Explanation
Correct Answer
C:Secret-read API volume declines while newly rotated credentials are adopted within the specified refresh window. This directly validates credential caching refresh under the stated workload and confirms the intended AWS behavior: bounded secret caching reduces repeated retrieval without making old credentials permanent.
Incorrect Answers
A:This observation tests service-to-service IAM authorization, rather than confirming credential caching refresh. It does not by itself establish that secret-read API volume declines while newly rotated credentials are adopted within the specified refresh window.
B:This observation tests client-side versus server-side encryption, rather than confirming credential caching refresh. It does not by itself establish that secret-read API volume declines while newly rotated credentials are adopted within the specified refresh window.
D:This observation tests Secrets Manager rotation, rather than confirming credential caching refresh. It does not by itself establish that secret-read API volume declines while newly rotated credentials are adopted within the specified refresh window.
Question 268
A support representative can view order state but must not see full customer identity numbers. After implementing the planned PII response field masking change, which observation is the MOST direct proof that its specific requirement has been met?
- IAM policy simulation or live tests show each function cannot use the other's unrelated resources.
- The application authenticates using temporary provider credentials and the repository contains no keys.
- Authenticated connections accept fresh tokens for the mapped database user and reject unauthorized principals.
- Requests from nonprivileged roles contain masked fields while approved roles get only permitted detail.
Explanation
Correct Answer
D:Requests from nonprivileged roles contain masked fields while approved roles get only permitted detail. This directly validates PII response field masking under the stated workload and confirms the intended AWS behavior: response masking and field authorization must run before data is returned to a caller.
Incorrect Answers
A:This observation tests Lambda execution-role separation, rather than confirming PII response field masking. It does not by itself establish that requests from nonprivileged roles contain masked fields while approved roles get only permitted detail.
B:This observation tests temporary credential storage, rather than confirming PII response field masking. It does not by itself establish that requests from nonprivileged roles contain masked fields while approved roles get only permitted detail.
C:This observation tests IAM authentication and TLS for RDS, rather than confirming PII response field masking. It does not by itself establish that requests from nonprivileged roles contain masked fields while approved roles get only permitted detail.
Question 269
A custom API domain has an expiring public TLS certificate and its clients must keep authenticating endpoints. After implementing the planned TLS certificate rotation ACM change, which observation is the MOST direct proof that its specific requirement has been met?
- CloudTrail shows the expected assumed role session and only the allowed target-account API actions succeed.
- TLS handshakes present a valid chain and expected hostname before and after rotation.
- Authorized requests query only their tenant partition while cross-tenant requests are blocked.
- The external role can use the approved KMS key while unrelated principals remain denied.
Explanation
Correct Answer
B:TLS handshakes present a valid chain and expected hostname before and after rotation. This directly validates TLS certificate rotation ACM under the stated workload and confirms the intended AWS behavior: tLS certificates authenticate endpoint names and protect traffic in transit.
Incorrect Answers
A:This observation tests IAM STS AssumeRole cross-account, rather than confirming TLS certificate rotation ACM. It does not by itself establish that tLS handshakes present a valid chain and expected hostname before and after rotation.
C:This observation tests multi-tenant DynamoDB row isolation, rather than confirming TLS certificate rotation ACM. It does not by itself establish that tLS handshakes present a valid chain and expected hostname before and after rotation.
D:This observation tests KMS key-policy cross-account, rather than confirming TLS certificate rotation ACM. It does not by itself establish that tLS handshakes present a valid chain and expected hostname before and after rotation.
Question 270
A team uses Amazon Q Developer to propose a test suite for a refactored Python handler. After implementing the planned AI-assisted test review change, which observation is the MOST direct proof that its specific requirement has been met?
- Test and production invoke the correct Lambda alias without unintended cross-stage traffic.
- The correct environment retrieves its scoped configuration and a failed rollout can be rolled back.
- The accepted tests fail on a known bug and pass once the defect is fixed without leaking secrets.
- Invalid resource declarations fail the validation stage before stack mutation.
Explanation
Correct Answer
C:The accepted tests fail on a known bug and pass once the defect is fixed without leaking secrets. This directly validates AI-assisted test review under the stated workload and confirms the intended AWS behavior: generated tests require human review and meaningful assertions to avoid false confidence.
Incorrect Answers
A:This observation tests API Gateway stage variables, rather than confirming AI-assisted test review. It does not by itself establish that the accepted tests fail on a known bug and pass once the defect is fixed without leaking secrets.
B:This observation tests environment-specific AppConfig, rather than confirming AI-assisted test review. It does not by itself establish that the accepted tests fail on a known bug and pass once the defect is fixed without leaking secrets.
D:This observation tests SAM template validation, rather than confirming AI-assisted test review. It does not by itself establish that the accepted tests fail on a known bug and pass once the defect is fixed without leaking secrets.