Interview › Security & DevSecOps
What is container image scanning, and what tools do it (Trivy, Grype, Wiz)? [Intermediate]
Answer
Container image scanning analyzes image layers for vulnerable OS packages, application dependencies, secrets, malware indicators, and misconfigurations. Tools include Trivy, Grype, Snyk, Anchore, Clair, registry scanners, and CNAPP tools such as Wiz.
Technical explanation
Scanning should happen at build time, registry time, and periodically after deployment because new CVEs appear for existing images.
Findings should map to image digest, layer, package, fixed version, and owner.
Runtime context matters: a vulnerability in a deployed internet-facing image is higher priority than the same issue in an unused image.
Hands-on example
Hands-on:
docker build -t registry.example.com/checkout:${GIT_SHA}.
trivy image --severity HIGH,CRITICAL --exit-code 1 registry.example.com/checkout:${GIT_SHA}
grype registry.example.com/checkout:${GIT_SHA}If clean, sign and push the immutable digest.
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More Security & DevSecOps interview questions
- What is vulnerability management as a lifecycle (discover, prioritise, remediate, verify)? [Intermediate]
- How do you reduce the noise of thousands of vulnerability findings? [Intermediate]
- What is the difference between a CVE, a CVSS score, and exploitability (EPSS/KEV)? [Basic]
- How would you use Wiz findings to drive remediation across teams? [Basic]
- What is workload identity, and how does it remove static credentials? [Intermediate]
- What is OPA, and what is the Rego language used for? [Intermediate]
- What is a toxic combination (attack path) in Wiz, and why prioritise it? [Basic]
- What is the Wiz Security Graph, and why is context important for prioritisation? [Basic]