HBase Online Quiz


Advertisements


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

Q 1 - The number of HF files, one column family in Habse can have is

A - Equal to number of columns in the column family

B - More than one

C - Only one

D - Only tow

Answer : B

Explanation

Onr column family can have multiple HF files associated with it.

Answer : A

Explanation

The addFamily() command displays all the columns of a specific column family.

Answer : D

Explanation

Every row in a table has the same column families, although a row need not store data in all its families.

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 - While rows and columns keys are expressed as bytes, version is specified as

A - Date

B - Long integer

C - Short integer

D - Decimal

Answer : B

Explanation

the version is specified using a long integer. Typically this long contains time instances such as those returned by java.util.Date.getTime()

Answer : B

Explanation

The command keeps a minimum of 2 versions of all columns in column family f1.

Q 8 - Which filter acts on column family?

A - Rowfilter

B - Column filter

C - Family filter

D - Valuefilter

Answer : C

Explanation

The Family filter in Hbase works on a a column family rather than on a column.

Answer : C

Explanation

in Hbase under the Hbase rot directory, each table is stored under a directory and under each table directory is a region directory for every region comprising that table.

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