Buffer Pool Checkpoint

Trace pin counts, recency, dirty state, and the WAL boundary.


Get every question correct to pass this checkpoint. You can review feedback, revise your answers, and submit again.

1. Capacity 1: fetch A, fetch A, unpin A, fetch B. What happens on the final fetch?

Select one answer.

2. Capacity 2: fetch/unpin A; fetch/unpin B; fetch/unpin A; unpin B again; fetch C. Which page is evicted?

Select one answer.

3. A is unpinned with dirty=true, later fetched, then unpinned with dirty=false. Its next eviction reports:

Select one answer.

4. The oldest resident page is pinned; the next oldest is unpinned and dirty. A miss fills no free frame. What does this simulator do?

Select one answer.

5. In a real WAL-backed engine, a dirty page has pageLSN=42 while the durable log ends at 39. Before writing that page, the engine must:

Select one answer.

6. A solution returns all expected eviction IDs and dirty flags. Which property remains outside what this API can verify?

Select one answer.

Join Discord