AWS Certified Developer - Associate DVA-C02 Practice Test 34
Question 330
An incident review asks which unsafe assumption in an AWS implementation must be prevented. A retailer adjusts discounts but checkout still shows the previous price because cache entries outlive the policy window. Which overlooked failure condition is the central concern?
- Do not place passwords, PII, or unrestricted high-cardinality secrets into trace annotations.
- Do not ignore a language header if responses differ by language, or include every random header in the cache key.
- Do not treat all API errors as Lambda crashes when an authorizer or request validator rejected the call earlier.
- Do not assume Redis cache entries update automatically when DynamoDB records change.
Explanation
Correct Answer
D:Do not assume Redis cache entries update automatically when DynamoDB records change. This is significant because Caching lowers backend latency and read load, but TTL and invalidation determine how stale a user response can become. Scenario: A retailer adjusts discounts but checkout still shows the previous price because cache entries outlive the policy window.
Incorrect Answers
A:Option A warns about an unrelated failure boundary (X-Ray trace annotations): Do not place passwords, PII, or unrestricted high-cardinality secrets into trace annotations. It is not the key risk in: A retailer adjusts discounts but checkout still shows the previous price because cache entries outlive the policy window.
B:Option B warns about an unrelated failure boundary (CloudFront caching by request headers): Do not ignore a language header if responses differ by language, or include every random header in the cache key. It is not the key risk in: A retailer adjusts discounts but checkout still shows the previous price because cache entries outlive the policy window.
C:Option C warns about an unrelated failure boundary (API Gateway 4xx versus 5xx root cause): Do not treat all API errors as Lambda crashes when an authorizer or request validator rejected the call earlier. It is not the key risk in: A retailer adjusts discounts but checkout still shows the previous price because cache entries outlive the policy window.
Question 331
A cloud developer must explain the mechanism behind a proposed solution. A thumbnail worker processes the same new JPEG twice because its S3 notification is delivered more than once. Which technical explanation correctly accounts for the solution?
- A GSI exposes an alternate partition and optional sort key, with asynchronous index propagation and separate capacity impacts.
- Jitter spreads retry traffic, while a circuit breaker prevents repeated calls into a persistently failing dependency.
- S3 event notifications can be duplicated and ordering is not guaranteed; handlers must defend against repeated effects.
- VPC-connected Lambda network interfaces need reachable routes and security-group permissions for database connections.
Explanation
Correct Answer
C:S3 event notifications can be duplicated and ordering is not guaranteed; handlers must defend against repeated effects. This is the operating principle for S3 object events and duplicate handling. Validation: Trigger duplicate object notifications and verify exactly one logical downstream ingest result is committed. Scenario: A thumbnail worker processes the same new JPEG twice because its S3 notification is delivered more than once.
Incorrect Answers
A:Option A explains DynamoDB global secondary index design rather than this issue: A GSI exposes an alternate partition and optional sort key, with asynchronous index propagation and separate capacity impacts. It does not explain: A thumbnail worker processes the same new JPEG twice because its S3 notification is delivered more than once.
B:Option B explains Third-party API retries with jitter rather than this issue: Jitter spreads retry traffic, while a circuit breaker prevents repeated calls into a persistently failing dependency. It does not explain: A thumbnail worker processes the same new JPEG twice because its S3 notification is delivered more than once.
D:Option D explains Lambda VPC connectivity to private data rather than this issue: VPC-connected Lambda network interfaces need reachable routes and security-group permissions for database connections. It does not explain: A thumbnail worker processes the same new JPEG twice because its S3 notification is delivered more than once.
Question 332
An engineering reviewer is evaluating service behavior and authorization boundaries. A deployment deletes the existing healthy task set before verifying its replacement accepts requests. Which mechanism explains the appropriate design decision?
- Asynchronous systems can retry, reorder, or redeliver messages; the integration contract must handle these cases safely.
- Stages isolate API deployments and allow controlled references to backends without changing client-visible production routes.
- Blue-green release keeps a known environment available while traffic moves to the tested replacement.
- AppConfig can change runtime configuration separately from packaged code and use monitored rollout/rollback controls.
Explanation
Correct Answer
C:Blue-green release keeps a known environment available while traffic moves to the tested replacement. This is the operating principle for CodeDeploy blue-green rollback. Validation: Induce a failing readiness test in the new environment and verify routing returns to the previous one. Scenario: A deployment deletes the existing healthy task set before verifying its replacement accepts requests.
Incorrect Answers
A:Option A explains Event-driven integration test cases rather than this issue: Asynchronous systems can retry, reorder, or redeliver messages; the integration contract must handle these cases safely. It does not explain: A deployment deletes the existing healthy task set before verifying its replacement accepts requests.
B:Option B explains API Gateway stage variables and versions rather than this issue: Stages isolate API deployments and allow controlled references to backends without changing client-visible production routes. It does not explain: A deployment deletes the existing healthy task set before verifying its replacement accepts requests.
D:Option D explains AppConfig progressive rollout rollback rather than this issue: AppConfig can change runtime configuration separately from packaged code and use monitored rollout/rollback controls. It does not explain: A deployment deletes the existing healthy task set before verifying its replacement accepts requests.
Question 333
An incident review asks which unsafe assumption in an AWS implementation must be prevented. A container task needs temporary access to a DynamoDB table and must not share the deployment engineer's credentials. Which overlooked failure condition is the central concern?
- Do not store IAM user secret keys inside a Lambda deployment package or public client application.
- Do not use a plain String parameter for credentials that require confidentiality and auditing.
- Do not grant an entire service wildcard when the application only needs one table or object prefix.
- Do not issue unrestricted IAM access keys to browser applications just to enable S3 uploads.
Explanation
Correct Answer
A:Do not store IAM user secret keys inside a Lambda deployment package or public client application. This is significant because Role assumption provides temporary scoped credentials instead of embedding static long-lived keys inside deployable code. Scenario: A container task needs temporary access to a DynamoDB table and must not share the deployment engineer's credentials.
Incorrect Answers
B:Option B warns about an unrelated failure boundary (AWS Systems Manager Parameter Store secure strings): Do not use a plain String parameter for credentials that require confidentiality and auditing. It is not the key risk in: A container task needs temporary access to a DynamoDB table and must not share the deployment engineer's credentials.
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: A container task needs temporary access to a DynamoDB table and must not share the deployment engineer's credentials.
D:Option D warns about an unrelated failure boundary (Cognito identity pool scoped AWS access): Do not issue unrestricted IAM access keys to browser applications just to enable S3 uploads. It is not the key risk in: A container task needs temporary access to a DynamoDB table and must not share the deployment engineer's credentials.
Question 334
An incident review asks which unsafe assumption in an AWS implementation must be prevented. A queue's visible backlog shrinks but failed invoices disappear into its DLQ without alerting. Which overlooked failure condition is the central concern?
- Do not solve an import failure by increasing Lambda timeout or memory without checking the failing phase.
- Do not infer which microservice caused latency solely from aggregate API Gateway response times.
- Do not scale a table blindly when most throttles come from one overloaded partition key.
- Do not repeatedly clear a DLQ before addressing the parser defect that caused redrive.
Explanation
Correct Answer
D:Do not repeatedly clear a DLQ before addressing the parser defect that caused redrive. This is significant because A redrive policy moves messages that repeatedly fail processing so they can be analyzed and replayed safely. Scenario: A queue's visible backlog shrinks but failed invoices disappear into its DLQ without alerting.
Incorrect Answers
A:Option A warns about an unrelated failure boundary (Lambda timeout and init error diagnosis): Do not solve an import failure by increasing Lambda timeout or memory without checking the failing phase. It is not the key risk in: A queue's visible backlog shrinks but failed invoices disappear into its DLQ without alerting.
B:Option B warns about an unrelated failure boundary (X-Ray distributed trace diagnosis): Do not infer which microservice caused latency solely from aggregate API Gateway response times. It is not the key risk in: A queue's visible backlog shrinks but failed invoices disappear into its DLQ without alerting.
C:Option C warns about an unrelated failure boundary (DynamoDB hot partition avoidance): Do not scale a table blindly when most throttles come from one overloaded partition key. It is not the key risk in: A queue's visible backlog shrinks but failed invoices disappear into its DLQ without alerting.
Question 335
An AWS developer is reviewing the next application release. A mobile application needs managed signup and authenticated API access without storing a custom user password database. Which technical change most directly meets the requirement?
- Validate and sanitize untrusted request fields with context-appropriate encoding and parameterized database queries.
- Authenticate application users through a Cognito user pool and validate issued ID or access tokens against the correct intended audience and issuer.
- Use a supported KMS data key and encrypt large application payloads locally with a data encryption algorithm.
- Require authenticated tenant IDs in database query keys or conditions rather than accepting a caller-controlled tenant key alone.
Explanation
Correct Answer
B:User pools handle application sign-in and token issuance; a backend must verify signatures, issuer, token use, and audience or client identity. Apply: Authenticate application users through a Cognito user pool and validate issued ID or access tokens against the correct intended audience and issuer. Acceptance check: Submit valid, expired, and wrong-client tokens and verify only the intended token is accepted by the backend. Scenario: A mobile application needs managed signup and authenticated API access without storing a custom user password database.
Incorrect Answers
A:Option A implements a different developer control (Input sanitization before data persistence): Validate and sanitize untrusted request fields with context-appropriate encoding and parameterized database queries. That does not resolve the specific situation: A mobile application needs managed signup and authenticated API access without storing a custom user password database.
C:Option C implements a different developer control (KMS envelope encryption pattern): Use a supported KMS data key and encrypt large application payloads locally with a data encryption algorithm. That does not resolve the specific situation: A mobile application needs managed signup and authenticated API access without storing a custom user password database.
D:Option D implements a different developer control (Multi-tenant partitioning guard): Require authenticated tenant IDs in database query keys or conditions rather than accepting a caller-controlled tenant key alone. That does not resolve the specific situation: A mobile application needs managed signup and authenticated API access without storing a custom user password database.
Question 336
A staging acceptance reviewer must demonstrate working end-to-end behavior rather than cite a configuration screenshot, using a controlled test before deployment. A reporting service in Account A must read a controlled S3 dataset in Account B without duplicating access keys. Which observation is the strongest acceptance evidence?
- Invoke the same API with two customer identities and verify neither can retrieve the other's object identifiers.
- Run permitted and denied test operations against sibling resources to verify scope boundaries.
- Try assuming the role from an allowed account and an unauthorized account and compare resulting session permissions.
- Call the same endpoint with a support role and customer role and assert restricted fields are absent from the lesser role's payload.
Explanation
Correct Answer
C:The decisive acceptance evidence is: Try assuming the role from an allowed account and an unauthorized account and compare resulting session permissions. It demonstrates: The trusted calling principal and assumed role permissions are distinct authorization checks for cross-account access. Scenario: A reporting service in Account A must read a controlled S3 dataset in Account B without duplicating access keys.
Incorrect Answers
A:Option A is an acceptance test for Fine-grained application tenant authorization: Invoke the same API with two customer identities and verify neither can retrieve the other's object identifiers. It is not direct evidence for: A reporting service in Account A must read a controlled S3 dataset in Account B without duplicating access keys.
B:Option B is an acceptance test for IAM least-privilege resource ARN: Run permitted and denied test operations against sibling resources to verify scope boundaries. It is not direct evidence for: A reporting service in Account A must read a controlled S3 dataset in Account B without duplicating access keys.
D:Option D is an acceptance test for Sensitive data classification before API responses: Call the same endpoint with a support role and customer role and assert restricted fields are absent from the lesser role's payload. It is not direct evidence for: A reporting service in Account A must read a controlled S3 dataset in Account B without duplicating access keys.
Question 337
An incident review asks which unsafe assumption in an AWS implementation must be prevented. An endpoint returns HTTP 502 after a malformed Lambda proxy response and the developer blames the API token. Which overlooked failure condition is the central concern?
- Do not assume a dashboard alone will alert responders when an overnight service fails.
- Do not diagnose a request failure from unrelated timestamps or logs that lack the correlation identifier.
- Do not treat all API errors as Lambda crashes when an authorizer or request validator rejected the call earlier.
- Do not enable full unsampled payload traces containing credentials for every production request.
Explanation
Correct Answer
C:Do not treat all API errors as Lambda crashes when an authorizer or request validator rejected the call earlier. This is significant because Client-side 4xx failures and 5xx integration or backend faults require different debugging paths. Scenario: An endpoint returns HTTP 502 after a malformed Lambda proxy response and the developer blames the API token.
Incorrect Answers
A:Option A warns about an unrelated failure boundary (CloudWatch alarm notification): Do not assume a dashboard alone will alert responders when an overnight service fails. It is not the key risk in: An endpoint returns HTTP 502 after a malformed Lambda proxy response and the developer blames the API token.
B:Option B warns about an unrelated failure boundary (CloudWatch Logs Insights fault search): Do not diagnose a request failure from unrelated timestamps or logs that lack the correlation identifier. It is not the key risk in: An endpoint returns HTTP 502 after a malformed Lambda proxy response and the developer blames the API token.
D:Option D warns about an unrelated failure boundary (App-level trace sampling and privacy): Do not enable full unsampled payload traces containing credentials for every production request. It is not the key risk in: An endpoint returns HTTP 502 after a malformed Lambda proxy response and the developer blames the API token.
Question 338
An independent QA lead must observe a reproducible before-and-after result with controlled test inputs prior to signing the release. A knowledge base stores records by UUID but must return ranked articles for misspelled search queries. What test most directly confirms the intended behavior?
- Publish one synthetic purchase event and confirm both the email and analytics queues receive their own copies.
- Compare collected resource IDs against a fixture spanning several result pages including an empty final page.
- Index a controlled set of documents and confirm phrase searches return the expected relevant records.
- Force a fulfillment task failure and confirm the state machine retries or reaches the designed compensation path.
Explanation
Correct Answer
C:The decisive acceptance evidence is: Index a controlled set of documents and confirm phrase searches return the expected relevant records. It demonstrates: An inverted text index supports term queries and relevance that primary-key lookups alone cannot provide. Scenario: A knowledge base stores records by UUID but must return ranked articles for misspelled search queries.
Incorrect Answers
A:Option A is an acceptance test for SNS topic fanout: Publish one synthetic purchase event and confirm both the email and analytics queues receive their own copies. It is not direct evidence for: A knowledge base stores records by UUID but must return ranked articles for misspelled search queries.
B:Option B is an acceptance test for AWS SDK paginator use: Compare collected resource IDs against a fixture spanning several result pages including an empty final page. It is not direct evidence for: A knowledge base stores records by UUID but must return ranked articles for misspelled search queries.
D:Option D is an acceptance test for Step Functions orchestration: Force a fulfillment task failure and confirm the state machine retries or reaches the designed compensation path. It is not direct evidence for: A knowledge base stores records by UUID but must return ranked articles for misspelled search queries.
Question 339
A staging acceptance reviewer must demonstrate working end-to-end behavior rather than cite a configuration screenshot, using a controlled test before deployment. A ledger processor needs sequential updates per account but can process different accounts independently. Which observation is the strongest acceptance evidence?
- Publish ordered updates for two account IDs and verify each account's local sequence is processed consistently.
- Round-trip a fixture with decimals and UTC timestamps and compare exact domain values after deserialization.
- Write a test item then issue a strong GetItem and confirm the returned version matches the latest commit.
- Publish approved and rejected sample order events and confirm only approved events invoke the consumer.
Explanation
Correct Answer
A:The decisive acceptance evidence is: Publish ordered updates for two account IDs and verify each account's local sequence is processed consistently. It demonstrates: Kinesis Data Streams orders records within a shard; a partition key controls how related records are grouped. Scenario: A ledger processor needs sequential updates per account but can process different accounts independently.
Incorrect Answers
B:Option B is an acceptance test for Application-level JSON serialization: Round-trip a fixture with decimals and UTC timestamps and compare exact domain values after deserialization. It is not direct evidence for: A ledger processor needs sequential updates per account but can process different accounts independently.
C:Option C is an acceptance test for DynamoDB strong read consistency: Write a test item then issue a strong GetItem and confirm the returned version matches the latest commit. It is not direct evidence for: A ledger processor needs sequential updates per account but can process different accounts independently.
D:Option D is an acceptance test for EventBridge content-based routing: Publish approved and rejected sample order events and confirm only approved events invoke the consumer. It is not direct evidence for: A ledger processor needs sequential updates per account but can process different accounts independently.
Question 340
A development team must select an AWS application change. A file-processing Lambda triggered asynchronously fails after retry attempts with no event retained for review. Which implementation best addresses this situation?
- Use DynamoDB TransactWriteItems to apply a small set of related item changes atomically when the transaction limits permit.
- Use a DynamoDB Query with known partition-key conditions or an appropriate index instead of repeatedly scanning every item.
- Choose Kinesis partition keys to preserve per-entity event order while distributing unrelated entities across shards.
- Configure asynchronous Lambda invocation failure destinations and bounded retries to preserve failure evidence.
Explanation
Correct Answer
D:Asynchronous invocations can retry failed events then route exhausted failures to a configured destination for recovery. Apply: Configure asynchronous Lambda invocation failure destinations and bounded retries to preserve failure evidence. Acceptance check: Trigger a synthetic handler exception and verify retry count and the corresponding on-failure event record. Scenario: A file-processing Lambda triggered asynchronously fails after retry attempts with no event retained for review.
Incorrect Answers
A:Option A implements a different developer control (DynamoDB transaction writes): Use DynamoDB TransactWriteItems to apply a small set of related item changes atomically when the transaction limits permit. That does not resolve the specific situation: A file-processing Lambda triggered asynchronously fails after retry attempts with no event retained for review.
B:Option B implements a different developer control (DynamoDB query versus scan): Use a DynamoDB Query with known partition-key conditions or an appropriate index instead of repeatedly scanning every item. That does not resolve the specific situation: A file-processing Lambda triggered asynchronously fails after retry attempts with no event retained for review.
C:Option C implements a different developer control (Kinesis per-shard ordering): Choose Kinesis partition keys to preserve per-entity event order while distributing unrelated entities across shards. That does not resolve the specific situation: A file-processing Lambda triggered asynchronously fails after retry attempts with no event retained for review.