H13-711_V3.5 · Question #269
What information is included in calling the Zookeeper client command? (Multiple choice)
The correct answer is A. Port number B. IP address. When invoking the ZooKeeper client (e.g., zkCli.sh -server <host>:<port>), you must provide the IP address of the ZooKeeper server and the port number it listens on (default: 2181). These two pieces of information form the connection string the client uses to establish a…
Question
What information is included in calling the Zookeeper client command? (Multiple choice)
Options
- APort number
- BIP address
- CServer name
- DUsername
How the community answered
(48 responses)- A79% (38)
- C13% (6)
- D8% (4)
Explanation
When invoking the ZooKeeper client (e.g., zkCli.sh -server <host>:<port>), you must provide the IP address of the ZooKeeper server and the port number it listens on (default: 2181). These two pieces of information form the connection string the client uses to establish a session with the ZooKeeper ensemble.
Why C is wrong: While ZooKeeper can resolve a hostname, the standard client command syntax specifically uses an IP address (or address:port pair), and the exam treats "server name" as a distinct, incorrect option - distinguishing a named label from a network address.
Why D is wrong: The basic ZooKeeper CLI does not prompt for or accept a username at invocation. Authentication (e.g., SASL or digest-based ACLs) is handled separately inside the session, not as a connection parameter.
Memory tip: Think "dial a phone call" - you need the number (IP address) and the extension (port). You don't introduce yourself by name (server name) or need a login (username) just to place the call.
Community Discussion
No community discussion yet for this question.