Interview Prep/Terraform/Testing and Policy as Code

How do you handle policy exceptions without losing control?

AdvancedProductionTesting and Policy as Code
Answer

Allow waivers only in code and with metadata: #checkov:skip=CKV_AWS_18:Access logs not needed, ticket SEC-421, expires 2026-12-31. Reviewers (security) are required via CODEOWNERS where a skip appears, a report lists active skips and an expiry check fails the build when a waiver is stale. Exceptions in a spreadsheet get forgotten.

All Terraform questions Roadmap: Terraform in production

More on Testing and Policy as Code