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.

Question 281

Code is deployed successfully, but a risky business feature should be enabled gradually without rebuilding. Which approach fits?

  1. A controlled runtime feature flag with monitoring and rollback
  2. Increase the ALB connection timeout
  3. Change the package checksum
  4. Recompile the binary for each user

Explanation

Correct Answer

A:

Behavior can be changed independently of artifact deployment, limiting exposure while the code remains installed.

Incorrect Answers

B:

Network timeout settings do not control business feature eligibility.

C:

Changing integrity metadata does not selectively enable application behavior.

D:

Per-user builds undermine repeatability and add unnecessary deployment complexity.

Question 282

An alarm must evaluate total backlog divided by active workers. What CloudWatch feature can express that derived signal?

  1. Metric math over the relevant queue and capacity series
  2. Use only an absolute queue-depth alarm
  3. Divide active workers by backlog instead
  4. Sum worker count and backlog

Explanation

Correct Answer

A:

The expression creates the required relationship without changing the underlying measurements.

Incorrect Answers

B:

A total backlog does not normalize demand by the number of active workers.

C:

That inverts the required signal and changes its direction as per-worker load increases.

D:

Adding quantities with different meanings does not calculate backlog per worker.

Question 283

A fleet requires regularly rebuilt, patched AMIs with automated validation before distribution. Which service most directly supplies this workflow?

  1. An EBS volume attachment policy
  2. A CloudWatch dashboard alone
  3. A manually maintained golden EC2 instance only
  4. EC2 Image Builder with build, test, and distribution configuration

Explanation

Correct Answer

D:

Image pipelines automate repeatable image creation and validation rather than relying on individually patched source machines.

Incorrect Answers

A:

Volume placement does not compose and test an AMI pipeline.

B:

Observability does not build or distribute machine images.

C:

Manual mutation lacks an automated rebuild and validation workflow.

Question 284

A trusted Linux CodeBuild job in a supported environment must run Docker daemon-based image builds. Which project setting is normally required?

  1. Enable S3 versioning on the artifact bucket
  2. Enable privileged mode and assess its security implications
  3. Increase the pipeline action runOrder
  4. Attach a production task role to ECS

Explanation

Correct Answer

B:

Docker daemon workloads need the supported elevated container capabilities; restrict who controls these build commands.

Incorrect Answers

A:

Versioning does not expose the daemon capabilities needed by the build container.

C:

Execution order cannot grant operating-system privileges.

D:

The CodeBuild container does not inherit credentials or privileges from a separate ECS task.

Question 285

A responder manually corrects a resource while an automated repair is paused. How should the workflow resume safely?

  1. Delete the response logs before resuming
  2. Apply the queued write even if resource ownership changed
  3. Revalidate ownership and current state before applying the queued change
  4. Assume pausing locks every external management API

Explanation

Correct Answer

C:

Human intervention may invalidate earlier assumptions; resuming from stale intent can undo a correct repair.

Incorrect Answers

A:

Removing evidence does not reconcile competing changes.

B:

The original authorization context may no longer fit.

D:

A paused runbook does not prevent all outside changes.

Question 286

Archived logs in S3 should move to lower-cost storage before eventual deletion. What should implement that policy?

  1. Set only CloudWatch log-group retention
  2. Use only replication to another S3 bucket
  3. Use only S3 Versioning
  4. Lifecycle transition and expiration rules aligned with retrieval requirements

Explanation

Correct Answer

D:

Storage class and deletion timing can follow the evidence retention policy.

Incorrect Answers

A:

That setting does not govern files already archived as objects in S3.

B:

Replication creates copies but does not itself define the requested transition and expiration schedule.

C:

Versioning retains object versions and does not select the desired storage-tier lifecycle.

Question 287

A governance team wants to deploy a repeatable collection of AWS Config rules and remediation actions as one compliance definition. What feature fits?

  1. A CloudWatch dashboard alone
  2. A single CloudTrail lookup query
  3. An S3 object ACL
  4. An AWS Config conformance pack

Explanation

Correct Answer

D:

A pack groups supported rules and remediation configuration for consistent deployment; source recording and permissions remain prerequisites.

Incorrect Answers

A:

A dashboard visualizes signals rather than deploying the compliance definitions.

B:

An audit query does not install Config evaluation and remediation rules.

C:

Object access control does not define a compliance rule collection.

Question 288

An Auto Scaling deployment must be reproducible and reversible. How should it select its launch template?

  1. Use an explicit version whose AMI and settings are recorded
  2. Edit each running instance instead of the template
  3. Use an instance's display-name tag as the template
  4. Use $Latest without recording which version resolved

Explanation

Correct Answer

A:

A pinned template version identifies the desired host configuration and supplies a concrete rollback reference.

Incorrect Answers

B:

Future replacements would still launch from the old configuration.

C:

Tags do not define launch parameters or machine images.

D:

Later edits can change future launches without a corresponding release record.

Question 289

Engineers need to find X-Ray traces for a particular deployment ID without downloading every trace. The value is safe to index. Where should supported instrumentation place that value?

  1. Only in the local filename of the deployment package
  2. Only in an arbitrary X-Ray metadata object
  3. Only in a CloudWatch dashboard text widget
  4. In an X-Ray annotation suitable for a filter expression

Explanation

Correct Answer

D:

Annotations are indexed for trace filtering. Keep indexed fields bounded and nonsensitive; metadata has a different searchability role.

Incorrect Answers

A:

Package naming does not automatically populate searchable trace annotations.

B:

Metadata can carry diagnostic content but is not indexed for the same annotation-based trace filtering.

C:

A dashboard description does not attach an indexed field to each distributed trace.

Question 290

A custom metric is published with Service and Environment dimensions, but a query using only Service finds nothing. Why?

  1. Assume CloudWatch automatically aggregates every custom metric across omitted dimensions
  2. Change only the metric period
  3. The query selects a different metric identity
  4. Change only the statistic from Average to Sum

Explanation

Correct Answer

C:

Custom metric dimensions identify distinct series; omit or aggregate dimensions only through supported explicit mechanisms.

Incorrect Answers

A:

Custom metric queries generally need the published identity or an explicit aggregation mechanism.

B:

Period selection does not select a different dimension combination.

D:

The statistic applies after the correct metric identity is selected.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests