AWS Certified Developer - Associate DVA-C02 Practice Test 3
Question 20
A staging acceptance reviewer must demonstrate working end-to-end behavior rather than cite a configuration screenshot, using a controlled test before deployment. Checkout produces one event that inventory, email, and loyalty systems must process independently. Which observation is the strongest acceptance evidence?
- Inject one bad Kinesis event and confirm bounded retry behavior, checkpoint position, and failure destination evidence.
- Compare collected resource IDs against a fixture spanning several result pages including an empty final page.
- Create a safe expired test item and check application filtering independently of background item deletion.
- Publish one synthetic purchase event and confirm both the email and analytics queues receive their own copies.
Explanation
Correct Answer
D:The decisive acceptance evidence is: Publish one synthetic purchase event and confirm both the email and analytics queues receive their own copies. It demonstrates: SNS fanout distributes an event to multiple subscribed endpoints without making independent workers compete for one queue message. Scenario: Checkout produces one event that inventory, email, and loyalty systems must process independently.
Incorrect Answers
A:Option A is an acceptance test for Lambda stream checkpoint retries: Inject one bad Kinesis event and confirm bounded retry behavior, checkpoint position, and failure destination evidence. It is not direct evidence for: Checkout produces one event that inventory, email, and loyalty systems must process independently.
B:Option B is an acceptance test for AWS SDK paginator use: Compare collected resource IDs against a fixture spanning several result pages including an empty final page. It is not direct evidence for: Checkout produces one event that inventory, email, and loyalty systems must process independently.
C:Option C is an acceptance test for DynamoDB TTL asynchronous deletion: Create a safe expired test item and check application filtering independently of background item deletion. It is not direct evidence for: Checkout produces one event that inventory, email, and loyalty systems must process independently.
Question 21
An independent QA lead must observe a reproducible before-and-after result with controlled test inputs prior to signing the release. An integration client handles HTTP 200 but fails after the downstream service returns a partial error payload. What test most directly confirms the intended behavior?
- Return simulated 200, 429, and timeout responses from a test service and verify the application's resulting state.
- Deploy a minimal test package and invoke the configured handler while checking import resolution.
- Promote a known digest from test to production and compare ECS task image digests after rollout.
- Replay known API and SQS test events and compare structured outputs and failure handling to expected values.
Explanation
Correct Answer
A:The decisive acceptance evidence is: Return simulated 200, 429, and timeout responses from a test service and verify the application's resulting state. It demonstrates: Integration tests check how components interact through the expected API contract, including timeouts and malformed responses. Scenario: An integration client handles HTTP 200 but fails after the downstream service returns a partial error payload.
Incorrect Answers
B:Option B is an acceptance test for Lambda dependency archive packaging: Deploy a minimal test package and invoke the configured handler while checking import resolution. It is not direct evidence for: An integration client handles HTTP 200 but fails after the downstream service returns a partial error payload.
C:Option C 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: An integration client handles HTTP 200 but fails after the downstream service returns a partial error payload.
D:Option D is an acceptance test for Test Lambda JSON event fixture: Replay known API and SQS test events and compare structured outputs and failure handling to expected values. It is not direct evidence for: An integration client handles HTTP 200 but fails after the downstream service returns a partial error payload.
Question 22
An engineering reviewer is evaluating service behavior and authorization boundaries. An engineer tries to bypass a failed manual approval step by rerunning only the deployment stage. Which mechanism explains the appropriate design decision?
- CodeDeploy can send a limited share of traffic to a new version and shift more only after healthy checks.
- Integration tests check how components interact through the expected API contract, including timeouts and malformed responses.
- A pipeline approval action prevents production promotion until a permitted reviewer approves the exact tested revision.
- A version is immutable and an alias identifies which reviewed version receives traffic for the environment.
Explanation
Correct Answer
C:A pipeline approval action prevents production promotion until a permitted reviewer approves the exact tested revision. This is the operating principle for CodePipeline cross-stage approval. Validation: Run a safe integration build and confirm production deployment waits for the explicit approval decision. Scenario: An engineer tries to bypass a failed manual approval step by rerunning only the deployment stage.
Incorrect Answers
A:Option A 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: An engineer tries to bypass a failed manual approval step by rerunning only the deployment stage.
B:Option B explains Integration test API dependency contract rather than this issue: Integration tests check how components interact through the expected API contract, including timeouts and malformed responses. It does not explain: An engineer tries to bypass a failed manual approval step by rerunning only the deployment stage.
D:Option D explains Lambda aliases for versioned test routing rather than this issue: A version is immutable and an alias identifies which reviewed version receives traffic for the environment. It does not explain: An engineer tries to bypass a failed manual approval step by rerunning only the deployment stage.
Question 23
A production readiness review identifies a potential software defect. A template edit renames a DynamoDB logical resource and the pipeline proposes deleting its existing table. Which implementation risk must be rejected first?
- Do not ZIP an extra parent directory above the handler file and assume Lambda will locate its entry point.
- Do not call a live payment provider from unit tests intended to run safely in an isolated build environment.
- Do not approve a stack update without checking that a stateful resource will not be replaced unexpectedly.
- Do not point a staging custom domain at production Lambda by accident during testing.
Explanation
Correct Answer
C:Do not approve a stack update without checking that a stateful resource will not be replaced unexpectedly. This is significant because Change sets preview the proposed resource operations, including destructive replacements and IAM changes. Scenario: A template edit renames a DynamoDB logical resource and the pipeline proposes deleting its existing table.
Incorrect Answers
A:Option A 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 template edit renames a DynamoDB logical resource and the pipeline proposes deleting its existing table.
B:Option B warns about an unrelated failure boundary (SAM local unit tests and mocks): Do not call a live payment provider from unit tests intended to run safely in an isolated build environment. It is not the key risk in: A template edit renames a DynamoDB logical resource and the pipeline proposes deleting its existing table.
D:Option D 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 template edit renames a DynamoDB logical resource and the pipeline proposes deleting its existing table.
Question 24
An independent QA lead must observe a reproducible before-and-after result with controlled test inputs prior to signing the release. A fraud scoring queue is flooded by catalog update events because the SNS subscription has no filtering. What test most directly confirms the intended behavior?
- Publish a controlled failure metric and confirm the alarm changes state and the intended SNS subscriber receives it.
- Request two localized response variants and verify correct cache behavior and cache-hit improvements.
- Trigger a safe known error then query its request ID and confirm the exception and affected service appear.
- Publish events with different types and verify each queue receives only its matching type.
Explanation
Correct Answer
D:The decisive acceptance evidence is: Publish events with different types and verify each queue receives only its matching type. It demonstrates: Subscription filtering reduces irrelevant deliveries and downstream processing while preserving intended event fanout. Scenario: A fraud scoring queue is flooded by catalog update events because the SNS subscription has no filtering.
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 fraud scoring queue is flooded by catalog update events because the SNS subscription has no filtering.
B:Option B 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 fraud scoring queue is flooded by catalog update events because the SNS subscription has no filtering.
C:Option C 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 fraud scoring queue is flooded by catalog update events because the SNS subscription has no filtering.
Question 25
An AWS developer is reviewing the next application release. A staging app trusts an expired server certificate because a developer turned off TLS validation in every environment. Which technical change most directly meets the requirement?
- Require HTTPS with valid certificate chain and hostname validation for application calls to external and internal APIs.
- Use AWS Signature Version 4 signing with scoped temporary credentials for authenticated AWS service requests.
- Authorize KMS key use through suitable key policy or grants as well as applicable IAM permissions for the intended principal.
- Classify response fields and return only authorized customer attributes, masking or excluding sensitive columns by role.
Explanation
Correct Answer
A: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: A staging app trusts an expired server certificate because a developer turned off TLS validation in every environment.
Incorrect Answers
B:Option B implements a different developer control (SigV4 request signing): Use AWS Signature Version 4 signing with scoped temporary credentials for authenticated AWS service requests. That does not resolve the specific situation: A staging app trusts an expired server certificate because a developer turned off TLS validation in every environment.
C:Option C implements a different developer control (KMS key policy and IAM permission): Authorize KMS key use through suitable key policy or grants as well as applicable IAM permissions for the intended principal. That does not resolve the specific situation: A staging app trusts an expired server certificate because a developer turned off TLS validation in every environment.
D:Option D implements a different developer control (Sensitive data classification before API responses): Classify response fields and return only authorized customer attributes, masking or excluding sensitive columns by role. That does not resolve the specific situation: A staging app trusts an expired server certificate because a developer turned off TLS validation in every environment.
Question 26
A staging acceptance reviewer must demonstrate working end-to-end behavior rather than cite a configuration screenshot, using a controlled test before deployment. A finance service rotates a KMS key and worries that existing encrypted receipts will instantly become unreadable. Which observation is the strongest acceptance evidence?
- Rotate a safe test key using supported policy and decrypt ciphertext written with prior key material.
- Invoke a safe state machine with and without required task permission and confirm the specific service action fails narrowly.
- Connect to the configured custom domain and inspect hostname matching, chain trust, and expected renewal state.
- Connect to a trusted endpoint and deliberately invalid certificate and verify the invalid peer is rejected.
Explanation
Correct Answer
A:The decisive acceptance evidence is: Rotate a safe test key using supported policy and decrypt ciphertext written with prior key material. It demonstrates: For supported symmetric KMS keys, older key material remains available to decrypt ciphertext when key rotation occurs. Scenario: A finance service rotates a KMS key and worries that existing encrypted receipts will instantly become unreadable.
Incorrect Answers
B:Option B 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: A finance service rotates a KMS key and worries that existing encrypted receipts will instantly become unreadable.
C:Option C is an acceptance test for AWS Certificate Manager HTTPS certificate binding: Connect to the configured custom domain and inspect hostname matching, chain trust, and expected renewal state. It is not direct evidence for: A finance service rotates a KMS key and worries that existing encrypted receipts will instantly become unreadable.
D:Option D is an acceptance test for TLS server identity validation: Connect to a trusted endpoint and deliberately invalid certificate and verify the invalid peer is rejected. It is not direct evidence for: A finance service rotates a KMS key and worries that existing encrypted receipts will instantly become unreadable.
Question 27
An engineering reviewer is evaluating service behavior and authorization boundaries. An architect assumes server-side S3 encryption makes plaintext invisible to all code that sends objects into S3. Which mechanism explains the appropriate design decision?
- Client-side encryption protects content before transfer, unlike server-side encryption performed after storage receives the object.
- TLS protects data in transit and server-authentication checks prevent connecting to an impostor endpoint.
- SecureString parameters protect configuration at rest and require appropriate IAM and KMS access when retrieved.
- Observability must retain useful identifiers and failure context without exposing credentials, email addresses, or regulated data.
Explanation
Correct Answer
A:Client-side encryption protects content before transfer, unlike server-side encryption performed after storage receives the object. This is the operating principle for Client-side versus server-side encryption boundary. Validation: Upload a synthetic encrypted file and verify only a holder of the application key can reconstruct its plaintext. Scenario: An architect assumes server-side S3 encryption makes plaintext invisible to all code that sends objects into S3.
Incorrect Answers
B:Option B 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: An architect assumes server-side S3 encryption makes plaintext invisible to all code that sends objects into S3.
C:Option C explains AWS Systems Manager Parameter Store secure strings rather than this issue: SecureString parameters protect configuration at rest and require appropriate IAM and KMS access when retrieved. It does not explain: An architect assumes server-side S3 encryption makes plaintext invisible to all code that sends objects into S3.
D:Option D explains PII masking in application logs rather than this issue: Observability must retain useful identifiers and failure context without exposing credentials, email addresses, or regulated data. It does not explain: An architect assumes server-side S3 encryption makes plaintext invisible to all code that sends objects into S3.
Question 28
A cloud developer must explain the mechanism behind a proposed solution. A new Lambda deployment returns errors instantly with Runtime.ImportModuleError even before receiving a business payload. Which technical explanation correctly accounts for the solution?
- EMF extracts declared metric values from structured log events to support numerical dashboards and alarms.
- Alarm evaluation periods and action destinations translate monitored metrics into timely incident notifications.
- API caching reduces repeated backend invocations for cacheable requests but must vary by identity or parameters when data differs.
- An INIT or import failure occurs before handler work; a handler timeout occurs after execution exceeds the configured duration.
Explanation
Correct Answer
D:An INIT or import failure occurs before handler work; a handler timeout occurs after execution exceeds the configured duration. This is the operating principle for Lambda timeout and init error diagnosis. Validation: Reproduce a missing-layer import fault and a slow handler separately and compare logged phase and error signatures. Scenario: A new Lambda deployment returns errors instantly with Runtime.ImportModuleError even before receiving a business payload.
Incorrect Answers
A:Option A explains CloudWatch embedded metric format rather than this issue: EMF extracts declared metric values from structured log events to support numerical dashboards and alarms. It does not explain: A new Lambda deployment returns errors instantly with Runtime.ImportModuleError even before receiving a business payload.
B:Option B explains CloudWatch alarm notification rather than this issue: Alarm evaluation periods and action destinations translate monitored metrics into timely incident notifications. It does not explain: A new Lambda deployment returns errors instantly with Runtime.ImportModuleError even before receiving a business payload.
C:Option C explains API Gateway response caching rather than this issue: API caching reduces repeated backend invocations for cacheable requests but must vary by identity or parameters when data differs. It does not explain: A new Lambda deployment returns errors instantly with Runtime.ImportModuleError even before receiving a business payload.
Question 29
A production readiness review identifies a potential software defect. A custom HTTP client calls a protected AWS service endpoint but its unsigned request receives SignatureDoesNotMatch. Which implementation risk must be rejected first?
- Do not assume adding an Authorization header without signing method, path, and payload satisfies SigV4.
- Do not treat any valid token from the identity provider as authorization for privileged write operations.
- Do not grant an external tenant access simply by knowing a role ARN or without a scoped trust policy.
- Do not commit symmetric encryption keys into a container image that is replicated across development accounts.
Explanation
Correct Answer
A:Do not assume adding an Authorization header without signing method, path, and payload satisfies SigV4. This is significant because SigV4 binds the request components, credential scope, and signature, preventing unsigned API requests from being accepted. Scenario: A custom HTTP client calls a protected AWS service endpoint but its unsigned request receives SignatureDoesNotMatch.
Incorrect Answers
B:Option B warns about an unrelated failure boundary (API Gateway JWT authorizer scope): Do not treat any valid token from the identity provider as authorization for privileged write operations. It is not the key risk in: A custom HTTP client calls a protected AWS service endpoint but its unsigned request receives SignatureDoesNotMatch.
C:Option C 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 custom HTTP client calls a protected AWS service endpoint but its unsigned request receives SignatureDoesNotMatch.
D:Option D warns about an unrelated failure boundary (Encryption key in application config): Do not commit symmetric encryption keys into a container image that is replicated across development accounts. It is not the key risk in: A custom HTTP client calls a protected AWS service endpoint but its unsigned request receives SignatureDoesNotMatch.
Question 30
An AWS developer is reviewing the next application release. A payment event vanishes after a service crash because the worker deletes the queue message before writing the payment record. Which technical change most directly meets the requirement?
- Set an SQS visibility timeout aligned with consumer processing and delete messages only after durable successful handling.
- Use an EventBridge rule with an explicit event pattern and a narrowly authorized target for only approved order-state changes.
- Use Amazon OpenSearch Service for full-text indexing and relevance search instead of scanning a key-value table for arbitrary phrases.
- Serialize application objects with explicit schema, numeric types, and timestamp handling before writing to a data store.
Explanation
Correct Answer
A: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: A payment event vanishes after a service crash because the worker deletes the queue message before writing the payment record.
Incorrect Answers
B:Option B implements a different developer control (EventBridge content-based routing): Use an EventBridge rule with an explicit event pattern and a narrowly authorized target for only approved order-state changes. That does not resolve the specific situation: A payment event vanishes after a service crash because the worker deletes the queue message before writing the payment record.
C:Option C 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: A payment event vanishes after a service crash because the worker deletes the queue message before writing the payment record.
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 payment event vanishes after a service crash because the worker deletes the queue message before writing the payment record.