A company must enforce a hardened baseline on 400 Linux VMs across several cloud accounts. Requirements: no agent on the VMs, repeat runs that change only nonconforming settings, and no credentials stored in playbooks. Which design BEST meets them?
Show the answer
Correct answerB. Idempotent Ansible playbooks run over SSH, with keys from a secrets vault
AWhy not this: This needs an agent on every VM, which the requirements forbid, and a shared password is a standing credential.
BWhy this is right: Agentless, idempotent runs touch only nonconforming settings, and a vault keeps credentials out of playbooks.
CWhy not this: Terraform provisions resources rather than hardening guests, and plain-text credentials break the no-stored-credentials rule.
DWhy not this: Scripts that rewrite everything every run are not idempotent, and embedded keys are stored credentials.
Ansible is agentless over SSH, and idempotent modules change only settings that differ from the baseline. Pulling keys from a vault avoids stored credentials. Terraform provisions infrastructure rather than enforcing in-guest configuration, and plain variables would expose secrets.