117k views
0 votes
Which statement accurately describes how ZooKeeper works?

A. Writes to a leader server will always succeed.
B. There can be more than one leader server at a time.
C. All servers keep a copy of the shared data in memory.
D. Clients connect to multiple servers at the same time.

User Lory Huz
by
7.9k points

1 Answer

1 vote

Final answer:

The accurate statement that describes how ZooKeeper works is that there can be more than one leader server at a time.

Step-by-step explanation:

The accurate statement that describes how ZooKeeper works is B. There can be more than one leader server at a time. ZooKeeper is a distributed coordination service that is used to synchronize and manage distributed applications. In a ZooKeeper ensemble, multiple servers are connected and each server can act as a leader or a follower at different times. This ensures high availability and fault tolerance.

For example, in a three-server ensemble, any server can become a leader. If the leader server fails, a new leader will be automatically elected from the remaining servers.

It is important to note that ZooKeeper clients do not connect to multiple servers simultaneously. They connect to a single server in the ensemble and ZooKeeper handles the communication and coordination internally.

User Aravinthan K
by
8.5k points