202-450 practice question 13 of 25

Given the following Squid configuration excerpt: cache_dir ufs /var/spool/squid3/ 1024 16 256 Which of the following directories will exist directly within the directory /var/spool/squid3/? (Choose two.)

Full set: 119 questions
Answer options
A: 0F Correct answer
B: A0
C: 0b
D: FF
E: 00 Correct answer
Correct Answer:
A. 0F; E. 00
Explanation

The cachedir directive ufs /var/spool/squid3/ 1024 16 256 configures the cache directory structure. The fourth parameter, 16, specifies the number of level-1 (L1) subdirectories to be created. Squid names these directories using two-digit hexadecimal numbers, ranging from 00 to (L1-1). For L1=16, the directories will be named 00, 01, ..., 0E, 0F. Therefore, directories 0F (hex for 15) and 00 (hex for 0) will both exist directly within /var/spool/squid3/.

Why Incorrect

B. A0: This hexadecimal value (160) is outside the valid range of 0 to 15 (00 to 0F) for the 16 level-1 directories.
C. 0b: This is a valid directory name (hex for 11). However, the question asks to choose two, and A and E represent a valid pair.
D. FF: This hexadecimal value (255) is outside the valid range of 0 to 15 (00 to 0F) for the 16 level-1 directories.

References

- Squid Cache Wiki (Official Documentation). (n.d.). Configuration Directive cachedir. Retrieved from http://www.squid-cache.org/Doc/config/cachedir/. The documentation specifies for the ufs type: "Squid will create L1 subdirectories in the Directory. The names of the subdirectories are 00 through (L1-1), using hexadecimal representation."

Scroll to Top