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 - There are 2 programs which confirm a write into Hbase. One is write-ahead log(WAL) and the other one is

A - Mem confirm log

B - Write complete log

C - log store

D - Memstore

Answer : D

Explanation

The write access log and Memstore confirm the writing of a Hbase value.

Answer : D

Explanation

All the three events of creating,modifying and Deleting a record create a new version of the record inHbase.

Q 3 - The data type of a rowkey is

A - String

B - Number

C - Data

D - Byte

Answer : D

Explanation

The rowkey values are stored as a byte data.

Q 4 - The two tables which are used to find where regions of various tables are hosted are

A - Regiontab and Metatab

B - Regionbase and Metabase

C - –ROOT- and .META.

D - –ROOT- and .REGION.

Answer : C

Explanation

The –ROOT_ and >META> table hold the data to find the location of regions.

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 - A namespace in Hbase is analogous to which data base object in a relational system?

A - Table

B - Index

C - View

D - Database

Answer : D

Explanation

A namespace is analogous to a database in relational syetm as it holds the tables.

Answer : D

Explanation

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

Q 8 - Which filter accepts chance as a parameter?

A - Skipfilter

B - Randomrow filter

C - ColumnPrefix filter

D - Whilematchfilter

Answer : B

Explanation

The Random filter which returns a random row uses the chance parameter. Example- RandomRowFilter(float chance)

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 - In Hbase there are two situations when the WAL logfiles needs to be replayed. One is when the server fails. The other is when

A - The logs are full

B - Rows are deleted.

C - The cluster fails

D - Rows are updated

Answer : C

Explanation

The only two instances when the logs are replayed is when cluster starts or the server fails.

hbase_questions_answers.htm
Advertisements