A scheduled State Manager association enforces an application's logging configuration, but its command document appends another logging entry on every run. How should an engineer change the document to maintain the desired state safely?
Show the answer
Correct answerA. Compare the existing setting and update it only when different.
AWhy this is right: Checking the current value and changing it only when necessary makes repeated executions converge on the desired state.
BWhy not this: Checking whether the process is running does not prevent duplicate entries on subsequent executions.
CWhy not this: Restarting the application does not remove existing entries or prevent another duplicate from being appended.
DWhy not this: Inventory records configuration information but does not make an append operation idempotent.
An idempotent document converges on the required configuration without adding changes when the configuration already matches. Inventory collection can record the existing state but does not prevent duplicate modifications.