mediumMultiple ChoiceObjective-mapped
CAS-004 Practice Question: A security team needs to implement a CI/CD…
A security team needs to implement a CI/CD pipeline that automatically scans container images for vulnerabilities before deployment. Which tool can be integrated into the pipeline for this purpose?
⚠ Common exam trap
The CAS-004 exam often tests the distinction between tools used for static code analysis (SonarQube) versus container vulnerability scanning (Trivy), leading candidates to confuse SAST tools with container security scanners.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Trivy
Trivy is a comprehensive open-source vulnerability scanner specifically designed for container images, filesystems, and Git repositories. It can be integrated directly into a CI/CD pipeline to automatically scan container images for known CVEs before deployment, making it the correct choice for this use case.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
SonarQube
Why it's wrong here
SonarQube analyzes source code quality, not container images.
- ✗
Prometheus
Why it's wrong here
Prometheus is a monitoring and alerting toolkit.
- ✓
Trivy
Why this is correct
Trivy scans container images for known vulnerabilities.
- ✗
Grafana
Why it's wrong here
Grafana is a visualization tool for metrics.
Go deeper
Related to this question
About these practice questions
One of 968 original CAS-005 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This CAS-005 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CAS-005 exam.