Preparing for a DevOps interview that covers Trivy? These questions come up again and again - here are strong, concrete answers.
Q: What is Trivy and why use it?
Trivy is an open-source security scanner that finds CVEs, misconfigurations, secrets and license issues across container images, filesystems, Git repos, IaC and live Kubernetes clusters.
- One tool for images, IaC, secrets and Kubernetes scanning
- Fast, with an easy exit-code gate for CI
- No account or SaaS required to get started
Q: What are the best practices you follow?
- Gate on HIGH/CRITICAL with ignore-unfixed, then tighten over time
- Scan images, IaC and filesystems - not just one surface
- Cache and periodically refresh the DB in CI
Q: What mistakes have you seen?
- Failing on unfixed CVEs and drowning in noise
- Scanning only images and ignoring IaC and secrets
- Never updating the vulnerability DB in air-gapped runners
Q: Show a basic configuration
Config file to fail only on HIGH/CRITICAL and ignore unfixed CVEs.
# trivy.yaml
severity:
- HIGH
- CRITICAL
vulnerability:
ignore-unfixed: true
exit-code: 1Want senior help putting Trivy to work - or a team bootcamp on it? CodeWizard runs Israel's largest DevOps community and embeds named senior engineers with a transparent hours log. Book a free consult or explore the Academy.