AWS Certified Developer - Associate DVA-C02 Practice Test 19
Question 180
A cloud developer must explain the mechanism behind a proposed solution. A user-profile API scans a million items to retrieve one account by accountId. Which technical explanation correctly accounts for the solution?
- Runtime compatibility and dependency versions affect import paths and initialization; a layer must match the running function.
- A DynamoDB transaction commits the supported grouped writes together or rejects the entire operation.
- Standard SQS and retried workers can deliver duplicates; a durable deduplication condition prevents repeated side effects.
- Query narrows access by indexed key whereas Scan reads broadly and incurs unnecessary capacity and latency.
Explanation
Correct Answer
D:Query narrows access by indexed key whereas Scan reads broadly and incurs unnecessary capacity and latency. This is the operating principle for DynamoDB query versus scan. Validation: Execute the key-based query and measure returned items and consumed capacity versus a full scan. Scenario: A user-profile API scans a million items to retrieve one account by accountId.
Incorrect Answers
A:Option A explains Lambda layers and runtime dependency packaging rather than this issue: Runtime compatibility and dependency versions affect import paths and initialization; a layer must match the running function. It does not explain: A user-profile API scans a million items to retrieve one account by accountId.
B:Option B explains DynamoDB transaction writes rather than this issue: A DynamoDB transaction commits the supported grouped writes together or rejects the entire operation. It does not explain: A user-profile API scans a million items to retrieve one account by accountId.
C:Option C explains SQS idempotent consumer design rather than this issue: Standard SQS and retried workers can deliver duplicates; a durable deduplication condition prevents repeated side effects. It does not explain: A user-profile API scans a million items to retrieve one account by accountId.
Question 181
A cloud developer must explain the mechanism behind a proposed solution. A public read token can invoke an administrative write API because the route lacks a scope condition. Which technical explanation correctly accounts for the solution?
- The trusted calling principal and assumed role permissions are distinct authorization checks for cross-account access.
- JWT authorizers check token metadata and claims before invoking protected API routes.
- A TLS certificate's domain names and issuance or region constraints must match the client-visible service endpoint.
- Access tokens have bounded validity, and refresh flows must respect revocation and client configuration.
Explanation
Correct Answer
B:JWT authorizers check token metadata and claims before invoking protected API routes. This is the operating principle for API Gateway JWT authorizer scope. Validation: Send a token with a valid signature but missing the required scope and confirm the route rejects it. Scenario: A public read token can invoke an administrative write API because the route lacks a scope condition.
Incorrect Answers
A:Option A explains Cross-account STS role trust rather than this issue: The trusted calling principal and assumed role permissions are distinct authorization checks for cross-account access. It does not explain: A public read token can invoke an administrative write API because the route lacks a scope condition.
C:Option C explains AWS Certificate Manager HTTPS certificate binding rather than this issue: A TLS certificate's domain names and issuance or region constraints must match the client-visible service endpoint. It does not explain: A public read token can invoke an administrative write API because the route lacks a scope condition.
D:Option D explains Cognito bearer-token expiry and refresh rather than this issue: Access tokens have bounded validity, and refresh flows must respect revocation and client configuration. It does not explain: A public read token can invoke an administrative write API because the route lacks a scope condition.
Question 182
A cloud developer must explain the mechanism behind a proposed solution. A custom HTTP client calls a protected AWS service endpoint but its unsigned request receives SignatureDoesNotMatch. Which technical explanation correctly accounts for the solution?
- IAM policy evaluation combines requested actions, resources, conditions, and explicit denies for each API call.
- Identity pools support federated identities receiving temporary roles, distinct from user-pool authentication token issuance.
- SigV4 binds the request components, credential scope, and signature, preventing unsigned API requests from being accepted.
- JWT authorizers check token metadata and claims before invoking protected API routes.
Explanation
Correct Answer
C:SigV4 binds the request components, credential scope, and signature, preventing unsigned API requests from being accepted. This is the operating principle for SigV4 request signing. Validation: Send a properly signed request and a tampered payload with unchanged signature and verify the latter is rejected. Scenario: A custom HTTP client calls a protected AWS service endpoint but its unsigned request receives SignatureDoesNotMatch.
Incorrect Answers
A:Option A explains IAM least-privilege resource ARN rather than this issue: IAM policy evaluation combines requested actions, resources, conditions, and explicit denies for each API call. It does not explain: A custom HTTP client calls a protected AWS service endpoint but its unsigned request receives SignatureDoesNotMatch.
B:Option B explains Cognito identity pool scoped AWS access rather than this issue: Identity pools support federated identities receiving temporary roles, distinct from user-pool authentication token issuance. It does not explain: A custom HTTP client calls a protected AWS service endpoint but its unsigned request receives SignatureDoesNotMatch.
D:Option D explains API Gateway JWT authorizer scope rather than this issue: JWT authorizers check token metadata and claims before invoking protected API routes. It does not explain: A custom HTTP client calls a protected AWS service endpoint but its unsigned request receives SignatureDoesNotMatch.
Question 183
A staging acceptance reviewer must demonstrate working end-to-end behavior rather than cite a configuration screenshot, using a controlled test before deployment. A supplier API sends HTTP 429 to many checkout workers, which immediately retry together and worsen throttling. Which observation is the strongest acceptance evidence?
- Induce HTTP 429 and HTTP 400 responses and verify only retryable failures are retried within a bounded budget.
- Compare duration, memory usage, and invocation cost for two sizes using the same representative workload.
- Generate a harmless unit-test helper and run lint, tests, and a human diff review prior to deployment.
- Invoke a test API route and assert HTTP status, response headers, and parsed JSON body match the contract.
Explanation
Correct Answer
A:The decisive acceptance evidence is: Induce HTTP 429 and HTTP 400 responses and verify only retryable failures are retried within a bounded budget. It demonstrates: Jitter spreads retry traffic, while a circuit breaker prevents repeated calls into a persistently failing dependency. Scenario: A supplier API sends HTTP 429 to many checkout workers, which immediately retry together and worsen throttling.
Incorrect Answers
B:Option B is an acceptance test for Lambda power tuning: Compare duration, memory usage, and invocation cost for two sizes using the same representative workload. It is not direct evidence for: A supplier API sends HTTP 429 to many checkout workers, which immediately retry together and worsen throttling.
C:Option C is an acceptance test for Amazon Q Developer generated code review: Generate a harmless unit-test helper and run lint, tests, and a human diff review prior to deployment. It is not direct evidence for: A supplier API sends HTTP 429 to many checkout workers, which immediately retry together and worsen throttling.
D:Option D is an acceptance test for API Gateway Lambda proxy response format: Invoke a test API route and assert HTTP status, response headers, and parsed JSON body match the contract. It is not direct evidence for: A supplier API sends HTTP 429 to many checkout workers, which immediately retry together and worsen throttling.
Question 184
A cloud developer must explain the mechanism behind a proposed solution. An engineer accepts a Q Developer suggestion that removes a validation check and wants to merge without tests. Which technical explanation correctly accounts for the solution?
- Uncontrolled serialization can change timestamp formats and numeric precision, breaking later readers.
- AI-generated suggestions are proposed source changes, not verified runtime behavior or authorization proof.
- Partial batch failure reporting limits retries to failed records if the event-source mapping is configured for that feature.
- Many List operations return partial pages and a next token; stopping at the first response produces silent omissions.
Explanation
Correct Answer
B:AI-generated suggestions are proposed source changes, not verified runtime behavior or authorization proof. This is the operating principle for Amazon Q Developer generated code review. Validation: Generate a harmless unit-test helper and run lint, tests, and a human diff review prior to deployment. Scenario: An engineer accepts a Q Developer suggestion that removes a validation check and wants to merge without tests.
Incorrect Answers
A:Option A explains Application-level JSON serialization rather than this issue: Uncontrolled serialization can change timestamp formats and numeric precision, breaking later readers. It does not explain: An engineer accepts a Q Developer suggestion that removes a validation check and wants to merge without tests.
C:Option C explains Lambda partial batch failures for SQS rather than this issue: Partial batch failure reporting limits retries to failed records if the event-source mapping is configured for that feature. It does not explain: An engineer accepts a Q Developer suggestion that removes a validation check and wants to merge without tests.
D:Option D explains AWS SDK paginator use rather than this issue: Many List operations return partial pages and a next token; stopping at the first response produces silent omissions. It does not explain: An engineer accepts a Q Developer suggestion that removes a validation check and wants to merge without tests.
Question 185
An engineering reviewer is evaluating service behavior and authorization boundaries. Several functions share a helper package but deployments drift because each bundles a different unpinned version. Which mechanism explains the appropriate design decision?
- Uncontrolled serialization can change timestamp formats and numeric precision, breaking later readers.
- S3 event notifications can be duplicated and ordering is not guaranteed; handlers must defend against repeated effects.
- Runtime compatibility and dependency versions affect import paths and initialization; a layer must match the running function.
- A state machine preserves workflow state across service calls and makes ordered dependencies and failures observable.
Explanation
Correct Answer
C:Runtime compatibility and dependency versions affect import paths and initialization; a layer must match the running function. This is the operating principle for Lambda layers and runtime dependency packaging. Validation: Publish a test layer version, invoke with the exact runtime and CPU architecture, and verify dependencies import. Scenario: Several functions share a helper package but deployments drift because each bundles a different unpinned version.
Incorrect Answers
A:Option A explains Application-level JSON serialization rather than this issue: Uncontrolled serialization can change timestamp formats and numeric precision, breaking later readers. It does not explain: Several functions share a helper package but deployments drift because each bundles a different unpinned version.
B:Option B explains S3 object events and duplicate handling rather than this issue: S3 event notifications can be duplicated and ordering is not guaranteed; handlers must defend against repeated effects. It does not explain: Several functions share a helper package but deployments drift because each bundles a different unpinned version.
D:Option D explains Step Functions orchestration rather than this issue: A state machine preserves workflow state across service calls and makes ordered dependencies and failures observable. It does not explain: Several functions share a helper package but deployments drift because each bundles a different unpinned version.
Question 186
A staging acceptance reviewer must demonstrate working end-to-end behavior rather than cite a configuration screenshot, using a controlled test before deployment. A traffic burst launches hundreds of Lambdas against a database that permits only a few dozen connections. Which observation is the strongest acceptance evidence?
- Publish ordered updates for two account IDs and verify each account's local sequence is processed consistently.
- Send a burst of test invocations and confirm concurrent executions remain below the database connection threshold.
- Replay the same payment event twice and verify a single business transaction is persisted.
- Load test a representative key distribution and inspect throttling by partition-key pattern.
Explanation
Correct Answer
B:The decisive acceptance evidence is: Send a burst of test invocations and confirm concurrent executions remain below the database connection threshold. It demonstrates: Reserved concurrency sets a function-level execution ceiling, protecting a constrained target from fanout spikes. Scenario: A traffic burst launches hundreds of Lambdas against a database that permits only a few dozen connections.
Incorrect Answers
A:Option A is an acceptance test for Kinesis per-shard ordering: Publish ordered updates for two account IDs and verify each account's local sequence is processed consistently. It is not direct evidence for: A traffic burst launches hundreds of Lambdas against a database that permits only a few dozen connections.
C:Option C is an acceptance test for SQS idempotent consumer design: Replay the same payment event twice and verify a single business transaction is persisted. It is not direct evidence for: A traffic burst launches hundreds of Lambdas against a database that permits only a few dozen connections.
D:Option D is an acceptance test for DynamoDB partition key hot spots: Load test a representative key distribution and inspect throttling by partition-key pattern. It is not direct evidence for: A traffic burst launches hundreds of Lambdas against a database that permits only a few dozen connections.
Question 187
An AWS developer is reviewing the next application release. A table has unused throughput but a single merchant's write burst fails because its key is overloaded. Which technical change most directly meets the requirement?
- Emit structured JSON logs with timestamp, severity, operation, and correlation ID while redacting sensitive data.
- Apply a tracing sampling configuration that retains useful diagnostic coverage without excessive overhead or sensitive fields.
- Attach appropriately bounded X-Ray annotations to selected segments so investigators can filter traces by safe business dimensions.
- Inspect DynamoDB partition-key distribution and throttling before increasing total read or write capacity.
Explanation
Correct Answer
D:A hot partition can limit throughput independently of the table's aggregate provisioned or on-demand capacity. Apply: Inspect DynamoDB partition-key distribution and throttling before increasing total read or write capacity. Acceptance check: Generate representative traffic and compare throttled requests before and after improving key diversity. Scenario: A table has unused throughput but a single merchant's write burst fails because its key is overloaded.
Incorrect Answers
A:Option A implements a different developer control (Structured JSON application logging): Emit structured JSON logs with timestamp, severity, operation, and correlation ID while redacting sensitive data. That does not resolve the specific situation: A table has unused throughput but a single merchant's write burst fails because its key is overloaded.
B:Option B implements a different developer control (App-level trace sampling and privacy): Apply a tracing sampling configuration that retains useful diagnostic coverage without excessive overhead or sensitive fields. That does not resolve the specific situation: A table has unused throughput but a single merchant's write burst fails because its key is overloaded.
C:Option C implements a different developer control (X-Ray trace annotations): Attach appropriately bounded X-Ray annotations to selected segments so investigators can filter traces by safe business dimensions. That does not resolve the specific situation: A table has unused throughput but a single merchant's write burst fails because its key is overloaded.
Question 188
An AWS developer is reviewing the next application release. A route update works under a direct Lambda invocation but fails via API Gateway because of its stage mapping. Which technical change most directly meets the requirement?
- Use a Lambda canary deployment strategy with weighted traffic shifting and rollback triggers for a risky release.
- Use a staging environment with stubbed vendor responses to verify both success and failure branches of an integration.
- Test API Gateway routes in a dedicated stage with stage-specific backend variables and request validation.
- Build a versioned ECR container image with pinned base image and runtime dependencies for deployment.
Explanation
Correct Answer
C:Separate API stages let developers exercise route changes without directing tests at production functions and data. Apply: Test API Gateway routes in a dedicated stage with stage-specific backend variables and request validation. Acceptance check: Invoke the staging URL and verify only the staging Lambda alias and test dataset receive the request. Scenario: A route update works under a direct Lambda invocation but fails via API Gateway because of its stage mapping.
Incorrect Answers
A:Option A implements a different developer control (CodeDeploy canary Lambda traffic shifting): Use a Lambda canary deployment strategy with weighted traffic shifting and rollback triggers for a risky release. That does not resolve the specific situation: A route update works under a direct Lambda invocation but fails via API Gateway because of its stage mapping.
B:Option B implements a different developer control (Integration test API dependency contract): Use a staging environment with stubbed vendor responses to verify both success and failure branches of an integration. That does not resolve the specific situation: A route update works under a direct Lambda invocation but fails via API Gateway because of its stage mapping.
D:Option D implements a different developer control (Container image dependency pinning): Build a versioned ECR container image with pinned base image and runtime dependencies for deployment. That does not resolve the specific situation: A route update works under a direct Lambda invocation but fails via API Gateway because of its stage mapping.
Question 189
An incident review asks which unsafe assumption in an AWS implementation must be prevented. An order checkout Lambda writes an unmasked shipping address and card fragment to CloudWatch during validation. Which overlooked failure condition is the central concern?
- Do not treat any valid token from the identity provider as authorization for privileged write operations.
- Do not log raw Authorization headers, passwords, or full payment card numbers during error handling.
- Do not grant an entire service wildcard when the application only needs one table or object prefix.
- Do not build SQL queries by concatenating untrusted customer input or rely solely on a web UI's client-side validation.
Explanation
Correct Answer
B:Do not log raw Authorization headers, passwords, or full payment card numbers during error handling. This is significant because Observability must retain useful identifiers and failure context without exposing credentials, email addresses, or regulated data. Scenario: An order checkout Lambda writes an unmasked shipping address and card fragment to CloudWatch during validation.
Incorrect Answers
A:Option A warns about an unrelated failure boundary (API Gateway JWT authorizer scope): Do not treat any valid token from the identity provider as authorization for privileged write operations. It is not the key risk in: An order checkout Lambda writes an unmasked shipping address and card fragment to CloudWatch during validation.
C:Option C warns about an unrelated failure boundary (IAM least-privilege resource ARN): Do not grant an entire service wildcard when the application only needs one table or object prefix. It is not the key risk in: An order checkout Lambda writes an unmasked shipping address and card fragment to CloudWatch during validation.
D:Option D warns about an unrelated failure boundary (Input sanitization before data persistence): Do not build SQL queries by concatenating untrusted customer input or rely solely on a web UI's client-side validation. It is not the key risk in: An order checkout Lambda writes an unmasked shipping address and card fragment to CloudWatch during validation.
Question 190
An independent QA lead must observe a reproducible before-and-after result with controlled test inputs prior to signing the release. Two regional deployments use different ZIP contents despite sharing the same release label. What test most directly confirms the intended behavior?
- Deploy a tagged test commit and compare runtime version metadata with the repository commit identifier.
- Send a controlled duplicate event and a bad record and verify idempotent state and planned retry behavior.
- Compare checksums of the artifact deployed to staging and production within the same approved release.
- Publish two versions and verify the staging alias routes to the expected one without modifying production.
Explanation
Correct Answer
C:The decisive acceptance evidence is: Compare checksums of the artifact deployed to staging and production within the same approved release. It demonstrates: Artifact identity and checksums allow a release to preserve the binary that passed validation. Scenario: Two regional deployments use different ZIP contents despite sharing the same release label.
Incorrect Answers
A:Option A is an acceptance test for Git commit and release tagging: Deploy a tagged test commit and compare runtime version metadata with the repository commit identifier. It is not direct evidence for: Two regional deployments use different ZIP contents despite sharing the same release label.
B:Option B is an acceptance test for Event-driven integration test cases: Send a controlled duplicate event and a bad record and verify idempotent state and planned retry behavior. It is not direct evidence for: Two regional deployments use different ZIP contents despite sharing the same release label.
D:Option D is an acceptance test for Lambda aliases for versioned test routing: Publish two versions and verify the staging alias routes to the expected one without modifying production. It is not direct evidence for: Two regional deployments use different ZIP contents despite sharing the same release label.