本页仅为文字内容,不可回答。

zookeeper 190704 mid term exam

亲~,请留下您宝贵的想法,非常感谢您的参与!
Select the correct statement.brA)Timestamp − Timestamp represents time elapsed from znode creation and modification.brB)Version number − Every znode has a version number, which means every time the data associated with the znode changes, its corresponding version number would also increase.
a)Only A is true
b)Only B is true
c)Both A B are true
d)Both A B are false
Select the correct statement about watches.
a)Watches are triggered only once.
b)If a client wants a notification second time, it must be done through again by another read operation.
c)When a connection session is expired, the client will be disconnected from the server and the associated watches are also removed.
d)All of the above.
Select the correct statement about Write operation.brA)If a client wants to store data in the Zookeeper ensemble, it sends the znode path and the data to the server. The connected server will forward the request to the leader and then the leader will reissue the writing request to all the followers. brB)If only a majority of the nodes respond successfully, then the write request will succeed and a successful return code will be sent to the client. Otherwise, the write request will fail.brC)Write operations are fast in ZooKeeper ensemble.
a)Only A is true
b)Only B is true
c)Only A B are true
d)All A, B C are true.
Select the correct statement about znodes.
a)Every znode in the ZooKeeper tree is identified by the data, and the path elements are separated by %.
b)Every znode in the ZooKeeper tree is identified by a path, and the path elements are separated by /.
c)Every znode in the ZooKeeper tree is identified by a path, and the path elements are separated by %.
d)Every znode in the ZooKeeper tree is identified by a data, and the path elements are separated by /.
Write the code for following.a)Set the watch on path /a/b znode.b)To update the data on the path /x/y
    ____________