AWS Certified Developer - Associate DVA-C02 Practice Test 50
Question 490
An independent QA lead must observe a reproducible before-and-after result with controlled test inputs prior to signing the release. An engineer tries to bypass a failed manual approval step by rerunning only the deployment stage. What test most directly confirms the intended behavior?
- Return simulated 200, 429, and timeout responses from a test service and verify the application's resulting state.
- Commit a safe test change to the selected branch and verify one pipeline execution records the corresponding revision.
- Compare checksums of the artifact deployed to staging and production within the same approved release.
- Run a safe integration build and confirm production deployment waits for the explicit approval decision.
Explanation
Correct Answer
D:The decisive acceptance evidence is: Run a safe integration build and confirm production deployment waits for the explicit approval decision. It demonstrates: A pipeline approval action prevents production promotion until a permitted reviewer approves the exact tested revision. Scenario: An engineer tries to bypass a failed manual approval step by rerunning only the deployment stage.
Incorrect Answers
A:Option A is an acceptance test for Integration test API dependency contract: Return simulated 200, 429, and timeout responses from a test service and verify the application's resulting state. It is not direct evidence for: An engineer tries to bypass a failed manual approval step by rerunning only the deployment stage.
B:Option B 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: An engineer tries to bypass a failed manual approval step by rerunning only the deployment stage.
C:Option C is an acceptance test for CodeBuild artifact promotion: Compare checksums of the artifact deployed to staging and production within the same approved release. It is not direct evidence for: An engineer tries to bypass a failed manual approval step by rerunning only the deployment stage.
Question 491
A cloud developer must explain the mechanism behind a proposed solution. A team applies an AdministratorAccess policy to an application role despite a boundary prohibiting IAM role changes. Which technical explanation correctly accounts for the solution?
- Observability must retain useful identifiers and failure context without exposing credentials, email addresses, or regulated data.
- Hardcoded encryption keys are copied into builds and cannot be centrally rotated or permission-scoped safely.
- Identity claims determine tenant authorization independently of which resource key a user guesses or sends in a URL.
- An IAM permissions boundary limits the permissions the identity policy can grant; it does not grant permissions by itself.
Explanation
Correct Answer
D:An IAM permissions boundary limits the permissions the identity policy can grant; it does not grant permissions by itself. This is the operating principle for IAM permission boundary intersection. Validation: 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 explains PII masking in application logs rather than this issue: Observability must retain useful identifiers and failure context without exposing credentials, email addresses, or regulated data. It does not explain: A team applies an AdministratorAccess policy to an application role despite a boundary prohibiting IAM role changes.
B:Option B 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 applies an AdministratorAccess policy to an application role despite a boundary prohibiting IAM role changes.
C:Option C explains Multi-tenant partitioning guard rather than this issue: Identity claims determine tenant authorization independently of which resource key a user guesses or sends in a URL. It does not explain: A team applies an AdministratorAccess policy to an application role despite a boundary prohibiting IAM role changes.
Question 492
An AWS developer is reviewing the next application release. A retail app must query inventory by warehouseId while its primary key represents productId. Which technical change most directly meets the requirement?
- Set an SQS visibility timeout aligned with consumer processing and delete messages only after durable successful handling.
- Create a DynamoDB global secondary index for a supported alternate access pattern not covered by the table key.
- Define per-environment Lambda environment variables for nonsecret configuration and use managed secret retrieval for credentials.
- Choose Kinesis partition keys to preserve per-entity event order while distributing unrelated entities across shards.
Explanation
Correct Answer
B:A GSI exposes an alternate partition and optional sort key, with asynchronous index propagation and separate capacity impacts. Apply: Create a DynamoDB global secondary index for a supported alternate access pattern not covered by the table key. Acceptance check: 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
A:Option A 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 retail app must query inventory by warehouseId while its primary key represents productId.
C:Option C implements a different developer control (Lambda environment configuration): Define per-environment Lambda environment variables for nonsecret configuration and use managed secret retrieval for credentials. That does not resolve the specific situation: A retail app must query inventory by warehouseId while its primary key represents productId.
D:Option D implements a different developer control (Kinesis per-shard ordering): Choose Kinesis partition keys to preserve per-entity event order while distributing unrelated entities across shards. That does not resolve the specific situation: A retail app must query inventory by warehouseId while its primary key represents productId.
Question 493
An independent QA lead must observe a reproducible before-and-after result with controlled test inputs prior to signing the release. An operator plans to schedule key deletion the day after rotating encryption keys used by archived application data. What test most directly confirms the intended behavior?
- Sign in as an authenticated test user and verify their temporary AWS credentials can reach only the expected S3 resources.
- Rotate a safe test key using supported policy and decrypt ciphertext written with prior key material.
- Try assuming the role from an allowed account and an unauthorized account and compare resulting session permissions.
- Send a properly signed request and a tampered payload with unchanged signature and verify the latter is rejected.
Explanation
Correct Answer
B:The decisive acceptance evidence is: Rotate a safe test key using supported policy and decrypt ciphertext written with prior key material. It demonstrates: For supported symmetric KMS keys, older key material remains available to decrypt ciphertext when key rotation occurs. Scenario: An operator plans to schedule key deletion the day after rotating encryption keys used by archived application data.
Incorrect Answers
A:Option A is an acceptance test for Cognito identity pool scoped AWS access: Sign in as an authenticated test user and verify their temporary AWS credentials can reach only the expected S3 resources. It is not direct evidence for: An operator plans to schedule key deletion the day after rotating encryption keys used by archived application data.
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 operator plans to schedule key deletion the day after rotating encryption keys used by archived application data.
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 operator plans to schedule key deletion the day after rotating encryption keys used by archived application data.
Question 494
A staging acceptance reviewer must demonstrate working end-to-end behavior rather than cite a configuration screenshot, using a controlled test before deployment. An application update breaks login immediately after a traffic cutover and operations need the previous environment back. Which observation is the strongest acceptance evidence?
- Induce a failing readiness test in the new environment and verify routing returns to the previous one.
- Generate a test change set and verify an intended safe update does not replace the production database.
- Deploy a representative load test with the proposed runtime limits and inspect memory and CPU saturation.
- Enable a test flag only in staging and confirm production's flag stays unchanged during rollback.
Explanation
Correct Answer
A:The decisive acceptance evidence is: Induce a failing readiness test in the new environment and verify routing returns to the previous one. It demonstrates: Blue-green release keeps a known environment available while traffic moves to the tested replacement. Scenario: An application update breaks login immediately after a traffic cutover and operations need the previous environment back.
Incorrect Answers
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: An application update breaks login immediately after a traffic cutover and operations need the previous environment back.
C:Option C is an acceptance test for Application deployment memory sizing: Deploy a representative load test with the proposed runtime limits and inspect memory and CPU saturation. It is not direct evidence for: An application update breaks login immediately after a traffic cutover and operations need the previous environment back.
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: An application update breaks login immediately after a traffic cutover and operations need the previous environment back.
Question 495
An incident review asks which unsafe assumption in an AWS implementation must be prevented. Two regional deployments use different ZIP contents despite sharing the same release label. Which overlooked failure condition is the central concern?
- Do not represent a passing build stage as a substitute for the organization's required release approval.
- Do not change dependencies or rebuild source independently between QA approval and production promotion.
- Do not delete the old healthy target group before the new application's readiness has been verified.
- Do not run destructive HTTP tests against the production custom domain because stages were not separated.
Explanation
Correct Answer
B:Do not change dependencies or rebuild source independently between QA approval and production promotion. This is significant because Artifact identity and checksums allow a release to preserve the binary that passed validation. Scenario: Two regional deployments use different ZIP contents despite sharing the same release label.
Incorrect Answers
A:Option A warns about an unrelated failure boundary (CodePipeline cross-stage approval): Do not represent a passing build stage as a substitute for the organization's required release approval. It is not the key risk in: Two regional deployments use different ZIP contents despite sharing the same release label.
C:Option C warns about an unrelated failure boundary (CodeDeploy blue-green rollback): Do not delete the old healthy target group before the new application's readiness has been verified. It is not the key risk in: Two regional deployments use different ZIP contents despite sharing the same release label.
D:Option D warns about an unrelated failure boundary (API Gateway staging endpoint verification): Do not run destructive HTTP tests against the production custom domain because stages were not separated. It is not the key risk in: Two regional deployments use different ZIP contents despite sharing the same release label.
Question 496
A production readiness review identifies a potential software defect. An order Lambda times out connecting to a private Aurora endpoint because its security group blocks the port. 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 perform a blind versionless read-modify-write that overwrites another writer's more recent change.
- Do not assume a globally total order across all Kinesis shards or use one hot constant key.
- Do not expect DynamoDB exact-key lookups to offer ranked text queries across free-form documents.
Explanation
Correct Answer
A:Do not assume adding Lambda to a VPC automatically provides internet egress or private database reachability. This is significant because VPC-connected Lambda network interfaces need reachable routes and security-group permissions for database connections. Scenario: An order Lambda times out connecting to a private Aurora endpoint because its security group blocks the port.
Incorrect Answers
B:Option B 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: An order Lambda times out connecting to a private Aurora endpoint because its security group blocks the port.
C:Option C warns about an unrelated failure boundary (Kinesis per-shard ordering): Do not assume a globally total order across all Kinesis shards or use one hot constant key. It is not the key risk in: An order Lambda times out connecting to a private Aurora endpoint because its security group blocks the port.
D:Option D warns about an unrelated failure boundary (OpenSearch text search use case): Do not expect DynamoDB exact-key lookups to offer ranked text queries across free-form documents. It is not the key risk in: An order Lambda times out connecting to a private Aurora endpoint because its security group blocks the port.
Question 497
An engineering reviewer is evaluating service behavior and authorization boundaries. A webhook function rejects API Gateway HTTP API payloads because its tests assume REST API event version 1.0. Which mechanism explains the appropriate design decision?
- Infrastructure parameters let the same reviewed template create isolated environments with different endpoints and policies.
- A pipeline approval action prevents production promotion until a permitted reviewer approves the exact tested revision.
- Change sets preview the proposed resource operations, including destructive replacements and IAM changes.
- A fixture exercises the exact envelope the event source sends, including metadata and nested record structures.
Explanation
Correct Answer
D:A fixture exercises the exact envelope the event source sends, including metadata and nested record structures. This is the operating principle for Test Lambda JSON event fixture. Validation: Replay known API and SQS test events and compare structured outputs and failure handling to expected values. Scenario: A webhook function rejects API Gateway HTTP API payloads because its tests assume REST API event version 1.0.
Incorrect Answers
A:Option A explains SAM parameter overrides for staging rather than this issue: Infrastructure parameters let the same reviewed template create isolated environments with different endpoints and policies. It does not explain: A webhook function rejects API Gateway HTTP API payloads because its tests assume REST API event version 1.0.
B:Option B explains CodePipeline cross-stage approval rather than this issue: A pipeline approval action prevents production promotion until a permitted reviewer approves the exact tested revision. It does not explain: A webhook function rejects API Gateway HTTP API payloads because its tests assume REST API event version 1.0.
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 webhook function rejects API Gateway HTTP API payloads because its tests assume REST API event version 1.0.
Question 498
A staging acceptance reviewer must demonstrate working end-to-end behavior rather than cite a configuration screenshot, using a controlled test before deployment. A developer pastes a payment-provider API token into a public SAM template parameter default. Which observation is the strongest acceptance evidence?
- Invoke the same API with two customer identities and verify neither can retrieve the other's object identifiers.
- Encrypt and decrypt a synthetic large payload while verifying encrypted data keys, authorization, and key handling.
- Rotate a nonproduction test credential and confirm new connections work after refresh without embedding the secret in source code.
- Invoke a test function and verify a sensitive value is never emitted in its response or CloudWatch logs.
Explanation
Correct Answer
D:The decisive acceptance evidence is: Invoke a test function and verify a sensitive value is never emitted in its response or CloudWatch logs. It demonstrates: Application secrets should have controlled retrieval, audit, and rotation rather than appearing in plaintext code or build artifacts. Scenario: A developer pastes a payment-provider API token into a public SAM template parameter default.
Incorrect Answers
A:Option A 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 developer pastes a payment-provider API token into a public SAM template parameter default.
B:Option B 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 developer pastes a payment-provider API token into a public SAM template parameter default.
C:Option C 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: A developer pastes a payment-provider API token into a public SAM template parameter default.
Question 499
An incident review asks which unsafe assumption in an AWS implementation must be prevented. An API cache has almost no hits because its cache key includes a unique tracing header for every request. Which overlooked failure condition is the central concern?
- Do not ignore a language header if responses differ by language, or include every random header in the cache key.
- Do not infer which microservice caused latency solely from aggregate API Gateway response times.
- Do not emit only free-form strings with missing request identifiers and full customer payloads.
- Do not enable full unsampled payload traces containing credentials for every production request.
Explanation
Correct Answer
A:Do not ignore a language header if responses differ by language, or include every random header in the cache key. This is significant because A cache key built from relevant path, query, cookies, and headers separates content variants without fragmenting the cache unnecessarily. Scenario: An API cache has almost no hits because its cache key includes a unique tracing header for every request.
Incorrect Answers
B:Option B warns about an unrelated failure boundary (X-Ray distributed trace diagnosis): Do not infer which microservice caused latency solely from aggregate API Gateway response times. It is not the key risk in: An API cache has almost no hits because its cache key includes a unique tracing header for every request.
C:Option C warns about an unrelated failure boundary (Structured JSON application logging): Do not emit only free-form strings with missing request identifiers and full customer payloads. It is not the key risk in: An API cache has almost no hits because its cache key includes a unique tracing header for every request.
D:Option D warns about an unrelated failure boundary (App-level trace sampling and privacy): Do not enable full unsampled payload traces containing credentials for every production request. It is not the key risk in: An API cache has almost no hits because its cache key includes a unique tracing header for every request.
Question 500
An AWS developer is reviewing the next application release. A function caches a rotated database password forever and all new connections fail the next day. Which technical change most directly meets the requirement?
- Require authenticated tenant IDs in database query keys or conditions rather than accepting a caller-controlled tenant key alone.
- Attach an ACM-managed certificate matching the custom domain to the intended supported API or load balancer endpoint.
- Read database credentials from Secrets Manager and validate supported rotation to avoid hardcoded passwords in application configuration.
- Store supported application secrets as encrypted Parameter Store SecureString parameters and control read/decrypt permissions.
Explanation
Correct Answer
C:Secret versions can rotate independently of a code deployment, while clients must handle cached credential updates. Apply: Read database credentials from Secrets Manager and validate supported rotation to avoid hardcoded passwords in application configuration. Acceptance check: Rotate a nonproduction test credential and confirm new connections work after refresh without embedding the secret in source code. Scenario: A function caches a rotated database password forever and all new connections fail the next day.
Incorrect Answers
A:Option A implements a different developer control (Multi-tenant partitioning guard): Require authenticated tenant IDs in database query keys or conditions rather than accepting a caller-controlled tenant key alone. That does not resolve the specific situation: A function caches a rotated database password forever and all new connections fail the next day.
B:Option B implements a different developer control (AWS Certificate Manager HTTPS certificate binding): Attach an ACM-managed certificate matching the custom domain to the intended supported API or load balancer endpoint. That does not resolve the specific situation: A function caches a rotated database password forever and all new connections fail the next day.
D:Option D implements a different developer control (AWS Systems Manager Parameter Store secure strings): Store supported application secrets as encrypted Parameter Store SecureString parameters and control read/decrypt permissions. That does not resolve the specific situation: A function caches a rotated database password forever and all new connections fail the next day.