AWS Certified Developer - Associate DVA-C02 Practice Test 48
Question 470
A staging acceptance reviewer must demonstrate working end-to-end behavior rather than cite a configuration screenshot, using a controlled test before deployment. A mobile API release passes integration tests but production rebuild downloads a different unpinned library version. Which observation is the strongest acceptance evidence?
- Generate a test change set and verify an intended safe update does not replace the production database.
- Replay known API and SQS test events and compare structured outputs and failure handling to expected values.
- Enable a test flag only in staging and confirm production's flag stays unchanged during rollback.
- Compare checksums of the artifact deployed to staging and production within the same approved release.
Explanation
Correct Answer
D:The decisive acceptance evidence is: Compare checksums of the artifact deployed to staging and production within the same approved release. It demonstrates: Artifact identity and checksums allow a release to preserve the binary that passed validation. Scenario: A mobile API release passes integration tests but production rebuild downloads a different unpinned library version.
Incorrect Answers
A:Option A 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 mobile API release passes integration tests but production rebuild downloads a different unpinned library version.
B:Option B 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: A mobile API release passes integration tests but production rebuild downloads a different unpinned library version.
C:Option C 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 mobile API release passes integration tests but production rebuild downloads a different unpinned library version.
Question 471
A cloud developer must explain the mechanism behind a proposed solution. A function deployed from a ZIP fails with Runtime.ImportModuleError because the handler sits inside a nested build folder. Which technical explanation correctly accounts for the solution?
- AI-assisted test generation can reveal omitted cases but generated assertions and mocks must be inspected for false confidence.
- Lambda ZIP handlers and imported libraries must exist in locations the configured runtime can load at initialization.
- Stages isolate API deployments and allow controlled references to backends without changing client-visible production routes.
- Blue-green release keeps a known environment available while traffic moves to the tested replacement.
Explanation
Correct Answer
B:Lambda ZIP handlers and imported libraries must exist in locations the configured runtime can load at initialization. This is the operating principle for Lambda dependency archive packaging. Validation: Deploy a minimal test package and invoke the configured handler while checking import resolution. Scenario: A function deployed from a ZIP fails with Runtime.ImportModuleError because the handler sits inside a nested build folder.
Incorrect Answers
A:Option A 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 function deployed from a ZIP fails with Runtime.ImportModuleError because the handler sits inside a nested build folder.
C:Option C explains API Gateway stage variables and versions rather than this issue: Stages isolate API deployments and allow controlled references to backends without changing client-visible production routes. It does not explain: A function deployed from a ZIP fails with Runtime.ImportModuleError because the handler sits inside a nested build folder.
D:Option D explains CodeDeploy blue-green rollback rather than this issue: Blue-green release keeps a known environment available while traffic moves to the tested replacement. It does not explain: A function deployed from a ZIP fails with Runtime.ImportModuleError because the handler sits inside a nested build folder.
Question 472
A development team must select an AWS application change. An image-conversion worker takes 90 seconds but its SQS message becomes visible after 30 seconds and runs twice. Which implementation best addresses this situation?
- Use a DynamoDB Query with known partition-key conditions or an appropriate index instead of repeatedly scanning every item.
- Use a Step Functions state machine with explicit task transitions, retries, and failure paths for a multi-step business process.
- Configure Kinesis-triggered Lambda batch retry limits and failure handling so poison events do not block a shard indefinitely.
- Set an SQS visibility timeout aligned with consumer processing and delete messages only after durable successful handling.
Explanation
Correct Answer
D:SQS hides in-flight messages temporarily; expiration permits retries, and deleting early can permanently lose uncommitted work. Apply: Set an SQS visibility timeout aligned with consumer processing and delete messages only after durable successful handling. Acceptance check: Make a test handler run longer than the previous timeout and verify its message is not processed concurrently. Scenario: An image-conversion worker takes 90 seconds but its SQS message becomes visible after 30 seconds and runs twice.
Incorrect Answers
A:Option A 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: An image-conversion worker takes 90 seconds but its SQS message becomes visible after 30 seconds and runs twice.
B:Option B implements a different developer control (Step Functions orchestration): Use a Step Functions state machine with explicit task transitions, retries, and failure paths for a multi-step business process. That does not resolve the specific situation: An image-conversion worker takes 90 seconds but its SQS message becomes visible after 30 seconds and runs twice.
C:Option C implements a different developer control (Lambda stream checkpoint retries): Configure Kinesis-triggered Lambda batch retry limits and failure handling so poison events do not block a shard indefinitely. That does not resolve the specific situation: An image-conversion worker takes 90 seconds but its SQS message becomes visible after 30 seconds and runs twice.
Question 473
An AWS developer is reviewing the next application release. A user guesses another tenant's invoice key and receives its private attachment even with a valid login token. Which technical change most directly meets the requirement?
- Enforce tenant identity and resource ownership inside application authorization logic before returning any row or object.
- Store supported application secrets as encrypted Parameter Store SecureString parameters and control read/decrypt permissions.
- Use a supported KMS data key and encrypt large application payloads locally with a data encryption algorithm.
- Limit an application IAM policy to the exact required actions and resource ARN scope, including prefixes when supported.
Explanation
Correct Answer
A:AWS IAM service permission may authorize a Lambda to read the table but does not automatically enforce end-user tenant boundaries. Apply: Enforce tenant identity and resource ownership inside application authorization logic before returning any row or object. Acceptance check: Invoke the same API with two customer identities and verify neither can retrieve the other's object identifiers. Scenario: A user guesses another tenant's invoice key and receives its private attachment even with a valid login token.
Incorrect Answers
B:Option B implements a different developer control (AWS Systems Manager Parameter Store secure strings): Store supported application secrets as encrypted Parameter Store SecureString parameters and control read/decrypt permissions. That does not resolve the specific situation: A user guesses another tenant's invoice key and receives its private attachment even with a valid login token.
C:Option C implements a different developer control (KMS envelope encryption pattern): Use a supported KMS data key and encrypt large application payloads locally with a data encryption algorithm. That does not resolve the specific situation: A user guesses another tenant's invoice key and receives its private attachment even with a valid login token.
D:Option D implements a different developer control (IAM least-privilege resource ARN): Limit an application IAM policy to the exact required actions and resource ARN scope, including prefixes when supported. That does not resolve the specific situation: A user guesses another tenant's invoice key and receives its private attachment even with a valid login token.
Question 474
A staging acceptance reviewer must demonstrate working end-to-end behavior rather than cite a configuration screenshot, using a controlled test before deployment. A high-traffic API creates runaway trace costs when recording every request and user payload. Which observation is the strongest acceptance evidence?
- Invoke repeated identical safe GETs and verify reduced backend calls without serving another user's response.
- Reproduce a denied test call and identify the principal, attempted API action, resource, and denial context.
- Generate a test request that invokes API Gateway and Lambda and verify trace spans identify the slow call.
- Generate repeated traceable requests and confirm sampled segments include correlation but not secrets.
Explanation
Correct Answer
D:The decisive acceptance evidence is: Generate repeated traceable requests and confirm sampled segments include correlation but not secrets. It demonstrates: Sampling limits tracing volume while secure context propagation and data minimization preserve observability integrity. Scenario: A high-traffic API creates runaway trace costs when recording every request and user payload.
Incorrect Answers
A:Option A is an acceptance test for API Gateway response caching: Invoke repeated identical safe GETs and verify reduced backend calls without serving another user's response. It is not direct evidence for: A high-traffic API creates runaway trace costs when recording every request and user payload.
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: A high-traffic API creates runaway trace costs when recording every request and user payload.
C:Option C is an acceptance test for X-Ray distributed trace diagnosis: Generate a test request that invokes API Gateway and Lambda and verify trace spans identify the slow call. It is not direct evidence for: A high-traffic API creates runaway trace costs when recording every request and user payload.
Question 475
An engineering reviewer is evaluating service behavior and authorization boundaries. A release script deploys whatever is on a developer laptop rather than the reviewed repository branch. Which mechanism explains the appropriate design decision?
- Traceable source revisions allow a pipeline to rebuild, review, and roll back specific application releases.
- CodeDeploy can send a limited share of traffic to a new version and shift more only after healthy checks.
- Change sets preview the proposed resource operations, including destructive replacements and IAM changes.
- Buildspec phases and runtime images determine how repeatably CI executes tests and packages artifacts.
Explanation
Correct Answer
A:Traceable source revisions allow a pipeline to rebuild, review, and roll back specific application releases. This is the operating principle for Git commit and release tagging. Validation: Deploy a tagged test commit and compare runtime version metadata with the repository commit identifier. Scenario: A release script deploys whatever is on a developer laptop rather than the reviewed repository branch.
Incorrect Answers
B:Option B explains CodeDeploy canary Lambda traffic shifting rather than this issue: CodeDeploy can send a limited share of traffic to a new version and shift more only after healthy checks. It does not explain: A release script deploys whatever is on a developer laptop rather than the reviewed repository branch.
C:Option C explains SAM and CloudFormation change set review rather than this issue: Change sets preview the proposed resource operations, including destructive replacements and IAM changes. It does not explain: A release script deploys whatever is on a developer laptop rather than the reviewed repository branch.
D:Option D explains CodeBuild integration test environment rather than this issue: Buildspec phases and runtime images determine how repeatably CI executes tests and packages artifacts. It does not explain: A release script deploys whatever is on a developer laptop rather than the reviewed repository branch.
Question 476
A cloud developer must explain the mechanism behind a proposed solution. A template edit renames a DynamoDB logical resource and the pipeline proposes deleting its existing table. Which technical explanation correctly accounts for the solution?
- AppConfig can change runtime configuration separately from packaged code and use monitored rollout/rollback controls.
- Tags can move, whereas a digest identifies specific image content that can be validated across environments.
- Buildspec phases and runtime images determine how repeatably CI executes tests and packages artifacts.
- 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 template edit renames a DynamoDB logical resource and the pipeline proposes deleting its existing table.
Incorrect Answers
A:Option A explains AppConfig progressive rollout rollback rather than this issue: AppConfig can change runtime configuration separately from packaged code and use monitored rollout/rollback controls. It does not explain: A template edit renames a DynamoDB logical resource and the pipeline proposes deleting its existing table.
B:Option B 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: A template edit renames a DynamoDB logical resource and the pipeline proposes deleting its existing table.
C:Option C explains CodeBuild integration test environment rather than this issue: Buildspec phases and runtime images determine how repeatably CI executes tests and packages artifacts. It does not explain: A template edit renames a DynamoDB logical resource and the pipeline proposes deleting its existing table.
Question 477
An independent QA lead must observe a reproducible before-and-after result with controlled test inputs prior to signing the release. A cached profile endpoint returns customer A's data to customer B because authorization context is missing from its cache key. What test most directly confirms the intended behavior?
- Invoke repeated identical safe GETs and verify reduced backend calls without serving another user's response.
- Publish events with different types and verify each queue receives only its matching type.
- Generate repeated traceable requests and confirm sampled segments include correlation but not secrets.
- Trigger a safe known error then query its request ID and confirm the exception and affected service appear.
Explanation
Correct Answer
A:The decisive acceptance evidence is: Invoke repeated identical safe GETs and verify reduced backend calls without serving another user's response. It demonstrates: API caching reduces repeated backend invocations for cacheable requests but must vary by identity or parameters when data differs. Scenario: A cached profile endpoint returns customer A's data to customer B because authorization context is missing from its cache key.
Incorrect Answers
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: A cached profile endpoint returns customer A's data to customer B because authorization context is missing from its cache key.
C:Option C is an acceptance test for App-level trace sampling and privacy: Generate repeated traceable requests and confirm sampled segments include correlation but not secrets. It is not direct evidence for: A cached profile endpoint returns customer A's data to customer B because authorization context is missing from its cache key.
D:Option D 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: A cached profile endpoint returns customer A's data to customer B because authorization context is missing from its cache key.
Question 478
An engineering reviewer is evaluating service behavior and authorization boundaries. A queue's visible backlog shrinks but failed invoices disappear into its DLQ without alerting. Which mechanism explains the appropriate design decision?
- A cache key built from relevant path, query, cookies, and headers separates content variants without fragmenting the cache unnecessarily.
- Indexed annotations support filtering traces by defined key-value pairs while metadata can hold less indexed detail.
- A redrive policy moves messages that repeatedly fail processing so they can be analyzed and replayed safely.
- Memory setting changes the available CPU budget and can reduce billed duration enough to offset its higher per-time cost.
Explanation
Correct Answer
C:A redrive policy moves messages that repeatedly fail processing so they can be analyzed and replayed safely. This is the operating principle for SQS DLQ and receive-count troubleshooting. Validation: Send one poison message in a test queue and verify maxReceiveCount leads to the configured DLQ. Scenario: A queue's visible backlog shrinks but failed invoices disappear into its DLQ without alerting.
Incorrect Answers
A:Option A explains CloudFront caching by request headers rather than this issue: A cache key built from relevant path, query, cookies, and headers separates content variants without fragmenting the cache unnecessarily. It does not explain: A queue's visible backlog shrinks but failed invoices disappear into its DLQ without alerting.
B:Option B 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: A queue's visible backlog shrinks but failed invoices disappear into its DLQ without alerting.
D:Option D explains Lambda performance memory cost tuning rather than this issue: Memory setting changes the available CPU budget and can reduce billed duration enough to offset its higher per-time cost. It does not explain: A queue's visible backlog shrinks but failed invoices disappear into its DLQ without alerting.
Question 479
An engineering reviewer is evaluating service behavior and authorization boundaries. An image event for an older object version arrives after a newer version and overwrites current metadata. Which mechanism explains the appropriate design decision?
- S3 event notifications can be duplicated and ordering is not guaranteed; handlers must defend against repeated effects.
- Partial batch failure reporting limits retries to failed records if the event-source mapping is configured for that feature.
- Eventually consistent reads can temporarily return stale data, while supported strong reads trade capacity for freshness.
- A DynamoDB transaction commits the supported grouped writes together or rejects the entire operation.
Explanation
Correct Answer
A:S3 event notifications can be duplicated and ordering is not guaranteed; handlers must defend against repeated effects. This is the operating principle for S3 object events and duplicate handling. Validation: Trigger duplicate object notifications and verify exactly one logical downstream ingest result is committed. Scenario: An image event for an older object version arrives after a newer version and overwrites current metadata.
Incorrect Answers
B:Option B explains Lambda partial batch failures for SQS rather than this issue: Partial batch failure reporting limits retries to failed records if the event-source mapping is configured for that feature. It does not explain: An image event for an older object version arrives after a newer version and overwrites current metadata.
C:Option C explains DynamoDB strong read consistency rather than this issue: Eventually consistent reads can temporarily return stale data, while supported strong reads trade capacity for freshness. It does not explain: An image event for an older object version arrives after a newer version and overwrites current metadata.
D:Option D explains DynamoDB transaction writes rather than this issue: A DynamoDB transaction commits the supported grouped writes together or rejects the entire operation. It does not explain: An image event for an older object version arrives after a newer version and overwrites current metadata.
Question 480
An incident review asks which unsafe assumption in an AWS implementation must be prevented. A feature setting is changed directly in production without staged validation and remains broken after errors spike. Which overlooked failure condition is the central concern?
- Do not enable a high-impact feature for all tenants instantly without validating monitoring and rollback.
- Do not point a staging custom domain at production Lambda by accident during testing.
- Do not ZIP an extra parent directory above the handler file and assume Lambda will locate its entry point.
- Do not represent a passing build stage as a substitute for the organization's required release approval.
Explanation
Correct Answer
A:Do not enable a high-impact feature for all tenants instantly without validating monitoring and rollback. This is significant because AppConfig can change runtime configuration separately from packaged code and use monitored rollout/rollback controls. Scenario: A feature setting is changed directly in production without staged validation and remains broken after errors spike.
Incorrect Answers
B:Option B warns about an unrelated failure boundary (API Gateway stage variables and versions): Do not point a staging custom domain at production Lambda by accident during testing. It is not the key risk in: A feature setting is changed directly in production without staged validation and remains broken after errors spike.
C:Option C warns about an unrelated failure boundary (Lambda dependency archive packaging): Do not ZIP an extra parent directory above the handler file and assume Lambda will locate its entry point. It is not the key risk in: A feature setting is changed directly in production without staged validation and remains broken after errors spike.
D:Option D warns about an unrelated failure boundary (CodePipeline cross-stage approval): Do not represent a passing build stage as a substitute for the organization's required release approval. It is not the key risk in: A feature setting is changed directly in production without staged validation and remains broken after errors spike.