Amazon AWS Certified Developer - Associate DVA-C02 Practice Test 22
Question 210
A distributed trace needs searchable segment labels for order type but must not index private customer notes. After implementing the planned tracing annotations versus metadata change, which observation is the MOST direct proof that its specific requirement has been met?
- Trace searches filter by annotations without exposing private payloads as indexed labels.
- Only events matching the subscriber's policy reach its target while other topics of work are skipped.
- The denied API event identifies the principal and missing permission or key-policy condition.
- Old routine log events age out according to policy while newer diagnostic events stay queryable.
Explanation
Correct Answer
A:Trace searches filter by annotations without exposing private payloads as indexed labels. This directly validates tracing annotations versus metadata under the stated workload and confirms the intended AWS behavior: x-Ray annotations are indexed for filtering; metadata provides supplementary nonindexed values.
Incorrect Answers
B:This observation tests SNS subscription filter policy, rather than confirming tracing annotations versus metadata. It does not by itself establish that trace searches filter by annotations without exposing private payloads as indexed labels.
C:This observation tests AccessDenied troubleshooting chain, rather than confirming tracing annotations versus metadata. It does not by itself establish that trace searches filter by annotations without exposing private payloads as indexed labels.
D:This observation tests CloudWatch log retention, rather than confirming tracing annotations versus metadata. It does not by itself establish that trace searches filter by annotations without exposing private payloads as indexed labels.
Question 211
A Lambda processes SQS batches where one bad record should not cause nine successful records to repeat. After implementing the planned Lambda event source partial batch response change, which observation is the MOST direct proof that its specific requirement has been met?
- Duration and billed-duration measurements improve at a tested memory setting without breaching budget.
- One competing write succeeds and the other receives a conditional-check failure.
- Only failed message IDs are retried while acknowledged batch records remain completed.
- A request succeeds before expiry for the intended action and fails after the URL is invalid.
Explanation
Correct Answer
C:Only failed message IDs are retried while acknowledged batch records remain completed. This directly validates Lambda event source partial batch response under the stated workload and confirms the intended AWS behavior: sQS partial batch response avoids unnecessary redelivery of successful records in a partially failed batch.
Incorrect Answers
A:This observation tests Lambda memory CPU tuning, rather than confirming Lambda event source partial batch response. It does not by itself establish that only failed message IDs are retried while acknowledged batch records remain completed.
B:This observation tests DynamoDB conditional update, rather than confirming Lambda event source partial batch response. It does not by itself establish that only failed message IDs are retried while acknowledged batch records remain completed.
D:This observation tests S3 presigned URLs, rather than confirming Lambda event source partial batch response. It does not by itself establish that only failed message IDs are retried while acknowledged batch records remain completed.
Question 212
A support platform emits typed ticket-updated events and several services need only selected event kinds. After implementing the planned EventBridge event routing change, which observation is the MOST direct proof that its specific requirement has been met?
- Rule-matching events reach the intended targets while nonmatching event types do not.
- A request succeeds before expiry for the intended action and fails after the URL is invalid.
- Retry telemetry shows spaced attempts with eventual success or a controlled terminal error.
- Search results return ranked text matches according to indexed tokens and query clauses.
Explanation
Correct Answer
A:Rule-matching events reach the intended targets while nonmatching event types do not. This directly validates EventBridge event routing under the stated workload and confirms the intended AWS behavior: eventBridge rules route structured events by matching attributes without embedding consumer addresses in producer code.
Incorrect Answers
B:This observation tests S3 presigned URLs, rather than confirming EventBridge event routing. It does not by itself establish that rule-matching events reach the intended targets while nonmatching event types do not.
C:This observation tests SDK adaptive retries, rather than confirming EventBridge event routing. It does not by itself establish that rule-matching events reach the intended targets while nonmatching event types do not.
D:This observation tests OpenSearch full-text queries, rather than confirming EventBridge event routing. It does not by itself establish that rule-matching events reach the intended targets while nonmatching event types do not.
Question 213
A container-based Lambda built on an ARM workstation fails because its image architecture differs from the selected function architecture. After implementing the planned container image architecture compatibility change, which observation is the MOST direct proof that its specific requirement has been met?
- Peak /tmp usage remains within configured capacity during the largest supported input.
- The image manifest and a deployed smoke test match the target compute architecture.
- Tests deterministically exercise success, timeout, and error handling without contacting the live partner.
- Invocations through the alias immediately resolve to the prior version and error rates recover.
Explanation
Correct Answer
B:The image manifest and a deployed smoke test match the target compute architecture. This directly validates container image architecture compatibility under the stated workload and confirms the intended AWS behavior: cPU architecture and container-image manifests must match the target runtime.
Incorrect Answers
A:This observation tests Lambda ephemeral disk sizing, rather than confirming container image architecture compatibility. It does not by itself establish that the image manifest and a deployed smoke test match the target compute architecture.
C:This observation tests API external dependency mocks, rather than confirming container image architecture compatibility. It does not by itself establish that the image manifest and a deployed smoke test match the target compute architecture.
D:This observation tests Lambda alias rollback, rather than confirming container image architecture compatibility. It does not by itself establish that the image manifest and a deployed smoke test match the target compute architecture.
Question 214
A web service downloads private S3 objects that are encrypted using an AWS KMS key. After implementing the planned S3 SSE-KMS access change, which observation is the MOST direct proof that its specific requirement has been met?
- Authorized requests query only their tenant partition while cross-tenant requests are blocked.
- Controlled failure tests produce usable trace metadata but no credential material in logs.
- Older ciphertext remains decryptable using protected historical key material and new operations use current material.
- The object can be retrieved and decrypted by the approved principal without broad KMS rights.
Explanation
Correct Answer
D:The object can be retrieved and decrypted by the approved principal without broad KMS rights. This directly validates S3 SSE-KMS access under the stated workload and confirms the intended AWS behavior: sSE-KMS authorization involves both S3 API access and KMS cryptographic authorization.
Incorrect Answers
A:This observation tests multi-tenant DynamoDB row isolation, rather than confirming S3 SSE-KMS access. It does not by itself establish that the object can be retrieved and decrypted by the approved principal without broad KMS rights.
B:This observation tests Lambda environment secret leakage, rather than confirming S3 SSE-KMS access. It does not by itself establish that the object can be retrieved and decrypted by the approved principal without broad KMS rights.
C:This observation tests KMS rotation scope, rather than confirming S3 SSE-KMS access. It does not by itself establish that the object can be retrieved and decrypted by the approved principal without broad KMS rights.
Question 215
A mobile app authenticated by an external provider needs short-lived access to upload its own images to S3. After implementing the planned Cognito identity pool AWS access change, which observation is the MOST direct proof that its specific requirement has been met?
- The client obtains a fresh access token and the protected API rejects an expired one.
- Authorized requests query only their tenant partition while cross-tenant requests are blocked.
- Federated users obtain expiring role credentials constrained to the intended S3 paths.
- Authenticated connections accept fresh tokens for the mapped database user and reject unauthorized principals.
Explanation
Correct Answer
C:Federated users obtain expiring role credentials constrained to the intended S3 paths. This directly validates Cognito identity pool AWS access under the stated workload and confirms the intended AWS behavior: cognito identity pools broker temporary AWS credentials for supported identity providers.
Incorrect Answers
A:This observation tests bearer token refresh and expiry, rather than confirming Cognito identity pool AWS access. It does not by itself establish that federated users obtain expiring role credentials constrained to the intended S3 paths.
B:This observation tests multi-tenant DynamoDB row isolation, rather than confirming Cognito identity pool AWS access. It does not by itself establish that federated users obtain expiring role credentials constrained to the intended S3 paths.
D:This observation tests IAM authentication and TLS for RDS, rather than confirming Cognito identity pool AWS access. It does not by itself establish that federated users obtain expiring role credentials constrained to the intended S3 paths.
Question 216
A Lambda zip deployment fails at initialization with No module named requests. After implementing the planned Lambda deployment package dependencies change, which observation is the MOST direct proof that its specific requirement has been met?
- Pipeline execution history shows the same artifact revision crossing successful gates before production.
- Drift results identify divergent supported properties and a later deployment restores intended state.
- A deployment smoke test imports all required modules in the deployed Lambda runtime.
- Peak /tmp usage remains within configured capacity during the largest supported input.
Explanation
Correct Answer
C:A deployment smoke test imports all required modules in the deployed Lambda runtime. This directly validates Lambda deployment package dependencies under the stated workload and confirms the intended AWS behavior: zip packages must include importable dependencies in correct paths for the target runtime.
Incorrect Answers
A:This observation tests CodePipeline gated promotion, rather than confirming Lambda deployment package dependencies. It does not by itself establish that a deployment smoke test imports all required modules in the deployed Lambda runtime.
B:This observation tests infrastructure drift detection, rather than confirming Lambda deployment package dependencies. It does not by itself establish that a deployment smoke test imports all required modules in the deployed Lambda runtime.
D:This observation tests Lambda ephemeral disk sizing, rather than confirming Lambda deployment package dependencies. It does not by itself establish that a deployment smoke test imports all required modules in the deployed Lambda runtime.
Question 217
A development workstation authenticates an AWS SDK application and must avoid long-lived keys in code. After implementing the planned temporary credential storage change, which observation is the MOST direct proof that its specific requirement has been met?
- The application authenticates using temporary provider credentials and the repository contains no keys.
- Rotated secret versions become available to authorized consumers and the application refreshes its cached credential.
- Requests from the intended endpoint succeed and other source contexts receive access denied.
- IAM policy simulation or live tests show each function cannot use the other's unrelated resources.
Explanation
Correct Answer
A:The application authenticates using temporary provider credentials and the repository contains no keys. This directly validates temporary credential storage under the stated workload and confirms the intended AWS behavior: aWS credential provider chains support ephemeral sessions and remove the need for embedded static secrets.
Incorrect Answers
B:This observation tests Secrets Manager rotation, rather than confirming temporary credential storage. It does not by itself establish that the application authenticates using temporary provider credentials and the repository contains no keys.
C:This observation tests API Gateway resource policy, rather than confirming temporary credential storage. It does not by itself establish that the application authenticates using temporary provider credentials and the repository contains no keys.
D:This observation tests Lambda execution-role separation, rather than confirming temporary credential storage. It does not by itself establish that the application authenticates using temporary provider credentials and the repository contains no keys.
Question 218
Debug logs include application identifiers and must be kept for a documented 30-day operational policy. After implementing the planned CloudWatch log retention change, which observation is the MOST direct proof that its specific requirement has been met?
- Profile output identifies the costly query phase and a revised query reduces latency under representative load.
- A controlled threshold breach moves the alarm to ALARM and the subscribed channel receives a notification.
- Old routine log events age out according to policy while newer diagnostic events stay queryable.
- Metrics and request logs identify concentrated key traffic or exhausted write/read capacity.
Explanation
Correct Answer
C:Old routine log events age out according to policy while newer diagnostic events stay queryable. This directly validates CloudWatch log retention under the stated workload and confirms the intended AWS behavior: cloudWatch log groups retain data indefinitely by default unless a retention setting is configured.
Incorrect Answers
A:This observation tests OpenSearch query performance profiling, rather than confirming CloudWatch log retention. It does not by itself establish that old routine log events age out according to policy while newer diagnostic events stay queryable.
B:This observation tests CloudWatch alarm notification, rather than confirming CloudWatch log retention. It does not by itself establish that old routine log events age out according to policy while newer diagnostic events stay queryable.
D:This observation tests DynamoDB throttling investigation, rather than confirming CloudWatch log retention. It does not by itself establish that old routine log events age out according to policy while newer diagnostic events stay queryable.
Question 219
A team enables automatic key rotation and wants to know how older ciphertext remains decryptable. After implementing the planned KMS rotation scope change, which observation is the MOST direct proof that its specific requirement has been met?
- Federated users obtain expiring role credentials constrained to the intended S3 paths.
- Authenticated connections accept fresh tokens for the mapped database user and reject unauthorized principals.
- The application authenticates using temporary provider credentials and the repository contains no keys.
- Older ciphertext remains decryptable using protected historical key material and new operations use current material.
Explanation
Correct Answer
D:Older ciphertext remains decryptable using protected historical key material and new operations use current material. This directly validates KMS rotation scope under the stated workload and confirms the intended AWS behavior: kMS-managed rotation retains key identity and the old material required to decrypt previous ciphertext.
Incorrect Answers
A:This observation tests Cognito identity pool AWS access, rather than confirming KMS rotation scope. It does not by itself establish that older ciphertext remains decryptable using protected historical key material and new operations use current material.
B:This observation tests IAM authentication and TLS for RDS, rather than confirming KMS rotation scope. It does not by itself establish that older ciphertext remains decryptable using protected historical key material and new operations use current material.
C:This observation tests temporary credential storage, rather than confirming KMS rotation scope. It does not by itself establish that older ciphertext remains decryptable using protected historical key material and new operations use current material.
Question 220
A product API needs all purchases for a known customer ID and must avoid reading an entire table. After implementing the planned DynamoDB Query versus Scan change, which observation is the MOST direct proof that its specific requirement has been met?
- Read capacity and response results are limited to the target key range rather than the whole table.
- Cache hit-rate increases and backend read load falls while update invalidation keeps freshness within policy.
- Network tests confirm outbound connectivity from the function to the private endpoint on its service port.
- The target receives a record including request details and failure response context.
Explanation
Correct Answer
A:Read capacity and response results are limited to the target key range rather than the whole table. This directly validates DynamoDB Query versus Scan under the stated workload and confirms the intended AWS behavior: query uses key conditions while Scan examines items beyond the requested partition.
Incorrect Answers
B:This observation tests ElastiCache cache-aside, rather than confirming DynamoDB Query versus Scan. It does not by itself establish that read capacity and response results are limited to the target key range rather than the whole table.
C:This observation tests Lambda VPC private data access, rather than confirming DynamoDB Query versus Scan. It does not by itself establish that read capacity and response results are limited to the target key range rather than the whole table.
D:This observation tests Lambda destinations versus DLQ, rather than confirming DynamoDB Query versus Scan. It does not by itself establish that read capacity and response results are limited to the target key range rather than the whole table.