This is an original sample question written by itmoshi based on the exam objectives.
An NTFS volume under investigation has 512-byte sectors and 4,096-byte clusters. It contains a 10,000-byte file (a normal non-resident file, neither compressed nor sparse, with its data allocated in ordinary clusters), and exactly 3 clusters are allocated to it. How many bytes of file slack, the space in the cluster containing the file's final byte that the file's data does not use, does this file have?
Show answer and explanation
Answer:A A 10,000-byte file occupies 3 clusters (12,288 bytes), so the slack is 12,288 − 10,000 = 2,288 bytes.
Why it is correct
For a non-resident file that is neither compressed nor sparse, the file system allocates space in whole clusters. Since 10,000 ÷ 4,096 ≈ 2.44, the final byte falls in the third cluster, which matches the stated allocation of exactly 3 clusters (12,288 bytes). That cluster holds 1,808 bytes of the file (10,000 − 8,192), leaving 2,288 bytes of slack. Whether that space still holds older data depends on the file system implementation and how the file was written (some implementations zero it). The calculation fixes the size of the slack, not its contents.
The other options
- ✗ B 240 bytes is only the remainder of the last sector (RAM slack). It leaves out the 4 unused sectors after it in the same cluster (drive slack). It is the figure to use only when asked for the sector-level breakdown.
- ✗ C 4,096 bytes is one full cluster. Slack is measured in the cluster that contains the file's final byte. The third cluster holds 1,808 bytes of the file (10,000 − 8,192), leaving 2,288 bytes. A whole cluster of slack would mean that cluster holds no file data at all, which contradicts the definition.
- ✗ D 6,384 bytes assumes 4 clusters (16,384 bytes) were allocated. The stem says exactly 3 are allocated, and slack is counted only within the cluster that holds the final byte, so this overstates it.
Key takeaway
For a non-resident file that is neither compressed nor sparse, file slack is the unused part of the cluster holding the final byte; when only the minimum clusters are allocated, it equals clusters (rounded up) × cluster size − file size. It splits further into the rest of the last sector (RAM slack, 240 bytes here) and the unused sectors after it (drive slack, 4 sectors = 2,048 bytes here).