AWS Certified Developer - Associate DVA-C02 Practice Test 33
Question 320
An independent QA lead must observe a reproducible before-and-after result with controlled test inputs prior to signing the release. A release declares success despite a failing 10-percent canary because no CloudWatch alarm is attached. What test most directly confirms the intended behavior?
- Build a test image, inspect its digest, and deploy that exact digest to staging before production promotion.
- Run a safe integration build and confirm production deployment waits for the explicit approval decision.
- Deploy a deliberately failing canary and verify the alarm stops traffic shifting and restores the stable version.
- Deploy a minimal test package and invoke the configured handler while checking import resolution.
Explanation
Correct Answer
C:The decisive acceptance evidence is: Deploy a deliberately failing canary and verify the alarm stops traffic shifting and restores the stable version. It demonstrates: CodeDeploy can send a limited share of traffic to a new version and shift more only after healthy checks. Scenario: A release declares success despite a failing 10-percent canary because no CloudWatch alarm is attached.
Incorrect Answers
A:Option A is an acceptance test for Container image dependency pinning: Build a test image, inspect its digest, and deploy that exact digest to staging before production promotion. It is not direct evidence for: A release declares success despite a failing 10-percent canary because no CloudWatch alarm is attached.
B:Option B is an acceptance test for CodePipeline cross-stage approval: Run a safe integration build and confirm production deployment waits for the explicit approval decision. It is not direct evidence for: A release declares success despite a failing 10-percent canary because no CloudWatch alarm is attached.
D:Option D is an acceptance test for Lambda dependency archive packaging: Deploy a minimal test package and invoke the configured handler while checking import resolution. It is not direct evidence for: A release declares success despite a failing 10-percent canary because no CloudWatch alarm is attached.
Question 321
An independent QA lead must observe a reproducible before-and-after result with controlled test inputs prior to signing the release. An engineer emits the same metric dimension for every tenant and cannot investigate tenant-specific failures. What test most directly confirms the intended behavior?
- Publish a controlled failure metric and confirm the alarm changes state and the intended SNS subscriber receives it.
- Reproduce a denied test call and identify the principal, attempted API action, resource, and denial context.
- Trigger a safe known error then query its request ID and confirm the exception and affected service appear.
- Send a synthetic failed-checkout metric and confirm its namespace, dimension, and value are queryable.
Explanation
Correct Answer
D:The decisive acceptance evidence is: Send a synthetic failed-checkout metric and confirm its namespace, dimension, and value are queryable. It demonstrates: EMF extracts declared metric values from structured log events to support numerical dashboards and alarms. Scenario: An engineer emits the same metric dimension for every tenant and cannot investigate tenant-specific failures.
Incorrect Answers
A:Option A 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: An engineer emits the same metric dimension for every tenant and cannot investigate tenant-specific failures.
B:Option B is an acceptance test for IAM AccessDenied CloudTrail triage: Reproduce a denied test call and identify the principal, attempted API action, resource, and denial context. It is not direct evidence for: An engineer emits the same metric dimension for every tenant and cannot investigate tenant-specific failures.
C:Option C is an acceptance test for CloudWatch Logs Insights fault search: Trigger a safe known error then query its request ID and confirm the exception and affected service appear. It is not direct evidence for: An engineer emits the same metric dimension for every tenant and cannot investigate tenant-specific failures.
Question 322
An incident review asks which unsafe assumption in an AWS implementation must be prevented. An application stores a plaintext AES key next to encrypted customer objects instead of using a protected data key. Which overlooked failure condition is the central concern?
- Do not assume adding an Authorization header without signing method, path, and payload satisfies SigV4.
- Do not log raw Authorization headers, passwords, or full payment card numbers during error handling.
- Do not send multi-megabyte raw payloads to KMS Encrypt expecting it to replace streaming symmetric encryption.
- Do not include API tokens directly in plaintext Lambda environment exports shared with every developer.
Explanation
Correct Answer
C:Do not send multi-megabyte raw payloads to KMS Encrypt expecting it to replace streaming symmetric encryption. This is significant because KMS GenerateDataKey returns key material and an encrypted key blob; the client uses the plaintext key only transiently for data encryption. Scenario: An application stores a plaintext AES key next to encrypted customer objects instead of using a protected data key.
Incorrect Answers
A:Option A warns about an unrelated failure boundary (SigV4 request signing): Do not assume adding an Authorization header without signing method, path, and payload satisfies SigV4. It is not the key risk in: An application stores a plaintext AES key next to encrypted customer objects instead of using a protected data key.
B:Option B warns about an unrelated failure boundary (PII masking in application logs): Do not log raw Authorization headers, passwords, or full payment card numbers during error handling. It is not the key risk in: An application stores a plaintext AES key next to encrypted customer objects instead of using a protected data key.
D:Option D warns about an unrelated failure boundary (Secrets in Lambda environment variables): Do not include API tokens directly in plaintext Lambda environment exports shared with every developer. It is not the key risk in: An application stores a plaintext AES key next to encrypted customer objects instead of using a protected data key.
Question 323
A staging acceptance reviewer must demonstrate working end-to-end behavior rather than cite a configuration screenshot, using a controlled test before deployment. An image converter runs three times slower with 128 MB despite having spare account concurrency. Which observation is the strongest acceptance evidence?
- Generate representative traffic and compare throttled requests before and after improving key diversity.
- Publish events with different types and verify each queue receives only its matching type.
- Benchmark fixed representative input across several memory configurations and compare p95 duration and unit cost.
- Update a product's price in a test store and confirm the cached result is refreshed within the approved policy.
Explanation
Correct Answer
C:The decisive acceptance evidence is: Benchmark fixed representative input across several memory configurations and compare p95 duration and unit cost. It demonstrates: Memory setting changes the available CPU budget and can reduce billed duration enough to offset its higher per-time cost. Scenario: An image converter runs three times slower with 128 MB despite having spare account concurrency.
Incorrect Answers
A:Option A 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: An image converter runs three times slower with 128 MB despite having spare account concurrency.
B:Option B is an acceptance test for SNS subscription filter policy: Publish events with different types and verify each queue receives only its matching type. It is not direct evidence for: An image converter runs three times slower with 128 MB despite having spare account concurrency.
D:Option D 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: An image converter runs three times slower with 128 MB despite having spare account concurrency.
Question 324
A development team must select an AWS application change. Checkout produces one event that inventory, email, and loyalty systems must process independently. Which implementation best addresses this situation?
- Publish an event to an SNS topic and subscribe the independent SQS queues that each downstream application consumes.
- Use Amazon OpenSearch Service for full-text indexing and relevance search instead of scanning a key-value table for arbitrary phrases.
- Use a strongly consistent read on a supported DynamoDB table or local secondary index when immediate read-after-write is required.
- Use a DynamoDB Query with known partition-key conditions or an appropriate index instead of repeatedly scanning every item.
Explanation
Correct Answer
A:SNS fanout distributes an event to multiple subscribed endpoints without making independent workers compete for one queue message. Apply: Publish an event to an SNS topic and subscribe the independent SQS queues that each downstream application consumes. Acceptance check: Publish one synthetic purchase event and confirm both the email and analytics queues receive their own copies. Scenario: Checkout produces one event that inventory, email, and loyalty systems must process independently.
Incorrect Answers
B:Option B implements a different developer control (OpenSearch text search use case): Use Amazon OpenSearch Service for full-text indexing and relevance search instead of scanning a key-value table for arbitrary phrases. That does not resolve the specific situation: Checkout produces one event that inventory, email, and loyalty systems must process independently.
C:Option C implements a different developer control (DynamoDB strong read consistency): Use a strongly consistent read on a supported DynamoDB table or local secondary index when immediate read-after-write is required. That does not resolve the specific situation: Checkout produces one event that inventory, email, and loyalty systems must process independently.
D:Option D 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: Checkout produces one event that inventory, email, and loyalty systems must process independently.
Question 325
An independent QA lead must observe a reproducible before-and-after result with controlled test inputs prior to signing the release. A developer requests ConsistentRead on a GSI and assumes it guarantees the newest indexed view. What test most directly confirms the intended behavior?
- Write a test item then issue a strong GetItem and confirm the returned version matches the latest commit.
- Create a safe expired test item and check application filtering independently of background item deletion.
- Deploy test and production aliases and verify each reads the intended nonsecret endpoint configuration.
- Inject one bad Kinesis event and confirm bounded retry behavior, checkpoint position, and failure destination evidence.
Explanation
Correct Answer
A:The decisive acceptance evidence is: Write a test item then issue a strong GetItem and confirm the returned version matches the latest commit. It demonstrates: Eventually consistent reads can temporarily return stale data, while supported strong reads trade capacity for freshness. Scenario: A developer requests ConsistentRead on a GSI and assumes it guarantees the newest indexed view.
Incorrect Answers
B:Option B is an acceptance test for DynamoDB TTL asynchronous deletion: Create a safe expired test item and check application filtering independently of background item deletion. It is not direct evidence for: A developer requests ConsistentRead on a GSI and assumes it guarantees the newest indexed view.
C:Option C is an acceptance test for Lambda environment configuration: Deploy test and production aliases and verify each reads the intended nonsecret endpoint configuration. It is not direct evidence for: A developer requests ConsistentRead on a GSI and assumes it guarantees the newest indexed view.
D:Option D is an acceptance test for Lambda stream checkpoint retries: Inject one bad Kinesis event and confirm bounded retry behavior, checkpoint position, and failure destination evidence. It is not direct evidence for: A developer requests ConsistentRead on a GSI and assumes it guarantees the newest indexed view.
Question 326
An engineering reviewer is evaluating service behavior and authorization boundaries. A help-desk API returns complete personal identifiers to any authenticated agent though only partial IDs are necessary. Which mechanism explains the appropriate design decision?
- Client-side encryption protects content before transfer, unlike server-side encryption performed after storage receives the object.
- Identity claims determine tenant authorization independently of which resource key a user guesses or sends in a URL.
- KMS GenerateDataKey returns key material and an encrypted key blob; the client uses the plaintext key only transiently for data encryption.
- The response serializer can enforce an allowlist for sensitive fields after identity and authorization checks.
Explanation
Correct Answer
D:The response serializer can enforce an allowlist for sensitive fields after identity and authorization checks. This is the operating principle for Sensitive data classification before API responses. Validation: Call the same endpoint with a support role and customer role and assert restricted fields are absent from the lesser role's payload. Scenario: A help-desk API returns complete personal identifiers to any authenticated agent though only partial IDs are necessary.
Incorrect Answers
A:Option A explains Client-side versus server-side encryption boundary rather than this issue: Client-side encryption protects content before transfer, unlike server-side encryption performed after storage receives the object. It does not explain: A help-desk API returns complete personal identifiers to any authenticated agent though only partial IDs are necessary.
B:Option B explains Multi-tenant partitioning guard rather than this issue: Identity claims determine tenant authorization independently of which resource key a user guesses or sends in a URL. It does not explain: A help-desk API returns complete personal identifiers to any authenticated agent though only partial IDs are necessary.
C:Option C explains KMS envelope encryption pattern rather than this issue: KMS GenerateDataKey returns key material and an encrypted key blob; the client uses the plaintext key only transiently for data encryption. It does not explain: A help-desk API returns complete personal identifiers to any authenticated agent though only partial IDs are necessary.
Question 327
An AWS developer is reviewing the next application release. A chat app uses one global room key for all messages and scales table throughput without fixing hot writes. Which technical change most directly meets the requirement?
- Serialize application objects with explicit schema, numeric types, and timestamp handling before writing to a data store.
- Choose a DynamoDB partition key with sufficient cardinality to distribute expected workload and access patterns.
- Use a strongly consistent read on a supported DynamoDB table or local secondary index when immediate read-after-write is required.
- Choose Kinesis partition keys to preserve per-entity event order while distributing unrelated entities across shards.
Explanation
Correct Answer
B:A narrow or concentrated partition key can create hot partitions and throttling even when table capacity is sufficient. Apply: Choose a DynamoDB partition key with sufficient cardinality to distribute expected workload and access patterns. Acceptance check: Load test a representative key distribution and inspect throttling by partition-key pattern. Scenario: A chat app uses one global room key for all messages and scales table throughput without fixing hot writes.
Incorrect Answers
A:Option A implements a different developer control (Application-level JSON serialization): Serialize application objects with explicit schema, numeric types, and timestamp handling before writing to a data store. That does not resolve the specific situation: A chat app uses one global room key for all messages and scales table throughput without fixing hot writes.
C:Option C implements a different developer control (DynamoDB strong read consistency): Use a strongly consistent read on a supported DynamoDB table or local secondary index when immediate read-after-write is required. That does not resolve the specific situation: A chat app uses one global room key for all messages and scales table throughput without fixing hot writes.
D:Option D 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 chat app uses one global room key for all messages and scales table throughput without fixing hot writes.
Question 328
A cloud developer must explain the mechanism behind a proposed solution. A rewards transfer debits one wallet but crashes before crediting the recipient. Which technical explanation correctly accounts for the solution?
- Kinesis Data Streams orders records within a shard; a partition key controls how related records are grouped.
- The SDK can report throttling, transient failures, and permanent access denials that require different client behavior.
- A DynamoDB transaction commits the supported grouped writes together or rejects the entire operation.
- Many List operations return partial pages and a next token; stopping at the first response produces silent omissions.
Explanation
Correct Answer
C:A DynamoDB transaction commits the supported grouped writes together or rejects the entire operation. This is the operating principle for DynamoDB transaction writes. Validation: Cause one conditional action to fail and confirm that none of the transaction's item updates persist. Scenario: A rewards transfer debits one wallet but crashes before crediting the recipient.
Incorrect Answers
A:Option A explains Kinesis per-shard ordering rather than this issue: Kinesis Data Streams orders records within a shard; a partition key controls how related records are grouped. It does not explain: A rewards transfer debits one wallet but crashes before crediting the recipient.
B:Option B explains AWS SDK service exception handling rather than this issue: The SDK can report throttling, transient failures, and permanent access denials that require different client behavior. It does not explain: A rewards transfer debits one wallet but crashes before crediting the recipient.
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: A rewards transfer debits one wallet but crashes before crediting the recipient.
Question 329
A production readiness review identifies a potential software defect. An orders table is keyed by orderId but support must list recent orders by customerId. Which implementation risk must be rejected first?
- Do not repeatedly skip failed stream events without a recovery plan or assume a failed batch cannot delay later records.
- Do not expect a new GSI to provide immediate strongly consistent query results or arbitrary filters for free.
- Do not bundle database passwords in a source repository or print decrypted Lambda environment values to logs.
- Do not implement the entire filter only after a costly function cold start when event-source mapping supports it.
Explanation
Correct Answer
B:Do not expect a new GSI to provide immediate strongly consistent query results or arbitrary filters for free. This is significant because A GSI exposes an alternate partition and optional sort key, with asynchronous index propagation and separate capacity impacts. Scenario: An orders table is keyed by orderId but support must list recent orders by customerId.
Incorrect Answers
A:Option A warns about an unrelated failure boundary (Lambda stream checkpoint retries): Do not repeatedly skip failed stream events without a recovery plan or assume a failed batch cannot delay later records. It is not the key risk in: An orders table is keyed by orderId but support must list recent orders by customerId.
C:Option C warns about an unrelated failure boundary (Lambda environment configuration): Do not bundle database passwords in a source repository or print decrypted Lambda environment values to logs. It is not the key risk in: An orders table is keyed by orderId but support must list recent orders by customerId.
D:Option D warns about an unrelated failure boundary (Lambda event filtering): Do not implement the entire filter only after a costly function cold start when event-source mapping supports it. It is not the key risk in: An orders table is keyed by orderId but support must list recent orders by customerId.
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.