Engineering Questions with Answers - Multiple Choice Questions

MCQs on Metrics in Hbase

1 - Question

_______ can change the maximum number of cells of a column family.
a) set
b) reset
c) alter
d) select

View Answer

Answer: c
Explanation: Alter is the command used to make changes to an existing table.




2 - Question

Point out the correct statement.
a) You can add a column family to a table using the method addColumn()
b) Using alter, you can also create a column family
c) Using disable-all, you can truncate a column family
d) None of the mentioned

View Answer

Answer: a
Explanation: Columns can also be added through HbaseAdmin.




3 - Question

Which of the following is not a table scope operator?
a) MEMSTORE_FLUSH
b) MEMSTORE_FLUSHSIZE
c) MAX_FILESIZE
d) All of the mentioned

View Answer

Answer: a
Explanation: Using alter, you can set and remove table scope operators such as MAX_FILESIZE, READONLY, MEMSTORE_FLUSHSIZE, DEFERRED_LOG_FLUSH, etc.




4 - Question

You can delete a column family from a table using the method _________ of HBAseAdmin class.
a) delColumn()
b) removeColumn()
c) deleteColumn()
d) all of the mentioned

View Answer

Answer: c
Explanation: Alter command also can be used to delete a column family.




5 - Question

Point out the wrong statement.
a) To read data from an HBase table, use the get() method of the HTable class
b) You can retrieve data from the HBase table using the get() method of the HTable class
c) While retrieving data, you can get a single row by id, or get a set of rows by a set of row ids, or scan an entire table or a subset of rows
d) None of the mentioned

View Answer

Answer: d
Explanation: You can retrieve an HBase table data using the add method variants in Get class.




6 - Question

__________ class adds HBase configuration files to its object.
a) Configuration
b) Collector
c) Component
d) None of the mentioned

View Answer

Answer: a
Explanation: You can create a configuration object using the create() method of the HbaseConfiguration class.




7 - Question

The ________ class provides the getValue() method to read the values from its instance.
a) Get
b) Result
c) Put
d) Value

View Answer

Answer: b
Explanation: Get the result by passing your Get class instance to the get method of the HTable class. This method returns the Result class object, which holds the requested result.




8 - Question

________ communicate with the client and handle data-related operations.
a) Master Server
b) Region Server
c) Htable
d) All of the mentioned

View Answer

Answer: b
Explanation: Region Server handle read and write requests for all the regions under it.




9 - Question

_________ is the main configuration file of HBase.
a) hbase.xml
b) hbase-site.xml
c) hbase-site-conf.xml
d) none of the mentioned

View Answer

Answer: b
Explanation: Set the data directory to an appropriate location by opening the HBase home folder in /usr/local/HBase.




10 - Question

HBase uses the _______ File System to store its data.
a) Hive
b) Imphala
c) Hadoop
d) Scala

View Answer

Answer: c
Explanation: The data storage will be in the form of regions (tables). These regions will be split up and stored in region servers.

Get weekly updates about new MCQs and other posts by joining 18000+ community of active learners