nerdexam
CompTIA

SG0-001 · Question #220

Which of the following describes the difference between a write-thru cache and a write-back cache?

The correct answer is D. Write-thru cache removes the risk of losing data during write operations.. Write-thru cache ensures data is written to both the cache and the permanent storage simultaneously, which reduces the risk of data loss compared to write-back cache.

Storage Functionality

Question

Which of the following describes the difference between a write-thru cache and a write-back cache?

Options

  • AWrite-back cache decreases disk write performance.
  • BWrite-thru cache improves disk write performance.
  • CWrite-back cache removes the risk of losing data during write operations
  • DWrite-thru cache removes the risk of losing data during write operations.

How the community answered

(60 responses)
  • A
    2% (1)
  • B
    3% (2)
  • C
    5% (3)
  • D
    90% (54)

Why each option

Write-thru cache ensures data is written to both the cache and the permanent storage simultaneously, which reduces the risk of data loss compared to write-back cache.

AWrite-back cache decreases disk write performance.

Write-back cache generally increases disk write performance because the write operation is considered complete once data is written to the faster cache, with the cache flushing data to disk later.

BWrite-thru cache improves disk write performance.

Write-thru cache typically decreases or has a neutral effect on disk write performance compared to write-back, because the system waits for data to be committed to both cache and primary storage before acknowledging the write as complete.

CWrite-back cache removes the risk of losing data during write operations

Write-back cache introduces a risk of losing data during write operations if the cache fails (e.g., power loss) before the data is flushed to permanent storage, unless protected by battery backup or other persistence mechanisms.

DWrite-thru cache removes the risk of losing data during write operations.Correct

With write-thru cache, data is written simultaneously to both the cache and the primary storage device. This ensures data persistence even if the cache fails, thereby removing or significantly reducing the risk of losing data that has been acknowledged as written but hasn't yet reached the permanent storage.

Concept tested: Storage caching mechanisms and data integrity

Source: https://learn.microsoft.com/en-us/archive/blogs/msdn/performance-tuning-memory-caching

Topics

#Write-thru cache#Write-back cache#Storage caching#Data integrity

Community Discussion

No community discussion yet for this question.

Full SG0-001 Practice