AWS Certified Developer - Associate DVA-C02 Practice Test 23
Question 220
An incident review asks which unsafe assumption in an AWS implementation must be prevented. A table has unused throughput but a single merchant's write burst fails because its key is overloaded. Which overlooked failure condition is the central concern?
- 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 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.
Explanation
Correct Answer
B:Do not scale a table blindly when most throttles come from one overloaded partition key. This is significant because A hot partition can limit throughput independently of the table's aggregate provisioned or on-demand capacity. Scenario: A table has unused throughput but a single merchant's write burst fails because its key is overloaded.
Incorrect Answers
A:Option A 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 table has unused throughput but a single merchant's write burst fails because its key is overloaded.
C:Option C 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: A table has unused throughput but a single merchant's write burst fails because its key is overloaded.
D:Option D 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: A table has unused throughput but a single merchant's write burst fails because its key is overloaded.
Question 221
An AWS developer is reviewing the next application release. A release modifies a Lambda role trust policy and operators need to inspect the authorization impact first. Which technical change most directly meets the requirement?
- Store environment-scoped feature flags in AWS AppConfig and deploy them using a validated application configuration strategy.
- Place an authorized manual approval gate between successful automated test and production deployment actions.
- Review a CloudFormation change set before updating a shared application stack to identify replacements and permission changes.
- Deploy a SAM template to staging using explicit stack names and parameter overrides for its resource identifiers.
Explanation
Correct Answer
C:Change sets preview the proposed resource operations, including destructive replacements and IAM changes. Apply: Review a CloudFormation change set before updating a shared application stack to identify replacements and permission changes. Acceptance check: Generate a test change set and verify an intended safe update does not replace the production database. Scenario: A release modifies a Lambda role trust policy and operators need to inspect the authorization impact first.
Incorrect Answers
A:Option A implements a different developer control (AppConfig environment feature flags): Store environment-scoped feature flags in AWS AppConfig and deploy them using a validated application configuration strategy. That does not resolve the specific situation: A release modifies a Lambda role trust policy and operators need to inspect the authorization impact first.
B:Option B implements a different developer control (CodePipeline cross-stage approval): Place an authorized manual approval gate between successful automated test and production deployment actions. That does not resolve the specific situation: A release modifies a Lambda role trust policy and operators need to inspect the authorization impact first.
D:Option D implements a different developer control (SAM parameter overrides for staging): Deploy a SAM template to staging using explicit stack names and parameter overrides for its resource identifiers. That does not resolve the specific situation: A release modifies a Lambda role trust policy and operators need to inspect the authorization impact first.
Question 222
An independent QA lead must observe a reproducible before-and-after result with controlled test inputs prior to signing the release. A function adds complete cardholder identifiers to trace annotations to simplify searching. What test most directly confirms the intended behavior?
- Update a product's price in a test store and confirm the cached result is refreshed within the approved policy.
- Emit traces with safe test tenant identifiers and synthetic sensitive data; verify useful filtering works while confidential identifiers are excluded from annotations.
- Generate representative traffic and compare throttled requests before and after improving key diversity.
- Publish a controlled failure metric and confirm the alarm changes state and the intended SNS subscriber receives it.
Explanation
Correct Answer
B:The decisive acceptance evidence is: Emit traces with safe test tenant identifiers and synthetic sensitive data; verify useful filtering works while confidential identifiers are excluded from annotations. It demonstrates: Indexed annotations support filtering traces by defined key-value pairs while metadata can hold less indexed detail. Scenario: A function adds complete cardholder identifiers to trace annotations to simplify searching.
Incorrect Answers
A:Option A is an acceptance test for ElastiCache invalidation and TTL: Update a product's price in a test store and confirm the cached result is refreshed within the approved policy. It is not direct evidence for: A function adds complete cardholder identifiers to trace annotations to simplify searching.
C:Option C is an acceptance test for DynamoDB hot partition avoidance: Generate representative traffic and compare throttled requests before and after improving key diversity. It is not direct evidence for: A function adds complete cardholder identifiers to trace annotations to simplify searching.
D:Option D is an acceptance test for CloudWatch alarm notification: Publish a controlled failure metric and confirm the alarm changes state and the intended SNS subscriber receives it. It is not direct evidence for: A function adds complete cardholder identifiers to trace annotations to simplify searching.
Question 223
A development team must select an AWS application change. A high-traffic API creates runaway trace costs when recording every request and user payload. Which implementation best addresses this situation?
- Apply a tracing sampling configuration that retains useful diagnostic coverage without excessive overhead or sensitive fields.
- Use a CloudWatch Logs Insights query with correlated request IDs and error filters to find the failing application invocation.
- Emit structured JSON logs with timestamp, severity, operation, and correlation ID while redacting sensitive data.
- Compare API Gateway execution and access logs, integration status, and backend logs to isolate client validation from service faults.
Explanation
Correct Answer
A:Sampling limits tracing volume while secure context propagation and data minimization preserve observability integrity. Apply: Apply a tracing sampling configuration that retains useful diagnostic coverage without excessive overhead or sensitive fields. Acceptance check: Generate repeated traceable requests and confirm sampled segments include correlation but not secrets. Scenario: A high-traffic API creates runaway trace costs when recording every request and user payload.
Incorrect Answers
B:Option B implements a different developer control (CloudWatch Logs Insights fault search): Use a CloudWatch Logs Insights query with correlated request IDs and error filters to find the failing application invocation. That does not resolve the specific situation: A high-traffic API creates runaway trace costs when recording every request and user payload.
C:Option C 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 high-traffic API creates runaway trace costs when recording every request and user payload.
D:Option D implements a different developer control (API Gateway 4xx versus 5xx root cause): Compare API Gateway execution and access logs, integration status, and backend logs to isolate client validation from service faults. That does not resolve the specific situation: A high-traffic API creates runaway trace costs when recording every request and user payload.
Question 224
An engineering reviewer is evaluating service behavior and authorization boundaries. An operator plans to schedule key deletion the day after rotating encryption keys used by archived application data. Which mechanism explains the appropriate design decision?
- For supported symmetric KMS keys, older key material remains available to decrypt ciphertext when key rotation occurs.
- Secret versions can rotate independently of a code deployment, while clients must handle cached credential updates.
- The response serializer can enforce an allowlist for sensitive fields after identity and authorization checks.
- User pools handle application sign-in and token issuance; a backend must verify signatures, issuer, token use, and audience or client identity.
Explanation
Correct Answer
A:For supported symmetric KMS keys, older key material remains available to decrypt ciphertext when key rotation occurs. This is the operating principle for KMS rotation and encrypted data continuity. Validation: Rotate a safe test key using supported policy and decrypt ciphertext written with prior key material. Scenario: An operator plans to schedule key deletion the day after rotating encryption keys used by archived application data.
Incorrect Answers
B:Option B explains Secrets Manager credential rotation rather than this issue: Secret versions can rotate independently of a code deployment, while clients must handle cached credential updates. It does not explain: An operator plans to schedule key deletion the day after rotating encryption keys used by archived application data.
C:Option C explains Sensitive data classification before API responses rather than this issue: The response serializer can enforce an allowlist for sensitive fields after identity and authorization checks. It does not explain: An operator plans to schedule key deletion the day after rotating encryption keys used by archived application data.
D:Option D explains Cognito user-pool login tokens rather than this issue: User pools handle application sign-in and token issuance; a backend must verify signatures, issuer, token use, and audience or client identity. It does not explain: An operator plans to schedule key deletion the day after rotating encryption keys used by archived application data.
Question 225
A production readiness review identifies a potential software defect. A purchase workflow must reserve inventory, collect payment, and release the reservation if collection fails. Which implementation risk must be rejected first?
- Do not assume each uploaded object generates one perfectly ordered processing attempt.
- Do not rely on chained synchronous Lambda invocations for long workflows that require durable state and recovery.
- Do not split a logically atomic credit-and-debit update into unrelated best-effort PutItem calls.
- Do not use one constant tenant key for a workload that writes massive traffic under a single partition.
Explanation
Correct Answer
B:Do not rely on chained synchronous Lambda invocations for long workflows that require durable state and recovery. This is significant because A state machine preserves workflow state across service calls and makes ordered dependencies and failures observable. Scenario: A purchase workflow must reserve inventory, collect payment, and release the reservation if collection fails.
Incorrect Answers
A:Option A warns about an unrelated failure boundary (S3 object events and duplicate handling): Do not assume each uploaded object generates one perfectly ordered processing attempt. It is not the key risk in: A purchase workflow must reserve inventory, collect payment, and release the reservation if collection fails.
C:Option C warns about an unrelated failure boundary (DynamoDB transaction writes): Do not split a logically atomic credit-and-debit update into unrelated best-effort PutItem calls. It is not the key risk in: A purchase workflow must reserve inventory, collect payment, and release the reservation if collection fails.
D:Option D warns about an unrelated failure boundary (DynamoDB partition key hot spots): Do not use one constant tenant key for a workload that writes massive traffic under a single partition. It is not the key risk in: A purchase workflow must reserve inventory, collect payment, and release the reservation if collection fails.
Question 226
A development team must select an AWS application change. An audit queue receives every marketing promotion event although it needs only access-policy changes. Which implementation best addresses this situation?
- Emit structured JSON logs with timestamp, severity, operation, and correlation ID while redacting sensitive data.
- Create a CloudWatch alarm with meaningful error-rate or latency thresholds and an SNS notification for operational response.
- Inspect Lambda runtime initialization and execution logs to distinguish dependency import failures from configured timeouts.
- Add an SNS subscription filter policy that forwards only matching event attributes or message bodies to a target queue.
Explanation
Correct Answer
D:Subscription filtering reduces irrelevant deliveries and downstream processing while preserving intended event fanout. Apply: Add an SNS subscription filter policy that forwards only matching event attributes or message bodies to a target queue. Acceptance check: Publish events with different types and verify each queue receives only its matching type. Scenario: An audit queue receives every marketing promotion event although it needs only access-policy changes.
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: An audit queue receives every marketing promotion event although it needs only access-policy changes.
B:Option B implements a different developer control (CloudWatch alarm notification): Create a CloudWatch alarm with meaningful error-rate or latency thresholds and an SNS notification for operational response. That does not resolve the specific situation: An audit queue receives every marketing promotion event although it needs only access-policy changes.
C:Option C implements a different developer control (Lambda timeout and init error diagnosis): Inspect Lambda runtime initialization and execution logs to distinguish dependency import failures from configured timeouts. That does not resolve the specific situation: An audit queue receives every marketing promotion event although it needs only access-policy changes.
Question 227
An independent QA lead must observe a reproducible before-and-after result with controlled test inputs prior to signing the release. A retail app must query inventory by warehouseId while its primary key represents productId. What test most directly confirms the intended behavior?
- Simulate throttling, invalid input, and access-denied responses and verify only transient cases enter controlled retry logic.
- Invoke from the Lambda VPC configuration and test an authorized connection to the required database port.
- Trigger a synthetic handler exception and verify retry count and the corresponding on-failure event record.
- Query the new index by the alternate key and verify projections and update propagation match application needs.
Explanation
Correct Answer
D:The decisive acceptance evidence is: Query the new index by the alternate key and verify projections and update propagation match application needs. It demonstrates: A GSI exposes an alternate partition and optional sort key, with asynchronous index propagation and separate capacity impacts. Scenario: A retail app must query inventory by warehouseId while its primary key represents productId.
Incorrect Answers
A:Option A is an acceptance test for AWS SDK service exception handling: Simulate throttling, invalid input, and access-denied responses and verify only transient cases enter controlled retry logic. It is not direct evidence for: A retail app must query inventory by warehouseId while its primary key represents productId.
B:Option B is an acceptance test for Lambda VPC connectivity to private data: Invoke from the Lambda VPC configuration and test an authorized connection to the required database port. It is not direct evidence for: A retail app must query inventory by warehouseId while its primary key represents productId.
C:Option C is an acceptance test for Lambda asynchronous failure destination: Trigger a synthetic handler exception and verify retry count and the corresponding on-failure event record. It is not direct evidence for: A retail app must query inventory by warehouseId while its primary key represents productId.
Question 228
An engineering reviewer is evaluating service behavior and authorization boundaries. A delivery workflow's state machine is granted s3:* even though its only task sends one SQS message. Which mechanism explains the appropriate design decision?
- S3 permissions and KMS key permissions are separate, so an otherwise permitted GetObject may fail during decryption.
- SigV4 binds the request components, credential scope, and signature, preventing unsigned API requests from being accepted.
- For supported symmetric KMS keys, older key material remains available to decrypt ciphertext when key rotation occurs.
- Integrated state machine tasks use the state-machine execution role, independently from a Lambda task's own IAM role.
Explanation
Correct Answer
D:Integrated state machine tasks use the state-machine execution role, independently from a Lambda task's own IAM role. This is the operating principle for Cross-service execution role in Step Functions. Validation: Invoke a safe state machine with and without required task permission and confirm the specific service action fails narrowly. Scenario: A delivery workflow's state machine is granted s3:* even though its only task sends one SQS message.
Incorrect Answers
A:Option A explains S3 SSE-KMS encryption key access rather than this issue: S3 permissions and KMS key permissions are separate, so an otherwise permitted GetObject may fail during decryption. It does not explain: A delivery workflow's state machine is granted s3:* even though its only task sends one SQS message.
B:Option B explains SigV4 request signing rather than this issue: SigV4 binds the request components, credential scope, and signature, preventing unsigned API requests from being accepted. It does not explain: A delivery workflow's state machine is granted s3:* even though its only task sends one SQS message.
C:Option C explains KMS rotation and encrypted data continuity rather than this issue: For supported symmetric KMS keys, older key material remains available to decrypt ciphertext when key rotation occurs. It does not explain: A delivery workflow's state machine is granted s3:* even though its only task sends one SQS message.
Question 229
A staging acceptance reviewer must demonstrate working end-to-end behavior rather than cite a configuration screenshot, using a controlled test before deployment. An application embeds its RDS password in Git and requires a production deploy each time the password changes. Which observation is the strongest acceptance evidence?
- Invoke a safe state machine with and without required task permission and confirm the specific service action fails narrowly.
- Rotate a safe test key using supported policy and decrypt ciphertext written with prior key material.
- Connect to the configured custom domain and inspect hostname matching, chain trust, and expected renewal state.
- Rotate a nonproduction test credential and confirm new connections work after refresh without embedding the secret in source code.
Explanation
Correct Answer
D:The decisive acceptance evidence is: Rotate a nonproduction test credential and confirm new connections work after refresh without embedding the secret in source code. It demonstrates: Secret versions can rotate independently of a code deployment, while clients must handle cached credential updates. Scenario: An application embeds its RDS password in Git and requires a production deploy each time the password changes.
Incorrect Answers
A:Option A is an acceptance test for Cross-service execution role in Step Functions: Invoke a safe state machine with and without required task permission and confirm the specific service action fails narrowly. It is not direct evidence for: An application embeds its RDS password in Git and requires a production deploy each time the password changes.
B:Option B is an acceptance test for KMS rotation and encrypted data continuity: Rotate a safe test key using supported policy and decrypt ciphertext written with prior key material. It is not direct evidence for: An application embeds its RDS password in Git and requires a production deploy each time the password changes.
C:Option C is an acceptance test for AWS Certificate Manager HTTPS certificate binding: Connect to the configured custom domain and inspect hostname matching, chain trust, and expected renewal state. It is not direct evidence for: An application embeds its RDS password in Git and requires a production deploy each time the password changes.
Question 230
A cloud developer must explain the mechanism behind a proposed solution. A production rollout begins immediately after CodeBuild although company policy requires security review. Which technical explanation correctly accounts for the solution?
- AppConfig can change runtime configuration separately from packaged code and use monitored rollout/rollback controls.
- Stages isolate API deployments and allow controlled references to backends without changing client-visible production routes.
- A pipeline approval action prevents production promotion until a permitted reviewer approves the exact tested revision.
- A fixture exercises the exact envelope the event source sends, including metadata and nested record structures.
Explanation
Correct Answer
C:A pipeline approval action prevents production promotion until a permitted reviewer approves the exact tested revision. This is the operating principle for CodePipeline cross-stage approval. Validation: Run a safe integration build and confirm production deployment waits for the explicit approval decision. Scenario: A production rollout begins immediately after CodeBuild although company policy requires security review.
Incorrect Answers
A:Option A 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 production rollout begins immediately after CodeBuild although company policy requires security review.
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 production rollout begins immediately after CodeBuild although company policy requires security review.
D:Option D explains Test Lambda JSON event fixture rather than this issue: A fixture exercises the exact envelope the event source sends, including metadata and nested record structures. It does not explain: A production rollout begins immediately after CodeBuild although company policy requires security review.