Interview Prep/Kubernetes/Security Hardening & Compliance

What is the purpose of image scanning in CI and in the cluster?

BeginnerProductionSecurity Hardening & Compliance
Answer

CI scanning (Trivy, Grype) blocks known critical CVEs before deploy; registry scanning (ECR enhanced scanning with Inspector) catches newly disclosed CVEs in stored images; runtime scanning flags what is running. Combine with minimal base images and regular rebuilds so fixes flow without manual work.

trivy image --severity CRITICAL,HIGH --exit-code 1 repo/app:1.8.3
All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Security Hardening & Compliance