AWS Certified Developer - Associate DVA-C02 Practice Test 6
Question 50
An independent QA lead must observe a reproducible before-and-after result with controlled test inputs prior to signing the release. A developer cannot reproduce a customer validation failure because they only test via the production API gateway. What test most directly confirms the intended behavior?
- Invoke staging and production URLs and confirm each reaches the configured function version or alias.
- Run a fixture representing missing and valid fields and assert deterministic output and error handling.
- Generate tests for a pure function, inject an invalid input, and confirm the resulting assertion catches the bug.
- Enable a test flag only in staging and confirm production's flag stays unchanged during rollback.
Explanation
Correct Answer
B:The decisive acceptance evidence is: Run a fixture representing missing and valid fields and assert deterministic output and error handling. It demonstrates: Local event fixtures and mocks validate code behavior without needing access to production services. Scenario: A developer cannot reproduce a customer validation failure because they only test via the production API gateway.
Incorrect Answers
A:Option A is an acceptance test for API Gateway stage variables and versions: Invoke staging and production URLs and confirm each reaches the configured function version or alias. It is not direct evidence for: A developer cannot reproduce a customer validation failure because they only test via the production API gateway.
C:Option C is an acceptance test for Q Developer generated tests verification: Generate tests for a pure function, inject an invalid input, and confirm the resulting assertion catches the bug. It is not direct evidence for: A developer cannot reproduce a customer validation failure because they only test via the production API gateway.
D:Option D is an acceptance test for AppConfig environment feature flags: Enable a test flag only in staging and confirm production's flag stays unchanged during rollback. It is not direct evidence for: A developer cannot reproduce a customer validation failure because they only test via the production API gateway.
Question 51
A cloud developer must explain the mechanism behind a proposed solution. A fulfillment service receives both provisional and paid-order events, but only paid orders should reserve stock. Which technical explanation correctly accounts for the solution?
- SNS fanout distributes an event to multiple subscribed endpoints without making independent workers compete for one queue message.
- EventBridge evaluates structured event fields before dispatching to a selected target, unlike a time-based scheduler.
- Caching reduces repeated backend reads but creates a freshness boundary determined by expiration and explicit invalidation.
- Reserved concurrency sets a function-level execution ceiling, protecting a constrained target from fanout spikes.
Explanation
Correct Answer
B:EventBridge evaluates structured event fields before dispatching to a selected target, unlike a time-based scheduler. This is the operating principle for EventBridge content-based routing. Validation: Publish approved and rejected sample order events and confirm only approved events invoke the consumer. Scenario: A fulfillment service receives both provisional and paid-order events, but only paid orders should reserve stock.
Incorrect Answers
A:Option A explains SNS topic fanout rather than this issue: SNS fanout distributes an event to multiple subscribed endpoints without making independent workers compete for one queue message. It does not explain: A fulfillment service receives both provisional and paid-order events, but only paid orders should reserve stock.
C:Option C explains ElastiCache read-through cache rather than this issue: Caching reduces repeated backend reads but creates a freshness boundary determined by expiration and explicit invalidation. It does not explain: A fulfillment service receives both provisional and paid-order events, but only paid orders should reserve stock.
D:Option D explains Lambda reserved concurrency rather than this issue: Reserved concurrency sets a function-level execution ceiling, protecting a constrained target from fanout spikes. It does not explain: A fulfillment service receives both provisional and paid-order events, but only paid orders should reserve stock.
Question 52
An incident review asks which unsafe assumption in an AWS implementation must be prevented. An order worker must update one DynamoDB table yet its policy also permits deleting unrelated tables. Which overlooked failure condition is the central concern?
- Do not grant access merely because a token's JSON payload looks syntactically valid without verifying its signature and claims.
- Do not store IAM user secret keys inside a Lambda deployment package or public client application.
- Do not grant an entire service wildcard when the application only needs one table or object prefix.
- Do not delete a KMS key immediately after rotation while historical encrypted data still requires its key.
Explanation
Correct Answer
C:Do not grant an entire service wildcard when the application only needs one table or object prefix. This is significant because IAM policy evaluation combines requested actions, resources, conditions, and explicit denies for each API call. Scenario: An order worker must update one DynamoDB table yet its policy also permits deleting unrelated tables.
Incorrect Answers
A:Option A warns about an unrelated failure boundary (Cognito user-pool login tokens): Do not grant access merely because a token's JSON payload looks syntactically valid without verifying its signature and claims. It is not the key risk in: An order worker must update one DynamoDB table yet its policy also permits deleting unrelated tables.
B:Option B warns about an unrelated failure boundary (IAM assumed role for workload): Do not store IAM user secret keys inside a Lambda deployment package or public client application. It is not the key risk in: An order worker must update one DynamoDB table yet its policy also permits deleting unrelated tables.
D:Option D warns about an unrelated failure boundary (KMS rotation and encrypted data continuity): Do not delete a KMS key immediately after rotation while historical encrypted data still requires its key. It is not the key risk in: An order worker must update one DynamoDB table yet its policy also permits deleting unrelated tables.
Question 53
An AWS developer is reviewing the next application release. An S3 write fails in one account because the assumed role is missing a resource permission despite a healthy network path. Which technical change most directly meets the requirement?
- Correlate a failed AWS API call with CloudTrail event fields and IAM evaluation to locate missing action or resource authorization.
- Use a CloudWatch Logs Insights query with correlated request IDs and error filters to find the failing application invocation.
- Inspect source queue receive counts and dead-letter queue payloads to identify repeatedly failing consumer messages.
- Inspect Lambda runtime initialization and execution logs to distinguish dependency import failures from configured timeouts.
Explanation
Correct Answer
A:AccessDenied often reflects the precise action, resource, and policy boundary rather than an application coding syntax error. Apply: Correlate a failed AWS API call with CloudTrail event fields and IAM evaluation to locate missing action or resource authorization. Acceptance check: Reproduce a denied test call and identify the principal, attempted API action, resource, and denial context. Scenario: An S3 write fails in one account because the assumed role is missing a resource permission despite a healthy network path.
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: An S3 write fails in one account because the assumed role is missing a resource permission despite a healthy network path.
C:Option C implements a different developer control (SQS DLQ and receive-count troubleshooting): Inspect source queue receive counts and dead-letter queue payloads to identify repeatedly failing consumer messages. That does not resolve the specific situation: An S3 write fails in one account because the assumed role is missing a resource permission despite a healthy network path.
D:Option D 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 S3 write fails in one account because the assumed role is missing a resource permission despite a healthy network path.
Question 54
A cloud developer must explain the mechanism behind a proposed solution. QA signs off one Lambda build while the production API aliases an older function version. Which technical explanation correctly accounts for the solution?
- A source-stage revision ties pipeline execution to the exact code and branch used in that release.
- A version is immutable and an alias identifies which reviewed version receives traffic for the environment.
- Tags can move, whereas a digest identifies specific image content that can be validated across environments.
- AI-assisted test generation can reveal omitted cases but generated assertions and mocks must be inspected for false confidence.
Explanation
Correct Answer
B:A version is immutable and an alias identifies which reviewed version receives traffic for the environment. This is the operating principle for Lambda aliases for versioned test routing. Validation: Publish two versions and verify the staging alias routes to the expected one without modifying production. Scenario: QA signs off one Lambda build while the production API aliases an older function version.
Incorrect Answers
A:Option A explains CodePipeline source change trigger rather than this issue: A source-stage revision ties pipeline execution to the exact code and branch used in that release. It does not explain: QA signs off one Lambda build while the production API aliases an older function version.
C:Option C explains ECR image digest deployment rather than this issue: Tags can move, whereas a digest identifies specific image content that can be validated across environments. It does not explain: QA signs off one Lambda build while the production API aliases an older function version.
D:Option D 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: QA signs off one Lambda build while the production API aliases an older function version.
Question 55
A staging acceptance reviewer must demonstrate working end-to-end behavior rather than cite a configuration screenshot, using a controlled test before deployment. A new Lambda deployment returns errors instantly with Runtime.ImportModuleError even before receiving a business payload. Which observation is the strongest acceptance evidence?
- Publish a controlled failure metric and confirm the alarm changes state and the intended SNS subscriber receives it.
- Generate an error request and query by correlation ID while verifying PII and tokens were removed.
- Request two localized response variants and verify correct cache behavior and cache-hit improvements.
- Reproduce a missing-layer import fault and a slow handler separately and compare logged phase and error signatures.
Explanation
Correct Answer
D:The decisive acceptance evidence is: Reproduce a missing-layer import fault and a slow handler separately and compare logged phase and error signatures. It demonstrates: An INIT or import failure occurs before handler work; a handler timeout occurs after execution exceeds the configured duration. Scenario: A new Lambda deployment returns errors instantly with Runtime.ImportModuleError even before receiving a business payload.
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: A new Lambda deployment returns errors instantly with Runtime.ImportModuleError even before receiving a business payload.
B:Option B is an acceptance test for Structured JSON application logging: Generate an error request and query by correlation ID while verifying PII and tokens were removed. It is not direct evidence for: A new Lambda deployment returns errors instantly with Runtime.ImportModuleError even before receiving a business payload.
C:Option C is an acceptance test for CloudFront caching by request headers: Request two localized response variants and verify correct cache behavior and cache-hit improvements. It is not direct evidence for: A new Lambda deployment returns errors instantly with Runtime.ImportModuleError even before receiving a business payload.
Question 56
An engineering reviewer is evaluating service behavior and authorization boundaries. A tenant administrator can edit another organization's profile after changing a hidden form field. Which mechanism explains the appropriate design decision?
- Integrated state machine tasks use the state-machine execution role, independently from a Lambda task's own IAM role.
- 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.
- Secret versions can rotate independently of a code deployment, while clients must handle cached credential updates.
Explanation
Correct Answer
C:Identity claims determine tenant authorization independently of which resource key a user guesses or sends in a URL. This is the operating principle for Multi-tenant partitioning guard. Validation: Request another tenant's document using a forged URL parameter and confirm it is rejected before data retrieval. Scenario: A tenant administrator can edit another organization's profile after changing a hidden form field.
Incorrect Answers
A:Option A explains Cross-service execution role in Step Functions rather than this issue: Integrated state machine tasks use the state-machine execution role, independently from a Lambda task's own IAM role. It does not explain: A tenant administrator can edit another organization's profile after changing a hidden form field.
B:Option B 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 tenant administrator can edit another organization's profile after changing a hidden form field.
D:Option D 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: A tenant administrator can edit another organization's profile after changing a hidden form field.
Question 57
A staging acceptance reviewer must demonstrate working end-to-end behavior rather than cite a configuration screenshot, using a controlled test before deployment. A deployment Lambda fails with AccessDenied on PutParameter after a permission boundary change. Which observation is the strongest acceptance evidence?
- Reproduce a denied test call and identify the principal, attempted API action, resource, and denial context.
- Benchmark fixed representative input across several memory configurations and compare p95 duration and unit cost.
- Invoke a malformed request and a forced Lambda error and verify status, request ID, and integration log differences.
- Send a synthetic failed-checkout metric and confirm its namespace, dimension, and value are queryable.
Explanation
Correct Answer
A:The decisive acceptance evidence is: Reproduce a denied test call and identify the principal, attempted API action, resource, and denial context. It demonstrates: AccessDenied often reflects the precise action, resource, and policy boundary rather than an application coding syntax error. Scenario: A deployment Lambda fails with AccessDenied on PutParameter after a permission boundary change.
Incorrect Answers
B:Option B is an acceptance test for Lambda performance memory cost tuning: Benchmark fixed representative input across several memory configurations and compare p95 duration and unit cost. It is not direct evidence for: A deployment Lambda fails with AccessDenied on PutParameter after a permission boundary change.
C:Option C is an acceptance test for API Gateway 4xx versus 5xx root cause: Invoke a malformed request and a forced Lambda error and verify status, request ID, and integration log differences. It is not direct evidence for: A deployment Lambda fails with AccessDenied on PutParameter after a permission boundary change.
D:Option D is an acceptance test for CloudWatch embedded metric format: Send a synthetic failed-checkout metric and confirm its namespace, dimension, and value are queryable. It is not direct evidence for: A deployment Lambda fails with AccessDenied on PutParameter after a permission boundary change.
Question 58
An independent QA lead must observe a reproducible before-and-after result with controlled test inputs prior to signing the release. Developers accidentally enable a beta checkout feature for all customers because staging and production share one config profile. What test most directly confirms the intended behavior?
- Deploy a representative load test with the proposed runtime limits and inspect memory and CPU saturation.
- Deploy a minimal test package and invoke the configured handler while checking import resolution.
- Enable a test flag only in staging and confirm production's flag stays unchanged during rollback.
- Return simulated 200, 429, and timeout responses from a test service and verify the application's resulting state.
Explanation
Correct Answer
C:The decisive acceptance evidence is: Enable a test flag only in staging and confirm production's flag stays unchanged during rollback. It demonstrates: AppConfig separates runtime configuration and progressive rollout from application binary releases. Scenario: Developers accidentally enable a beta checkout feature for all customers because staging and production share one config profile.
Incorrect Answers
A:Option A is an acceptance test for Application deployment memory sizing: Deploy a representative load test with the proposed runtime limits and inspect memory and CPU saturation. It is not direct evidence for: Developers accidentally enable a beta checkout feature for all customers because staging and production share one config profile.
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: Developers accidentally enable a beta checkout feature for all customers because staging and production share one config profile.
D:Option D is an acceptance test for Integration test API dependency contract: Return simulated 200, 429, and timeout responses from a test service and verify the application's resulting state. It is not direct evidence for: Developers accidentally enable a beta checkout feature for all customers because staging and production share one config profile.
Question 59
An independent QA lead must observe a reproducible before-and-after result with controlled test inputs prior to signing the release. A deployment deletes the existing healthy task set before verifying its replacement accepts requests. What test most directly confirms the intended behavior?
- Deliberately break a test and confirm the build fails before any deployment stage starts.
- Generate a test change set and verify an intended safe update does not replace the production database.
- Send a controlled duplicate event and a bad record and verify idempotent state and planned retry behavior.
- Induce a failing readiness test in the new environment and verify routing returns to the previous one.
Explanation
Correct Answer
D:The decisive acceptance evidence is: Induce a failing readiness test in the new environment and verify routing returns to the previous one. It demonstrates: Blue-green release keeps a known environment available while traffic moves to the tested replacement. Scenario: A deployment deletes the existing healthy task set before verifying its replacement accepts requests.
Incorrect Answers
A:Option A is an acceptance test for CodeBuild integration test environment: Deliberately break a test and confirm the build fails before any deployment stage starts. It is not direct evidence for: A deployment deletes the existing healthy task set before verifying its replacement accepts requests.
B:Option B is an acceptance test for SAM and CloudFormation change set review: Generate a test change set and verify an intended safe update does not replace the production database. It is not direct evidence for: A deployment deletes the existing healthy task set before verifying its replacement accepts requests.
C:Option C is an acceptance test for Event-driven integration test cases: Send a controlled duplicate event and a bad record and verify idempotent state and planned retry behavior. It is not direct evidence for: A deployment deletes the existing healthy task set before verifying its replacement accepts requests.
Question 60
A cloud developer must explain the mechanism behind a proposed solution. A JSON transformation Lambda runs slowly with memory available but CPU-constrained execution. Which technical explanation correctly accounts for the solution?
- An inverted text index supports term queries and relevance that primary-key lookups alone cannot provide.
- Runtime compatibility and dependency versions affect import paths and initialization; a layer must match the running function.
- A proxy integration expects a defined response envelope; a plain object or inappropriate body type can cause gateway errors.
- Lambda memory allocation also changes available CPU resources, so larger memory may lower duration at acceptable cost.
Explanation
Correct Answer
D:Lambda memory allocation also changes available CPU resources, so larger memory may lower duration at acceptable cost. This is the operating principle for Lambda power tuning. Validation: Compare duration, memory usage, and invocation cost for two sizes using the same representative workload. Scenario: A JSON transformation Lambda runs slowly with memory available but CPU-constrained execution.
Incorrect Answers
A:Option A explains OpenSearch text search use case rather than this issue: An inverted text index supports term queries and relevance that primary-key lookups alone cannot provide. It does not explain: A JSON transformation Lambda runs slowly with memory available but CPU-constrained execution.
B:Option B explains Lambda layers and runtime dependency packaging rather than this issue: Runtime compatibility and dependency versions affect import paths and initialization; a layer must match the running function. It does not explain: A JSON transformation Lambda runs slowly with memory available but CPU-constrained execution.
C:Option C explains API Gateway Lambda proxy response format rather than this issue: A proxy integration expects a defined response envelope; a plain object or inappropriate body type can cause gateway errors. It does not explain: A JSON transformation Lambda runs slowly with memory available but CPU-constrained execution.