Question 330

A customer-managed symmetric KMS key rotates its key material. What happens to data encrypted with prior material?

  1. KMS retains prior material needed to decrypt existing ciphertext
  2. Every S3 object is automatically rewritten by rotation
  3. All old ciphertext must immediately be discarded
  4. The key ARN must change on each rotation

Explanation

Correct Answer

A:

Rotation changes material for new cryptographic use while the key can still decrypt older ciphertext; it does not bulk rewrite stored objects.

Incorrect Answers

B:

Key rotation does not perform an object-by-object re-encryption job.

C:

Existing encrypted data remains decryptable through the key.

D:

Automatic material rotation preserves the logical key identity.

Question 331

A preproduction test requires realistic customer distributions without exposing personal records to developers. Which approach fits?

  1. Copy full identifiable production records and rely only on developer discretion
  2. Encrypt the copied production database but give every developer decryption access
  3. Use a shared production database as the branch test fixture
  4. Generate or irreversibly de-identify representative test data

Explanation

Correct Answer

D:

Useful statistical characteristics can be retained without copying directly identifiable production records.

Incorrect Answers

A:

A convention does not remove personal data from the test environment.

B:

Encryption at rest does not prevent authorized test users from reading personal records.

C:

That exposes personal records and can allow tests to affect live customer state.

Question 332

A custom latency publisher sends aggregated CloudWatch statistic sets containing SampleCount, Sum, Min, and Max for varied request latencies. A dashboard needs an accurate p99 across those requests. What should the publisher generally provide instead?

  1. Divide Sum by Count and publish that average as if it were p99
  2. Publish individual observations or supported Values and Counts preserving the latency distribution
  3. Increase the alarm evaluation period while sending the same statistic sets
  4. Publish only Max and label the metric p99

Explanation

Correct Answer

B:

A general statistic set loses the distribution needed to reconstruct percentiles. Preserving observed values and their frequencies allows CloudWatch to calculate the percentile, subject to metric support and limits.

Incorrect Answers

A:

The mean does not reveal the slowest one percent of observations; distinct distributions can have the same average.

C:

A longer evaluation window does not recover the per-request distribution discarded during aggregation.

D:

The maximum is the largest observed value and is not generally the 99th percentile of the request distribution.

Question 333

A gradual AppConfig deployment increases application errors. Which configuration supports automatic reversion based on health?

  1. Set only a JSON schema validator
  2. Disable the health alarms during the deployment bake period
  3. Associate suitable CloudWatch alarms with the environment and deployment strategy
  4. Retain the previous configuration without integrating any health action

Explanation

Correct Answer

C:

Alarm monitoring can stop and roll back the configuration rollout when configured health criteria fail.

Incorrect Answers

A:

Validation can reject malformed content but does not detect a semantically valid configuration causing runtime errors.

B:

That removes the health signal required for the configured automatic rollback.

D:

An old version makes recovery possible but does not itself initiate automatic reversion on errors.

Question 334

Instances should install packages and write configuration declared in CloudFormation metadata. Which helper interprets that metadata?

  1. cfn-signal
  2. cfn-hup alone with no configuration helper action
  3. cfn-init
  4. CloudFormation ValidateTemplate

Explanation

Correct Answer

C:

The helper processes the defined initialization configuration; execution and signalling still need appropriate bootstrap wiring.

Incorrect Answers

A:

The helper reports initialization results rather than installing metadata-defined packages and files.

B:

The watcher can detect metadata changes, but a hook must invoke the action that interprets and applies initialization configuration.

D:

Validation checks the definition rather than executing host package and file setup.

Question 335

A bulk automation completes most items but some fail. Which result handling supports safe recovery?

  1. Retry every item regardless of its recorded result
  2. Report overall success because most targets completed
  3. Record item-level outcomes and retry only unresolved safe operations
  4. Delete all execution outputs before retrying

Explanation

Correct Answer

C:

Durable results prevent needless repetition of completed side effects while exposing unfinished work.

Incorrect Answers

A:

Completed side effects can be repeated unnecessarily and may not be safe.

B:

That loses the identity of failed targets and conceals unresolved work.

D:

Removing results makes it harder to distinguish completed operations from pending or failed ones.

Question 336

A nonroot CloudWatch agent runs but cannot collect one application's log file. What should be checked?

  1. Grant only additional CloudWatch Logs API permissions
  2. Change only the agent's log-group destination
  3. File read permissions and directory traversal permissions for the agent user
  4. Restart the agent indefinitely without checking its user and path permissions

Explanation

Correct Answer

C:

The collector must access the local path before it can forward its content.

Incorrect Answers

A:

Service authorization cannot let a local agent process read a filesystem path denied by the operating system.

B:

A new remote destination does not repair local file access.

D:

The same local authorization failure can recur after each restart.

Question 337

A resilient service uses ElastiCache. Which assumption is unsafe unless the architecture explicitly supports it?

  1. Rebuilding cache entries from authoritative stored records
  2. Treating cache contents as the only durable record of accepted transactions
  3. Monitoring cache hit rate and evictions
  4. Using bounded retries during a cache failover

Explanation

Correct Answer

B:

Caches can evict or lose entries; durable business state needs an appropriate authoritative store.

Incorrect Answers

A:

That preserves the distinction between disposable cache data and the durable system of record.

C:

Observability helps manage the cache and does not assume it is the sole durable transaction record.

D:

Retry handling can improve availability without making cache contents the only source of truth.

Question 338

A metric publishes only when errors occur. Healthy periods have no data. Which missing-data choice usually avoids false failures for this signal?

  1. Treat every missing error datapoint as breaching
  2. Treat missing data as not breaching, if publisher health is monitored separately
  3. Publish an error count of one during healthy intervals
  4. Disable the error alarm entirely

Explanation

Correct Answer

B:

Silence can be healthy for an error-only series, but collection failure requires its own detection.

Incorrect Answers

A:

An error-only series can be silent during normal operation, producing false incidents.

C:

That invents failures rather than distinguishing genuine errors from publisher health.

D:

Removing evaluation also loses detection of actual reported failures.

Question 339

A DR site continuously replicates data but normally has no running application fleet. What must failover automation include?

  1. Switch traffic before launching or validating the application tier
  2. Assume a pilot-light data service automatically launches all application hosts
  3. Restore an older backup over the replicated destination before assessing recovery state
  4. Provision or activate application capacity and validate dependencies before routing traffic

Explanation

Correct Answer

D:

A data-focused pilot light needs additional serving infrastructure before it can process customer requests.

Incorrect Answers

A:

Replicated data alone does not provide a working application endpoint.

B:

Additional application capacity needs explicit activation or provisioning.

C:

That can discard fresher usable data and is not inherently required to activate the application tier.

Question 340

A high-severity finding concerns a public-facing production system. What should triage consider beyond the numerical severity?

  1. Asset exposure, business criticality, exploit evidence, and finding context
  2. Only the newest dashboard color
  3. Only the alphabetical order of resource names
  4. Automatically delete the account without review

Explanation

Correct Answer

A:

Severity aids prioritization but resource context and evidence determine an appropriate response and escalation.

Incorrect Answers

B:

Presentation choices do not establish incident priority.

C:

Names do not express business risk or observed exploitation.

D:

A finding is not sufficient justification for indiscriminate destruction.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests