AWS Certified Developer - Associate DVA-C02 Practice Test 47
Question 460
An AWS developer is reviewing the next application release. An account-creation API allows empty email bodies despite a documented JSON schema contract. Which technical change most directly meets the requirement?
- Use Amazon OpenSearch Service for full-text indexing and relevance search instead of scanning a key-value table for arbitrary phrases.
- Publish an event to an SNS topic and subscribe the independent SQS queues that each downstream application consumes.
- Use a strongly consistent read on a supported DynamoDB table or local secondary index when immediate read-after-write is required.
- Configure API Gateway request validators and explicit models to reject invalid payloads before invoking the integration.
Explanation
Correct Answer
D:Validation at the API boundary can reject missing required fields and unsuitable request shapes before backend code runs. Apply: Configure API Gateway request validators and explicit models to reject invalid payloads before invoking the integration. Acceptance check: Send malformed and valid API calls and confirm only conforming requests reach the target Lambda. Scenario: An account-creation API allows empty email bodies despite a documented JSON schema contract.
Incorrect Answers
A:Option A implements a different developer control (OpenSearch text search use case): Use Amazon OpenSearch Service for full-text indexing and relevance search instead of scanning a key-value table for arbitrary phrases. That does not resolve the specific situation: An account-creation API allows empty email bodies despite a documented JSON schema contract.
B:Option B implements a different developer control (SNS topic fanout): Publish an event to an SNS topic and subscribe the independent SQS queues that each downstream application consumes. That does not resolve the specific situation: An account-creation API allows empty email bodies despite a documented JSON schema contract.
C:Option C implements a different developer control (DynamoDB strong read consistency): Use a strongly consistent read on a supported DynamoDB table or local secondary index when immediate read-after-write is required. That does not resolve the specific situation: An account-creation API allows empty email bodies despite a documented JSON schema contract.
Question 461
A staging acceptance reviewer must demonstrate working end-to-end behavior rather than cite a configuration screenshot, using a controlled test before deployment. A business dashboard reads any customer invoice when the client supplies a different tenantId. Which observation is the strongest acceptance evidence?
- Request another tenant's document using a forged URL parameter and confirm it is rejected before data retrieval.
- 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.
- Try assuming the role from an allowed account and an unauthorized account and compare resulting session permissions.
Explanation
Correct Answer
A:The decisive acceptance evidence is: Request another tenant's document using a forged URL parameter and confirm it is rejected before data retrieval. It demonstrates: Identity claims determine tenant authorization independently of which resource key a user guesses or sends in a URL. Scenario: A business dashboard reads any customer invoice when the client supplies a different tenantId.
Incorrect Answers
B:Option B 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 business dashboard reads any customer invoice when the client supplies a different tenantId.
C:Option C 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 business dashboard reads any customer invoice when the client supplies a different tenantId.
D:Option D 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: A business dashboard reads any customer invoice when the client supplies a different tenantId.
Question 462
An engineering reviewer is evaluating service behavior and authorization boundaries. A retail app must query inventory by warehouseId while its primary key represents productId. Which mechanism explains the appropriate design decision?
- A GSI exposes an alternate partition and optional sort key, with asynchronous index propagation and separate capacity impacts.
- Jitter spreads retry traffic, while a circuit breaker prevents repeated calls into a persistently failing dependency.
- Many List operations return partial pages and a next token; stopping at the first response produces silent omissions.
- Partial batch failure reporting limits retries to failed records if the event-source mapping is configured for that feature.
Explanation
Correct Answer
A:A GSI exposes an alternate partition and optional sort key, with asynchronous index propagation and separate capacity impacts. This is the operating principle for DynamoDB global secondary index design. Validation: Query the new index by the alternate key and verify projections and update propagation match application needs. Scenario: A retail app must query inventory by warehouseId while its primary key represents productId.
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: A retail app must query inventory by warehouseId while its primary key represents productId.
C:Option C explains AWS SDK paginator use rather than this issue: Many List operations return partial pages and a next token; stopping at the first response produces silent omissions. It does not explain: A retail app must query inventory by warehouseId while its primary key represents productId.
D:Option D 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 retail app must query inventory by warehouseId while its primary key represents productId.
Question 463
A staging acceptance reviewer must demonstrate working end-to-end behavior rather than cite a configuration screenshot, using a controlled test before deployment. A Python Lambda crashes on import after a shared native library layer is built for the wrong architecture. Which observation is the strongest acceptance evidence?
- Trigger duplicate object notifications and verify exactly one logical downstream ingest result is committed.
- Publish a test layer version, invoke with the exact runtime and CPU architecture, and verify dependencies import.
- Induce HTTP 429 and HTTP 400 responses and verify only retryable failures are retried within a bounded budget.
- Compare collected resource IDs against a fixture spanning several result pages including an empty final page.
Explanation
Correct Answer
B:The decisive acceptance evidence is: Publish a test layer version, invoke with the exact runtime and CPU architecture, and verify dependencies import. It demonstrates: Runtime compatibility and dependency versions affect import paths and initialization; a layer must match the running function. Scenario: A Python Lambda crashes on import after a shared native library layer is built for the wrong architecture.
Incorrect Answers
A:Option A is an acceptance test for S3 object events and duplicate handling: Trigger duplicate object notifications and verify exactly one logical downstream ingest result is committed. It is not direct evidence for: A Python Lambda crashes on import after a shared native library layer is built for the wrong architecture.
C:Option C is an acceptance test for Third-party API retries with jitter: Induce HTTP 429 and HTTP 400 responses and verify only retryable failures are retried within a bounded budget. It is not direct evidence for: A Python Lambda crashes on import after a shared native library layer is built for the wrong architecture.
D:Option D 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: A Python Lambda crashes on import after a shared native library layer is built for the wrong architecture.
Question 464
A development team must select an AWS application change. A payment feature must be turned off within minutes without rebuilding the Lambda function. Which implementation best addresses this situation?
- Deploy container workloads by a reviewed ECR image digest so promoted releases use the same immutable artifact.
- Use AppConfig deployment strategies and monitoring alarms to roll out a feature flag progressively and roll it back on errors.
- Use AWS SAM-supported local invocations and mocked external dependencies for repeatable Lambda unit tests.
- Store environment-scoped feature flags in AWS AppConfig and deploy them using a validated application configuration strategy.
Explanation
Correct Answer
D:AppConfig separates runtime configuration and progressive rollout from application binary releases. Apply: Store environment-scoped feature flags in AWS AppConfig and deploy them using a validated application configuration strategy. Acceptance check: Enable a test flag only in staging and confirm production's flag stays unchanged during rollback. Scenario: A payment feature must be turned off within minutes without rebuilding the Lambda function.
Incorrect Answers
A:Option A implements a different developer control (ECR image digest deployment): Deploy container workloads by a reviewed ECR image digest so promoted releases use the same immutable artifact. That does not resolve the specific situation: A payment feature must be turned off within minutes without rebuilding the Lambda function.
B:Option B implements a different developer control (AppConfig progressive rollout rollback): Use AppConfig deployment strategies and monitoring alarms to roll out a feature flag progressively and roll it back on errors. That does not resolve the specific situation: A payment feature must be turned off within minutes without rebuilding the Lambda function.
C:Option C implements a different developer control (SAM local unit tests and mocks): Use AWS SAM-supported local invocations and mocked external dependencies for repeatable Lambda unit tests. That does not resolve the specific situation: A payment feature must be turned off within minutes without rebuilding the Lambda function.
Question 465
An AWS developer is reviewing the next application release. A VPC-attached function loses calls to a public API after moving to private subnets without suitable egress. Which technical change most directly meets the requirement?
- Use a DynamoDB Query with known partition-key conditions or an appropriate index instead of repeatedly scanning every item.
- Use a DynamoDB conditional update based on the expected item version to prevent overwriting concurrent changes.
- Use the service SDK paginator or continuation token until all result pages have been retrieved.
- Attach Lambda to appropriate VPC subnets and security groups with verified routes to its private database.
Explanation
Correct Answer
D:VPC-connected Lambda network interfaces need reachable routes and security-group permissions for database connections. Apply: Attach Lambda to appropriate VPC subnets and security groups with verified routes to its private database. Acceptance check: Invoke from the Lambda VPC configuration and test an authorized connection to the required database port. Scenario: A VPC-attached function loses calls to a public API after moving to private subnets without suitable egress.
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 VPC-attached function loses calls to a public API after moving to private subnets without suitable egress.
B:Option B implements a different developer control (DynamoDB conditional writes): Use a DynamoDB conditional update based on the expected item version to prevent overwriting concurrent changes. That does not resolve the specific situation: A VPC-attached function loses calls to a public API after moving to private subnets without suitable egress.
C:Option C implements a different developer control (AWS SDK paginator use): Use the service SDK paginator or continuation token until all result pages have been retrieved. That does not resolve the specific situation: A VPC-attached function loses calls to a public API after moving to private subnets without suitable egress.
Question 466
A cloud developer must explain the mechanism behind a proposed solution. A team uses plain Parameter Store String values for production database passwords and distributes console read access widely. Which technical explanation correctly accounts for the solution?
- KMS GenerateDataKey returns key material and an encrypted key blob; the client uses the plaintext key only transiently for data encryption.
- SecureString parameters protect configuration at rest and require appropriate IAM and KMS access when retrieved.
- For supported symmetric KMS keys, older key material remains available to decrypt ciphertext when key rotation occurs.
- Hardcoded encryption keys are copied into builds and cannot be centrally rotated or permission-scoped safely.
Explanation
Correct Answer
B:SecureString parameters protect configuration at rest and require appropriate IAM and KMS access when retrieved. This is the operating principle for AWS Systems Manager Parameter Store secure strings. Validation: Fetch a test SecureString from the approved role and confirm a read-only unrelated role cannot decrypt it. Scenario: A team uses plain Parameter Store String values for production database passwords and distributes console read access widely.
Incorrect Answers
A:Option A explains KMS envelope encryption pattern rather than this issue: KMS GenerateDataKey returns key material and an encrypted key blob; the client uses the plaintext key only transiently for data encryption. It does not explain: A team uses plain Parameter Store String values for production database passwords and distributes console read access widely.
C:Option C explains KMS rotation and encrypted data continuity rather than this issue: For supported symmetric KMS keys, older key material remains available to decrypt ciphertext when key rotation occurs. It does not explain: A team uses plain Parameter Store String values for production database passwords and distributes console read access widely.
D:Option D explains Encryption key in application config rather than this issue: Hardcoded encryption keys are copied into builds and cannot be centrally rotated or permission-scoped safely. It does not explain: A team uses plain Parameter Store String values for production database passwords and distributes console read access widely.
Question 467
An engineering reviewer is evaluating service behavior and authorization boundaries. A regional service uses a certificate requested in an incompatible AWS Region for the gateway endpoint. Which mechanism explains the appropriate design decision?
- A TLS certificate's domain names and issuance or region constraints must match the client-visible service endpoint.
- S3 permissions and KMS key permissions are separate, so an otherwise permitted GetObject may fail during decryption.
- SigV4 binds the request components, credential scope, and signature, preventing unsigned API requests from being accepted.
- IAM policy evaluation combines requested actions, resources, conditions, and explicit denies for each API call.
Explanation
Correct Answer
A:A TLS certificate's domain names and issuance or region constraints must match the client-visible service endpoint. This is the operating principle for AWS Certificate Manager HTTPS certificate binding. Validation: Connect to the configured custom domain and inspect hostname matching, chain trust, and expected renewal state. Scenario: A regional service uses a certificate requested in an incompatible AWS Region for the gateway endpoint.
Incorrect Answers
B:Option B explains S3 SSE-KMS encryption key access rather than this issue: S3 permissions and KMS key permissions are separate, so an otherwise permitted GetObject may fail during decryption. It does not explain: A regional service uses a certificate requested in an incompatible AWS Region for the gateway endpoint.
C:Option C 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 regional service uses a certificate requested in an incompatible AWS Region for the gateway endpoint.
D:Option D 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 regional service uses a certificate requested in an incompatible AWS Region for the gateway endpoint.
Question 468
A development team must select an AWS application change. A team applies an AdministratorAccess policy to an application role despite a boundary prohibiting IAM role changes. Which implementation best addresses this situation?
- Avoid storing raw encryption keys in application code or environment files; retrieve or wrap keys through appropriate KMS-backed mechanisms.
- Configure an API Gateway JWT authorizer that enforces the expected issuer, audience, and route-specific scopes.
- Apply the required permissions boundary and identity policy so a developer-created execution role cannot exceed its maximum allowed privileges.
- Use an IAM role with STS temporary credentials and a narrow policy for an application making AWS SDK calls.
Explanation
Correct Answer
C:An IAM permissions boundary limits the permissions the identity policy can grant; it does not grant permissions by itself. Apply: Apply the required permissions boundary and identity policy so a developer-created execution role cannot exceed its maximum allowed privileges. Acceptance check: Attach an excessive policy to a bounded test role and show a forbidden action is still denied. Scenario: A team applies an AdministratorAccess policy to an application role despite a boundary prohibiting IAM role changes.
Incorrect Answers
A:Option A implements a different developer control (Encryption key in application config): Avoid storing raw encryption keys in application code or environment files; retrieve or wrap keys through appropriate KMS-backed mechanisms. That does not resolve the specific situation: A team applies an AdministratorAccess policy to an application role despite a boundary prohibiting IAM role changes.
B:Option B implements a different developer control (API Gateway JWT authorizer scope): Configure an API Gateway JWT authorizer that enforces the expected issuer, audience, and route-specific scopes. That does not resolve the specific situation: A team applies an AdministratorAccess policy to an application role despite a boundary prohibiting IAM role changes.
D:Option D implements a different developer control (IAM assumed role for workload): Use an IAM role with STS temporary credentials and a narrow policy for an application making AWS SDK calls. That does not resolve the specific situation: A team applies an AdministratorAccess policy to an application role despite a boundary prohibiting IAM role changes.
Question 469
A staging acceptance reviewer must demonstrate working end-to-end behavior rather than cite a configuration screenshot, using a controlled test before deployment. An image function needs s3:PutObject under one output prefix but is granted s3:* on every bucket. Which observation is the strongest acceptance evidence?
- Rotate a nonproduction test credential and confirm new connections work after refresh without embedding the secret in source code.
- Run permitted and denied test operations against sibling resources to verify scope boundaries.
- Rotate a safe test key using supported policy and decrypt ciphertext written with prior key material.
- Fetch a test SecureString from the approved role and confirm a read-only unrelated role cannot decrypt it.
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 image function needs s3:PutObject under one output prefix but is granted s3:* on every bucket.
Incorrect Answers
A:Option A is an acceptance test for Secrets Manager credential rotation: Rotate a nonproduction test credential and confirm new connections work after refresh without embedding the secret in source code. It is not direct evidence for: An image function needs s3:PutObject under one output prefix but is granted s3:* on every bucket.
C:Option C is an acceptance test for KMS rotation and encrypted data continuity: Rotate a safe test key using supported policy and decrypt ciphertext written with prior key material. It is not direct evidence for: An image function needs s3:PutObject under one output prefix but is granted s3:* on every bucket.
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: An image function needs s3:PutObject under one output prefix but is granted s3:* on every bucket.
Question 470
A staging acceptance reviewer must demonstrate working end-to-end behavior rather than cite a configuration screenshot, using a controlled test before deployment. A mobile API release passes integration tests but production rebuild downloads a different unpinned library version. Which observation is the strongest acceptance evidence?
- Generate a test change set and verify an intended safe update does not replace the production database.
- Replay known API and SQS test events and compare structured outputs and failure handling to expected values.
- Enable a test flag only in staging and confirm production's flag stays unchanged during rollback.
- Compare checksums of the artifact deployed to staging and production within the same approved release.
Explanation
Correct Answer
D:The decisive acceptance evidence is: Compare checksums of the artifact deployed to staging and production within the same approved release. It demonstrates: Artifact identity and checksums allow a release to preserve the binary that passed validation. Scenario: A mobile API release passes integration tests but production rebuild downloads a different unpinned library version.
Incorrect Answers
A:Option A 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 mobile API release passes integration tests but production rebuild downloads a different unpinned library version.
B:Option B 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: A mobile API release passes integration tests but production rebuild downloads a different unpinned library version.
C:Option C 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 mobile API release passes integration tests but production rebuild downloads a different unpinned library version.