AWS Certified Developer - Associate DVA-C02 Practice Test 68
Question 670
An AWS developer is reviewing the next application release. A developer doubles Lambda memory and assumes the change is cheaper without comparing billed duration. Which technical change most directly meets the requirement?
- Benchmark Lambda memory settings with representative inputs to improve CPU-bound runtime and total cost.
- Use supported Lambda event-source mapping filters to discard irrelevant records before function invocation.
- Use Amazon Q Developer as a coding assistant, then manually inspect, test, and security-review generated changes before merging.
- Set an SQS visibility timeout aligned with consumer processing and delete messages only after durable successful handling.
Explanation
Correct Answer
A:Lambda memory allocation also changes available CPU resources, so larger memory may lower duration at acceptable cost. Apply: Benchmark Lambda memory settings with representative inputs to improve CPU-bound runtime and total cost. Acceptance check: Compare duration, memory usage, and invocation cost for two sizes using the same representative workload. Scenario: A developer doubles Lambda memory and assumes the change is cheaper without comparing billed duration.
Incorrect Answers
B:Option B 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 developer doubles Lambda memory and assumes the change is cheaper without comparing billed duration.
C:Option C implements a different developer control (Amazon Q Developer generated code review): Use Amazon Q Developer as a coding assistant, then manually inspect, test, and security-review generated changes before merging. That does not resolve the specific situation: A developer doubles Lambda memory and assumes the change is cheaper without comparing billed duration.
D:Option D implements a different developer control (SQS visibility timeout and retries): Set an SQS visibility timeout aligned with consumer processing and delete messages only after durable successful handling. That does not resolve the specific situation: A developer doubles Lambda memory and assumes the change is cheaper without comparing billed duration.
Question 671
An independent QA lead must observe a reproducible before-and-after result with controlled test inputs prior to signing the release. A feature setting is changed directly in production without staged validation and remains broken after errors spike. What test most directly confirms the intended behavior?
- Commit a safe test change to the selected branch and verify one pipeline execution records the corresponding revision.
- Generate a test change set and verify an intended safe update does not replace the production database.
- Publish a staging configuration with a forced alarm and verify rollback restores the former configuration version.
- Build a test image, inspect its digest, and deploy that exact digest to staging before production promotion.
Explanation
Correct Answer
C:The decisive acceptance evidence is: Publish a staging configuration with a forced alarm and verify rollback restores the former configuration version. It demonstrates: 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
A:Option A is an acceptance test for CodePipeline source change trigger: Commit a safe test change to the selected branch and verify one pipeline execution records the corresponding revision. It is not direct evidence for: A feature setting is changed directly in production without staged validation and remains broken after errors spike.
B:Option B is an acceptance test for SAM and CloudFormation change set review: Generate a test change set and verify an intended safe update does not replace the production database. It is not direct evidence for: A feature setting is changed directly in production without staged validation and remains broken after errors spike.
D:Option D is an acceptance test for Container image dependency pinning: Build a test image, inspect its digest, and deploy that exact digest to staging before production promotion. It is not direct evidence for: A feature setting is changed directly in production without staged validation and remains broken after errors spike.
Question 672
A cloud developer must explain the mechanism behind a proposed solution. A search feature flag causes higher API latency and operators need to disable it without repackaging Lambdas. Which technical explanation correctly accounts for the solution?
- Local event fixtures and mocks validate code behavior without needing access to production services.
- AppConfig can change runtime configuration separately from packaged code and use monitored rollout/rollback controls.
- 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
B:AppConfig can change runtime configuration separately from packaged code and use monitored rollout/rollback controls. This is the operating principle for AppConfig progressive rollout rollback. Validation: Publish a staging configuration with a forced alarm and verify rollback restores the former configuration version. Scenario: A search feature flag causes higher API latency and operators need to disable it without repackaging Lambdas.
Incorrect Answers
A:Option A explains SAM local unit tests and mocks rather than this issue: Local event fixtures and mocks validate code behavior without needing access to production services. It does not explain: A search feature flag causes higher API latency and operators need to disable it without repackaging Lambdas.
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 search feature flag causes higher API latency and operators need to disable it without repackaging Lambdas.
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 search feature flag causes higher API latency and operators need to disable it without repackaging Lambdas.
Question 673
A development team must select an AWS application change. A thumbnail worker processes the same new JPEG twice because its S3 notification is delivered more than once. 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.
- Handle S3 object-created notifications through an idempotent processor keyed to the object event or processing state.
- Use DynamoDB TransactWriteItems to apply a small set of related item changes atomically when the transaction limits permit.
- Use a Step Functions state machine with explicit task transitions, retries, and failure paths for a multi-step business process.
Explanation
Correct Answer
B:S3 event notifications can be duplicated and ordering is not guaranteed; handlers must defend against repeated effects. Apply: Handle S3 object-created notifications through an idempotent processor keyed to the object event or processing state. Acceptance check: Trigger duplicate object notifications and verify exactly one logical downstream ingest result is committed. Scenario: A thumbnail worker processes the same new JPEG twice because its S3 notification is delivered more than once.
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: A thumbnail worker processes the same new JPEG twice because its S3 notification is delivered more than once.
C:Option C 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 thumbnail worker processes the same new JPEG twice because its S3 notification is delivered more than once.
D:Option D 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: A thumbnail worker processes the same new JPEG twice because its S3 notification is delivered more than once.
Question 674
A staging acceptance reviewer must demonstrate working end-to-end behavior rather than cite a configuration screenshot, using a controlled test before deployment. A file-processing Lambda triggered asynchronously fails after retry attempts with no event retained for review. Which observation is the strongest acceptance evidence?
- Deploy test and production aliases and verify each reads the intended nonsecret endpoint configuration.
- Send malformed and valid API calls and confirm only conforming requests reach the target Lambda.
- Trigger a synthetic handler exception and verify retry count and the corresponding on-failure event record.
- Publish matching and nonmatching synthetic queue events and confirm only matching records invoke the function.
Explanation
Correct Answer
C:The decisive acceptance evidence is: Trigger a synthetic handler exception and verify retry count and the corresponding on-failure event record. It demonstrates: Asynchronous invocations can retry failed events then route exhausted failures to a configured destination for recovery. Scenario: A file-processing Lambda triggered asynchronously fails after retry attempts with no event retained for review.
Incorrect Answers
A:Option A is an acceptance test for Lambda environment configuration: Deploy test and production aliases and verify each reads the intended nonsecret endpoint configuration. It is not direct evidence for: A file-processing Lambda triggered asynchronously fails after retry attempts with no event retained for review.
B:Option B is an acceptance test for API Gateway request validation: Send malformed and valid API calls and confirm only conforming requests reach the target Lambda. It is not direct evidence for: A file-processing Lambda triggered asynchronously fails after retry attempts with no event retained for review.
D:Option D is an acceptance test for Lambda event filtering: Publish matching and nonmatching synthetic queue events and confirm only matching records invoke the function. It is not direct evidence for: A file-processing Lambda triggered asynchronously fails after retry attempts with no event retained for review.
Question 675
An independent QA lead must observe a reproducible before-and-after result with controlled test inputs prior to signing the release. A mobile application cannot parse an endpoint because the Lambda proxy returns a nested object as the response body. What test most directly confirms the intended behavior?
- Force a fulfillment task failure and confirm the state machine retries or reaches the designed compensation path.
- Invoke a test API route and assert HTTP status, response headers, and parsed JSON body match the contract.
- Round-trip a fixture with decimals and UTC timestamps and compare exact domain values after deserialization.
- Publish one synthetic purchase event and confirm both the email and analytics queues receive their own copies.
Explanation
Correct Answer
B:The decisive acceptance evidence is: Invoke a test API route and assert HTTP status, response headers, and parsed JSON body match the contract. It demonstrates: A proxy integration expects a defined response envelope; a plain object or inappropriate body type can cause gateway errors. Scenario: A mobile application cannot parse an endpoint because the Lambda proxy returns a nested object as the response body.
Incorrect Answers
A:Option A is an acceptance test for Step Functions orchestration: Force a fulfillment task failure and confirm the state machine retries or reaches the designed compensation path. It is not direct evidence for: A mobile application cannot parse an endpoint because the Lambda proxy returns a nested object as the response body.
C:Option C is an acceptance test for Application-level JSON serialization: Round-trip a fixture with decimals and UTC timestamps and compare exact domain values after deserialization. It is not direct evidence for: A mobile application cannot parse an endpoint because the Lambda proxy returns a nested object as the response body.
D:Option D is an acceptance test for SNS topic fanout: Publish one synthetic purchase event and confirm both the email and analytics queues receive their own copies. It is not direct evidence for: A mobile application cannot parse an endpoint because the Lambda proxy returns a nested object as the response body.
Question 676
An independent QA lead must observe a reproducible before-and-after result with controlled test inputs prior to signing the release. An application stores a plaintext AES key next to encrypted customer objects instead of using a protected data key. What test most directly confirms the intended behavior?
- Request another tenant's document using a forged URL parameter and confirm it is rejected before data retrieval.
- Invoke the same API with two customer identities and verify neither can retrieve the other's object identifiers.
- Try assuming the role from an allowed account and an unauthorized account and compare resulting session permissions.
- Encrypt and decrypt a synthetic large payload while verifying encrypted data keys, authorization, and key handling.
Explanation
Correct Answer
D:The decisive acceptance evidence is: Encrypt and decrypt a synthetic large payload while verifying encrypted data keys, authorization, and key handling. It demonstrates: KMS GenerateDataKey returns key material and an encrypted key blob; the client uses the plaintext key only transiently for data encryption. Scenario: An application stores a plaintext AES key next to encrypted customer objects instead of using a protected data key.
Incorrect Answers
A:Option A 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 application stores a plaintext AES key next to encrypted customer objects instead of using a protected data key.
B:Option B is an acceptance test for Fine-grained application tenant authorization: Invoke the same API with two customer identities and verify neither can retrieve the other's object identifiers. It is not direct evidence for: An application stores a plaintext AES key next to encrypted customer objects instead of using a protected data key.
C:Option C is an acceptance test for Cross-account STS role trust: Try assuming the role from an allowed account and an unauthorized account and compare resulting session permissions. It is not direct evidence for: An application stores a plaintext AES key next to encrypted customer objects instead of using a protected data key.
Question 677
A cloud developer must explain the mechanism behind a proposed solution. A debug logger includes the full JWT bearer token in every API error record. Which technical explanation correctly accounts for the solution?
- IAM policy evaluation combines requested actions, resources, conditions, and explicit denies for each API call.
- The trusted calling principal and assumed role permissions are distinct authorization checks for cross-account access.
- Observability must retain useful identifiers and failure context without exposing credentials, email addresses, or regulated data.
- Access tokens have bounded validity, and refresh flows must respect revocation and client configuration.
Explanation
Correct Answer
C:Observability must retain useful identifiers and failure context without exposing credentials, email addresses, or regulated data. This is the operating principle for PII masking in application logs. Validation: Send a synthetic request with a fake payment token and confirm only masked values appear in saved logs. Scenario: A debug logger includes the full JWT bearer token in every API error record.
Incorrect Answers
A:Option A explains IAM least-privilege resource ARN rather than this issue: IAM policy evaluation combines requested actions, resources, conditions, and explicit denies for each API call. It does not explain: A debug logger includes the full JWT bearer token in every API error record.
B:Option B explains Cross-account STS role trust rather than this issue: The trusted calling principal and assumed role permissions are distinct authorization checks for cross-account access. It does not explain: A debug logger includes the full JWT bearer token in every API error record.
D:Option D explains Cognito bearer-token expiry and refresh rather than this issue: Access tokens have bounded validity, and refresh flows must respect revocation and client configuration. It does not explain: A debug logger includes the full JWT bearer token in every API error record.
Question 678
A staging acceptance reviewer must demonstrate working end-to-end behavior rather than cite a configuration screenshot, using a controlled test before deployment. A QA engineer invokes a test POST and accidentally charges a real customer due to a shared production integration. Which observation is the strongest acceptance evidence?
- Invoke the staging URL and verify only the staging Lambda alias and test dataset receive the request.
- Send a controlled duplicate event and a bad record and verify idempotent state and planned retry behavior.
- Build a test image, inspect its digest, and deploy that exact digest to staging before production promotion.
- Deliberately break a test and confirm the build fails before any deployment stage starts.
Explanation
Correct Answer
A:The decisive acceptance evidence is: Invoke the staging URL and verify only the staging Lambda alias and test dataset receive the request. It demonstrates: Separate API stages let developers exercise route changes without directing tests at production functions and data. Scenario: A QA engineer invokes a test POST and accidentally charges a real customer due to a shared production integration.
Incorrect Answers
B:Option B is an acceptance test for Event-driven integration test cases: Send a controlled duplicate event and a bad record and verify idempotent state and planned retry behavior. It is not direct evidence for: A QA engineer invokes a test POST and accidentally charges a real customer due to a shared production integration.
C:Option C is an acceptance test for Container image dependency pinning: Build a test image, inspect its digest, and deploy that exact digest to staging before production promotion. It is not direct evidence for: A QA engineer invokes a test POST and accidentally charges a real customer due to a shared production integration.
D:Option D is an acceptance test for CodeBuild integration test environment: Deliberately break a test and confirm the build fails before any deployment stage starts. It is not direct evidence for: A QA engineer invokes a test POST and accidentally charges a real customer due to a shared production integration.
Question 679
An independent QA lead must observe a reproducible before-and-after result with controlled test inputs prior to signing the release. An order worker must update one DynamoDB table yet its policy also permits deleting unrelated tables. What test most directly confirms the intended behavior?
- Submit strings with quotes and markup into a safe test API and confirm storage and output remain correctly encoded.
- Run permitted and denied test operations against sibling resources to verify scope boundaries.
- Invoke a test function and verify a sensitive value is never emitted in its response or CloudWatch logs.
- Submit valid, expired, and wrong-client tokens and verify only the intended token is accepted by the backend.
Explanation
Correct Answer
B:The decisive acceptance evidence is: Run permitted and denied test operations against sibling resources to verify scope boundaries. It demonstrates: IAM policy evaluation combines requested actions, resources, conditions, and explicit denies for each API call. Scenario: An order worker must update one DynamoDB table yet its policy also permits deleting unrelated tables.
Incorrect Answers
A:Option A is an acceptance test for Input sanitization before data persistence: Submit strings with quotes and markup into a safe test API and confirm storage and output remain correctly encoded. It is not direct evidence for: An order worker must update one DynamoDB table yet its policy also permits deleting unrelated tables.
C:Option C is an acceptance test for Secrets in Lambda environment variables: Invoke a test function and verify a sensitive value is never emitted in its response or CloudWatch logs. It is not direct evidence for: An order worker must update one DynamoDB table yet its policy also permits deleting unrelated tables.
D:Option D is an acceptance test for Cognito user-pool login tokens: Submit valid, expired, and wrong-client tokens and verify only the intended token is accepted by the backend. It is not direct evidence for: An order worker must update one DynamoDB table yet its policy also permits deleting unrelated tables.
Question 680
An AWS developer is reviewing the next application release. Operators only discover that a public endpoint is unavailable after users start opening support tickets. Which technical change most directly meets the requirement?
- Instrument supported service calls with AWS X-Ray compatible tracing and inspect the segments around a slow downstream call.
- Provide separate application readiness and liveness behavior so traffic is routed only when dependencies are ready.
- Add an SNS subscription filter policy that forwards only matching event attributes or message bodies to a target queue.
- Create a CloudWatch alarm with meaningful error-rate or latency thresholds and an SNS notification for operational response.
Explanation
Correct Answer
D:Alarm evaluation periods and action destinations translate monitored metrics into timely incident notifications. Apply: Create a CloudWatch alarm with meaningful error-rate or latency thresholds and an SNS notification for operational response. Acceptance check: Publish a controlled failure metric and confirm the alarm changes state and the intended SNS subscriber receives it. Scenario: Operators only discover that a public endpoint is unavailable after users start opening support tickets.
Incorrect Answers
A:Option A implements a different developer control (X-Ray distributed trace diagnosis): Instrument supported service calls with AWS X-Ray compatible tracing and inspect the segments around a slow downstream call. That does not resolve the specific situation: Operators only discover that a public endpoint is unavailable after users start opening support tickets.
B:Option B implements a different developer control (Readiness versus liveness health checks): Provide separate application readiness and liveness behavior so traffic is routed only when dependencies are ready. That does not resolve the specific situation: Operators only discover that a public endpoint is unavailable after users start opening support tickets.
C:Option C implements a different developer control (SNS subscription filter policy): Add an SNS subscription filter policy that forwards only matching event attributes or message bodies to a target queue. That does not resolve the specific situation: Operators only discover that a public endpoint is unavailable after users start opening support tickets.