Terminology Index

Glossary

2953 terms

Open concept maps
P
32

Policy as Code

Expressing policy rules in code that automated systems evaluate and enforce, so policy is consistent, versioned, testable, and applied automatically wherever it's needed across cloud and pipelines.

Policy as code captures policy rules as machine-readable definitions (often in languages like Rego), evaluated by engines like OPA at decision points, infrastructure deployment, API calls, admission, runtime. This brings software-engineering discipline to policy: version control, testing, code review, automated enforcement at scale. For a cloud engineer, policy as code is how guardrails are enforced automatically across the environment rather than relying on documents and manual checks, central to modern cloud and DevSecOps practice.

Introduced in: Cloud Security Engineer Fundamentals

Examples

  • Encoding cloud guardrails as policy code evaluated automatically.
  • Versioning and testing policy rules like application code.
  • Enforcing policy at admission and deployment through code.