Bird
0
0

Which command correctly scans a Docker image named myapp:latest using Trivy?

easy📝 Syntax Q12 of 15
Kubernetes - RBAC and Security
Which command correctly scans a Docker image named myapp:latest using Trivy?
Atrivy myapp:latest scan
Btrivy scan myapp:latest
Ctrivy image myapp:latest
Dtrivy scan image myapp
Step-by-Step Solution
Solution:
  1. Step 1: Recall Trivy scan syntax

    The correct command to scan an image is trivy image <image-name>.
  2. Step 2: Match the command with options

    trivy image myapp:latest matches the correct syntax exactly.
  3. Final Answer:

    trivy image myapp:latest -> Option C
  4. Quick Check:

    Trivy scan command = trivy image [OK]
Quick Trick: Use 'trivy image' to scan images [OK]
Common Mistakes:
  • Using 'trivy scan' instead of 'trivy image'
  • Placing 'scan' after image name
  • Omitting the 'image' keyword

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes