A DevOps team deploys cloud infrastructure from templates several times a day. Misconfigured templates keep exposing public storage buckets in production. Which control BEST prevents this without slowing releases?
Show the answer
Correct answerB. Policy-as-code scanning of templates as a blocking pipeline stage
AWhy not this: Threat modeling is a design-time activity done once; it does not validate each later template change.
BWhy this is right: Automated checks on infrastructure as code fail the build before a misconfiguration is deployed, and they keep pace with frequent releases.
CWhy not this: Manual approval adds a slow gate that conflicts with frequent automated releases and is error-prone at that volume.
DWhy not this: A periodic test finds exposed buckets only after they are live, and it runs far less often than the daily deployments.
Shifting security left into the CI/CD pipeline with automated policy-as-code scanning blocks insecure templates before deployment at release speed. A one-time threat model informs design but does not check each template change.