Automation, Orchestration, and Scripting

Which statement describes an appropriate use of an AI assistant for infrastructure as code?

Show the answer

Correct answerB. It drafts a Terraform configuration that an administrator reviews and tests

AWhy not this: Letting an assistant apply unreviewed changes to production skips review and the plan step that shows what will change.

BWhy this is right: Drafting IaC is a common use, and a person reviews and tests the output before it is applied.

CWhy not this: A syntax check does not catch wrong logic, insecure defaults or outdated modules; the playbook still needs testing.

DWhy not this: Hand-editing state is risky and does not prevent drift; state should be changed through Terraform commands.

Drafting IaC is a common AI use case, but generated code can contain errors, insecure defaults or outdated syntax. Human review and testing in a non-production environment are required before deployment.