Hadoop Questions and Answers – Cassandra with Hadoop – 1

This set of Hadoop Questions & Answers for online quizzes focuses on “Cassandra with Hadoop – 1”.

1. A _________ grants initial permissions, and subsequently a user may or may not be given the permission to grant/revoke permissions.
a) keyspace
b) superuser
c) sudouser
d) none of the mentioned
View Answer

Answer: b
Explanation: Object permission management is based on internal authorization.

2. Point out the correct statement.
a) Cassandra accommodates expensive, consumer SSDs extremely well
b) Cassandra re-writes or re-reads existing data, and never overwrites the rows in place
c) Cassandra uses a storage structure similar to a Log-Structured Merge Tree
d) None of the mentioned
View Answer

Answer: c
Explanation: A log-structured engine that avoids overwrites and uses sequential IO to update data is essential for writing to hard disks (HDD) and solid-state disks (SSD).

3. __________ is one of many possible IAuthorizer implementations and the one that stores permissions in the system_auth.permissions table to support all authorization-related CQL statements.
a) CassandraAuth
b) CassandraAuthorizer
c) CassAuthorizer
d) All of the mentioned
View Answer

Answer: b
Explanation: Configuration consists mainly of changing the authorizer option in the cassandra.yaml to use the CassandraAuthorizer.

4. Cassandra creates a ___________ for each table, which allows you to symlink a table to a chosen physical drive or data volume.
a) directory
b) subdirectory
c) domain
d) path
View Answer

Answer: b
Explanation: The new file name format includes the keyspace name to distinguish which keyspace and table the file contains when streaming or bulk loading data.

advertisement
advertisement

5. Point out the wrong statement.
a) Cassandra provides fine-grained control of table storage on disk, writing tables to disk using separate table directories within each keyspace directory
b) The hinted handoff feature and Cassandra conformance and conformance to the ACID
c) Client utilities and application programming interfaces (APIs) for developing applications for data storage and retrieval are available
d) None of the mentioned
View Answer

Answer: b
Explanation: The hinted handoff feature and Cassandra conformance and non-conformance to the ACID.

6. When ___________ contents exceed a configurable threshold, the memtable data, which includes indexes, is put in a queue to be flushed to disk.
a) subtable
b) memtable
c) intable
d) memorytable
View Answer

Answer: b
Explanation: You can configure the length of the queue by changing memtable_flush_queue_size in the cassandra.yaml.

Note: Join free Sanfoundry classes at Telegram or Youtube

7. Data in the commit log is purged after its corresponding data in the memtable is flushed to an _________
a) SSHables
b) SSTable
c) Memtables
d) None of the mentioned
View Answer

Answer: b
Explanation: SSTables are immutable, not written to again after the memtable is flushed.

8. For each SSTable, Cassandra creates _________ index.
a) memory
b) partition
c) in memory
d) all of the mentioned
View Answer

Answer: b
Explanation: Partition index is list of partition keys and the start position of rows in the data file (on disk).

advertisement

9. Cassandra marks data to be deleted using _________
a) tombstone
b) combstone
c) tenstone
d) none of the mentioned
View Answer

Answer: a
Explanation: Cassandra also does not delete in place because the SSTable is immutable.

10. Tombstones exist for a configured time period defined by the _______ value set on the table.
a) gc_grace_minutes
b) gc_grace_time
c) gc_grace_seconds
d) gc_grace_hours
View Answer

Answer: c
Explanation: During compaction, there is a temporary spike in disk space usage and disk I/O because the old and new SSTables co-exist.

advertisement

Sanfoundry Global Education & Learning Series – Hadoop.

Here’s the list of Best Books in Hadoop.

To practice all areas of Hadoop for online quiz, here is complete set of 1000+ Multiple Choice Questions and Answers.

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.