Developing Distributed Applications
Using ZooKeeper Cognitive Class
Exam Quiz Answers
Module 1 – Introduction Zookeeper Quiz Answers – Cognitive Class
Question 1: What is NOT a benefit distributed systems offer over centralized systems?
• Price to achieve redundancy
• Redundancy
• Ease of developing your coordination service
• Scalability
Question 2: A ZooKeeper client can perform a read operation from any server in the ensemble, but
a write operation must go through the ZooKeeper leader and requires a majority consensus to
succeed. True or false?
• False
• True
Question 3: What’s the benefit of running ZooKeeper in Standalone mode over Replicated mode?
• Cheaper
• Resilience
• Simpler testing and learning
• High availability
Module 2 – The Zookeeper Data Model Quiz Answers – Cognitive Class
Question 1: Which of the following statements is true?
• A client reading the data stored at a znode can receive some of the data.
• ZooKeeper is designed for high-volume storage.
• The path to a znode must be expressed as a canonical, absolute, and slash-separated path.
• Znodes can be used to store data that exceeds 1MB.
Question 2: A znode can be in multiple states at the same time. True or false?
• False
• True
Question 3: Which of the following commands is used to retrieve the access control list of a
znode?
, • fetchACL
• setACL
• printACL
• getACL
Module 3 – Programming and Advance Topics Quiz Answers – Cognitive Class
Question 1: In addition to the 4 letter commands, JMX can be used to monitor ZooKeeper. True or
false?
• False
• True
Question 2: Which two authentication plugins are included with ZooKeeper?
• ip and MD5
• ip and identify
• digset and MD5
• ip and digest
Question 3: What are the bindings that ZooKeeper comes with out of the box?
• Ruby and Java
• Java and C#
• Python and C
• Java and C
Developing Distributed Applications Using ZooKeeper Final Exam Answers – Cognitive Class
Question 1: What is the primary purpose of ZooKeeper in the Hadoop architecture?
• To provide logging support for Hadoop jobs
• To support the execution of workflows consisting of a collection of actions
• To provide a centralized coordination service for distributed applications
• To move data into HDFS
Question 2: When executing ZooKeeper in Replicated mode, a new leader can be elected if the
former leader fails. True or false?
• True
• False
Question 3: Which of the following are consistency guarantees made by ZooKeeper? Select all that
apply.
• Atomicity
Using ZooKeeper Cognitive Class
Exam Quiz Answers
Module 1 – Introduction Zookeeper Quiz Answers – Cognitive Class
Question 1: What is NOT a benefit distributed systems offer over centralized systems?
• Price to achieve redundancy
• Redundancy
• Ease of developing your coordination service
• Scalability
Question 2: A ZooKeeper client can perform a read operation from any server in the ensemble, but
a write operation must go through the ZooKeeper leader and requires a majority consensus to
succeed. True or false?
• False
• True
Question 3: What’s the benefit of running ZooKeeper in Standalone mode over Replicated mode?
• Cheaper
• Resilience
• Simpler testing and learning
• High availability
Module 2 – The Zookeeper Data Model Quiz Answers – Cognitive Class
Question 1: Which of the following statements is true?
• A client reading the data stored at a znode can receive some of the data.
• ZooKeeper is designed for high-volume storage.
• The path to a znode must be expressed as a canonical, absolute, and slash-separated path.
• Znodes can be used to store data that exceeds 1MB.
Question 2: A znode can be in multiple states at the same time. True or false?
• False
• True
Question 3: Which of the following commands is used to retrieve the access control list of a
znode?
, • fetchACL
• setACL
• printACL
• getACL
Module 3 – Programming and Advance Topics Quiz Answers – Cognitive Class
Question 1: In addition to the 4 letter commands, JMX can be used to monitor ZooKeeper. True or
false?
• False
• True
Question 2: Which two authentication plugins are included with ZooKeeper?
• ip and MD5
• ip and identify
• digset and MD5
• ip and digest
Question 3: What are the bindings that ZooKeeper comes with out of the box?
• Ruby and Java
• Java and C#
• Python and C
• Java and C
Developing Distributed Applications Using ZooKeeper Final Exam Answers – Cognitive Class
Question 1: What is the primary purpose of ZooKeeper in the Hadoop architecture?
• To provide logging support for Hadoop jobs
• To support the execution of workflows consisting of a collection of actions
• To provide a centralized coordination service for distributed applications
• To move data into HDFS
Question 2: When executing ZooKeeper in Replicated mode, a new leader can be elected if the
former leader fails. True or false?
• True
• False
Question 3: Which of the following are consistency guarantees made by ZooKeeper? Select all that
apply.
• Atomicity