Hadoop Questions and Answers – Introduction to Cassandra

This set of Hadoop Multiple Choice Questions & Answers (MCQs) focuses on “Introduction to Cassandra”.

1. Apache Cassandra is a massively scalable open source _______ database.
a) SQL
b) NoSQL
c) NewSQL
d) All of the mentioned
View Answer

Answer: b
Explanation: Cassandra is perfect for managing large amounts of data across multiple data centers and the cloud.

2. Point out the correct statement.
a) Cassandra delivers continuous availability, linear scalability, and operational simplicity across many commodity servers
b) Cassandra has a “masterless” architecture, meaning all nodes are the same
c) Cassandra also provides customizable replication, storing redundant copies of data across nodes that participate in a Cassandra ring
d) All of the mentioned
View Answer

Answer: d
Explanation: Cassandra provides automatic data distribution across all nodes that participate in a “ring” or database cluster.

3. Cassandra uses a protocol called _______ to discover location and state information.
a) gossip
b) intergos
c) goss
d) all of the mentioned
View Answer

Answer: a
Explanation: Gossip is used for internode communication.

4. A __________ determines which data centers and racks nodes belong to it.
a) Client requests
b) Snitch
c) Partitioner
d) None of the mentioned
View Answer

Answer: b
Explanation: Client read or write requests can be sent to any node in the cluster because all nodes in Cassandra are peers.

advertisement
advertisement

5. Point out the wrong statement.
a) Cassandra supplies linear scalability, meaning that capacity may be easily added simply by adding new nodes online
b) Cassandra 2.0 included major enhancements to CQL, security, and performance
c) CQL for Cassandra 2.0.6 adds several important features including batching of conditional updates, static columns, and increased control over slicing of clustering columns
d) None of the Mentioned
View Answer

Answer: d
Explanation: Cassandra is a highly scalable, eventually consistent, distributed, structured key-value store.

6. User accounts may be altered and dropped using the __________ Query Language.
a) Hive
b) Cassandra
c) Sqoop
d) None of the mentioned
View Answer

Answer: b
Explanation: Cassandra manages user accounts and access to the database cluster using passwords.

7. Authorization capabilities for Cassandra use the familiar _________ security paradigm to manage object permissions.
a) COMMIT
b) GRANT
c) ROLLBACK
d) None of the mentioned
View Answer

Answer: b
Explanation: Once authenticated into a database cluster using either internal authentication, the next security issue to be tackled is permission management.

8. Client-to-node encryption protects data in flight from client machines to a database cluster using ___________
a) SSL
b) SSH
c) SSN
d) All of the mentioned
View Answer

Answer: a
Explanation: Client-to-node encryption establishes a secure channel between the client and the coordinator node.

advertisement

9. Using ___________ file means you don’t have to override the SSL_CERTFILE environmental variables every time.
a) qlshrc
b) cqshrc
c) cqlshrc
d) none of the mentioned
View Answer

Answer: c
Explanation: cqlsh is used with SSL encryption.

10. Internal authentication stores usernames and bcrypt-hashed passwords in the ____________ table.
a) system_auth.creds
b) system_auth.credentials
c) system.credentials
d) sys_auth.credentials
View Answer

Answer: b
Explanation: PasswordAuthenticator is an IAuthenticator implementation that you can use to configure Cassandra for internal authentication out-of-the-box.

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.