Data Consistency in Distributed Systems
- 61Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
61 questions
- 1In distributed systems, consistency concerns whether multiple copies of_____contain matching information.
Hint
Think about what is duplicated across servers.
Answer
data
- 2In the CAP theorem, the letter C stands for_____.
Hint
It is the property that requires copies of data to agree.
Answer
consistency
- 3In database transactions, the C in ACID stands for_____.
Hint
It is the same data-related property discussed in distributed systems.
Answer
consistency
- 4When 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
- 5Increasing the capacity of one server is called_____scaling.
Hint
This approach makes an individual machine more powerful rather than adding machines.
Answer
vertical
- 6Vertical 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
- 7When 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
- 8Placing 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
- 9If 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
- 10If 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
- 11A 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
- 12When 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
- 13When 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
- 14After 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
- 15A 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
- 16Storing 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
- 17Keeping 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
- 18Once 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
- 19For 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
- 20A 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
- 21A 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
- 22A 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
- 23TCP is suggested for propagating updates because it provides reliable and_____delivery.
Hint
Messages arrive in the sequence in which they were sent.
Answer
ordered
- 24An 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
- 25After 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
- 26A 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
- 27If 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
- 28After 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
- 29A system that retries every few seconds without stopping uses an_____number of retries.
Hint
The attempts have no fixed upper bound.
Answer
infinite
- 30A 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
- 31Failures 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
- 32If 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
- 33If 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
- 34The 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
- 35A 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
- 36In 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
- 37If 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
- 38If 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
- 39The 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
- 40When 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
- 41Two-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
- 42The 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
- 43During 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
- 44A 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
- 45The leader proceeds to the commit phase only after receiving the required_____from its followers.
Hint
These replies confirm that followers are prepared.
Answer
acknowledgements
- 46If 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
- 47In 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
- 48A 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
- 49After 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
- 50A 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
- 51Followers 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
- 52If 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
- 53If 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
- 54If 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
- 55To 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
- 56When 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
- 57A 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
- 58Maintaining 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
- 59For 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
- 60Rather 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
- 61Eventual 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

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