📝 Volume shadow copies in Window 7 (8 MCQs)
Point in Time Volume Snapshots
Volume Shadow Copy Service, or VSS, provides a framework for creating consistent point-in-time copies of volume data while applications may remain active. Windows 7 uses shadow copies for features such as Previous Versions and compatible backup operations. VSS coordinates requesters, writers, and providers so selected data can be captured in a consistent state.
Why Live Files Need Consistent Backup Copies
Applications may modify files during a backup, creating copies that combine data from different moments. Databases and services may also hold buffered information that has not yet reached storage. Shadow copy coordination helps freeze or prepare participating applications so the snapshot represents a consistent point in time.
VSS Requesters, Writers and Providers
A requester asks for a shadow copy, writers prepare application data for a consistent snapshot, and a provider creates the copy using supported storage technology. A copy-on-write provider can preserve previous block contents when original data changes after the snapshot, allowing the earlier state to remain readable.
Example of Restoring an Earlier File Version
A user modifies a document and later discovers that important content was removed. If a suitable shadow copy exists, the Previous Versions interface can expose an earlier version of the file. The user can inspect or restore that version without needing to replace the entire system volume.
Convenience and Snapshot Storage Limitations
Shadow copies support convenient file recovery and application-aware backups. They consume storage as changed blocks accumulate and may be deleted when allocated space is insufficient. A snapshot is not an independent backup because it can remain on the same storage system as the original data and share its failure risks.
Misconceptions About Volume Shadow Copies
'A shadow copy is always a complete external backup' ignores its storage dependence. 'VSS copies every application file without coordination' overlooks writer participation. 'Previous Versions can restore files after every disk failure' is false because the shadow storage may be lost with the volume.
Exam Focus: VSS Roles and Copy on Write
Identify requester, writer, and provider responsibilities. Explain how copy-on-write preserves previous block contents when the original volume changes. Questions may compare shadow copies with full backups, or examine why application consistency and storage capacity affect the reliability of recovery.
Key Terms of Volume Shadow Copies
- VSS - Volume Shadow Copy Service.
- Requester - Component requesting a snapshot.
- Writer - Application preparing consistent data.
- Provider - Component creating the shadow copy.
- Copy on write - Preserves old blocks when data changes.
📝 All Volume shadow copies in Window 7 MCQs
Q1. A process has 5 pages in its working set; three have been referenced since the last VM manager pass, and two have not. When memory pressure rises, what will the VM manager most likely do with the unreferenced pages?
📖 Explanation: The VM manager tracks page references via the PTE. Pages that were not marked as referenced during the last scan are considered old. When memory becomes scarce, the manager removes these older, unreferenced pages to free physical memory. Increasing protection bits or marking pages as valid would keep them in memory, which contradicts the goal of freeing space. Swapping to a ready queue is not a VM manager operation; trimming is the correct response.
Q2. In a page‑file PTE, which bits are always set to zero?
📖 Explanation: Page‑file PTEs are used for pages that have been moved to disk, so the valid (V), transition (T), and present (P) bits are all cleared to zero. This indicates that the page is not currently resident in physical memory. The protection bits store access rights, the offset bits point to the location in the page file, and the reserved bits are kept for bookkeeping, so they are not universally zero.
Q3. How many bits are allocated for the page‑file offset field in a page‑file PTE?
📖 Explanation: The page‑file PTE structure includes a 32‑bit field that records the offset of the page within the page file. This offset tells the system where to find the page when it needs to be brought back into memory. The other fields (protection, paging‑file selector, and reserved bits) use different bit widths, but the offset is specifically 32 bits, enabling a large addressable range within the page file.
Q4. Why does Windows use a per‑working‑set LRU replacement policy rather than a system‑wide LRU?
📖 Explanation: A per‑working‑set LRU tracks the age of pages within each individual process, allowing the system to trim each process’s working set based on its own usage patterns. This prevents a single busy process from dominating the replacement decisions and ensures that every process gets a fair chance to retain its most recent pages. System‑wide LRU would ignore individual process needs and could lead to unfair memory distribution.
Q5. Process X has a hard limit of 200 MB on its working set. Even though the system has 2 GB free, its working set is being trimmed. Which mechanism explains this behavior?
📖 Explanation: A hard limit is a configured maximum amount of physical memory that a process may use. When a process reaches this threshold, the VM manager will trim its working set regardless of overall system memory availability. This enforcement ensures that no single process can exceed its allocated quota, preserving system stability. Age‑based trimming is used under memory pressure, but the hard limit triggers trimming even when ample memory remains.
Q6. A system has two paging files. A page‑file PTE contains a 4‑bit field selecting the paging file. If the field value is binary 1010, which paging file does the page belong to?
📖 Explanation: The 4‑bit selector can represent values from 0 to 15. With only two paging files present, valid selectors are 0 and 1. Binary 1010 equals decimal 10, which exceeds the available paging‑file indices, making the selection invalid. Therefore, the PTE would be considered malformed or would cause an error. Options A, B, and C assume valid selections, which is not the case here.
Q7. When the VM manager increments the age of pages that have not been marked as referenced, what underlying assumption about page usefulness is it making?
📖 Explanation: The age‑based algorithm assumes that a page not referenced for a while is less likely to be accessed again in the near future. By incrementing its age, the manager flags it as a candidate for trimming, freeing physical memory for more active pages. This assumption does not relate to error rates, power consumption, or security; it purely reflects temporal locality of reference in typical workloads.
Q8. A newly launched application’s working set grows from 50 MB to 300 MB within a few seconds while the system has abundant memory. What does Windows 7’s VM manager do to maintain system responsiveness?
📖 Explanation: Windows 7 introduced a policy that monitors rapidly expanding working sets. Even when overall memory is plentiful, the VM manager will proactively trim the expanding process to prevent it from monopolizing resources and to keep the system responsive for other tasks. Disabling trimming would worsen performance, while changing page‑file size or moving pages to a special cache does not directly address the rapid growth scenario.