A security team finds that production and staging cloud networks have diverged because engineers changed security group rules by hand. Which approach BEST ensures each environment is built identically and every change is reviewable?
Show the answer
Correct answerD. Define the network in declarative templates kept in version control and deploy them through a pipeline
AWhy not this: Scans find vulnerabilities, not whether two environments are built the same way.
BWhy not this: Manual runbooks still rely on people to apply steps, so inconsistency and untracked changes persist.
CWhy not this: Exports only record configuration after manual changes occur; they neither prevent nor correct drift.
DWhy this is right: Templates in version control give repeatable builds and an auditable review trail for every change.
Infrastructure as code makes the templates the single source of truth, so environments are repeatable and each change goes through version-controlled review. Nightly exports only report drift after it happens and do not build anything.