AWS Certified Developer - Associate DVA-C02 Practice Test 58
Question 570
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 container starts in staging but repeatedly exits under production traffic because its memory limit is too low. Which observation is the strongest acceptance evidence?
- Publish two versions and verify the staging alias routes to the expected one without modifying production.
- Induce a failing readiness test in the new environment and verify routing returns to the previous one.
- Deploy a representative load test with the proposed runtime limits and inspect memory and CPU saturation.
- Send a controlled duplicate event and a bad record and verify idempotent state and planned retry behavior.
Explanation
Correct Answer
C:The decisive acceptance evidence is: Deploy a representative load test with the proposed runtime limits and inspect memory and CPU saturation. It demonstrates: An artifact can build successfully while its runtime resource limits lead to OOM or throttled execution after release. Scenario: An ECS container starts in staging but repeatedly exits under production traffic because its memory limit is too low.
Incorrect Answers
A:Option A 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 container starts in staging but repeatedly exits under production traffic because its memory limit is too low.
B:Option B is an acceptance test for CodeDeploy blue-green rollback: Induce a failing readiness test in the new environment and verify routing returns to the previous one. It is not direct evidence for: An ECS container starts in staging but repeatedly exits under production traffic because its memory limit is too low.
D:Option D 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: An ECS container starts in staging but repeatedly exits under production traffic because its memory limit is too low.
Question 571
An AWS developer is reviewing the next application release. Two regional deployments use different ZIP contents despite sharing the same release label. Which technical change most directly meets the requirement?
- Test API Gateway routes in a dedicated stage with stage-specific backend variables and request validation.
- Route staging integration tests to a specific published Lambda version by using a named alias.
- Publish versioned CodeBuild build artifacts and promote the tested artifact through pipeline stages rather than rebuilding per stage.
- Use blue-green deployment of a previous verified application revision to support rollback when the new environment fails checks.
Explanation
Correct Answer
C:Artifact identity and checksums allow a release to preserve the binary that passed validation. Apply: Publish versioned CodeBuild build artifacts and promote the tested artifact through pipeline stages rather than rebuilding per stage. Acceptance check: Compare checksums of the artifact deployed to staging and production within the same approved release. Scenario: Two regional deployments use different ZIP contents despite sharing the same release label.
Incorrect Answers
A:Option A implements a different developer control (API Gateway staging endpoint verification): Test API Gateway routes in a dedicated stage with stage-specific backend variables and request validation. That does not resolve the specific situation: Two regional deployments use different ZIP contents despite sharing the same release label.
B:Option B 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: Two regional deployments use different ZIP contents despite sharing the same release label.
D:Option D implements a different developer control (CodeDeploy blue-green rollback): Use blue-green deployment of a previous verified application revision to support rollback when the new environment fails checks. That does not resolve the specific situation: Two regional deployments use different ZIP contents despite sharing the same release label.
Question 572
An independent QA lead must observe a reproducible before-and-after result with controlled test inputs prior to signing the release. An API has two customer applications and accidentally accepts a token intended for the other application's audience. What test most directly confirms the intended behavior?
- Upload a synthetic encrypted file and verify only a holder of the application key can reconstruct its plaintext.
- Send a token with a valid signature but missing the required scope and confirm the route rejects it.
- Request another tenant's document using a forged URL parameter and confirm it is rejected before data retrieval.
- Send a synthetic request with a fake payment token and confirm only masked values appear in saved logs.
Explanation
Correct Answer
B:The decisive acceptance evidence is: Send a token with a valid signature but missing the required scope and confirm the route rejects it. It demonstrates: JWT authorizers check token metadata and claims before invoking protected API routes. Scenario: An API has two customer applications and accidentally accepts a token intended for the other application's audience.
Incorrect Answers
A:Option A 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: An API has two customer applications and accidentally accepts a token intended for the other application's audience.
C:Option C is an acceptance test for Multi-tenant partitioning guard: Request another tenant's document using a forged URL parameter and confirm it is rejected before data retrieval. It is not direct evidence for: An API has two customer applications and accidentally accepts a token intended for the other application's audience.
D:Option D is an acceptance test for PII masking in application logs: Send a synthetic request with a fake payment token and confirm only masked values appear in saved logs. It is not direct evidence for: An API has two customer applications and accidentally accepts a token intended for the other application's audience.
Question 573
An AWS developer is reviewing the next application release. A worker catches a single invalid SQS record and returns success, causing the bad record to disappear. Which technical change most directly meets the requirement?
- Use supported Lambda event-source mapping filters to discard irrelevant records before function invocation.
- Use DynamoDB TransactWriteItems to apply a small set of related item changes atomically when the transaction limits permit.
- Return failed SQS message identifiers through the supported partial batch response format when processing a Lambda batch.
- Serialize application objects with explicit schema, numeric types, and timestamp handling before writing to a data store.
Explanation
Correct Answer
C:Partial batch failure reporting limits retries to failed records if the event-source mapping is configured for that feature. Apply: Return failed SQS message identifiers through the supported partial batch response format when processing a Lambda batch. Acceptance check: Inject one poison message in a five-item batch and verify only failed IDs are retried after successful messages commit. Scenario: A worker catches a single invalid SQS record and returns success, causing the bad record to disappear.
Incorrect Answers
A:Option A implements a different developer control (Lambda event filtering): Use supported Lambda event-source mapping filters to discard irrelevant records before function invocation. That does not resolve the specific situation: A worker catches a single invalid SQS record and returns success, causing the bad record to disappear.
B:Option B 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 worker catches a single invalid SQS record and returns success, causing the bad record to disappear.
D:Option D implements a different developer control (Application-level JSON serialization): Serialize application objects with explicit schema, numeric types, and timestamp handling before writing to a data store. That does not resolve the specific situation: A worker catches a single invalid SQS record and returns success, causing the bad record to disappear.
Question 574
An incident review asks which unsafe assumption in an AWS implementation must be prevented. A mobile application needs managed signup and authenticated API access without storing a custom user password database. Which overlooked failure condition is the central concern?
- Do not serialize entire ORM user objects into API responses when they include credential hashes and private fields.
- Do not assume a certificate requested in an incompatible AWS Region can be bound to the target API endpoint, even if its hostname matches.
- Do not grant access merely because a token's JSON payload looks syntactically valid without verifying its signature and claims.
- Do not grant an external tenant access simply by knowing a role ARN or without a scoped trust policy.
Explanation
Correct Answer
C:Do not grant access merely because a token's JSON payload looks syntactically valid without verifying its signature and claims. This is significant because 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
A:Option A warns about an unrelated failure boundary (Sensitive data classification before API responses): Do not serialize entire ORM user objects into API responses when they include credential hashes and private fields. It is not the key risk in: A mobile application needs managed signup and authenticated API access without storing a custom user password database.
B:Option B warns about an unrelated failure boundary (AWS Certificate Manager HTTPS certificate binding): Do not assume a certificate requested in an incompatible AWS Region can be bound to the target API endpoint, even if its hostname matches. It is not the key risk in: A mobile application needs managed signup and authenticated API access without storing a custom user password database.
D:Option D warns about an unrelated failure boundary (Cross-account STS role trust): Do not grant an external tenant access simply by knowing a role ARN or without a scoped trust policy. It is not the key risk in: A mobile application needs managed signup and authenticated API access without storing a custom user password database.
Question 575
An engineering reviewer is evaluating service behavior and authorization boundaries. A chat app uses one global room key for all messages and scales table throughput without fixing hot writes. Which mechanism explains the appropriate design decision?
- A narrow or concentrated partition key can create hot partitions and throttling even when table capacity is sufficient.
- Environment variables can hold deployment configuration but hardcoded credentials or plaintext output logs create security risks.
- Lambda memory allocation also changes available CPU resources, so larger memory may lower duration at acceptable cost.
- Query narrows access by indexed key whereas Scan reads broadly and incurs unnecessary capacity and latency.
Explanation
Correct Answer
A:A narrow or concentrated partition key can create hot partitions and throttling even when table capacity is sufficient. This is the operating principle for DynamoDB partition key hot spots. Validation: Load test a representative key distribution and inspect throttling by partition-key pattern. Scenario: A chat app uses one global room key for all messages and scales table throughput without fixing hot writes.
Incorrect Answers
B:Option B explains Lambda environment configuration rather than this issue: Environment variables can hold deployment configuration but hardcoded credentials or plaintext output logs create security risks. It does not explain: A chat app uses one global room key for all messages and scales table throughput without fixing hot writes.
C:Option C explains Lambda power tuning rather than this issue: Lambda memory allocation also changes available CPU resources, so larger memory may lower duration at acceptable cost. It does not explain: A chat app uses one global room key for all messages and scales table throughput without fixing hot writes.
D:Option D explains DynamoDB query versus scan rather than this issue: Query narrows access by indexed key whereas Scan reads broadly and incurs unnecessary capacity and latency. It does not explain: A chat app uses one global room key for all messages and scales table throughput without fixing hot writes.
Question 576
A staging acceptance reviewer must demonstrate working end-to-end behavior rather than cite a configuration screenshot, using a controlled test before deployment. A production CodePipeline never runs after a merged fix because its source trigger watches the wrong branch. Which observation is the strongest acceptance evidence?
- Compare checksums of the artifact deployed to staging and production within the same approved release.
- Promote a known digest from test to production and compare ECS task image digests after rollout.
- Commit a safe test change to the selected branch and verify one pipeline execution records the corresponding revision.
- Publish a staging configuration with a forced alarm and verify rollback restores the former configuration version.
Explanation
Correct Answer
C:The decisive acceptance evidence is: Commit a safe test change to the selected branch and verify one pipeline execution records the corresponding revision. It demonstrates: A source-stage revision ties pipeline execution to the exact code and branch used in that release. Scenario: A production CodePipeline never runs after a merged fix because its source trigger watches the wrong branch.
Incorrect Answers
A:Option A is an acceptance test for CodeBuild artifact promotion: Compare checksums of the artifact deployed to staging and production within the same approved release. It is not direct evidence for: A production CodePipeline never runs after a merged fix because its source trigger watches the wrong branch.
B:Option B is an acceptance test for ECR image digest deployment: Promote a known digest from test to production and compare ECS task image digests after rollout. It is not direct evidence for: A production CodePipeline never runs after a merged fix because its source trigger watches the wrong branch.
D:Option D 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 production CodePipeline never runs after a merged fix because its source trigger watches the wrong branch.
Question 577
An independent QA lead must observe a reproducible before-and-after result with controlled test inputs prior to signing the release. An order checkout Lambda writes an unmasked shipping address and card fragment to CloudWatch during validation. What test most directly confirms the intended behavior?
- Upload a synthetic encrypted file and verify only a holder of the application key can reconstruct its plaintext.
- Send a synthetic request with a fake payment token and confirm only masked values appear in saved logs.
- Scan a sample deployment artifact and prove no plaintext secret keys remain while authorized decryption still works.
- Invoke a safe state machine with and without required task permission and confirm the specific service action fails narrowly.
Explanation
Correct Answer
B:The decisive acceptance evidence is: Send a synthetic request with a fake payment token and confirm only masked values appear in saved logs. It demonstrates: Observability must retain useful identifiers and failure context without exposing credentials, email addresses, or regulated data. Scenario: An order checkout Lambda writes an unmasked shipping address and card fragment to CloudWatch during validation.
Incorrect Answers
A:Option A 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: An order checkout Lambda writes an unmasked shipping address and card fragment to CloudWatch during validation.
C:Option C 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 order checkout Lambda writes an unmasked shipping address and card fragment to CloudWatch during validation.
D:Option D is an acceptance test for Cross-service execution role in Step Functions: Invoke a safe state machine with and without required task permission and confirm the specific service action fails narrowly. It is not direct evidence for: An order checkout Lambda writes an unmasked shipping address and card fragment to CloudWatch during validation.
Question 578
A development team must select an AWS application change. An orders table is keyed by orderId but support must list recent orders by customerId. Which implementation best addresses this situation?
- Use Amazon OpenSearch Service for full-text indexing and relevance search instead of scanning a key-value table for arbitrary phrases.
- Create a DynamoDB global secondary index for a supported alternate access pattern not covered by the table key.
- Use a DynamoDB conditional update based on the expected item version to prevent overwriting concurrent changes.
- Attach Lambda to appropriate VPC subnets and security groups with verified routes to its private database.
Explanation
Correct Answer
B:A GSI exposes an alternate partition and optional sort key, with asynchronous index propagation and separate capacity impacts. Apply: Create a DynamoDB global secondary index for a supported alternate access pattern not covered by the table key. Acceptance check: Query the new index by the alternate key and verify projections and update propagation match application needs. Scenario: An orders table is keyed by orderId but support must list recent orders by customerId.
Incorrect Answers
A:Option A implements a different developer control (OpenSearch text search use case): Use Amazon OpenSearch Service for full-text indexing and relevance search instead of scanning a key-value table for arbitrary phrases. That does not resolve the specific situation: An orders table is keyed by orderId but support must list recent orders by customerId.
C:Option C 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: An orders table is keyed by orderId but support must list recent orders by customerId.
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: An orders table is keyed by orderId but support must list recent orders by customerId.
Question 579
A development team must select an AWS application change. A function deployed from a ZIP fails with Runtime.ImportModuleError because the handler sits inside a nested build folder. Which implementation best addresses this situation?
- Use Amazon Q Developer to suggest additional automated tests and review their assertions against real requirements before accepting them.
- Use blue-green deployment of a previous verified application revision to support rollback when the new environment fails checks.
- Package Lambda source files and compatible runtime dependencies in the correct ZIP structure or supported deployment layer.
- Deploy a SAM template to staging using explicit stack names and parameter overrides for its resource identifiers.
Explanation
Correct Answer
C: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 function deployed from a ZIP fails with Runtime.ImportModuleError because the handler sits inside a nested build folder.
Incorrect Answers
A:Option A implements a different developer control (Q Developer generated tests verification): Use Amazon Q Developer to suggest additional automated tests and review their assertions against real requirements before accepting them. That does not resolve the specific situation: A function deployed from a ZIP fails with Runtime.ImportModuleError because the handler sits inside a nested build folder.
B:Option B implements a different developer control (CodeDeploy blue-green rollback): Use blue-green deployment of a previous verified application revision to support rollback when the new environment fails checks. That does not resolve the specific situation: A function deployed from a ZIP fails with Runtime.ImportModuleError because the handler sits inside a nested build folder.
D:Option D implements a different developer control (SAM parameter overrides for staging): Deploy a SAM template to staging using explicit stack names and parameter overrides for its resource identifiers. That does not resolve the specific situation: A function deployed from a ZIP fails with Runtime.ImportModuleError because the handler sits inside a nested build folder.
Question 580
A development team must select an AWS application change. An SDK client sends customer PII to an HTTPS endpoint but its custom adapter ignores certificate verification. Which implementation best addresses this situation?
- Use STS AssumeRole with explicit cross-account trust and a permission policy granting only the required resource access.
- Require HTTPS with valid certificate chain and hostname validation for application calls to external and internal APIs.
- Select client-side encryption when payload confidentiality must be enforced before data reaches the AWS service endpoint.
- Enforce tenant identity and resource ownership inside application authorization logic before returning any row or object.
Explanation
Correct Answer
B:TLS protects data in transit and server-authentication checks prevent connecting to an impostor endpoint. Apply: Require HTTPS with valid certificate chain and hostname validation for application calls to external and internal APIs. Acceptance check: Connect to a trusted endpoint and deliberately invalid certificate and verify the invalid peer is rejected. Scenario: An SDK client sends customer PII to an HTTPS endpoint but its custom adapter ignores certificate verification.
Incorrect Answers
A:Option A implements a different developer control (Cross-account STS role trust): Use STS AssumeRole with explicit cross-account trust and a permission policy granting only the required resource access. That does not resolve the specific situation: An SDK client sends customer PII to an HTTPS endpoint but its custom adapter ignores certificate verification.
C:Option C implements a different developer control (Client-side versus server-side encryption boundary): Select client-side encryption when payload confidentiality must be enforced before data reaches the AWS service endpoint. That does not resolve the specific situation: An SDK client sends customer PII to an HTTPS endpoint but its custom adapter ignores certificate verification.
D:Option D implements a different developer control (Fine-grained application tenant authorization): Enforce tenant identity and resource ownership inside application authorization logic before returning any row or object. That does not resolve the specific situation: An SDK client sends customer PII to an HTTPS endpoint but its custom adapter ignores certificate verification.