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.
- A. P-2, Q-1, R-3
- B. P-3, Q-2, R-1
- C. P-1, Q-3, R-2
- 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.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- Pull requests A and B each pass CI against main and are merged one after the other, after which main fails to build: A renamed a function…
- On main you run git merge f1 f2 f3, where the three branches touch different files and none conflict. What results?
- A developer on Windows opens a repository created on Linux, edits one line of a file, and git diff shows every line changed. What is the…
- A product manager ranks 8 candidate requirements with the Analytic Hierarchy Process, comparing every pair once. How many pairwise…
- A team can (A) build a module in-house: 60% chance of gaining ₹50 lakh and 40% chance of losing ₹20 lakh; (B) buy a licence for a certain…
- Usability studies model the share of problems found by n test users as 1 − (1 − L)ⁿ, where L is the probability that one user reveals a…