Hadoop Questions and Answers – The ZooKeeper Service – 1

This set of Interview Questions & Answers focuses on “The ZooKeeper Service – 1”.

1. Zookeeper essentially mirrors the _______ functionality exposed in the Linux kernel.
a) iread
b) inotify
c) iwrite
d) icount
View Answer

Answer: b
Explanation: A client can request for Zookeeper to generate the node name to avoid collisions.

2. Point out the correct statement.
a) If we are to deploy Zookeeper in a distributed environment, we have to think about both the availability and scalability of the service
b) Chubby and Hbase are both much more than a distributed lock service
c) Given a cluster of Zookeeper servers, many can act as leader
d) None of the mentioned
View Answer

Answer: a
Explanation: At its core, Zookeeper is modeled after a straightforward, tree based, file system API.

3. A ___________ server is a machine that keeps a copy of the state of the entire system and persists this information in local log files.
a) Master
b) Region
c) Zookeeper
d) All of the mentioned
View Answer

Answer: c
Explanation: A very large Hadoop cluster can be supported by multiple ZooKeeper servers.

4. ZooKeeper’s architecture supports high ____________ through redundant services.
a) flexibility
b) scalability
c) availability
d) interactivity
View Answer

Answer: c
Explanation: The clients can thus ask another ZooKeeper master if the first fails to answer.

advertisement
advertisement

5. Point out the wrong statement.
a) Cluster-wide status centralization service is essential for management and serialization tasks across a large distributed set of servers
b) Within ZooKeeper, an application can create what is called a znode
c) The znode can be updated by any node in the cluster, and any node in the cluster can register to be informed of changes to that znode
d) None of the mentioned
View Answer

Answer: d
Explanation: ZooKeeper provides an infrastructure for cross-node synchronization and can be used by applications to ensure that tasks across the cluster are serialized or synchronized.

6. _________ serves distributed Lucene indexes in a grid environment.
a) Katta
b) Helprace
c) Neo4j
d) 101tec
View Answer

Answer: a
Explanation: Zookeeper is used for node, master and index management in the grid.

Note: Join free Sanfoundry classes at Telegram or Youtube

7. The Email & Apps team of ___________ uses ZooKeeper to coordinate sharding and responsibility changes in a distributed email client.
a) Katta
b) Helprace
c) Rackspace
d) None of the mentioned
View Answer

Answer: c
Explanation: ZooKeeper also provides distributed locking for connections to prevent a cluster from overwhelming servers.

8. ZooKeeper is used for configuration, leader election in Cloud edition of ______________
a) Solr
b) Solur
c) Solar101
d) All of the mentioned
View Answer

Answer: a
Explanation: ZooKeeper is used for internal application development with Solr and Hadoop with Hbase.

advertisement

9. Helprace is using ZooKeeper on a _______ cluster in conjunction with Hadoop and HBase.
a) 3-node
b) 4-node
c) 5-node
d) 6-node
View Answer

Answer: a
Explanation: Zookeeper is used to manage a system build out of hadoop, katta, oracle batch jobs and a web component.

10. The ZooKeeper Data Directory contains files which are _________ copy of the znodes stored by a particular serving ensemble.
a) transient
b) read only
c) persistent
d) none of the mentioned
View Answer

Answer: c
Explanation: As changes are made to the znodes these changes are appended to a transaction log, occasionally, when a log grows large, a snapshot of the current state of all znodes will be written to the filesystem.

advertisement

Sanfoundry Global Education & Learning Series – Hadoop.

Here’s the list of Best Books in Hadoop.

To practice all interview questions and answers on Zookeeper, here is complete set of 1000+ Multiple Choice Questions and Answers.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.