Bird
0
0

After running docker scan myapp:2.0, the report shows a vulnerability with severity 'critical'. What should you do next?

medium📝 Command Output Q5 of 15
Docker - Security
After running docker scan myapp:2.0, the report shows a vulnerability with severity 'critical'. What should you do next?
AIgnore it if the app works fine
BUpdate the base image or dependencies to patched versions
CDelete the image immediately without further action
DIncrease container CPU limits
Step-by-Step Solution
Solution:
  1. Step 1: Understand severity meaning

    A 'critical' severity vulnerability means a serious security risk that should be fixed.
  2. Step 2: Choose appropriate action

    Updating the base image or dependencies to patched versions is the correct fix.
  3. Final Answer:

    Update the base image or dependencies to patched versions -> Option B
  4. Quick Check:

    Critical vulnerability requires update = B [OK]
Quick Trick: Fix critical vulnerabilities by updating images or dependencies [OK]
Common Mistakes:
  • Ignoring vulnerabilities if app runs
  • Deleting images without fixing
  • Changing unrelated container settings

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes