CS FundamentalsHardProduct-company placement · system design

Match each caching write policy with its behaviour. P. Write-through Q. Write-behind (write-back) R. Write-around 1. Writes go only to the database; the cache fills on later reads. 2. Writes update the cache and the database together before acknowledging. 3. Writes update the cache and are flushed to the database later, in batches.

  1. A. P-2, Q-1, R-3
  2. B. P-3, Q-2, R-1
  3. C. P-1, Q-3, R-2
  4. D. P-2, Q-3, R-1

Correct answer: D. P-2, Q-3, R-1

Write-through keeps cache and store consistent at the cost of write latency; write-behind is fast but can lose acknowledged writes if the cache fails; write-around avoids filling the cache with data that may never be read.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic