AWS Certified Developer - Associate DVA-C02 Practice Test 5
Question 40
A cloud developer must explain the mechanism behind a proposed solution. An inventory app lists only the first thousand objects although the bucket contains many more entries. Which technical explanation correctly accounts for the solution?
- VPC-connected Lambda network interfaces need reachable routes and security-group permissions for database connections.
- Jitter spreads retry traffic, while a circuit breaker prevents repeated calls into a persistently failing dependency.
- AI-generated suggestions are proposed source changes, not verified runtime behavior or authorization proof.
- Many List operations return partial pages and a next token; stopping at the first response produces silent omissions.
Explanation
Correct Answer
D:Many List operations return partial pages and a next token; stopping at the first response produces silent omissions. This is the operating principle for AWS SDK paginator use. Validation: Compare collected resource IDs against a fixture spanning several result pages including an empty final page. Scenario: An inventory app lists only the first thousand objects although the bucket contains many more entries.
Incorrect Answers
A:Option A explains Lambda VPC connectivity to private data rather than this issue: VPC-connected Lambda network interfaces need reachable routes and security-group permissions for database connections. It does not explain: An inventory app lists only the first thousand objects although the bucket contains many more entries.
B:Option B explains Third-party API retries with jitter rather than this issue: Jitter spreads retry traffic, while a circuit breaker prevents repeated calls into a persistently failing dependency. It does not explain: An inventory app lists only the first thousand objects although the bucket contains many more entries.
C:Option C explains Amazon Q Developer generated code review rather than this issue: AI-generated suggestions are proposed source changes, not verified runtime behavior or authorization proof. It does not explain: An inventory app lists only the first thousand objects although the bucket contains many more entries.
Question 41
A staging acceptance reviewer must demonstrate working end-to-end behavior rather than cite a configuration screenshot, using a controlled test before deployment. A debug logger includes the full JWT bearer token in every API error record. Which observation is the strongest acceptance evidence?
- Send a synthetic request with a fake payment token and confirm only masked values appear in saved logs.
- Invoke a test function and verify a sensitive value is never emitted in its response or CloudWatch logs.
- Upload a synthetic encrypted file and verify only a holder of the application key can reconstruct its plaintext.
- Fetch a test SecureString from the approved role and confirm a read-only unrelated role cannot decrypt it.
Explanation
Correct Answer
A: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: A debug logger includes the full JWT bearer token in every API error record.
Incorrect Answers
B:Option B 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: A debug logger includes the full JWT bearer token in every API error record.
C:Option C is an acceptance test for Client-side versus server-side encryption boundary: Upload a synthetic encrypted file and verify only a holder of the application key can reconstruct its plaintext. It is not direct evidence for: A debug logger includes the full JWT bearer token in every API error record.
D:Option D is an acceptance test for AWS Systems Manager Parameter Store secure strings: Fetch a test SecureString from the approved role and confirm a read-only unrelated role cannot decrypt it. It is not direct evidence for: A debug logger includes the full JWT bearer token in every API error record.
Question 42
A staging acceptance reviewer must demonstrate working end-to-end behavior rather than cite a configuration screenshot, using a controlled test before deployment. An SDK client sends customer PII to an HTTPS endpoint but its custom adapter ignores certificate verification. Which observation is the strongest acceptance evidence?
- Connect to a trusted endpoint and deliberately invalid certificate and verify the invalid peer is rejected.
- Attach an excessive policy to a bounded test role and show a forbidden action is still denied.
- Request another tenant's document using a forged URL parameter and confirm it is rejected before data retrieval.
- Send a properly signed request and a tampered payload with unchanged signature and verify the latter is rejected.
Explanation
Correct Answer
A:The decisive acceptance evidence is: Connect to a trusted endpoint and deliberately invalid certificate and verify the invalid peer is rejected. It demonstrates: TLS protects data in transit and server-authentication checks prevent connecting to an impostor endpoint. Scenario: An SDK client sends customer PII to an HTTPS endpoint but its custom adapter ignores certificate verification.
Incorrect Answers
B:Option B is an acceptance test for IAM permission boundary intersection: Attach an excessive policy to a bounded test role and show a forbidden action is still denied. It is not direct evidence for: An SDK client sends customer PII to an HTTPS endpoint but its custom adapter ignores certificate verification.
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 SDK client sends customer PII to an HTTPS endpoint but its custom adapter ignores certificate verification.
D:Option D is an acceptance test for SigV4 request signing: Send a properly signed request and a tampered payload with unchanged signature and verify the latter is rejected. It is not direct evidence for: An SDK client sends customer PII to an HTTPS endpoint but its custom adapter ignores certificate verification.
Question 43
A production readiness review identifies a potential software defect. A new Lambda deployment returns errors instantly with Runtime.ImportModuleError even before receiving a business payload. Which implementation risk must be rejected first?
- Do not ignore a language header if responses differ by language, or include every random header in the cache key.
- Do not scale a table blindly when most throttles come from one overloaded partition key.
- Do not solve an import failure by increasing Lambda timeout or memory without checking the failing phase.
- Do not judge Lambda optimization from the lowest memory setting or average duration alone.
Explanation
Correct Answer
C:Do not solve an import failure by increasing Lambda timeout or memory without checking the failing phase. This is significant because An INIT or import failure occurs before handler work; a handler timeout occurs after execution exceeds the configured duration. Scenario: A new Lambda deployment returns errors instantly with Runtime.ImportModuleError even before receiving a business payload.
Incorrect Answers
A:Option A warns about an unrelated failure boundary (CloudFront caching by request headers): Do not ignore a language header if responses differ by language, or include every random header in the cache key. It is not the key risk in: A new Lambda deployment returns errors instantly with Runtime.ImportModuleError even before receiving a business payload.
B:Option B warns about an unrelated failure boundary (DynamoDB hot partition avoidance): Do not scale a table blindly when most throttles come from one overloaded partition key. It is not the key risk in: A new Lambda deployment returns errors instantly with Runtime.ImportModuleError even before receiving a business payload.
D:Option D warns about an unrelated failure boundary (Lambda performance memory cost tuning): Do not judge Lambda optimization from the lowest memory setting or average duration alone. It is not the key risk in: A new Lambda deployment returns errors instantly with Runtime.ImportModuleError even before receiving a business payload.
Question 44
A cloud developer must explain the mechanism behind a proposed solution. A Step Functions workflow cannot publish a notification although the individual Lambda role has SNS rights. Which technical explanation correctly accounts for the solution?
- Access tokens have bounded validity, and refresh flows must respect revocation and client configuration.
- The response serializer can enforce an allowlist for sensitive fields after identity and authorization checks.
- AWS IAM service permission may authorize a Lambda to read the table but does not automatically enforce end-user tenant boundaries.
- Integrated state machine tasks use the state-machine execution role, independently from a Lambda task's own IAM role.
Explanation
Correct Answer
D:Integrated state machine tasks use the state-machine execution role, independently from a Lambda task's own IAM role. This is the operating principle for Cross-service execution role in Step Functions. Validation: Invoke a safe state machine with and without required task permission and confirm the specific service action fails narrowly. Scenario: A Step Functions workflow cannot publish a notification although the individual Lambda role has SNS rights.
Incorrect Answers
A:Option A 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 Step Functions workflow cannot publish a notification although the individual Lambda role has SNS rights.
B:Option B explains Sensitive data classification before API responses rather than this issue: The response serializer can enforce an allowlist for sensitive fields after identity and authorization checks. It does not explain: A Step Functions workflow cannot publish a notification although the individual Lambda role has SNS rights.
C:Option C explains Fine-grained application tenant authorization rather than this issue: AWS IAM service permission may authorize a Lambda to read the table but does not automatically enforce end-user tenant boundaries. It does not explain: A Step Functions workflow cannot publish a notification although the individual Lambda role has SNS rights.
Question 45
An incident review asks which unsafe assumption in an AWS implementation must be prevented. Developers accidentally enable a beta checkout feature for all customers because staging and production share one config profile. Which overlooked failure condition is the central concern?
- Do not let a build succeed when required test commands are skipped or their failure exit status is ignored.
- Do not hardcode a temporary emergency feature flag into a released binary when operations need independent control.
- 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.
Explanation
Correct Answer
B:Do not hardcode a temporary emergency feature flag into a released binary when operations need independent control. This is significant because AppConfig separates runtime configuration and progressive rollout from application binary releases. Scenario: Developers accidentally enable a beta checkout feature for all customers because staging and production share one config profile.
Incorrect Answers
A:Option A warns about an unrelated failure boundary (CodeBuild integration test environment): Do not let a build succeed when required test commands are skipped or their failure exit status is ignored. It is not the key risk in: Developers accidentally enable a beta checkout feature for all customers because staging and production share one config profile.
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: Developers accidentally enable a beta checkout feature for all customers because staging and production share one config profile.
D:Option D 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: Developers accidentally enable a beta checkout feature for all customers because staging and production share one config profile.
Question 46
A cloud developer must explain the mechanism behind a proposed solution. A payment API writes a status to DynamoDB and immediately needs the authoritative state on the same Region table. Which technical explanation correctly accounts for the solution?
- EventBridge evaluates structured event fields before dispatching to a selected target, unlike a time-based scheduler.
- DynamoDB removes TTL-expired items eventually rather than at the exact second of the timestamp.
- Environment variables can hold deployment configuration but hardcoded credentials or plaintext output logs create security risks.
- Eventually consistent reads can temporarily return stale data, while supported strong reads trade capacity for freshness.
Explanation
Correct Answer
D:Eventually consistent reads can temporarily return stale data, while supported strong reads trade capacity for freshness. This is the operating principle for DynamoDB strong read consistency. Validation: Write a test item then issue a strong GetItem and confirm the returned version matches the latest commit. Scenario: A payment API writes a status to DynamoDB and immediately needs the authoritative state on the same Region table.
Incorrect Answers
A:Option A explains EventBridge content-based routing rather than this issue: EventBridge evaluates structured event fields before dispatching to a selected target, unlike a time-based scheduler. It does not explain: A payment API writes a status to DynamoDB and immediately needs the authoritative state on the same Region table.
B:Option B explains DynamoDB TTL asynchronous deletion rather than this issue: DynamoDB removes TTL-expired items eventually rather than at the exact second of the timestamp. It does not explain: A payment API writes a status to DynamoDB and immediately needs the authoritative state on the same Region table.
C:Option C 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 payment API writes a status to DynamoDB and immediately needs the authoritative state on the same Region table.
Question 47
An engineering reviewer is evaluating service behavior and authorization boundaries. A developer raises Lambda memory substantially and assumes the new configuration is always cheaper without benchmarks. Which mechanism explains the appropriate design decision?
- EMF extracts declared metric values from structured log events to support numerical dashboards and alarms.
- Memory setting changes the available CPU budget and can reduce billed duration enough to offset its higher per-time cost.
- API caching reduces repeated backend invocations for cacheable requests but must vary by identity or parameters when data differs.
- A redrive policy moves messages that repeatedly fail processing so they can be analyzed and replayed safely.
Explanation
Correct Answer
B:Memory setting changes the available CPU budget and can reduce billed duration enough to offset its higher per-time cost. This is the operating principle for Lambda performance memory cost tuning. Validation: Benchmark fixed representative input across several memory configurations and compare p95 duration and unit cost. Scenario: A developer raises Lambda memory substantially and assumes the new configuration is always cheaper without benchmarks.
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 developer raises Lambda memory substantially and assumes the new configuration is always cheaper without benchmarks.
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 developer raises Lambda memory substantially and assumes the new configuration is always cheaper without benchmarks.
D:Option D explains SQS DLQ and receive-count troubleshooting rather than this issue: A redrive policy moves messages that repeatedly fail processing so they can be analyzed and replayed safely. It does not explain: A developer raises Lambda memory substantially and assumes the new configuration is always cheaper without benchmarks.
Question 48
An independent QA lead must observe a reproducible before-and-after result with controlled test inputs prior to signing the release. A Lambda cannot retrieve its encrypted configuration because its execution role lacks required parameter/KMS permission. What test most directly confirms the intended behavior?
- Submit valid, expired, and wrong-client tokens and verify only the intended token is accepted by the backend.
- Invoke the same API with two customer identities and verify neither can retrieve the other's object identifiers.
- Submit strings with quotes and markup into a safe test API and confirm storage and output remain correctly encoded.
- Fetch a test SecureString from the approved role and confirm a read-only unrelated role cannot decrypt it.
Explanation
Correct Answer
D:The decisive acceptance evidence is: Fetch a test SecureString from the approved role and confirm a read-only unrelated role cannot decrypt it. It demonstrates: SecureString parameters protect configuration at rest and require appropriate IAM and KMS access when retrieved. Scenario: A Lambda cannot retrieve its encrypted configuration because its execution role lacks required parameter/KMS permission.
Incorrect Answers
A:Option A 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: A Lambda cannot retrieve its encrypted configuration because its execution role lacks required parameter/KMS permission.
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: A Lambda cannot retrieve its encrypted configuration because its execution role lacks required parameter/KMS permission.
C:Option C 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: A Lambda cannot retrieve its encrypted configuration because its execution role lacks required parameter/KMS permission.
Question 49
A production readiness review identifies a potential software defect. A file-processing Lambda triggered asynchronously fails after retry attempts with no event retained for review. Which implementation risk must be rejected first?
- Do not assume adding Lambda to a VPC automatically provides internet egress or private database reachability.
- Do not assume an asynchronous Lambda exception returns directly to the original event publisher.
- Do not perform a blind versionless read-modify-write that overwrites another writer's more recent change.
- Do not use one shared SQS queue when independent consumers must each receive every event.
Explanation
Correct Answer
B:Do not assume an asynchronous Lambda exception returns directly to the original event publisher. This is significant because 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 warns about an unrelated failure boundary (Lambda VPC connectivity to private data): Do not assume adding Lambda to a VPC automatically provides internet egress or private database reachability. It is not the key risk in: A file-processing Lambda triggered asynchronously fails after retry attempts with no event retained for review.
C:Option C warns about an unrelated failure boundary (DynamoDB conditional writes): Do not perform a blind versionless read-modify-write that overwrites another writer's more recent change. It is not the key risk in: A file-processing Lambda triggered asynchronously fails after retry attempts with no event retained for review.
D:Option D warns about an unrelated failure boundary (SNS topic fanout): Do not use one shared SQS queue when independent consumers must each receive every event. It is not the key risk in: A file-processing Lambda triggered asynchronously fails after retry attempts with no event retained for review.
Question 50
An independent QA lead must observe a reproducible before-and-after result with controlled test inputs prior to signing the release. A developer cannot reproduce a customer validation failure because they only test via the production API gateway. What test most directly confirms the intended behavior?
- Invoke staging and production URLs and confirm each reaches the configured function version or alias.
- Run a fixture representing missing and valid fields and assert deterministic output and error handling.
- Generate tests for a pure function, inject an invalid input, and confirm the resulting assertion catches the bug.
- Enable a test flag only in staging and confirm production's flag stays unchanged during rollback.
Explanation
Correct Answer
B:The decisive acceptance evidence is: Run a fixture representing missing and valid fields and assert deterministic output and error handling. It demonstrates: Local event fixtures and mocks validate code behavior without needing access to production services. Scenario: A developer cannot reproduce a customer validation failure because they only test via the production API gateway.
Incorrect Answers
A:Option A is an acceptance test for API Gateway stage variables and versions: Invoke staging and production URLs and confirm each reaches the configured function version or alias. It is not direct evidence for: A developer cannot reproduce a customer validation failure because they only test via the production API gateway.
C:Option C is an acceptance test for Q Developer generated tests verification: Generate tests for a pure function, inject an invalid input, and confirm the resulting assertion catches the bug. It is not direct evidence for: A developer cannot reproduce a customer validation failure because they only test via the production API gateway.
D:Option D 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 developer cannot reproduce a customer validation failure because they only test via the production API gateway.