Bird
0
0

After running dive myapp:1.0, you notice a layer with many added files but small size. What is the likely explanation?

medium📝 Command Output Q5 of 15
Docker - Image Optimization
After running dive myapp:1.0, you notice a layer with many added files but small size. What is the likely explanation?
AThe files are symbolic links only
Bdive is showing incorrect data
CThe files are small or mostly empty
DThe layer is compressed and size is not accurate
Step-by-Step Solution
Solution:
  1. Step 1: Interpret layer size vs file count

    A layer with many files but small size means files are small or empty.
  2. Step 2: Check options

    The files are small or mostly empty fits this explanation. dive is showing incorrect data is unlikely as dive is reliable. The layer is compressed and size is not accurate is incorrect because dive shows uncompressed sizes. The files are symbolic links only is possible but less likely than D.
  3. Final Answer:

    The files are small or mostly empty -> Option C
  4. Quick Check:

    Many files but small size = D [OK]
Quick Trick: Many files can still be small if each file is tiny [OK]
Common Mistakes:
  • Assuming dive shows compressed sizes
  • Thinking dive data is wrong
  • Ignoring file size variability

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes