🎓 BookMCQ
← Back to 19. Windows 7

📝 Change journal in Window 7 (6 MCQs)

Tracking Filesystem Changes with the NTFS USN Journal

The NTFS change journal, commonly called the Update Sequence Number journal or USN journal, records information about changes made to files and directories on a volume. Windows services and applications can inspect these records to determine which items have changed since an earlier point, reducing the need to scan the entire filesystem repeatedly.

Why Full Directory Scans Can Be Expensive

Backup tools, indexing services, and management applications may need to detect changed files across large volumes. Rechecking every file can consume substantial storage and processing time. The USN journal provides a change history that allows eligible applications to identify modified objects more efficiently.

Journal Records and Incremental Change Queries

NTFS assigns update sequence numbers to change records and stores information such as file references, timestamps, and reason codes. An application remembers a journal position and later requests records added after that point. It can then inspect relevant files instead of treating every directory entry as new.

Example of an Incremental Backup Scan

A backup program records the latest USN value after completing a full scan. On its next run, it queries journal records created after that value. Files marked as modified or renamed are examined and backed up according to the application's policy, reducing unnecessary scanning of unchanged files.

Efficient Monitoring and Journal Limitations

The change journal supports incremental indexing, backup preparation, and filesystem monitoring. It is not a permanent audit log and may wrap or discard older records when space is reused. Applications must detect journal recreation or loss of their saved position and perform a broader scan when continuity cannot be established.

Misconceptions About the NTFS Change Journal

'The USN journal stores complete copies of changed file contents' is false because it records change metadata. 'Every journal record is retained forever' ignores finite journal space and reuse. 'A change record guarantees a successful backup' is incorrect because the application must still read and preserve the actual data.

Exam Focus: USN Records and Incremental Processing

Explain how an application queries changes using a saved journal position and update sequence number. Distinguish change metadata from actual file contents and from the NTFS transaction log. Questions may ask how backup or indexing tools reduce work or what happens when journal records are no longer available.

Key Terms of the NTFS Change Journal

  • USN - Update Sequence Number.
  • Change journal - Records filesystem change information.
  • Reason code - Describes the type of change.
  • Journal ID - Identifies a journal instance.
  • Incremental scan - Examines changes since a saved point.
1
Easy
3
Medium
2
Hard

📝 All Change journal in Window 7 MCQs

Q1. How many bits are dedicated to page‑protection information in a Windows page‑file PTE?

A.4
B.5 ✅
C.6
D.8
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: The correct answer is B because a page‑file PTE reserves five bits for the protection field, as defined by the Windows memory manager. Option A (4) and C (6) are off by one, and D (8) is far too many. Knowing the exact bit allocation helps when interpreting PTE structures or debugging memory‑related issues, linking the answer directly to the design of the page‑file entry.

Q2. Why does the Windows VM manager increment the age of a page only when its referenced bit is not set, rather than based on how long the page has resided in memory?

A.Because age is based on wall‑clock time, which better reflects usage patterns
B.Because unreferenced pages are considered older and more eligible for trimming
C.Because the referenced bit indicates recent use, making the page appear newer ✅
D.Because the age counter is randomized to avoid bias
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: The correct answer is C because the VM manager’s age counter reflects recent usage: a page that has not been referenced since the last sweep is considered older and a candidate for trimming. Option A suggests time‑based aging, which is not used; B mixes up reference and dirty bits; D claims age is random. Understanding that age depends on the referenced bit explains why LRU works effectively, ensuring frequently accessed pages stay in memory while idle pages are reclaimed.

Q3. A process has a working set of 200 pages, of which 30 pages have their referenced bits set. When the VM manager trims the set, which pages are most likely to be removed?

A.Pages with the referenced bit set
B.Pages without the referenced bit set ✅
C.A random 20‑page subset
D.The newest 20 pages added to the set
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: The correct answer is B. Pages whose referenced bits are not set indicate they have not been accessed recently, so the VM manager classifies them as the oldest and trims them first. Option A would keep the most used pages, which defeats the purpose of LRU. Option C (random selection) ignores usage patterns, and D (newest pages) would degrade performance. This scenario shows how the manager uses reference information to decide which pages to evict, protecting active data.

Q4. If a page‑file PTE uses a 32‑bit offset field and the system page size is 4 KB, what is the maximum page‑file size that can be addressed?

A.2322^{32} bytes ✅
B.232×42^{32}\times4 KB
C.2442^{44} bytes
D.2402^{40} bytes
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: The correct answer is A. With a 32‑bit page‑file offset, the maximum addressable range is 2322^{32} bytes, which equals 4 GB. Option B incorrectly multiplies by the page size; C and D represent much larger values that exceed the 32‑bit limit. Recognizing the size of the offset field lets administrators predict the maximum page‑file size that can be indexed, which is crucial when configuring system memory or diagnosing paging failures.

Q5. How does a per‑working‑set LRU replacement policy improve system responsiveness compared to a global LRU approach?

A.It allows the VM manager to trim pages from any process only when total memory is low
B.It evicts pages strictly in FIFO order, simplifying management
C.It prevents any trimming, keeping all pages resident
D.It enables targeted trimming of rapidly growing processes even when memory is plentiful ✅
💡 Difficulty: hard | ✅ Correct: D

📖 Explanation: The correct answer is D because a per‑working‑set LRU policy tracks page ages separately for each process, allowing the VM manager to trim pages from a rapidly expanding process even when overall memory is abundant. Option A describes a global LRU, which cannot target a single process; B suggests FIFO, which does not consider recent use; C claims no impact on responsiveness. By isolating each process’s working set, the system can maintain responsiveness for other applications, illustrating why Windows 7 introduced this refinement.

Q6. A Windows 7 process has a hard limit of 150 MB physical memory and is currently using 120 MB. The system needs to trim memory. How much can be reclaimed without violating the hard limit?

A.0 MB
B.30 MB ✅
C.150 MB
D.120 MB
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: The correct answer is B. The process is allowed up to 150 MB, currently uses 120 MB, so the VM manager can safely reclaim up to 150 MB−120 MB=30 MB150 \text{MB} - 120 \text{MB} = 30 \text{MB} without breaching the hard limit. Option A (0 MB) would ignore possible reclamation; C (150 MB) would exceed the limit; D (120 MB) would remove all current usage. This calculation shows how hard limits constrain trimming, ensuring a process never exceeds its allocated physical memory while still permitting the system to free resources.

🔗 Related Topics (MCQs)