AWS Certified Developer - Associate DVA-C02 Practice Test 40
Question 390
A cloud developer must explain the mechanism behind a proposed solution. Checkout produces one event that inventory, email, and loyalty systems must process independently. Which technical explanation correctly accounts for the solution?
- SNS fanout distributes an event to multiple subscribed endpoints without making independent workers compete for one queue message.
- Jitter spreads retry traffic, while a circuit breaker prevents repeated calls into a persistently failing dependency.
- The SDK can report throttling, transient failures, and permanent access denials that require different client behavior.
- An inverted text index supports term queries and relevance that primary-key lookups alone cannot provide.
Explanation
Correct Answer
A:SNS fanout distributes an event to multiple subscribed endpoints without making independent workers compete for one queue message. This is the operating principle for SNS topic fanout. Validation: Publish one synthetic purchase event and confirm both the email and analytics queues receive their own copies. Scenario: Checkout produces one event that inventory, email, and loyalty systems must process independently.
Incorrect Answers
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: Checkout produces one event that inventory, email, and loyalty systems must process independently.
C:Option C explains AWS SDK service exception handling rather than this issue: The SDK can report throttling, transient failures, and permanent access denials that require different client behavior. It does not explain: Checkout produces one event that inventory, email, and loyalty systems must process independently.
D:Option D explains OpenSearch text search use case rather than this issue: An inverted text index supports term queries and relevance that primary-key lookups alone cannot provide. It does not explain: Checkout produces one event that inventory, email, and loyalty systems must process independently.
Question 391
An engineering reviewer is evaluating service behavior and authorization boundaries. A checkout service serves an old sale price because its cached entry was not invalidated after a promotion. Which mechanism explains the appropriate design decision?
- Standard SQS and retried workers can deliver duplicates; a durable deduplication condition prevents repeated side effects.
- Caching reduces repeated backend reads but creates a freshness boundary determined by expiration and explicit invalidation.
- Reserved concurrency sets a function-level execution ceiling, protecting a constrained target from fanout spikes.
- A DynamoDB transaction commits the supported grouped writes together or rejects the entire operation.
Explanation
Correct Answer
B:Caching reduces repeated backend reads but creates a freshness boundary determined by expiration and explicit invalidation. This is the operating principle for ElastiCache read-through cache. Validation: Update a catalog price and verify clients see the new value after the correct invalidation or TTL rule. Scenario: A checkout service serves an old sale price because its cached entry was not invalidated after a promotion.
Incorrect Answers
A:Option A explains SQS idempotent consumer design rather than this issue: Standard SQS and retried workers can deliver duplicates; a durable deduplication condition prevents repeated side effects. It does not explain: A checkout service serves an old sale price because its cached entry was not invalidated after a promotion.
C:Option C explains Lambda reserved concurrency rather than this issue: Reserved concurrency sets a function-level execution ceiling, protecting a constrained target from fanout spikes. It does not explain: A checkout service serves an old sale price because its cached entry was not invalidated after a promotion.
D:Option D explains DynamoDB transaction writes rather than this issue: A DynamoDB transaction commits the supported grouped writes together or rejects the entire operation. It does not explain: A checkout service serves an old sale price because its cached entry was not invalidated after a promotion.
Question 392
A cloud developer must explain the mechanism behind a proposed solution. A mobile photo app wants users to upload into their own S3 folders without proxying all bytes through the API. Which technical explanation correctly accounts for the solution?
- Identity pools support federated identities receiving temporary roles, distinct from user-pool authentication token issuance.
- SigV4 binds the request components, credential scope, and signature, preventing unsigned API requests from being accepted.
- AWS IAM service permission may authorize a Lambda to read the table but does not automatically enforce end-user tenant boundaries.
- Secret versions can rotate independently of a code deployment, while clients must handle cached credential updates.
Explanation
Correct Answer
A:Identity pools support federated identities receiving temporary roles, distinct from user-pool authentication token issuance. This is the operating principle for Cognito identity pool scoped AWS access. Validation: Sign in as an authenticated test user and verify their temporary AWS credentials can reach only the expected S3 resources. Scenario: A mobile photo app wants users to upload into their own S3 folders without proxying all bytes through the API.
Incorrect Answers
B:Option B explains SigV4 request signing rather than this issue: SigV4 binds the request components, credential scope, and signature, preventing unsigned API requests from being accepted. It does not explain: A mobile photo app wants users to upload into their own S3 folders without proxying all bytes through the API.
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 mobile photo app wants users to upload into their own S3 folders without proxying all bytes through the API.
D:Option D explains Secrets Manager credential rotation rather than this issue: Secret versions can rotate independently of a code deployment, while clients must handle cached credential updates. It does not explain: A mobile photo app wants users to upload into their own S3 folders without proxying all bytes through the API.
Question 393
A production readiness review identifies a potential software defect. A Step Functions workflow cannot publish a notification although the individual Lambda role has SNS rights. Which implementation risk must be rejected first?
- Do not cache an expired token and continue sending it to a backend that requires valid claims.
- Do not assume a Lambda execution role automatically authorizes the state machine to invoke every other AWS service.
- Do not issue unrestricted IAM access keys to browser applications just to enable S3 uploads.
- Do not build SQL queries by concatenating untrusted customer input or rely solely on a web UI's client-side validation.
Explanation
Correct Answer
B:Do not assume a Lambda execution role automatically authorizes the state machine to invoke every other AWS service. This is significant because Integrated state machine tasks use the state-machine execution role, independently from a Lambda task's own IAM role. Scenario: A Step Functions workflow cannot publish a notification although the individual Lambda role has SNS rights.
Incorrect Answers
A:Option A warns about an unrelated failure boundary (Cognito bearer-token expiry and refresh): Do not cache an expired token and continue sending it to a backend that requires valid claims. It is not the key risk in: A Step Functions workflow cannot publish a notification although the individual Lambda role has SNS rights.
C:Option C warns about an unrelated failure boundary (Cognito identity pool scoped AWS access): Do not issue unrestricted IAM access keys to browser applications just to enable S3 uploads. It is not the key risk in: A Step Functions workflow cannot publish a notification although the individual Lambda role has SNS rights.
D:Option D warns about an unrelated failure boundary (Input sanitization before data persistence): Do not build SQL queries by concatenating untrusted customer input or rely solely on a web UI's client-side validation. It is not the key risk in: A Step Functions workflow cannot publish a notification although the individual Lambda role has SNS rights.
Question 394
A staging acceptance reviewer must demonstrate working end-to-end behavior rather than cite a configuration screenshot, using a controlled test before deployment. A partner requires files be encrypted locally before any bytes are sent to a shared upload bucket. Which observation is the strongest acceptance evidence?
- Upload a test encrypted object and confirm a role without kms:Decrypt cannot read it while an approved role can.
- Expire a test access token and confirm the client obtains a permitted replacement or reauthenticates.
- Upload a synthetic encrypted file and verify only a holder of the application key can reconstruct its plaintext.
- Encrypt and decrypt a synthetic large payload while verifying encrypted data keys, authorization, and key handling.
Explanation
Correct Answer
C:The decisive acceptance evidence is: Upload a synthetic encrypted file and verify only a holder of the application key can reconstruct its plaintext. It demonstrates: Client-side encryption protects content before transfer, unlike server-side encryption performed after storage receives the object. Scenario: A partner requires files be encrypted locally before any bytes are sent to a shared upload bucket.
Incorrect Answers
A:Option A is an acceptance test for S3 SSE-KMS encryption key access: Upload a test encrypted object and confirm a role without kms:Decrypt cannot read it while an approved role can. It is not direct evidence for: A partner requires files be encrypted locally before any bytes are sent to a shared upload bucket.
B:Option B is an acceptance test for Cognito bearer-token expiry and refresh: Expire a test access token and confirm the client obtains a permitted replacement or reauthenticates. It is not direct evidence for: A partner requires files be encrypted locally before any bytes are sent to a shared upload bucket.
D:Option D is an acceptance test for KMS envelope encryption pattern: Encrypt and decrypt a synthetic large payload while verifying encrypted data keys, authorization, and key handling. It is not direct evidence for: A partner requires files be encrypted locally before any bytes are sent to a shared upload bucket.
Question 395
A cloud developer must explain the mechanism behind a proposed solution. An API produces intermittent 500 errors but developers scan all log groups without matching the request ID. Which technical explanation correctly accounts for the solution?
- Memory setting changes the available CPU budget and can reduce billed duration enough to offset its higher per-time cost.
- Client-side 4xx failures and 5xx integration or backend faults require different debugging paths.
- A distributed trace relates individual service segments and timing to one end-to-end user request.
- Structured log fields and time filters let engineers isolate relevant exceptions rather than searching every log line manually.
Explanation
Correct Answer
D:Structured log fields and time filters let engineers isolate relevant exceptions rather than searching every log line manually. This is the operating principle for CloudWatch Logs Insights fault search. Validation: Trigger a safe known error then query its request ID and confirm the exception and affected service appear. Scenario: An API produces intermittent 500 errors but developers scan all log groups without matching the request ID.
Incorrect Answers
A:Option A explains Lambda performance memory cost tuning rather than this issue: Memory setting changes the available CPU budget and can reduce billed duration enough to offset its higher per-time cost. It does not explain: An API produces intermittent 500 errors but developers scan all log groups without matching the request ID.
B:Option B explains API Gateway 4xx versus 5xx root cause rather than this issue: Client-side 4xx failures and 5xx integration or backend faults require different debugging paths. It does not explain: An API produces intermittent 500 errors but developers scan all log groups without matching the request ID.
C:Option C explains X-Ray distributed trace diagnosis rather than this issue: A distributed trace relates individual service segments and timing to one end-to-end user request. It does not explain: An API produces intermittent 500 errors but developers scan all log groups without matching the request ID.
Question 396
A development team must select an AWS application change. A service logs checkout failure counts but its CloudWatch dashboard has no custom metric series. Which implementation best addresses this situation?
- Configure a CloudFront cache policy that includes only request headers required to vary a response.
- Emit valid CloudWatch Embedded Metric Format log objects for business-level custom metrics.
- Configure API Gateway stage caching for eligible stable GET responses with deliberate cache-key parameters and invalidation.
- Use a CloudWatch Logs Insights query with correlated request IDs and error filters to find the failing application invocation.
Explanation
Correct Answer
B:EMF extracts declared metric values from structured log events to support numerical dashboards and alarms. Apply: Emit valid CloudWatch Embedded Metric Format log objects for business-level custom metrics. Acceptance check: Send a synthetic failed-checkout metric and confirm its namespace, dimension, and value are queryable. Scenario: A service logs checkout failure counts but its CloudWatch dashboard has no custom metric series.
Incorrect Answers
A:Option A implements a different developer control (CloudFront caching by request headers): Configure a CloudFront cache policy that includes only request headers required to vary a response. That does not resolve the specific situation: A service logs checkout failure counts but its CloudWatch dashboard has no custom metric series.
C:Option C implements a different developer control (API Gateway response caching): Configure API Gateway stage caching for eligible stable GET responses with deliberate cache-key parameters and invalidation. That does not resolve the specific situation: A service logs checkout failure counts but its CloudWatch dashboard has no custom metric series.
D:Option D implements a different developer control (CloudWatch Logs Insights fault search): Use a CloudWatch Logs Insights query with correlated request IDs and error filters to find the failing application invocation. That does not resolve the specific situation: A service logs checkout failure counts but its CloudWatch dashboard has no custom metric series.
Question 397
A staging acceptance reviewer must demonstrate working end-to-end behavior rather than cite a configuration screenshot, using a controlled test before deployment. A Step Functions workflow cannot publish a notification although the individual Lambda role has SNS rights. Which observation is the strongest acceptance evidence?
- 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.
- Request another tenant's document using a forged URL parameter and confirm it is rejected before data retrieval.
- 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: Invoke a safe state machine with and without required task permission and confirm the specific service action fails narrowly. It demonstrates: Integrated state machine tasks use the state-machine execution role, independently from a Lambda task's own IAM role. Scenario: A Step Functions workflow cannot publish a notification although the individual Lambda role has SNS rights.
Incorrect Answers
A:Option A 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: A Step Functions workflow cannot publish a notification although the individual Lambda role has SNS rights.
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: A Step Functions workflow cannot publish a notification although the individual Lambda role has SNS rights.
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: A Step Functions workflow cannot publish a notification although the individual Lambda role has SNS rights.
Question 398
An engineering reviewer is evaluating service behavior and authorization boundaries. A cached profile endpoint returns customer A's data to customer B because authorization context is missing from its cache key. Which mechanism explains the appropriate design decision?
- AccessDenied often reflects the precise action, resource, and policy boundary rather than an application coding syntax error.
- Structured log fields and time filters let engineers isolate relevant exceptions rather than searching every log line manually.
- EMF extracts declared metric values from structured log events to support numerical dashboards and alarms.
- API caching reduces repeated backend invocations for cacheable requests but must vary by identity or parameters when data differs.
Explanation
Correct Answer
D:API caching reduces repeated backend invocations for cacheable requests but must vary by identity or parameters when data differs. This is the operating principle for API Gateway response caching. Validation: Invoke repeated identical safe GETs and verify reduced backend calls without serving another user's response. Scenario: A cached profile endpoint returns customer A's data to customer B because authorization context is missing from its cache key.
Incorrect Answers
A:Option A explains IAM AccessDenied CloudTrail triage rather than this issue: AccessDenied often reflects the precise action, resource, and policy boundary rather than an application coding syntax error. It does not explain: A cached profile endpoint returns customer A's data to customer B because authorization context is missing from its cache key.
B:Option B explains CloudWatch Logs Insights fault search rather than this issue: Structured log fields and time filters let engineers isolate relevant exceptions rather than searching every log line manually. It does not explain: A cached profile endpoint returns customer A's data to customer B because authorization context is missing from its cache key.
C:Option C 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 cached profile endpoint returns customer A's data to customer B because authorization context is missing from its cache key.
Question 399
A staging acceptance reviewer must demonstrate working end-to-end behavior rather than cite a configuration screenshot, using a controlled test before deployment. A new checkout Lambda causes elevated errors when deployed to every user at once without a gradual rollout. Which observation is the strongest acceptance evidence?
- Build a test image, inspect its digest, and deploy that exact digest to staging before production promotion.
- Launch a new test stack and compare its logical resources and configured permissions with the reviewed template.
- Deploy a deliberately failing canary and verify the alarm stops traffic shifting and restores the stable version.
- Deliberately break a test and confirm the build fails before any deployment stage starts.
Explanation
Correct Answer
C:The decisive acceptance evidence is: Deploy a deliberately failing canary and verify the alarm stops traffic shifting and restores the stable version. It demonstrates: CodeDeploy can send a limited share of traffic to a new version and shift more only after healthy checks. Scenario: A new checkout Lambda causes elevated errors when deployed to every user at once without a gradual rollout.
Incorrect Answers
A:Option A 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 new checkout Lambda causes elevated errors when deployed to every user at once without a gradual rollout.
B:Option B is an acceptance test for Deploy test environment with CloudFormation: Launch a new test stack and compare its logical resources and configured permissions with the reviewed template. It is not direct evidence for: A new checkout Lambda causes elevated errors when deployed to every user at once without a gradual rollout.
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 new checkout Lambda causes elevated errors when deployed to every user at once without a gradual rollout.
Question 400
A cloud developer must explain the mechanism behind a proposed solution. A Python Lambda crashes on import after a shared native library layer is built for the wrong architecture. Which technical explanation correctly accounts for the solution?
- S3 event notifications can be duplicated and ordering is not guaranteed; handlers must defend against repeated effects.
- Uncontrolled serialization can change timestamp formats and numeric precision, breaking later readers.
- Partial batch failure reporting limits retries to failed records if the event-source mapping is configured for that feature.
- Runtime compatibility and dependency versions affect import paths and initialization; a layer must match the running function.
Explanation
Correct Answer
D:Runtime compatibility and dependency versions affect import paths and initialization; a layer must match the running function. This is the operating principle for Lambda layers and runtime dependency packaging. Validation: Publish a test layer version, invoke with the exact runtime and CPU architecture, and verify dependencies import. Scenario: A Python Lambda crashes on import after a shared native library layer is built for the wrong architecture.
Incorrect Answers
A:Option A explains S3 object events and duplicate handling rather than this issue: S3 event notifications can be duplicated and ordering is not guaranteed; handlers must defend against repeated effects. It does not explain: A Python Lambda crashes on import after a shared native library layer is built for the wrong architecture.
B:Option B explains Application-level JSON serialization rather than this issue: Uncontrolled serialization can change timestamp formats and numeric precision, breaking later readers. It does not explain: A Python Lambda crashes on import after a shared native library layer is built for the wrong architecture.
C:Option C explains Lambda partial batch failures for SQS rather than this issue: Partial batch failure reporting limits retries to failed records if the event-source mapping is configured for that feature. It does not explain: A Python Lambda crashes on import after a shared native library layer is built for the wrong architecture.