Checkov reports a failure in a shared Terraform module you cannot change this sprint. How do you handle it?
IntermediateScenarioContainer and IaC Security
Answer
Situation read → Do not disable the whole check. Accept narrowly, with an owner and a date.
What I'd do →
- Suppress inline with a reason:
#checkov:skip=CKV_AWS_144:Cross-region replication not required for logs, ticket SEC-412. - Or use a baseline file:
checkov -d . --create-baselinethen--baseline .checkov.baseline. - File a ticket against the module owner with a due date.
- Report skips in a monthly review.
Why → Narrow, documented exceptions keep the gate meaningful.
Interview tip → Every exception should answer "who owns it and when does it expire".
More on Container and IaC Security
A team asks whether to use `ubuntu`, `alpine` or a distroless base image. How do you advise?Beginner`trivy image` shows 300 vulnerabilities in your app image. How do you bring this down?BeginnerA Dockerfile runs the app as root. How do you fix it and prove the fix?IntermediateCheckov fails a Terraform PR because an S3 bucket allows public access. What do you change?BeginnerHow do you set up image scanning so nothing vulnerable reaches production?IntermediateAn image passed scanning three weeks ago and runs in production. A new critical CVE is published today. What happens next?Intermediate