Question 360

After a Lambda VPC configuration change, execution reports an inability to create network interfaces. What should be checked?

  1. Only the log retention period
  2. Only the function handler name
  3. The execution role permissions required for Lambda VPC network interfaces
  4. Only API Gateway method caching

Explanation

Correct Answer

C:

VPC attachment requires supported EC2 interface-management permissions; the error should be distinguished from application routing failures.

Incorrect Answers

A:

Log storage settings do not authorize networking APIs.

B:

Handler selection does not grant interface-creation authority.

D:

Gateway caching cannot supply the missing EC2 permission.

Question 361

A low-volume candidate release fails, but aggregate error rate across the large stable fleet hides the regression. What should monitoring change?

  1. Evaluate only the stable fleet's aggregate error rate
  2. Increase stable-version traffic before assessing the candidate signal
  3. Use only deployment completion status
  4. Evaluate candidate-specific health alongside overall service health

Explanation

Correct Answer

D:

Separating the new revision's signal prevents stable traffic from diluting its failures.

Incorrect Answers

A:

The large healthy population can dilute failures in the smaller candidate release.

B:

More healthy stable traffic can hide the candidate regression further.

C:

Successful installation does not establish that the candidate handles runtime requests correctly.

Question 362

A large Auto Scaling instance refresh should pause after an initial batch so operators can inspect health. What feature fits?

  1. Use only a group scaling cooldown
  2. Replace the entire fleet in one step and inspect it afterward
  3. Instance refresh checkpoints and suitable warmup
  4. Use only target-group deregistration delay

Explanation

Correct Answer

C:

Checkpoints stage replacement progress, while warmup accounts for the time new instances need before further replacement.

Incorrect Answers

A:

Cooldown does not define the percentage checkpoints of an instance refresh rollout.

B:

That loses the requested pause after a limited initial batch.

D:

Connection draining does not establish staged refresh checkpoints.

Question 363

EC2 instances are tagged correctly but never process CodeDeploy lifecycle events. Which prerequisite should be checked on the hosts?

  1. Configure only an application target health check
  2. Attach the correct tags but omit the agent's S3 or service connectivity
  3. The installed and running CodeDeploy agent with required connectivity and instance permissions
  4. Increase the ALB timeout

Explanation

Correct Answer

C:

The EC2 platform relies on the agent to retrieve revisions and execute deployment instructions.

Incorrect Answers

A:

A probe can assess service readiness but cannot install or run the missing deployment agent.

B:

Target selection does not supply the host-side retrieval and execution prerequisites.

D:

Request handling settings do not start the CodeDeploy host agent.

Question 364

New project accounts need a repeatable governed baseline within an existing landing zone. Which workflow fits?

  1. One VPC per user in the management account
  2. One IAM user per project
  3. Independent root signups without enrollment
  4. AWS Control Tower Account Factory

Explanation

Correct Answer

D:

Account provisioning integrates with landing-zone governance rather than creating isolated unmanaged accounts.

Incorrect Answers

A:

Network separation does not replace account-level isolation.

B:

Users do not provide separate AWS account boundaries.

C:

Those accounts do not automatically inherit the landing zone's governance.

Question 365

An SQS-triggered Lambda batch has nine successful records and one failed record. How can the handler avoid retrying the nine successes?

  1. Return a list of successful identifiers as failures
  2. Throw an exception for the whole batch
  3. Delete the event-source mapping after processing
  4. Enable partial batch responses and return the failed message identifier

Explanation

Correct Answer

D:

The event-source mapping can retry identified failures without making every successful record eligible again.

Incorrect Answers

A:

Those identifiers would request retries for the wrong records.

B:

A whole-batch failure ordinarily returns all records for retry.

C:

Removing the mapping stops future processing rather than reporting record outcomes.

Question 366

A private service cannot be reached by public Route 53 endpoint checkers. How can failover use its health?

  1. Ask public Route 53 endpoint checkers to contact private RFC1918 addresses directly
  2. Increase DNS TTL as the only health-source change
  3. Publish a suitable private monitoring metric and use an alarm-based health check
  4. Make the health check always return healthy

Explanation

Correct Answer

C:

Internal observation supplies a health signal without exposing the endpoint publicly.

Incorrect Answers

A:

The public checker network cannot reach an arbitrary private endpoint without an appropriate supported monitoring design.

B:

Caching duration does not create a signal about the private service's health.

D:

A constant success signal cannot trigger failure-based routing when the private service fails.

Question 367

A pipeline deletes its temporary test environment immediately after a failing integration test. What should happen before cleanup?

  1. Keep only the pipeline's final failed status
  2. Leave every failed environment running indefinitely as the only evidence policy
  3. Capture diagnostic logs and test results as retained artifacts
  4. Delete test outputs before teardown to keep artifacts clean

Explanation

Correct Answer

C:

Failure evidence must outlive disposable infrastructure so engineers can investigate without rerunning an altered environment.

Incorrect Answers

A:

That identifies an unsuccessful action without preserving detailed test and environment evidence.

B:

Indefinite resources create cost and exposure without a deliberate diagnostic retention design.

D:

That removes the logs and assertions needed to diagnose the failure.

Question 368

A new deny policy might disrupt production accounts. What rollout process reduces organizational blast radius?

  1. Remove all CloudTrail logging first
  2. Attach it at the root immediately without testing
  3. Test only the JSON formatting
  4. Test in a representative isolated OU before wider attachment

Explanation

Correct Answer

D:

Staged evaluation reveals denied dependencies before the policy affects the broader account hierarchy.

Incorrect Answers

A:

Losing evidence makes unexpected denials harder to diagnose.

B:

Every affected member account can experience unanticipated restrictions at once.

C:

Valid syntax does not prove workloads retain required permissions.

Question 369

Hundreds of employees need centrally managed AWS access based on directory groups. Which pattern fits?

  1. Put workforce users into an EC2 instance profile
  2. Grant access through an S3 bucket ACL alone
  3. Create a shared IAM user for each department
  4. IAM Identity Center permission sets assigned to groups and accounts

Explanation

Correct Answer

D:

Assignments provision federated account access without distributing a permanent IAM access key to each employee.

Incorrect Answers

A:

Instance profiles associate roles with instances rather than employee directory sessions.

B:

A bucket ACL cannot provision workforce access across AWS accounts.

C:

Shared identities reduce attribution and require long-lived credential management.

Question 370

A test fails intermittently because it depends on wall-clock timing. What action improves release confidence without ignoring defects?

  1. Retry until one pass and discard failure history
  2. Make timing controllable and investigate failures before reinstating the gate
  3. Treat every test failure as success
  4. Delete all integration tests

Explanation

Correct Answer

B:

Deterministic inputs remove incidental variability while preserving the behavior the test should verify.

Incorrect Answers

A:

An eventual pass can conceal recurring faults and overstate confidence.

C:

The gate would stop distinguishing defective changes from healthy ones.

D:

Removing broad coverage sacrifices evidence beyond the unstable test itself.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests