Automation, Orchestration, and Scripting

An administrator will pipe an AI assistant's answer directly into jq in an automation workflow that lists failed systemd units. Which addition to the prompt BEST ensures the response can be parsed without manual editing?

Show the answer

Correct answerD. Return only a JSON array of objects with the keys unit and state, with no surrounding text or code fences.

Stating the exact output structure and forbidding extra text makes the response machine-readable. Assigning a role improves tone and expertise but does not enforce a format, so the output could still contain prose that breaks jq.