This set of Hadoop Multiple Choice Questions & Answers (MCQs) focuses on “Introduction to Zookeeper”.
1. ZooKeeper itself is intended to be replicated over a sets of hosts called ____________
a) chunks
b) ensemble
c) subdomains
d) none of the mentioned
View Answer
Explanation: As long as a majority of the servers are available, the ZooKeeper service will be available.
2. Point out the correct statement.
a) ZooKeeper can achieve high throughput and high latency numbers
b) The fault tolerant ordering means that sophisticated synchronization primitives can be implemented at the client
c) The ZooKeeper implementation puts a premium on high performance, highly available, strictly ordered access
d) All of the mentioned
View Answer
Explanation: The performance aspects of ZooKeeper means it can be used in large, distributed systems.
3. Which of the guarantee is provided by Zookeeper?
a) Interactivity
b) Flexibility
c) Scalability
d) Reliability
View Answer
Explanation: Once an update has been applied, it will persist from that time forward until a client overwrites the update.
4. ZooKeeper is especially fast in ___________ workloads.
a) write
b) read-dominant
c) read-write
d) none of the mentioned
View Answer
Explanation: ZooKeeper applications run on thousands of machines, and it performs best where reads are more common than writes, at ratios of around 10:1.
5. Point out the wrong statement.
a) Distributed applications use SQL to store important configuration information
b) The service maintains a record of all transactions, which can be used for higher-level abstractions, like synchronization primitives
c) ZooKeeper maintains a standard hierarchical name space, similar to files and directories
d) ZooKeeper provides superior reliability through redundant services
View Answer
Explanation: Distributed applications use Zookeeper to store and mediate updates to important configuration information.
6. When a _______ is triggered the client receives a packet saying that the znode has changed.
a) event
b) watch
c) row
d) value
View Answer
Explanation: ZooKeeper supports the concept of watches. Clients can set a watch on a znodes.
7. The underlying client-server protocol has changed in version _______ of ZooKeeper.
a) 2.0.0
b) 3.0.0
c) 4.0.0
d) 6.0.0
View Answer
Explanation: Old pre-3.0.0 clients are not guaranteed to operate against upgraded 3.0.0 servers and vice-versa.
8. The java package structure has changed from com.yahoo.zookeeper* to ___________
a) apache.zookeeper
b) org.apache.zookeeper
c) org.apache.zookeeper.package
d) all of the mentioned
View Answer
Explanation: A number of constants used in the client ZooKeeper API were re-specified using enums (rather than ints).
9. A number of constants used in the client ZooKeeper API were renamed in order to reduce ________ collision.
a) value
b) namespace
c) counter
d) none of the mentioned
View Answer
Explanation: ZOOKEEPER-18 removed KeeperStateChanged, use KeeperStateDisconnected instead.
10. ZooKeeper allows distributed processes to coordinate with each other through registers, known as ___________
a) znodes
b) hnodes
c) vnodes
d) rnodes
View Answer
Explanation: Every znode is identified by a path, with path elements separated by a slash.
Sanfoundry Global Education & Learning Series – Hadoop.
Here’s the list of Best Books in Hadoop.
- Check Hadoop Books
- Practice Programming MCQs
- Check Programming Books
- Apply for Computer Science Internship