AWS Certified Developer - Associate DVA-C02 Practice Test 39
Question 380
An independent QA lead must observe a reproducible before-and-after result with controlled test inputs prior to signing the release. Several functions share a helper package but deployments drift because each bundles a different unpinned version. 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.
- Load test a representative key distribution and inspect throttling by partition-key pattern.
- Publish a test layer version, invoke with the exact runtime and CPU architecture, and verify dependencies import.
- Compare duration, memory usage, and invocation cost for two sizes using the same representative workload.
Explanation
Correct Answer
C:The decisive acceptance evidence is: Publish a test layer version, invoke with the exact runtime and CPU architecture, and verify dependencies import. It demonstrates: Runtime compatibility and dependency versions affect import paths and initialization; a layer must match the running function. Scenario: Several functions share a helper package but deployments drift because each bundles a different unpinned version.
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: Several functions share a helper package but deployments drift because each bundles a different unpinned version.
B:Option B is an acceptance test for DynamoDB partition key hot spots: Load test a representative key distribution and inspect throttling by partition-key pattern. It is not direct evidence for: Several functions share a helper package but deployments drift because each bundles a different unpinned version.
D:Option D 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: Several functions share a helper package but deployments drift because each bundles a different unpinned version.
Question 381
An incident review asks which unsafe assumption in an AWS implementation must be prevented. An engineer emits the same metric dimension for every tenant and cannot investigate tenant-specific failures. Which overlooked failure condition is the central concern?
- Do not cache personalized account balances under one shared key that omits the authenticated customer.
- Do not emit only free-form strings with missing request identifiers and full customer payloads.
- Do not write an arbitrary JSON number and assume it becomes a CloudWatch metric without EMF declarations.
- Do not scale a table blindly when most throttles come from one overloaded partition key.
Explanation
Correct Answer
C:Do not write an arbitrary JSON number and assume it becomes a CloudWatch metric without EMF declarations. This is significant because 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 warns about an unrelated failure boundary (API Gateway response caching): Do not cache personalized account balances under one shared key that omits the authenticated customer. It is not the key risk in: An engineer emits the same metric dimension for every tenant and cannot investigate tenant-specific failures.
B:Option B warns about an unrelated failure boundary (Structured JSON application logging): Do not emit only free-form strings with missing request identifiers and full customer payloads. It is not the key risk in: An engineer emits the same metric dimension for every tenant and cannot investigate tenant-specific failures.
D:Option D warns about an unrelated failure boundary (DynamoDB hot partition avoidance): Do not scale a table blindly when most throttles come from one overloaded partition key. It is not the key risk in: An engineer emits the same metric dimension for every tenant and cannot investigate tenant-specific failures.
Question 382
An AWS developer is reviewing the next application release. A developer requests ConsistentRead on a GSI and assumes it guarantees the newest indexed view. Which technical change most directly meets the requirement?
- Use an ElastiCache-backed read-through pattern with bounded TTL and deliberate invalidation for frequently read stable responses.
- Use a DynamoDB conditional update based on the expected item version to prevent overwriting concurrent changes.
- Use a strongly consistent read on a supported DynamoDB table or local secondary index when immediate read-after-write is required.
- Handle S3 object-created notifications through an idempotent processor keyed to the object event or processing state.
Explanation
Correct Answer
C:Eventually consistent reads can temporarily return stale data, while supported strong reads trade capacity for freshness. Apply: Use a strongly consistent read on a supported DynamoDB table or local secondary index when immediate read-after-write is required. Acceptance check: Write a test item then issue a strong GetItem and confirm the returned version matches the latest commit. Scenario: A developer requests ConsistentRead on a GSI and assumes it guarantees the newest indexed view.
Incorrect Answers
A:Option A implements a different developer control (ElastiCache read-through cache): Use an ElastiCache-backed read-through pattern with bounded TTL and deliberate invalidation for frequently read stable responses. That does not resolve the specific situation: A developer requests ConsistentRead on a GSI and assumes it guarantees the newest indexed view.
B:Option B implements a different developer control (DynamoDB conditional writes): Use a DynamoDB conditional update based on the expected item version to prevent overwriting concurrent changes. That does not resolve the specific situation: A developer requests ConsistentRead on a GSI and assumes it guarantees the newest indexed view.
D:Option D implements a different developer control (S3 object events and duplicate handling): Handle S3 object-created notifications through an idempotent processor keyed to the object event or processing state. That does not resolve the specific situation: A developer requests ConsistentRead on a GSI and assumes it guarantees the newest indexed view.
Question 383
An AWS developer is reviewing the next application release. A Python package runs locally but Lambda cannot import a pinned third-party library absent from the deployment artifact. Which technical change most directly meets the requirement?
- Configure a CodePipeline source action to detect approved repository changes and start the proper build and deployment workflow.
- Package Lambda source files and compatible runtime dependencies in the correct ZIP structure or supported deployment layer.
- Use AWS SAM-supported local invocations and mocked external dependencies for repeatable Lambda unit tests.
- Store environment-scoped feature flags in AWS AppConfig and deploy them using a validated application configuration strategy.
Explanation
Correct Answer
B:Lambda ZIP handlers and imported libraries must exist in locations the configured runtime can load at initialization. Apply: Package Lambda source files and compatible runtime dependencies in the correct ZIP structure or supported deployment layer. Acceptance check: Deploy a minimal test package and invoke the configured handler while checking import resolution. Scenario: A Python package runs locally but Lambda cannot import a pinned third-party library absent from the deployment artifact.
Incorrect Answers
A:Option A implements a different developer control (CodePipeline source change trigger): Configure a CodePipeline source action to detect approved repository changes and start the proper build and deployment workflow. That does not resolve the specific situation: A Python package runs locally but Lambda cannot import a pinned third-party library absent from the deployment artifact.
C:Option C 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 Python package runs locally but Lambda cannot import a pinned third-party library absent from the deployment artifact.
D:Option D 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 Python package runs locally but Lambda cannot import a pinned third-party library absent from the deployment artifact.
Question 384
An AWS developer is reviewing the next application release. An integration client handles HTTP 200 but fails after the downstream service returns a partial error payload. Which technical change most directly meets the requirement?
- Configure a CodePipeline source action to detect approved repository changes and start the proper build and deployment workflow.
- Use AppConfig deployment strategies and monitoring alarms to roll out a feature flag progressively and roll it back on errors.
- Deploy a versioned CloudFormation or SAM template to create reproducible integration test resources.
- Use a staging environment with stubbed vendor responses to verify both success and failure branches of an integration.
Explanation
Correct Answer
D:Integration tests check how components interact through the expected API contract, including timeouts and malformed responses. Apply: Use a staging environment with stubbed vendor responses to verify both success and failure branches of an integration. Acceptance check: Return simulated 200, 429, and timeout responses from a test service and verify the application's resulting state. Scenario: An integration client handles HTTP 200 but fails after the downstream service returns a partial error payload.
Incorrect Answers
A:Option A implements a different developer control (CodePipeline source change trigger): Configure a CodePipeline source action to detect approved repository changes and start the proper build and deployment workflow. That does not resolve the specific situation: An integration client handles HTTP 200 but fails after the downstream service returns a partial error payload.
B:Option B implements a different developer control (AppConfig progressive rollout rollback): Use AppConfig deployment strategies and monitoring alarms to roll out a feature flag progressively and roll it back on errors. That does not resolve the specific situation: An integration client handles HTTP 200 but fails after the downstream service returns a partial error payload.
C:Option C implements a different developer control (Deploy test environment with CloudFormation): Deploy a versioned CloudFormation or SAM template to create reproducible integration test resources. That does not resolve the specific situation: An integration client handles HTTP 200 but fails after the downstream service returns a partial error payload.
Question 385
An independent QA lead must observe a reproducible before-and-after result with controlled test inputs prior to signing the release. A release modifies a Lambda role trust policy and operators need to inspect the authorization impact first. What test most directly confirms the intended behavior?
- Enable a test flag only in staging and confirm production's flag stays unchanged during rollback.
- Publish a staging configuration with a forced alarm and verify rollback restores the former configuration version.
- Return simulated 200, 429, and timeout responses from a test service and verify the application's resulting state.
- Generate a test change set and verify an intended safe update does not replace the production database.
Explanation
Correct Answer
D:The decisive acceptance evidence is: Generate a test change set and verify an intended safe update does not replace the production database. It demonstrates: Change sets preview the proposed resource operations, including destructive replacements and IAM changes. Scenario: A release modifies a Lambda role trust policy and operators need to inspect the authorization impact first.
Incorrect Answers
A:Option A 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 release modifies a Lambda role trust policy and operators need to inspect the authorization impact first.
B:Option B is an acceptance test for AppConfig progressive rollout rollback: Publish a staging configuration with a forced alarm and verify rollback restores the former configuration version. It is not direct evidence for: A release modifies a Lambda role trust policy and operators need to inspect the authorization impact first.
C:Option C 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: A release modifies a Lambda role trust policy and operators need to inspect the authorization impact first.
Question 386
An incident review asks which unsafe assumption in an AWS implementation must be prevented. A Python package runs locally but Lambda cannot import a pinned third-party library absent from the deployment artifact. Which overlooked failure condition is the central concern?
- Do not run destructive HTTP tests against the production custom domain because stages were not separated.
- Do not invoke $LATEST from a release gate expecting immutable production behavior.
- Do not ZIP an extra parent directory above the handler file and assume Lambda will locate its entry point.
- Do not reuse a production bucket or KMS key parameter during a disposable integration test stack deployment.
Explanation
Correct Answer
C:Do not ZIP an extra parent directory above the handler file and assume Lambda will locate its entry point. This is significant because Lambda ZIP handlers and imported libraries must exist in locations the configured runtime can load at initialization. Scenario: A Python package runs locally but Lambda cannot import a pinned third-party library absent from the deployment artifact.
Incorrect Answers
A:Option A warns about an unrelated failure boundary (API Gateway staging endpoint verification): Do not run destructive HTTP tests against the production custom domain because stages were not separated. It is not the key risk in: A Python package runs locally but Lambda cannot import a pinned third-party library absent from the deployment artifact.
B:Option B warns about an unrelated failure boundary (Lambda aliases for versioned test routing): Do not invoke $LATEST from a release gate expecting immutable production behavior. It is not the key risk in: A Python package runs locally but Lambda cannot import a pinned third-party library absent from the deployment artifact.
D:Option D warns about an unrelated failure boundary (SAM parameter overrides for staging): Do not reuse a production bucket or KMS key parameter during a disposable integration test stack deployment. It is not the key risk in: A Python package runs locally but Lambda cannot import a pinned third-party library absent from the deployment artifact.
Question 387
An engineering reviewer is evaluating service behavior and authorization boundaries. A service role was granted S3 access yet its KMS key policy was never updated during a migration. Which mechanism explains the appropriate design decision?
- TLS protects data in transit and server-authentication checks prevent connecting to an impostor endpoint.
- KMS authorization evaluates key resource policies and grants alongside caller identity permissions, subject to explicit denies.
- Integrated state machine tasks use the state-machine execution role, independently from a Lambda task's own IAM role.
- 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
B:KMS authorization evaluates key resource policies and grants alongside caller identity permissions, subject to explicit denies. This is the operating principle for KMS key policy and IAM permission. Validation: Assume a test role and verify decrypt fails before authorization and succeeds only after the approved key-access path exists. Scenario: A service role was granted S3 access yet its KMS key policy was never updated during a migration.
Incorrect Answers
A:Option A explains TLS server identity validation rather than this issue: TLS protects data in transit and server-authentication checks prevent connecting to an impostor endpoint. It does not explain: A service role was granted S3 access yet its KMS key policy was never updated during a migration.
C:Option C 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 service role was granted S3 access yet its KMS key policy was never updated during a migration.
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: A service role was granted S3 access yet its KMS key policy was never updated during a migration.
Question 388
A cloud developer must explain the mechanism behind a proposed solution. A product listing performs identical costly lookups thousands of times per minute despite rare updates. Which technical explanation correctly accounts for the solution?
- Runtime compatibility and dependency versions affect import paths and initialization; a layer must match the running function.
- Caching reduces repeated backend reads but creates a freshness boundary determined by expiration and explicit invalidation.
- SNS fanout distributes an event to multiple subscribed endpoints without making independent workers compete for one queue message.
- A state machine preserves workflow state across service calls and makes ordered dependencies and failures observable.
Explanation
Correct Answer
B:Caching reduces repeated backend reads but creates a freshness boundary determined by expiration and explicit invalidation. This is the operating principle for ElastiCache read-through cache. Validation: Update a catalog price and verify clients see the new value after the correct invalidation or TTL rule. Scenario: A product listing performs identical costly lookups thousands of times per minute despite rare updates.
Incorrect Answers
A:Option A 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 product listing performs identical costly lookups thousands of times per minute despite rare updates.
C:Option C 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 product listing performs identical costly lookups thousands of times per minute despite rare updates.
D:Option D explains Step Functions orchestration rather than this issue: A state machine preserves workflow state across service calls and makes ordered dependencies and failures observable. It does not explain: A product listing performs identical costly lookups thousands of times per minute despite rare updates.
Question 389
An independent QA lead must observe a reproducible before-and-after result with controlled test inputs prior to signing the release. A mobile application needs managed signup and authenticated API access without storing a custom user password database. What test most directly confirms the intended behavior?
- Submit valid, expired, and wrong-client tokens and verify only the intended token is accepted by the backend.
- Attach an excessive policy to a bounded test role and show a forbidden action is still denied.
- Upload a synthetic encrypted file and verify only a holder of the application key can reconstruct its plaintext.
- Assume the application role from a test workload and confirm only the required AWS API actions succeed.
Explanation
Correct Answer
A:The decisive acceptance evidence is: Submit valid, expired, and wrong-client tokens and verify only the intended token is accepted by the backend. It demonstrates: User pools handle application sign-in and token issuance; a backend must verify signatures, issuer, token use, and audience or client identity. Scenario: A mobile application needs managed signup and authenticated API access without storing a custom user password database.
Incorrect Answers
B:Option B 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: A mobile application needs managed signup and authenticated API access without storing a custom user password database.
C:Option C is an acceptance test for Client-side versus server-side encryption boundary: Upload a synthetic encrypted file and verify only a holder of the application key can reconstruct its plaintext. It is not direct evidence for: A mobile application needs managed signup and authenticated API access without storing a custom user password database.
D:Option D is an acceptance test for IAM assumed role for workload: Assume the application role from a test workload and confirm only the required AWS API actions succeed. It is not direct evidence for: A mobile application needs managed signup and authenticated API access without storing a custom user password database.
Question 390
A cloud developer must explain the mechanism behind a proposed solution. Checkout produces one event that inventory, email, and loyalty systems must process independently. 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.
- Jitter spreads retry traffic, while a circuit breaker prevents repeated calls into a persistently failing dependency.
- The SDK can report throttling, transient failures, and permanent access denials that require different client behavior.
- An inverted text index supports term queries and relevance that primary-key lookups alone cannot provide.
Explanation
Correct Answer
A:SNS fanout distributes an event to multiple subscribed endpoints without making independent workers compete for one queue message. This is the operating principle for SNS topic fanout. Validation: 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 explains Third-party API retries with jitter rather than this issue: Jitter spreads retry traffic, while a circuit breaker prevents repeated calls into a persistently failing dependency. It does not explain: Checkout produces one event that inventory, email, and loyalty systems must process independently.
C:Option C 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: Checkout produces one event that inventory, email, and loyalty systems must process independently.
D:Option D 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: Checkout produces one event that inventory, email, and loyalty systems must process independently.