AWS Certified Developer - Associate DVA-C02 Practice Test 2
Question 10
A cloud developer must explain the mechanism behind a proposed solution. An audit queue receives every marketing promotion event although it needs only access-policy changes. Which technical explanation correctly accounts for the solution?
- AccessDenied often reflects the precise action, resource, and policy boundary rather than an application coding syntax error.
- An INIT or import failure occurs before handler work; a handler timeout occurs after execution exceeds the configured duration.
- Indexed annotations support filtering traces by defined key-value pairs while metadata can hold less indexed detail.
- Subscription filtering reduces irrelevant deliveries and downstream processing while preserving intended event fanout.
Explanation
Correct Answer
D:Subscription filtering reduces irrelevant deliveries and downstream processing while preserving intended event fanout. This is the operating principle for SNS subscription filter policy. Validation: 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 explains IAM AccessDenied CloudTrail triage rather than this issue: AccessDenied often reflects the precise action, resource, and policy boundary rather than an application coding syntax error. It does not explain: An audit queue receives every marketing promotion event although it needs only access-policy changes.
B:Option B explains Lambda timeout and init error diagnosis rather than this issue: An INIT or import failure occurs before handler work; a handler timeout occurs after execution exceeds the configured duration. It does not explain: An audit queue receives every marketing promotion event although it needs only access-policy changes.
C:Option C explains X-Ray trace annotations rather than this issue: Indexed annotations support filtering traces by defined key-value pairs while metadata can hold less indexed detail. It does not explain: An audit queue receives every marketing promotion event although it needs only access-policy changes.
Question 11
A staging acceptance reviewer must demonstrate working end-to-end behavior rather than cite a configuration screenshot, using a controlled test before deployment. An ECS deployment unexpectedly picks up a new library because the image always uses latest as its tag. Which observation is the strongest acceptance evidence?
- Replay known API and SQS test events and compare structured outputs and failure handling to expected values.
- Deploy a minimal test package and invoke the configured handler while checking import resolution.
- Publish two versions and verify the staging alias routes to the expected one without modifying production.
- Build a test image, inspect its digest, and deploy that exact digest to staging before production promotion.
Explanation
Correct Answer
D:The decisive acceptance evidence is: Build a test image, inspect its digest, and deploy that exact digest to staging before production promotion. It demonstrates: Immutable image tags or digests help ensure test and production run exactly the reviewed code and package versions. Scenario: An ECS deployment unexpectedly picks up a new library because the image always uses latest as its tag.
Incorrect Answers
A:Option A is an acceptance test for Test Lambda JSON event fixture: Replay known API and SQS test events and compare structured outputs and failure handling to expected values. It is not direct evidence for: An ECS deployment unexpectedly picks up a new library because the image always uses latest as its tag.
B:Option B 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: An ECS deployment unexpectedly picks up a new library because the image always uses latest as its tag.
C:Option C 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: An ECS deployment unexpectedly picks up a new library because the image always uses latest as its tag.
Question 12
An engineering reviewer is evaluating service behavior and authorization boundaries. A release modifies a Lambda role trust policy and operators need to inspect the authorization impact first. Which mechanism explains the appropriate design decision?
- Integration tests check how components interact through the expected API contract, including timeouts and malformed responses.
- A pipeline approval action prevents production promotion until a permitted reviewer approves the exact tested revision.
- AI-assisted test generation can reveal omitted cases but generated assertions and mocks must be inspected for false confidence.
- Change sets preview the proposed resource operations, including destructive replacements and IAM changes.
Explanation
Correct Answer
D:Change sets preview the proposed resource operations, including destructive replacements and IAM changes. This is the operating principle for SAM and CloudFormation change set review. Validation: 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 explains Integration test API dependency contract rather than this issue: Integration tests check how components interact through the expected API contract, including timeouts and malformed responses. It does not explain: A release modifies a Lambda role trust policy and operators need to inspect the authorization impact first.
B:Option B explains CodePipeline cross-stage approval rather than this issue: A pipeline approval action prevents production promotion until a permitted reviewer approves the exact tested revision. It does not explain: A release modifies a Lambda role trust policy and operators need to inspect the authorization impact first.
C:Option C explains Q Developer generated tests verification rather than this issue: AI-assisted test generation can reveal omitted cases but generated assertions and mocks must be inspected for false confidence. It does not explain: A release modifies a Lambda role trust policy and operators need to inspect the authorization impact first.
Question 13
A cloud developer must explain the mechanism behind a proposed solution. A high-traffic API creates runaway trace costs when recording every request and user payload. Which technical explanation correctly accounts for the solution?
- Readiness checks prevent premature serving; liveness checks indicate whether the process should be restarted.
- Structured log fields and time filters let engineers isolate relevant exceptions rather than searching every log line manually.
- Sampling limits tracing volume while secure context propagation and data minimization preserve observability integrity.
- An INIT or import failure occurs before handler work; a handler timeout occurs after execution exceeds the configured duration.
Explanation
Correct Answer
C:Sampling limits tracing volume while secure context propagation and data minimization preserve observability integrity. This is the operating principle for App-level trace sampling and privacy. Validation: 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
A:Option A explains Readiness versus liveness health checks rather than this issue: Readiness checks prevent premature serving; liveness checks indicate whether the process should be restarted. It does not explain: A high-traffic API creates runaway trace costs when recording every request and user payload.
B:Option B explains CloudWatch Logs Insights fault search rather than this issue: Structured log fields and time filters let engineers isolate relevant exceptions rather than searching every log line manually. It does not explain: A high-traffic API creates runaway trace costs when recording every request and user payload.
D:Option D explains Lambda timeout and init error diagnosis rather than this issue: An INIT or import failure occurs before handler work; a handler timeout occurs after execution exceeds the configured duration. It does not explain: A high-traffic API creates runaway trace costs when recording every request and user payload.
Question 14
An AWS developer is reviewing the next application release. A feature setting is changed directly in production without staged validation and remains broken after errors spike. Which technical change most directly meets the requirement?
- Route staging integration tests to a specific published Lambda version by using a named alias.
- Use AppConfig deployment strategies and monitoring alarms to roll out a feature flag progressively and roll it back on errors.
- Configure CodeBuild with the required runtime, minimal IAM access, and commands to run unit and integration tests on the intended revision.
- Use AWS SAM-supported local invocations and mocked external dependencies for repeatable Lambda unit tests.
Explanation
Correct Answer
B:AppConfig can change runtime configuration separately from packaged code and use monitored rollout/rollback controls. Apply: Use AppConfig deployment strategies and monitoring alarms to roll out a feature flag progressively and roll it back on errors. Acceptance check: Publish a staging configuration with a forced alarm and verify rollback restores the former configuration version. Scenario: A feature setting is changed directly in production without staged validation and remains broken after errors spike.
Incorrect Answers
A:Option A implements a different developer control (Lambda aliases for versioned test routing): Route staging integration tests to a specific published Lambda version by using a named alias. That does not resolve the specific situation: A feature setting is changed directly in production without staged validation and remains broken after errors spike.
C:Option C implements a different developer control (CodeBuild integration test environment): Configure CodeBuild with the required runtime, minimal IAM access, and commands to run unit and integration tests on the intended revision. That does not resolve the specific situation: A feature setting is changed directly in production without staged validation and remains broken after errors spike.
D:Option D implements a different developer control (SAM local unit tests and mocks): Use AWS SAM-supported local invocations and mocked external dependencies for repeatable Lambda unit tests. That does not resolve the specific situation: A feature setting is changed directly in production without staged validation and remains broken after errors spike.
Question 15
A production readiness review identifies a potential software defect. A fulfillment service receives both provisional and paid-order events, but only paid orders should reserve stock. Which implementation risk must be rejected first?
- Do not use one shared SQS queue when independent consumers must each receive every event.
- Do not retry malformed requests indefinitely or synchronize thousands of clients into a retry storm.
- Do not choose the smallest Lambda memory solely for low per-millisecond memory price without measuring duration.
- Do not use a broad catch-all rule that processes cancelled and draft orders as fulfilled orders.
Explanation
Correct Answer
D:Do not use a broad catch-all rule that processes cancelled and draft orders as fulfilled orders. This is significant because EventBridge evaluates structured event fields before dispatching to a selected target, unlike a time-based scheduler. Scenario: A fulfillment service receives both provisional and paid-order events, but only paid orders should reserve stock.
Incorrect Answers
A:Option A warns about an unrelated failure boundary (SNS topic fanout): Do not use one shared SQS queue when independent consumers must each receive every event. It is not the key risk in: A fulfillment service receives both provisional and paid-order events, but only paid orders should reserve stock.
B:Option B warns about an unrelated failure boundary (Third-party API retries with jitter): Do not retry malformed requests indefinitely or synchronize thousands of clients into a retry storm. It is not the key risk in: A fulfillment service receives both provisional and paid-order events, but only paid orders should reserve stock.
C:Option C warns about an unrelated failure boundary (Lambda power tuning): Do not choose the smallest Lambda memory solely for low per-millisecond memory price without measuring duration. It is not the key risk in: A fulfillment service receives both provisional and paid-order events, but only paid orders should reserve stock.
Question 16
A staging acceptance reviewer must demonstrate working end-to-end behavior rather than cite a configuration screenshot, using a controlled test before deployment. A public checkout API accepts requests without a required product ID and invokes Lambda before failing. Which observation is the strongest acceptance evidence?
- Update a catalog price and verify clients see the new value after the correct invalidation or TTL rule.
- Generate a harmless unit-test helper and run lint, tests, and a human diff review prior to deployment.
- Compare duration, memory usage, and invocation cost for two sizes using the same representative workload.
- Send malformed and valid API calls and confirm only conforming requests reach the target Lambda.
Explanation
Correct Answer
D:The decisive acceptance evidence is: Send malformed and valid API calls and confirm only conforming requests reach the target Lambda. It demonstrates: Validation at the API boundary can reject missing required fields and unsuitable request shapes before backend code runs. Scenario: A public checkout API accepts requests without a required product ID and invokes Lambda before failing.
Incorrect Answers
A:Option A is an acceptance test for ElastiCache read-through cache: Update a catalog price and verify clients see the new value after the correct invalidation or TTL rule. It is not direct evidence for: A public checkout API accepts requests without a required product ID and invokes Lambda before failing.
B:Option B 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 public checkout API accepts requests without a required product ID and invokes Lambda before failing.
C:Option C 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 public checkout API accepts requests without a required product ID and invokes Lambda before failing.
Question 17
A staging acceptance reviewer must demonstrate working end-to-end behavior rather than cite a configuration screenshot, using a controlled test before deployment. An API custom domain returns certificate-name errors after deploying a wildcard for the wrong parent domain. Which observation is the strongest acceptance evidence?
- Run permitted and denied test operations against sibling resources to verify scope boundaries.
- Scan a sample deployment artifact and prove no plaintext secret keys remain while authorized decryption still works.
- Connect to the configured custom domain and inspect hostname matching, chain trust, and expected renewal state.
- Attach an excessive policy to a bounded test role and show a forbidden action is still denied.
Explanation
Correct Answer
C:The decisive acceptance evidence is: Connect to the configured custom domain and inspect hostname matching, chain trust, and expected renewal state. It demonstrates: A TLS certificate's domain names and issuance or region constraints must match the client-visible service endpoint. Scenario: An API custom domain returns certificate-name errors after deploying a wildcard for the wrong parent domain.
Incorrect Answers
A:Option A 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: An API custom domain returns certificate-name errors after deploying a wildcard for the wrong parent domain.
B:Option B is an acceptance test for Encryption key in application config: Scan a sample deployment artifact and prove no plaintext secret keys remain while authorized decryption still works. It is not direct evidence for: An API custom domain returns certificate-name errors after deploying a wildcard for the wrong parent domain.
D:Option D is an acceptance test for IAM permission boundary intersection: Attach an excessive policy to a bounded test role and show a forbidden action is still denied. It is not direct evidence for: An API custom domain returns certificate-name errors after deploying a wildcard for the wrong parent domain.
Question 18
An AWS developer is reviewing the next application release. A nightly maintenance job misses alarms because it discards the NextToken returned by a CloudWatch list API. Which technical change most directly meets the requirement?
- Use the service SDK paginator or continuation token until all result pages have been retrieved.
- Set an SQS visibility timeout aligned with consumer processing and delete messages only after durable successful handling.
- Use DynamoDB TransactWriteItems to apply a small set of related item changes atomically when the transaction limits permit.
- Attach Lambda to appropriate VPC subnets and security groups with verified routes to its private database.
Explanation
Correct Answer
A:Many List operations return partial pages and a next token; stopping at the first response produces silent omissions. Apply: Use the service SDK paginator or continuation token until all result pages have been retrieved. Acceptance check: Compare collected resource IDs against a fixture spanning several result pages including an empty final page. Scenario: A nightly maintenance job misses alarms because it discards the NextToken returned by a CloudWatch list API.
Incorrect Answers
B:Option B implements a different developer control (SQS visibility timeout and retries): Set an SQS visibility timeout aligned with consumer processing and delete messages only after durable successful handling. That does not resolve the specific situation: A nightly maintenance job misses alarms because it discards the NextToken returned by a CloudWatch list API.
C:Option C 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 nightly maintenance job misses alarms because it discards the NextToken returned by a CloudWatch list API.
D:Option D implements a different developer control (Lambda VPC connectivity to private data): Attach Lambda to appropriate VPC subnets and security groups with verified routes to its private database. That does not resolve the specific situation: A nightly maintenance job misses alarms because it discards the NextToken returned by a CloudWatch list API.
Question 19
An independent QA lead must observe a reproducible before-and-after result with controlled test inputs prior to signing the release. A team asks a coding assistant to refactor SDK exception handling but still needs to verify all retry outcomes. 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.
- Send malformed and valid API calls and confirm only conforming requests reach the target Lambda.
- Generate a harmless unit-test helper and run lint, tests, and a human diff review prior to deployment.
Explanation
Correct Answer
D:The decisive acceptance evidence is: Generate a harmless unit-test helper and run lint, tests, and a human diff review prior to deployment. It demonstrates: AI-generated suggestions are proposed source changes, not verified runtime behavior or authorization proof. Scenario: A team asks a coding assistant to refactor SDK exception handling but still needs to verify all retry outcomes.
Incorrect Answers
A:Option A 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 team asks a coding assistant to refactor SDK exception handling but still needs to verify all retry outcomes.
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 team asks a coding assistant to refactor SDK exception handling but still needs to verify all retry outcomes.
C:Option C is an acceptance test for API Gateway request validation: Send malformed and valid API calls and confirm only conforming requests reach the target Lambda. It is not direct evidence for: A team asks a coding assistant to refactor SDK exception handling but still needs to verify all retry outcomes.
Question 20
A staging acceptance reviewer must demonstrate working end-to-end behavior rather than cite a configuration screenshot, using a controlled test before deployment. Checkout produces one event that inventory, email, and loyalty systems must process independently. Which observation is the strongest acceptance evidence?
- Inject one bad Kinesis event and confirm bounded retry behavior, checkpoint position, and failure destination evidence.
- Compare collected resource IDs against a fixture spanning several result pages including an empty final page.
- Create a safe expired test item and check application filtering independently of background item deletion.
- Publish one synthetic purchase event and confirm both the email and analytics queues receive their own copies.
Explanation
Correct Answer
D:The decisive acceptance evidence is: Publish one synthetic purchase event and confirm both the email and analytics queues receive their own copies. It demonstrates: SNS fanout distributes an event to multiple subscribed endpoints without making independent workers compete for one queue message. Scenario: Checkout produces one event that inventory, email, and loyalty systems must process independently.
Incorrect Answers
A:Option A 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: Checkout produces one event that inventory, email, and loyalty systems must process independently.
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: Checkout produces one event that inventory, email, and loyalty systems must process independently.
C:Option C 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: Checkout produces one event that inventory, email, and loyalty systems must process independently.