Physical Address

304 North Cardinal St.
Dorchester Center, MA 02124

Developing Distributed Applications Using ZooKeeper Quiz Answers

Get Developing Distributed Applications Using ZooKeeper Quiz Answers

ZooKeeper is a coordination service that provides sets of tools to help manage distributed applications. Building distributed applications comes with challenges that are intrinsic to distributed applications itself, which includes maintaining configuration information, groups, naming, and synchronization.

ZooKeeper allows developers to handle these challenges to create robust distributed applications. ZooKeeper comes with a set of guarantees: sequential consistency, atomicity, single system image, reliability, and timeliness. This course will help you learn how to use ZooKeeper to keep your Big Data applications running smoothly despite the challenges of operating in a complex distributed environment.

Enroll on Cognitive Class

Module 1: Introduction to ZooKeeper

Question: What is NOT a benefit that distributed systems offer over centralized systems?

  • Price to achieve redundancy
  • Redundancy
  • Ease of developing your own coordination service
  • Scalability

Question: 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: 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

Question: 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: A znode can be in multiple states at the same time. True or false?

  • False
  • True

Question: Which of the following commands is used to retrieve the access control list of a znode?

  • fetchACL
  • setACL
  • printACL
  • getACL

Module 3: Programming and Advanced Topics

Question: In addition to the 4 letter commands, JMX can be used to monitor ZooKeeper. True or false?

  • False
  • True

Question: Which two authentication plugins are included with ZooKeeper?

  • ip and MD5
  • ip and identify
  • digset and MD5
  • ip and digest

Question: What are the bindings that ZooKeeper comes with out of the box?

  • Ruby and Java
  • Java and C#
  • Python and C
  • Java and C

Final Exam

Question: 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: When executing ZooKeeper in Replicated mode, a new leader can be elected if the former leader fails. True or false?

  • True
  • False

Question: Which of the following are consistency guarantees made by ZooKeeper? Select all that apply.

  • Atomicity
  • Reliability
  • Timeliness
  • Release

Question: ZooKeeper guarantees simultaneously consistent cross-client views. True or false?

  • True
  • False

Question: ZooKeeper can be used to implement several use cases including

  • Leader Election
  • Queue Management
  • Configuration Management
  • Locking
  • All of the above

Question: A ZooKeeper client can maintain a list of servers to connect to, and the client will go through its list until it successfully connects to a ZooKeeper server. True or false?

  • True
  • False

Question: ZooKeeper Watches can be used to

  • Watch for failed MapReduce jobs
  • Watch for changes to Hadoop configuration
  • Watch for changes in the Hadoop Filesystem (HDFS)
  • None of the above

Question: If you want to be notified of a change in a ZooKeeper znode, you should use

  • The ZooKeeper getData() method
  • The ZooKeeper sync() method
  • The ZooKeeper callback() method
  • A ZooKeeper Watch

Question: In ZooKeeper, if you want a znode to be deleted when the client session ends, you should create a

  • Session znode
  • Ephemeral znode
  • Temp znode
  • Persistent znode

Question: Using the –s parameter when creating a znode results in a

  • Ephemeral znode
  • Sequential znode
  • Temp znode
  • Session znode
  • Persistent znode

Question: Which of the ‘four letter word’ commands will show you the status of a ZooKeeper server?

  • stat
  • dump
  • conf
  • cons
  • ruok

Question: When using the ZooKeeper Java API, what do you need to implement in order to receive Watcher notifications?

  • A constructor that calls the watch method
  • A class that inherits from zNode
  • The process method of the Watcher interface
  • None of the above

Question: In ZooKeeper, setting an ACL only pertains to the specific znode and is not recursive. True or false?

  • True
  • False

Question: In ZooKeeper, what permission do you need to have in order to change the ACL on a znode?

  • READ

Question: You can plug in your own authentication scheme rather than using the ones provided out of the box by ZooKeeper. True or false?

  • True
  • False


We hope you know the correct answers to Developing Distributed Applications Using ZooKeeper If Queslers helped you to find out the correct answers then make sure to bookmark our site for more Course Quiz Answers.

If the options are not the same then make sure to let us know by leaving it in the comments below.

Course Review:

In our experience, we suggest you enroll in this and gain some new skills from Professionals completely free and we assure you will be worth it.

This course is available on Cognitive Class for free, if you are stuck anywhere between quiz or graded assessment quiz, just visit Queslers to get all Quiz Answers and Coding Solutions.

More Courses Quiz Answers >>

Machine Learning With R Cognitive Class Answers

Machine Learning with Python Cognitive Class Answers

Scalable web applications on Kubernetes Quiz Answers

Blockchain Essentials Quiz Answers

Docker Essentials: A Developer Introduction Quiz Answers

Building Robots with TJBot Quiz Answers

Leave a Reply

Your email address will not be published. Required fields are marked *