Computing and Information Technology

Virtual Memory & Address Translation Practice Exam, Flashcards & Questions

Master foundational to advanced Virtual Memory & Address Translation with 330 verified curriculum items, worked engineering solutions, and spaced-repetition cards.

240 Total Questions 60 MCQs 90 Calculations 30 Formulas 60 Flashcards
Free Interactive Preview

Virtual Memory & Address Translation Sample Exam Questions & Rationale

Preview official questions below. The complete pool of 240 items is available in the offline app.

Question 1 of 4 Direct Memory Access (DMA) Virtual Addresses & IOMMU Translation

What critical security and functional protection does an Input-Output Memory Management Unit (IOMMU) provide during peripheral DMA operations?

A It translates Device Virtual Addresses to Physical Addresses and blocks DMA access to unauthorized memory pages
B It accelerates PCI Express clock frequency by eliminating bus parity checks
C It compresses network packet payloads directly into Level 2 cache SRAM
D It forces all peripheral DMA transactions to execute synchronously with CPU ALU instructions
Accepted Answer: Option A (It translates Device Virtual Addresses to Physical Addresses and blocks DMA access to unauthorized memory pages)

Rationale: An IOMMU connects a DMA-capable I/O bus (such as PCIe) to main memory. It translates Device Virtual Addresses (DVA) or Guest Physical Addresses (GPA) to Host Physical Addresses (HPA) using I/O page tables. This allows devices to perform scatter-gather DMA into non-contiguous physical pages and prevents malicious or buggy devices from overwriting arbitrary host kernel memory.

Question 2 of 4 Hardware Virtualization & Two-Dimensional Paging (EPT / NPT)

In hardware-assisted memory virtualization (Intel EPT or AMD NPT), what translation is performed to convert a Guest Virtual Address (GVA) to a Host Physical Address (HPA)?

A Two-dimensional translation: GVA to GPA via guest page tables, then GPA to HPA via extended page tables
B One-dimensional direct translation via guest microcode emulation
C Single-level hashing of guest descriptors directly into host BIOS NVRAM
D Translation is bypassed by assigning bare-metal physical RAM directly to guest registers
Accepted Answer: Option A (Two-dimensional translation: GVA to GPA via guest page tables, then GPA to HPA via extended page tables)

Rationale: Hardware virtualization introduces two-dimensional paging (nested paging). The guest OS translates Guest Virtual Address (GVA) to Guest Physical Address (GPA) using traditional 4-level guest tables. The CPU hardware then translates each GPA to a real Host Physical Address (HPA) using 4-level Extended Page Tables (EPT).

Question 3 of 4 Kernel Page Table Isolation (KPTI) & Meltdown Mitigation Overhead

Why was Kernel Page Table Isolation (KPTI) introduced in operating system kernels, and what hardware cost does it incur?

A It separates user and kernel page tables to prevent speculative Meltdown side-channel attacks, incurring CR3 reload overhead on every system call
B It encrypts kernel page tables using AES-NI instructions inside the L1 data cache
C It replaces virtual memory paging with physical memory base-and-bound registers
D It disables out-of-order execution entirely in all user applications
Accepted Answer: Option A (It separates user and kernel page tables to prevent speculative Meltdown side-channel attacks, incurring CR3 reload overhead on every system call)

Rationale: KPTI mitigates the Meltdown vulnerability (speculative memory reads bypassing supervisor protection). Historically, kernel memory was mapped into every user process address space (with User bit = 0). KPTI maintains two separate page tables per process: a user-space table that maps minimal kernel stubs, and a kernel table. Every system call and interrupt must switch CR3, incurring TLB flush or PCID reload penalties.

Question 4 of 4 Memory Protection Keys (MPK / PKU) & User-Space Domain Isolation

How do Memory Protection Keys (Intel MPK / PKU) enable microsecond-level domain isolation without invoking operating system kernel system calls?

A They tag page table entries with a 4-bit key and enforce read/write access via a user-space register (PKRU) without modifying page tables
B They allocate dedicated hardware cryptographic keys to decrypt DRAM lines upon L1 eviction
C They flush the TLB and reload the CR3 register directly from user space instructions
D They assign separate physical memory DIMMs to each thread in a multi-threaded process
Accepted Answer: Option A (They tag page table entries with a 4-bit key and enforce read/write access via a user-space register (PKRU) without modifying page tables)

Rationale: Intel MPK assigns a 4-bit Protection Key (0-15) to each Page Table Entry. The processor provides a user-accessible register (PKRU) that controls Read and Write access rights for each of the 16 keys. A user application can update permissions across gigabytes of memory in ~20 clock cycles using the unprivileged `WRPKRU` instruction, completely avoiding slow `mprotect()` system calls and TLB shootdowns.

Active Recall Spaced Repetition Cards (Preview)

Card 1 • Direct Memory Access (DMA) Virtual Addresses & IOMMU Translation
An IOMMU translates device virtual addresses and caches them in an {{c1::IOTLB}}.
Specialized hardware TLB located inside the I/O memory controller hub.
Card 2 • Hardware Virtualization & Two-Dimensional Paging (EPT / NPT)
In Intel EPT virtualization, a worst-case 2D page walk requires {{c1::24 memory accesses}}.
Multiplies guest page table lookups by nested host physical address translations.

Virtual Memory & Address Translation Curriculum Modules & Topics Covered

Modules
Virtual Paging Architecture & Multi-Level Page TablesTranslation Lookaside Buffer (TLB) Architecture & PerformancePage Fault Handling & Secondary Storage LatencyPage Replacement Policies & Memory Working SetsMemory Virtualization, Superpages & Hardware Extensions
Core Exam Topics
  • Virtual vs Physical Address Spaces & Page Sizing Trade-offs
  • Linear Single-Level Page Table Storage Overhead
  • Two-Level Hierarchical Page Table Translation (Directory & Table)
  • 4-Level and 5-Level Page Tables in 64-bit Architectures (x86-64 PML4/PML5)
  • Inverted and Hashed Page Tables for Dense Physical Address Spaces
  • Page Table Entry (PTE) Bit Fields: Valid, Dirty, Accessed, Protection & NX
  • TLB Operation, Tag Matching & Address Translation Latency
  • Effective Memory Access Time (EMAT) with Single-Level TLB
  • Two-Level TLB Hierarchies (L1 TLB & L2 unified TLB)
  • Hardware Page Table Walkers vs Software Managed TLB Miss Handling
Learning Objectives
  • Develop core conceptual recall and analytical problem-solving in Virtual Paging Architecture & Multi-Level Page Tables.
  • Develop core conceptual recall and analytical problem-solving in Translation Lookaside Buffer (TLB) Architecture & Performance.
  • Develop core conceptual recall and analytical problem-solving in Page Fault Handling & Secondary Storage Latency.
  • Develop core conceptual recall and analytical problem-solving in Page Replacement Policies & Memory Working Sets.
  • Develop core conceptual recall and analytical problem-solving in Memory Virtualization, Superpages & Hardware Extensions.

Free Downloadable Virtual Memory & Address Translation Study Packs (.ZIP / .TSV)

Full Spreadsheet Data (TSV)
TSV • 240 items
Complete Course Pack
ZIP • 240 items
Elements (Standard)
ZIP • 240 items
Active Recall Flashcards
ZIP • 240 items
Formula Codex
ZIP • 240 items
Problem Solving (Mastery)
ZIP • 240 items
Artificial Intelligence (1,579) Artificial Intelligence and Machine Learning (507) Cloud Computing and DevOps (144) Compiler Design & Formal Languages (1,579) Computational Contact Mechanics: Penalty Function Method, Lagrange Multipliers & Mortar Contact Formulations (128) Computer Engineering & Algorithms (1,365)
Full Question Pool: 240 Verified Items

Unlock All 240 Virtual Memory & Address Translation Practice Questions

Study the full question pool with 13 active recall battle modes, FSRS v5 spaced repetition, and 1-click printable PDF mock exams with full answer keys on Android and Windows PC.

Get on Google Play (Android) Get on Microsoft Store (Windows PC)