Security Architecture

Storage is deployed through IaC pipelines. The architect needs public-bucket misconfigurations found before anything is provisioned, reported to developers in the pull request, and not left to runtime enforcement or alerting. Which control fits?

Show the answer

Correct answerC. Policy-as-code scanning of IaC templates, failing the pull request

AWhy not this: Logs access after resources exist and supports investigation, not pre-deployment checking.

BWhy not this: Blocks public access on live buckets at runtime, so it is preventative and acts after provisioning.

CWhy this is right: Checks templates in the pipeline and fails the pull request, so the flaw is caught before anything is provisioned.

DWhy not this: Alerts only after a bucket is already public, so it is detective and comes too late.

Policy-as-code scanning of IaC templates is proactive: it finds the flaw at design and build time, before any resource exists. A block-public-access setting is preventative because it acts on live resources at runtime, so it fails the requirement to catch the problem before provisioning.