Hadoop Questions and Answers – Introduction to Zookeeper

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

Answer: b
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

Answer: c
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

Answer: d
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

Answer: b
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.

advertisement
advertisement

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

Answer: d
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

Answer: b
Explanation: ZooKeeper supports the concept of watches. Clients can set a watch on a znodes.

Note: Join free Sanfoundry classes at Telegram or Youtube

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

Answer: b
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

Answer: b
Explanation: A number of constants used in the client ZooKeeper API were re-specified using enums (rather than ints).

advertisement

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

Answer: b
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

Answer: a
Explanation: Every znode is identified by a path, with path elements separated by a slash.

advertisement

Sanfoundry Global Education & Learning Series – Hadoop.

Here’s the list of Best Books in Hadoop.

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.