HBase Online Quiz



Following quiz provides Multiple Choice Questions (MCQs) related to HBase. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.

Questions and Answers

Answer : C

Explanation

Hbase is a schema less database as it stores data in column families which does not have a fixed or rigid structure to follow.

Q 2 - The deleted records in Hbase are stored in the file known as Tombstone. Then the space in freed only by truly removing these records from Hbase. This process is known as

A - Compaction

B - Retraction

C - Consolidation

D - Separation

Answer : A

Explanation

The process of merging tombstone files and creating a new HFile only containing the records not marked for delete is known as compaction.

Q 3 - The values stored inside a cell which is identified using a rowkey, column family and column qualifier is stored as

A - Byte

B - Number

C - Varchar

D - Nchar

Answer : A

Explanation

The data stored inside a cell is always in Byte format.

Q 4 - In any mapreduce Job Hbase can be used as a

A - Metadata store

B - Data source

C - Datanode

D - Metadata node

Answer : B

Explanation

Hbase can act as source, sink, or shared resource in a mapreduce job.

Q 5 - While writing to Hbase using the Mapreduce tasks, each reduce tasks writes to

A - One region

B - Two regions

C - All the relevant regions

D - No regions

Answer : C

Explanation

The writes go to the region that is responsible for the rowkey that is being written by the reduce task.

Q 6 - If we choose the rowkey to be a timestamp then inserting data to such a Hbase table will be

A - Faster than a numeric rowkey data

B - Slower than a numeric rowkey data

C - Same performance as rowkey data

D - Cannot be predicted.

Answer : B

Explanation

If the rowkey is made as timestamp then it will always be written to a specific region and at the end of the table, overloading just one machine holding that region. SO it will be slower than other type of rowkey.

Answer : D

Explanation

Hbase can store any data that can be converted to bytes.

Q 8 - Which filer accepts the pagesize as a parameter?

A - Columnfilter

B - Valuefilter

C - Pagefilter

D - Keyfilter

Answer : C

Explanation

This filter gives the query result in different pages using Pagesize parameter.

Q 9 - What is part of the directory name where Hbase data is stored?

A - Table name

B - Column qualifier

C - Column family

D - HFile

Answer : C

Explanation

The column family is part of the directory name where the Hbase data is stored. It must be made up of printable characters.

Q 10 - The method which can be used to access the HFiel directly without using Hbase is

A - HFile.direct()

B - HFile.access()

C - HFile.main()

D - HFile.more()

Answer : C

Explanation

The HFile.main() method has various option to read the HFile diretly without suing the HBAse like - -m option prints the meta data of the file.

hbase_questions_answers.htm
Advertisements