1. Home
  2. Explore
  3. Computer Science
  4. Data Consistency in Distributed Systems

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Data Consistency in Distributed Systems

  • 61Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Consistency and Architecture
In distributed systems, consistency concerns whether multiple copies of
contain matching information.

61 questions

  1. 1
    In distributed systems, consistency concerns whether multiple copies of
    _____
    contain matching information.
    Hint

    Think about what is duplicated across servers.

    Answer

    data

  2. 2
    In the CAP theorem, the letter C stands for
    _____
    .
    Hint

    It is the property that requires copies of data to agree.

    Answer

    consistency

  3. 3
    In database transactions, the C in ACID stands for
    _____
    .
    Hint

    It is the same data-related property discussed in distributed systems.

    Answer

    consistency

  4. 4
    When a system relies on one server, that server is a
    _____
    because its failure can take down the system.
    Hint

    The term describes one component whose failure affects the whole system.

    Answer

    single point of failure

  5. 5
    Increasing the capacity of one server is called
    _____
    scaling.
    Hint

    This approach makes an individual machine more powerful rather than adding machines.

    Answer

    vertical

  6. 6
    Vertical scaling becomes expensive and eventually reaches a
    _____
    beyond which one computer cannot handle more users.
    Hint

    Think of the point at which adding more capacity to one machine is no longer practical.

    Answer

    limit

  7. 7
    When users far from a server experience slow responses because of the distance data must travel, the problem is high
    _____
    .
    Hint

    This measures the delay before a response arrives.

    Answer

    latency

  8. 8
    Placing separate servers in different regions can provide local access, but if they have no communication or shared data, there is no data
    _____
    between them.
    Hint

    This is what users need in order to see information belonging to another region.

    Answer

    sharing

  9. 9
    If a user must contact a distant region's server directly, the system still has high
    _____
    for that request.
    Hint

    The request must travel across a long network path before it can be answered.

    Answer

    latency

  10. 10
    If a remote region's server is the only place holding its data, that server's failure can still create a
    _____
    for that data.
    Hint

    The data depends on one server being available.

    Answer

    single point of failure

  11. 11
    A local cache can reduce access time for popular profiles stored in another region, but it does not eliminate
    _____
    .
    Hint

    A cache can speed up many requests, but some requests still need to travel to the remote server.

    Answer

    latency

  12. 12
    When a requested profile is already stored in the local cache, the server can return it without contacting the remote server; this is a cache
    _____
    .
    Hint

    It is the opposite of a cache miss.

    Answer

    hit

  13. 13
    When a requested profile is absent from the local cache, the server must fetch it from the remote server; this is a cache
    _____
    .
    Hint

    The requested information was not found in the local cache.

    Answer

    miss

  14. 14
    After fetching a missing profile from a remote server, the local server can store it in its
    _____
    for later requests.
    Hint

    This is the temporary local store used to speed up repeat access.

    Answer

    cache

  15. 15
    A profile that was once cached may later need to be fetched again if it is removed through cache
    _____
    .
    Hint

    A cache may remove an older entry to make room for another one.

    Answer

    replacement

  16. 16
    Storing the same data in multiple places reduces dependence on any one server and helps address a
    _____
    .
    Hint

    If one copy's server fails, another copy may still be available.

    Answer

    single point of failure

  17. 17
    Keeping a copy of data near users in another region can provide faster local responses and reduce
    _____
    .
    Hint

    The user no longer needs to reach the distant server for every request.

    Answer

    latency

  18. 18
    Once data is copied to multiple servers, an update must be sent to the other copies so they can remain
    _____
    .
    Hint

    The copies should eventually contain matching information.

    Answer

    consistent

  19. 19
    For a product with very infrequent updates, one way to propagate changes is to update the separate copies
    _____
    .
    Hint

    This approach does not rely on an automated network mechanism.

    Answer

    manually

  20. 20
    A bank may record account changes as pluses and minuses in a ledger, then spread the information around the world so the accounts eventually become
    _____
    .
    Hint

    The copies are brought into agreement after updates have been distributed.

    Answer

    consistent

  21. 21
    A bank statement may take a few days to reflect a change, illustrating that some systems tolerate delayed
    _____
    .
    Hint

    The records do not necessarily match immediately, but are brought into agreement later.

    Answer

    consistency

  22. 22
    A real-time response system cannot generally tolerate waiting days for an update to spread, so it needs to propagate updates more
    _____
    .
    Hint

    The required delay is much shorter than in the bank-statement example.

    Answer

    quickly

  23. 23
    TCP is suggested for propagating updates because it provides reliable and
    _____
    delivery.
    Hint

    Messages arrive in the sequence in which they were sent.

    Answer

    ordered

  24. 24
    An update message such as “change C to C plus plus” tells the receiving server what
    _____
    to apply.
    Hint

    It specifies the change that should be made to the stored data.

    Answer

    update

  25. 25
    After receiving an update message, the remote server changes its local value to match the requested
    _____
    .
    Hint

    The server applies the change carried by the message.

    Answer

    update

  26. 26
    A sender can use an
    _____
    from the receiving server to learn that an update message was received.
    Hint

    It is a reply confirming receipt.

    Answer

    acknowledgement

  27. 27
    If no acknowledgement arrives, the sender cannot know whether the update failed, the server went down, or the reply was lost; this uncertainty can result from an
    _____
    network.
    Hint

    Messages or responses may fail to arrive as expected.

    Answer

    unreliable

  28. 28
    After failing to receive an acknowledgement, a sender can
    _____
    the update in an attempt to deliver it.
    Hint

    The sender transmits the operation again.

    Answer

    retry

  29. 29
    A system that retries every few seconds without stopping uses an
    _____
    number of retries.
    Hint

    The attempts have no fixed upper bound.

    Answer

    infinite

  30. 30
    A system that stops after a fixed number of attempts and accepts that copies may disagree is choosing to tolerate
    _____
    .
    Hint

    The copies may not yet contain the same data.

    Answer

    inconsistency

  31. 31
    Failures in distributed systems can arise from both hardware and
    _____
    problems.
    Hint

    These failures can occur in programs as well as in physical equipment.

    Answer

    software

  32. 32
    If a server commits an update locally, it cannot be certain that a peer will also commit it because the update message may
    _____
    .
    Hint

    The network may not successfully deliver the message.

    Answer

    fail

  33. 33
    If one server waits for its peer's acknowledgement before committing, the peer faces the same uncertainty about whether its own acknowledgement will
    _____
    .
    Hint

    The concern is whether the reply arrives at the other server.

    Answer

    reach

  34. 34
    The dilemma of whether messages and acknowledgements have arrived is illustrated by the
    _____
    problem.
    Hint

    The name refers to two parties trying to coordinate through uncertain communication.

    Answer

    two generals

  35. 35
    A design that simplifies writes by allowing only one server to make them gives that server the role of
    _____
    .
    Hint

    The other servers follow this server's decisions.

    Answer

    leader

  36. 36
    In a leader-follower system, servers that receive updates from the leader and can serve reads are called
    _____
    .
    Hint

    They follow the server that is the only place where writes are made.

    Answer

    followers

  37. 37
    If an update has not reached a follower, a read from that follower may return old data and create
    _____
    .
    Hint

    The follower's copy disagrees with the updated copy.

    Answer

    inconsistency

  38. 38
    If a system waits for an update to reach a follower before responding, the system may become temporarily
    _____
    .
    Hint

    Users may not receive a response while the system waits.

    Answer

    unavailable

  39. 39
    The described tradeoff is that pure consistency can reduce
    _____
    when the system must wait for updates.
    Hint

    This property concerns whether the system can respond to requests.

    Answer

    availability

  40. 40
    When a leader coordinates an operation across multiple followers using prepare and commit stages, the protocol is called
    _____
    .
    Hint

    Its name refers to the two stages used to coordinate the transaction.

    Answer

    two-phase commit

  41. 41
    Two-phase commit can be used when a system needs to ensure that an event is pushed into
    _____
    systems.
    Hint

    The event must reach more than one participating service or system.

    Answer

    multiple

  42. 42
    The first phase of two-phase commit begins when the leader sends a
    _____
    request to its followers.
    Hint

    This stage asks followers to get ready before the final decision.

    Answer

    prepare

  43. 43
    During the prepare phase, a follower performs the transaction's work but waits for the leader's final decision before it
    _____
    .
    Hint

    The follower has not yet made the changes final.

    Answer

    commits

  44. 44
    A follower's acknowledgement after preparing tells the leader that it is ready to
    _____
    .
    Hint

    The follower signals readiness for the transaction's final stage.

    Answer

    commit

  45. 45
    The leader proceeds to the commit phase only after receiving the required
    _____
    from its followers.
    Hint

    These replies confirm that followers are prepared.

    Answer

    acknowledgements

  46. 46
    If the leader receives a negative response or does not receive a required acknowledgement before a timeout, it can
    _____
    the transaction.
    Hint

    This cancels the pending transaction and restores the prior state.

    Answer

    roll back

  47. 47
    In a database transaction, the original value can be logged before changes are made so that a rollback can restore the
    _____
    value.
    Hint

    It is the value that existed before the transaction's changes.

    Answer

    original

  48. 48
    A database's commit operation makes transaction changes visible to users who are trying to
    _____
    the data.
    Hint

    This is the read operation described in the example.

    Answer

    get

  49. 49
    After all followers prepare successfully, the leader sends them a
    _____
    message to finalize the transaction.
    Hint

    This message moves the transaction from prepared to completed.

    Answer

    commit

  50. 50
    A follower that receives the leader's commit message completes the transaction by committing its local
    _____
    .
    Hint

    It is the operation that was prepared during the first phase.

    Answer

    transaction

  51. 51
    Followers should not independently roll back a prepared transaction just because time has passed; the
    _____
    coordinates the rollback.
    Hint

    This role controls the transaction and tells followers what action to take.

    Answer

    leader

  52. 52
    If a follower commits but its acknowledgement is lost, the leader can resend the commit; a transaction ID helps make handling the repeated request
    _____
    .
    Hint

    Repeating the same operation does not create an unintended additional effect.

    Answer

    idempotent

  53. 53
    If a commit message has not been acknowledged, the leader can keep
    _____
    it until the acknowledgement arrives.
    Hint

    The leader sends the commit again after a possible delivery failure.

    Answer

    retrying

  54. 54
    If the leader commits but a follower does not receive the commit, the two servers can temporarily hold different data, creating
    _____
    .
    Hint

    The copies no longer agree about the value.

    Answer

    inconsistent data

  55. 55
    To prevent reads from observing different versions while a commit is unresolved, the system can block operations using a
    _____
    .
    Hint

    This mechanism prevents access to data while a transaction is pending.

    Answer

    lock

  56. 56
    When a lock blocks a read request until the transaction finishes, the system preserves consistency but may lose
    _____
    .
    Hint

    The request cannot be served while it is blocked.

    Answer

    availability

  57. 57
    A system that waits for acknowledgements and retries to ensure copies agree may also suffer reduced
    _____
    .
    Hint

    Waiting and retrying can make operations slower.

    Answer

    performance

  58. 58
    Maintaining a perfectly consistent distributed system can increase the physical
    _____
    of the system.
    Hint

    The content notes that stronger guarantees may require more resources.

    Answer

    cost

  59. 59
    For a financial system that requires absolute consistency, the strict coordination of two-phase commit may be a suitable
    _____
    .
    Hint

    It is presented as a reasonable design choice when correctness is especially important.

    Answer

    idea

  60. 60
    Rather than requiring all copies to agree immediately, a more flexible alternative discussed in distributed systems is
    _____
    consistency.
    Hint

    The name suggests that copies become consistent over time.

    Answer

    eventual

  61. 61
    Eventual consistency is discussed in connection with isolation and guarantees for reading and
    _____
    data.
    Hint

    These are the two main kinds of data operations mentioned.

    Answer

    writing

1 of 61
Question 1 of 61

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent