Question 270

A release role may pass one approved execution role to CloudFormation. It must not pass that same role to EC2. The role ARN restriction is already present. Which additional IAM condition targets the destination-service requirement?

  1. Constrain aws:RequestedRegion to the production Region only
  2. Constrain iam:PassRole with iam:PassedToService equal to cloudformation.amazonaws.com
  3. Constrain the caller session name to release
  4. Allow sts:AssumeRole on the execution role instead of iam:PassRole

Explanation

Correct Answer

B:

This condition limits the service to which the caller can pass the approved role. The execution role also needs the appropriate service trust policy.

Incorrect Answers

A:

A regional restriction can limit where requests occur, but it does not distinguish CloudFormation from EC2 within that Region.

C:

A session-name convention does not establish which service receives the passed role and can be unsuitable as the sole authorization boundary.

D:

Assuming a role creates a caller session. It does not express the destination-service restriction on assigning that role to an AWS service.

Question 271

An image scanner finds a prohibited critical vulnerability, but the pipeline still publishes the image. What is missing?

  1. A higher ECR image retention count
  2. A shorter deployment timeout
  3. A policy evaluation that fails the scan action for prohibited findings
  4. A dashboard showing scan totals

Explanation

Correct Answer

C:

Detection must be translated into an execution failure before downstream publication is permitted.

Incorrect Answers

A:

Retaining more images does not block a vulnerable release.

B:

Execution duration is unrelated to vulnerability acceptance policy.

D:

Visibility alone does not change pipeline progression.

Question 272

A worker often processes longer than the SQS visibility timeout, producing duplicate concurrent handling. What should it do?

  1. Increase only the queue's message retention period
  2. Use a longer receive long-poll wait instead
  3. Set or extend visibility to cover processing and keep processing idempotent
  4. Delete the message before the work completes

Explanation

Correct Answer

C:

Visibility hides in-flight messages temporarily; it is not an exactly-once execution guarantee.

Incorrect Answers

A:

Retention bounds message lifetime and does not keep a received message hidden during active processing.

B:

Receive waiting controls empty polling, not the visibility of a message already delivered to a worker.

D:

A crash after deletion would lose the unfinished job instead of allowing safe recovery.

Question 273

A build fails with an executable format error after moving to ARM compute while dependencies contain x86 binaries. What should be corrected?

  1. Increase only the project timeout
  2. Align binary architecture, build environment, and dependency artifacts
  3. Grant wider S3 permissions
  4. Rename the buildspec phases

Explanation

Correct Answer

B:

Precompiled binaries must match the execution platform; network or IAM changes cannot make x86 machine code native ARM code.

Incorrect Answers

A:

Additional time does not repair an incompatible executable format.

C:

Artifact authorization does not translate processor instructions.

D:

Phase labels do not change the binary architecture.

Question 274

Engineers need searchable unit-test results and pass-rate trends from CodeBuild's JUnit XML files. What should they configure?

  1. A buildspec reports section and CodeBuild report group
  2. Only the artifacts files list
  3. A deployment lifecycle hook
  4. An S3 lifecycle expiration rule

Explanation

Correct Answer

A:

Report ingestion interprets supported test-result files and exposes structured results rather than raw log text alone.

Incorrect Answers

B:

Packaging XML preserves files but does not itself create structured CodeBuild test reports.

C:

Runtime hooks do not automatically ingest build-time JUnit results.

D:

Expiration manages storage age, not test-result analysis.

Question 275

Request latency rises with high I/O wait and volume metrics showing saturated performance, while CPU use is moderate. What should be investigated?

  1. Only the public DNS name
  2. The volume's IOPS and throughput limits and the instance's EBS bandwidth
  3. Only the desired Auto Scaling count for a stateful singleton
  4. Only the application's log font

Explanation

Correct Answer

B:

Storage and instance limits can bottleneck the workload; both must fit measured demand.

Incorrect Answers

A:

Name resolution does not expand block-storage performance.

C:

A fleet target does not directly improve the saturated volume.

D:

Presentation settings do not affect storage queueing.

Question 276

A database operator needs to recover to just before an accidental destructive transaction within the supported recovery window. Which capability is relevant?

  1. Fail over to a replica that already applied the destructive transaction
  2. Restore only the most recent snapshot even if it predates important valid transactions
  3. Restart the database engine without restoring data
  4. Point-in-time recovery using appropriate database backups and logs

Explanation

Correct Answer

D:

Recovery can create a restored database at a chosen supported time rather than only the last full snapshot.

Incorrect Answers

A:

The replica may contain the same logical deletion and provide no pre-transaction recovery point.

B:

A snapshot can recover its capture point but cannot alone supply the required finer pre-error point.

C:

A restart does not undo committed destructive transactions.

Question 277

Operators use ARC routing controls for manual multi-Region traffic switching. They need DNS to reflect the control states and an enforced safeguard against turning every replica off unintentionally. Which TWO configurations fit? Choose TWO.

  1. Associate routing-control health checks with the relevant Route 53 records
  2. Create an assertion safety rule requiring at least one relevant routing control to remain On
  3. Configure a longer DNS TTL as the safety rule
  4. Use routing-control names alone as DNS records without health-check association
  5. Rely only on an incident checklist to reject an all-Off state update

Explanation

Correct Answers

A:

The routing-control health checks connect the on/off control states to Route 53 routing decisions. A control panel alone does not change arbitrary DNS records.

B:

An assertion rule can reject state updates that violate the configured invariant. This provides an enforced guardrail rather than relying solely on operator memory.

Incorrect Answers

C:

TTL affects resolver caching. It does not validate routing-control state combinations or prevent an all-Off update.

D:

A matching name does not connect a record to the routing-control health signal. The record needs the appropriate health-check integration.

E:

A checklist is useful operational guidance but does not enforce rejection of an unsafe API state change.

Question 278

An EC2 application cannot append logs, and filesystem utilization is 100%. What is the immediate diagnostic focus?

  1. Increase CPU credits only
  2. Restart repeatedly without checking disk usage
  3. Change the security group's inbound port
  4. Identify the full filesystem and large consumers before controlled cleanup or expansion

Explanation

Correct Answer

D:

Space exhaustion can break writes even with healthy CPU; evidence-guided recovery avoids deleting necessary data.

Incorrect Answers

A:

CPU capacity does not release disk blocks.

B:

A restart may leave the same full filesystem and failed writes.

C:

Network permissions do not fix local write exhaustion.

Question 279

A service changes its response schema and breaks consumers although its unit tests pass. Which added test most directly addresses this gap?

  1. A database backup test only
  2. Consumer-provider contract tests for the published interface
  3. A build-cache integrity test only
  4. More CPU benchmarking of the producer

Explanation

Correct Answer

B:

Contract checks validate compatibility expectations crossing service boundaries, beyond internal function behavior.

Incorrect Answers

A:

Restore capability does not validate an API contract.

C:

Dependency caching cannot establish that consumers understand a changed schema.

D:

Performance measurements do not verify response field compatibility.

Question 280

A CodeBuild job is terminated by its project execution timeout while the pipeline's action timeout is longer. Which setting must change for a legitimate longer build?

  1. Add more pipeline stages after the build
  2. Raise the deployment alarm threshold
  3. Increase the CodeBuild project timeout within supported limits
  4. Increase only the source action timeout

Explanation

Correct Answer

C:

The service terminates its own build independently of how long the orchestration action is willing to wait.

Incorrect Answers

A:

Later stages cannot prevent the earlier service timeout.

B:

Deployment alarms do not control build process lifetime.

D:

Source retrieval timing does not extend a running build's execution allowance.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests