Interview › Security & DevSecOps
What is the difference between patching the base image and patching the application dependency? [Intermediate]
Answer
Patching the base image fixes vulnerabilities in the operating-system layer and common runtime packages. Patching the application dependency fixes libraries packaged by the application, such as Java jars, npm modules, Python wheels, or Go modules. Both are required because containers include multiple layers of software.
Technical explanation
Base-image vulnerabilities come from packages installed in the image, for example OpenSSL, glibc, curl, or OS libraries.
Application dependency vulnerabilities come from the app build output, such as Log4j or lodash.
Image scanning should show which layer introduced the vulnerable component so the correct owner can fix it.
Hands-on example
Example: CVE in openssl -> update the base image tag and rebuild. CVE in log4j-core -> update pom.xml or dependencyManagement and rebuild. After both fixes, push a new image digest and deploy that digest, not just a mutable tag.
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 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]
- What is OPA, and what is the Rego language used for? [Intermediate]