Bird
0
0

Which of the following is the correct Trivy command to scan a Docker image named redis:6.2?

easy📝 Syntax Q3 of 15
Kubernetes - RBAC and Security
Which of the following is the correct Trivy command to scan a Docker image named redis:6.2?
Adocker scan redis:6.2
Btrivy scan redis:6.2
Ctrivy image redis:6.2
Dtrivy redis scan 6.2
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct Trivy syntax

    The command to scan images is trivy image <image_name>.
  2. Step 2: Match with options

    trivy image redis:6.2 matches the correct syntax exactly.
  3. Final Answer:

    trivy image redis:6.2 -> Option C
  4. Quick Check:

    Use 'trivy image' to scan container images [OK]
Quick Trick: Use 'trivy image ' to scan images [OK]
Common Mistakes:
  • Using 'trivy scan' instead of 'trivy image'
  • Using 'docker scan' which is a different tool
  • Incorrect command word order

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes