š Security in window 7 (8 MCQs)
Windows 7 Protection Through NT Security Objects
Windows 7 security uses the NT security model to protect files, processes, registry keys, services, and other system objects. Security tokens identify users and groups, while security descriptors define access permissions. User Account Control, firewall filtering, credential protection, and optional drive encryption add further controls to help protect computers against unauthorised access and modification.
Why Privilege Separation Is Necessary
Applications often require ordinary file and network access but should not automatically modify operating system components. Running every program with full administrative authority increases the impact of malware and programming mistakes. Windows uses standard user accounts, controlled elevation, and object-level permissions to limit unnecessary privileges.
Access Tokens, DACLs and UAC Elevation
At login, Windows creates an access token containing user identity, groups, and privileges. The Security Reference Monitor evaluates that token against an object's discretionary access control list. UAC can prompt for consent or administrator credentials before an application receives an elevated token for privileged operations.
Example of Elevating an Administrative Task
A standard user opens a system configuration tool that requires administrative rights. Windows requests elevation through the UAC interface. After authorised confirmation, the elevated process receives appropriate privileges and performs the task, while unrelated applications can continue using the user's standard security context.
Defence in Depth and End of Support
Windows 7 combines permissions, UAC, firewall rules, security auditing, and optional BitLocker encryption. These controls cannot compensate for obsolete software or missing security updates. Since Windows 7 support ended in January 2020, its security features should be understood historically rather than considered sufficient for a currently exposed computer.
Misconceptions About Windows Security Features
'UAC automatically blocks every malicious program' is false because it controls elevation rather than all execution. 'A standard account cannot run applications' ignores ordinary user execution. 'BitLocker prevents every form of data theft' overlooks unlocked systems, malware, and compromised credentials.
Exam Focus: Security Tokens and Privilege Elevation
Trace login token creation, access checks, and UAC elevation. Distinguish standard and elevated processes, DACL permissions, and firewall rules. Questions may examine object access, account privileges, encryption at rest, or why security requires multiple controls rather than a single administrator password.
Key Terms of Windows 7 Security
- Access token - User and privilege information for a process.
- DACL - List controlling permitted object access.
- UAC - User Account Control.
- BitLocker - Windows drive encryption feature.
- Elevation - Obtaining a higher privilege context.
š All Security in window 7 MCQs
Q1. What does the 'V' bit indicate in a page-table entry?
š Explanation: The 'V' bit, short for Valid, tells the memory manager whether the entry points to a real page in physical memory. When the bit is set, the CPU can use the address directly; when it is clear, the entry is treated as invalid and a fault occurs. Options B, C, and D describe other status flags (protection, dirty, swapped) that are represented by different bits, not the V bit. Recognizing the V bitās role is essential for understanding how page faults are generated.
Q2. Why does the VM manager increment the age of pages that have not been marked as referenced since the last pass?
š Explanation: The VM manager ages pages that have not been referenced so it can identify pages that are idle and safe to evict. Incrementing the age creates a numeric priority: the larger the age, the more likely the page will be chosen when trimming is required. Option A captures this intent. Option B is incorrect because protection levels are unrelated to aging. Option C reverses the priority by moving pages to a higherāpriority queue, which would keep them longer. Option D merely resets bits without affecting eviction decisions. Understanding aging explains why leastārecentlyāused pages are targeted first.
Q3. How does the perāworkingāset LRU replacement policy improve overall system responsiveness compared to a single global LRU scheme?
š Explanation: A perāworkingāset LRU policy keeps each processās pageāage information separate, so the manager removes pages that are old only within that process. This isolation prevents a large or busy process from monopolizing the eviction pool and hurting smaller processes, thereby keeping the system responsive. Option C describes this benefit. Option A is wrong because the policy does not specifically target the smallest process first. Option B is opposite of the intended effect, as pages stay longer. Option D suggests random selection, which ignores recentāuse information. The perāprocess focus is why Windows can maintain responsiveness even under load.
Q4. What is the purpose of the 4 bits that select the paging file in a pageāfile PTE?
š Explanation: The four bits that select the paging file tell the OS which paging file on disk stores the pageās contents. Windows can maintain several paging files, and these bits allow a single PTE to point to the correct file without extra structures. Therefore, option D is correct. Option A confuses these bits with encryption status, which is handled elsewhere. Option B incorrectly claims they store a process identifier; the process ID is not needed here. Option C mentions cache policy, which is controlled by separate flags. Knowing the purpose of these bits clarifies how the system locates swapped pages.
Q5. A process has a hard limit of 200āÆMB and is currently using 190āÆMB of physical memory while the system has plenty of free memory. Which action is the VM manager most likely to take?
š Explanation: When a process hits its hard limit, the VM manager treats the limit as a strict cap regardless of overall system memory. The manager will therefore trim the processās working set to stay under the limit, freeing pages that are least recently used. Option A reflects this behavior. Option B is impossible because the limit prevents additional allocation. Option C ignores the policy that enforces the hard cap, and option D is excessive; the manager only trims enough pages, not the whole process. This trimming keeps the process within its allocated quota.
Q6. During a memoryāpressure event the VM manager inspects three pages: PageāÆX is marked referenced, PageāÆY is not referenced and has an age of 5, PageāÆZ is not referenced and has an age of 2. Which page will be selected first for trimming?
š Explanation: The VM manager selects pages for trimming based on two criteriwhether the reference bit is set and the age value. Pages not referenced are candidates, and among them the one with the highest age is considered the oldest. In the scenario, PageāÆY is not referenced and has an age of 5, which is greater than PageāÆZās age of 2, making Y the prime candidate. Option B therefore is correct. Option A is still referenced, so it is not eligible. Option C, while also unreferenced, is younger. Option D incorrectly treats both as equal.
Q7. If a pageāfile PTEās protection bits allow read and execute but not write, what occurs when the process attempts to write to that page?
š Explanation: Protection bits in a pageāfile PTE define the operations allowed on that page. If write permission is missing, any attempt to modify the page triggers a pageāfault so the OS can enforce protection, typically by copying the page or denying the write. Thus, option B is correct. Option A is false because the write would not succeed silently. Option C is incorrect; the OS does not automatically change protection without explicit action. Option D suggests caching, which does not apply to protection violations.
Q8. Three processes have workingāset sizes of 150āÆMB, 300āÆMB, and 450āÆMB respectively. The system has 1āÆGB of RAM with 200āÆMB free, and the VM manager must trim 100āÆMB total. Which process is most likely to lose the largest portion of its working set?
š Explanation: The VM manager uses heuristics that consider both the size of each working set and the growth rate of processes. The largest working set (ProcessāÆC at 450āÆMB) is the most likely to contain excess pages and often grows faster, so it will lose the biggest share when the manager must trim 100āÆMB. Option C reflects this reasoning. Option A, the smallest process, would be trimmed least to preserve its limited resources. Option B is intermediate but not the largest. Option D ignores the heuristic that prioritizes larger or rapidly growing sets, making it incorrect.