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.

Question 371

An operator manually changes a supported stack resource property explicitly declared in the template. How can the team identify the difference?

  1. Use ValidateTemplate only
  2. Read only the last successful stack status
  3. Compare only template versions stored in Git
  4. Run CloudFormation drift detection

Explanation

Correct Answer

D:

It compares supported actual properties with the declared expected configuration; it does not automatically repair every difference.

Incorrect Answers

A:

Template syntax validation does not compare declared properties against live service configuration.

B:

A resource can drift after a successful deployment through direct API or console changes.

C:

Source history does not reveal live changes that never entered the repository.

Question 372

A manually created supported resource should enter CloudFormation management without recreation. What workflow fits?

  1. Run DeleteStack before discovering the identifier
  2. Rename the stack to match the resource
  3. Resource import with a matching template and resource identifier
  4. Create a new resource with the same unique name

Explanation

Correct Answer

C:

Import associates an existing physical resource with the stack; its properties must be represented and checked carefully.

Incorrect Answers

A:

Deleting a stack does not import an unmanaged object.

B:

Stack names do not establish resource ownership.

D:

That normally conflicts with the existing object rather than adopting it.

Question 373

An application emits structured fatal events. What pair can produce threshold-based notifications for new occurrences? Choose TWO.

  1. Use only a metric stream without creating a log-derived metric
  2. Use a scheduled manual spreadsheet count
  3. A metric filter extracting a numeric count
  4. Create only a dashboard widget for the raw messages
  5. A CloudWatch alarm with an authorized notification action

Explanation

Correct Answers

C:

The filter converts matching newly ingested events into a metric signal.

E:

The alarm evaluates the count and invokes the configured action on relevant state changes.

Incorrect Answers

A:

A stream exports metric updates but does not interpret the application's fatal log records.

B:

A manual summary does not provide automatic notifications as new events cross the threshold.

D:

A visual display does not establish metric evaluation or an authorized notification action.

Question 374

Two simultaneous findings trigger conflicting changes to the same resource. What coordination mechanism fits?

  1. Use unrelated random lock keys for each execution
  2. Assume event arrival order serializes target execution
  3. Acquire a conditional per-resource lock with timeout and safe retry
  4. Increase both workflows' concurrency

Explanation

Correct Answer

C:

Conditional writes can serialize competing remediation while expiration or recovery handles abandoned locks.

Incorrect Answers

A:

Separate keys do not coordinate access to the same resource.

B:

Asynchronous delivery does not guarantee mutually exclusive processing.

D:

More simultaneous work aggravates contention.

Question 375

A bucket policy requires uploads to explicitly name a particular KMS key in the request. A client omits encryption headers, relying on bucket defaults. What can happen?

  1. The policy can deny the upload despite the default encryption setting
  2. The bucket name changes to the key ARN
  3. The object is uploaded publicly instead
  4. Default encryption automatically bypasses every deny

Explanation

Correct Answer

A:

Request-condition enforcement and bucket defaults are separate; the client must meet the policy's explicit header requirements.

Incorrect Answers

B:

Neither policy evaluation nor encryption renames the bucket.

C:

Encryption-header mismatch does not imply public access.

D:

A configured default does not negate an applicable explicit policy deny.

Question 376

A custom setup action must wait for a resource even though it never references that resource's attributes. How should the dependency be declared?

  1. Insert blank lines between resources
  2. Alphabetically rename the logical IDs
  3. Rely on resource order in the YAML file
  4. Use an explicit DependsOn relationship

Explanation

Correct Answer

D:

CloudFormation cannot infer a missing reference dependency, so explicit ordering expresses the requirement.

Incorrect Answers

A:

Formatting has no effect on resource scheduling.

B:

Names do not impose provisioning sequence.

C:

Textual position does not define execution order in the dependency graph.

Question 377

Traffic volume doubles and raw error count rises, but operators need the fraction of failed requests. What should they calculate?

  1. Use only the error count
  2. Errors divided by total requests with appropriate zero-traffic handling
  3. Multiply failures by total requests
  4. Divide total requests by failures

Explanation

Correct Answer

B:

A rate normalizes failures by demand, distinguishing volume growth from reliability degradation.

Incorrect Answers

A:

Absolute failures can rise with traffic even when the failure fraction is unchanged.

C:

The product grows with traffic and is not a normalized failure proportion.

D:

That calculates the inverse ratio and needs different interpretation from the fraction requested.

Question 378

An application fails after RDS failover because its connection pool retains broken connections. What should the client do?

  1. Pin the old database IP permanently
  2. Increase only the backup retention
  3. Disable all query timeouts
  4. Detect failed connections, reconnect using the database endpoint, and use bounded retries

Explanation

Correct Answer

D:

Failover can invalidate established sockets; clients must refresh connections rather than depend on the former host.

Incorrect Answers

A:

That bypasses endpoint updates and can prolong failure.

B:

Backup history does not reconnect a client socket.

C:

Unbounded waits can exhaust threads and obscure recovery.

Question 379

A deployment must continue using the tested image even if someone moves its release tag. How should the task definition identify the image?

  1. Sort image tags alphabetically
  2. Reference the image digest
  3. Use the latest tag
  4. Choose the image with the largest size

Explanation

Correct Answer

B:

A digest binds deployment to image content, whereas a mutable tag can later resolve to different bytes.

Incorrect Answers

A:

Tag ordering does not establish content identity or test provenance.

C:

The tag is a movable reference and can select a different image on the next pull.

D:

Size cannot identify the approved package.

Question 380

A role can retrieve a SecureString parameter name but cannot decrypt its value using a customer managed key. What permission path must be checked?

  1. Only a longer parameter version history
  2. Access to the parameter and authorization to use its KMS key
  3. Only the parameter's description
  4. Only permission to rename parameters

Explanation

Correct Answer

B:

Reading encrypted configuration requires both the configuration operation and the applicable decryption authority.

Incorrect Answers

A:

Additional versions do not resolve key authorization.

C:

Metadata text cannot authorize cryptographic operations.

D:

Renaming does not grant decryption access.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests