Question 130

A global site repeatedly serves identical cacheable assets from its application fleet. What can reduce origin demand?

  1. Set the cache policy to forward every request to origin with zero caching
  2. Scale only the application logging service
  3. CloudFront caching with appropriate cache policies
  4. Add DNS aliases pointing to the same application fleet

Explanation

Correct Answer

C:

Edge reuse reduces repeated origin fetches while cache keys and lifetimes preserve correctness.

Incorrect Answers

A:

That preserves origin demand instead of offloading repeated cacheable responses.

B:

Log collection does not serve the repeated asset requests at the edge.

D:

Additional names do not cache content or remove requests from the origin.

Question 131

A service will publish latency through CloudWatch embedded metric format instead of separate PutMetricData calls. Its events are valid standalone JSON. Which THREE document elements are needed to extract a Latency metric dimensioned by Service and Environment? Choose THREE.

  1. Root-level Service and Environment string values referenced by the dimension set
  2. A root-level numeric Latency value or supported numeric array referenced by the metric definition
  3. Only an arbitrary field called metric with the text Latency=25
  4. A valid _aws metadata object declaring Timestamp and the CloudWatchMetrics directive
  5. A dimension set referring to ServiceName while the event contains only Service
  6. A Timestamp string containing a human-readable date instead of the required numeric epoch milliseconds

Explanation

Correct Answers

A:

Dimension-set names reference string members in the same root object. Keeping the dimension values bounded also avoids unnecessary high-cardinality metric identities.

B:

The metric definition references target values in the root event. Declaring a metric name without a matching supported numeric value does not provide a measurement.

D:

The reserved metadata tells CloudWatch which metric definitions to extract and the metric timestamp to use. It must follow the documented structure and case-sensitive member names.

Incorrect Answers

C:

An ordinary text field is not the embedded metric format extraction directive. Valid JSON alone does not make the payload a valid metric document.

E:

Referenced target members must exist under their declared names. A mismatch does not establish the required Service dimension.

F:

The metadata timestamp uses a numeric count of milliseconds since the epoch. A descriptive date string violates that required type.

Question 132

An API faces bursts beyond safe backend throughput. What protects the backend while clients retry appropriately?

  1. Apply request throttling and return meaningful retryable responses
  2. Disable all rate limits permanently
  3. Retry rejected requests in a tight loop
  4. Accept unlimited work into memory

Explanation

Correct Answer

A:

Controlled admission bounds backend load; clients should back off rather than amplify the overload.

Incorrect Answers

B:

Removing limits does not add backend capacity.

C:

Synchronized immediate retries increase pressure.

D:

Unbounded buffering can exhaust the API process.

Question 133

A service must deploy schema changes without breaking the previous version during rolling updates. Which sequence is safest?

  1. Update every database and instance simultaneously without coordination
  2. Disable backups during migration
  3. Add compatible fields, deploy code using them, then remove obsolete fields after old versions retire
  4. Drop old columns before any application update

Explanation

Correct Answer

C:

An overlap period keeps both application versions functional while the schema transitions.

Incorrect Answers

A:

Failures can leave mixed versions despite the intended simultaneous operation.

B:

That reduces recovery options without improving schema compatibility.

D:

Old instances may still depend on those columns during the rollout.

Question 134

A governed account's baseline changes outside the approved provisioning workflow. What should operations do?

  1. Delete the account immediately
  2. Hide the drift finding
  3. Investigate reported drift and reconcile through the supported governance process
  4. Assume governance automatically prevents all configuration changes

Explanation

Correct Answer

C:

Understanding the change avoids silently overriding legitimate dependencies while restoring the intended baseline.

Incorrect Answers

A:

Destruction is not a proportionate first response to a baseline difference.

B:

Suppressing evidence does not restore governance.

D:

Preventive and detective coverage varies; drift can still require action.

Question 135

A team sees EC2 CPU metrics but no guest memory usage. What should collect it?

  1. Enable EC2 detailed monitoring only
  2. Use ALB target-response-time metrics
  3. Collect only EBS volume queue metrics
  4. A configured CloudWatch agent or equivalent custom metric publisher

Explanation

Correct Answer

D:

Guest memory is not supplied by standard EC2 infrastructure metrics alone.

Incorrect Answers

A:

Detailed monitoring changes the frequency of supported EC2 metrics; it does not automatically instrument guest memory.

B:

Request latency does not measure the instance operating system's memory consumption.

C:

Block-storage metrics do not reveal guest RAM utilization.

Question 136

A tested package must enter an internal release repository only after approval. Which access model fits?

  1. Allow the release identity to publish while test identities have read-only access
  2. Make the repository publicly writable
  3. Allow every consumer to overwrite release packages
  4. Rely only on a README asking writers to wait

Explanation

Correct Answer

A:

Separating read and publication authority prevents unapproved consumers from altering the approved package set.

Incorrect Answers

B:

Unrestricted publication defeats approval-based promotion.

C:

Consumers would gain publication authority unrelated to their installation duties.

D:

Documentation cannot enforce repository authorization.

Question 137

A build caches a CodeArtifact authorization token and fails authentication on a later day. What should it do?

  1. Increase package retention
  2. Change the package's semantic version
  3. Obtain a fresh token using its authorized build identity
  4. Grant public write access

Explanation

Correct Answer

C:

Repository tokens are time-limited; automated retrieval avoids dependence on stale cached credentials.

Incorrect Answers

A:

Retention controls package storage, not authentication token lifetime.

B:

Package metadata does not renew an expired authorization token.

D:

Removing authentication is unnecessary and weakens repository protection.

Question 138

Operators need the count of errors grouped by service during an incident interval. What query approach fits?

  1. Filter errors but use only limit to return a few matching rows
  2. Filter relevant events and aggregate counts by the structured service field
  3. Sort raw messages by timestamp without aggregation
  4. Create a new metric filter and assume it backfills the stored interval

Explanation

Correct Answer

B:

Field-based aggregation gives comparable service totals over the selected time range.

Incorrect Answers

A:

A row limit does not calculate the grouped counts required for the incident summary.

C:

Ordering events does not compute error totals by service.

D:

A newly created filter does not retroactively process all historical matching events.

Question 139

A team enables parallel pipeline executions for feature branches. What must its deployment design provide to avoid one branch overwriting another?

  1. Separate deployment resources per execution or branch
  2. A shared stack name for every branch
  3. A longer action timeout
  4. One common mutable artifact key

Explanation

Correct Answer

A:

Concurrency requires isolated targets as well as distinct artifacts; otherwise independent executions still mutate shared state.

Incorrect Answers

B:

Identical stack targets create contention even when source revisions differ.

C:

Extra time cannot isolate resource changes or prevent competing deployments.

D:

Overwriting the same object can mix packages between concurrent executions.

Question 140

A provisioned table throttles because nearly all writes target one partition key. What change addresses the structural bottleneck?

  1. Distribute writes across a better-partitioned key design
  2. Raise retries without backoff while keeping the same hot key
  3. Add an unrelated index and leave all writes on the original hot key
  4. Increase total table capacity without examining the per-key access pattern

Explanation

Correct Answer

A:

Adding aggregate capacity alone may not resolve concentrated demand on one hot key.

Incorrect Answers

B:

More immediate requests intensify pressure on the same partitioned access pattern.

C:

An unused query index does not redistribute those concentrated base-table writes.

D:

More aggregate capacity may not remove the structural concentration on one key and its applicable limits.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests