- HBase Tutorial
- HBase - Home
- HBase - Overview
- HBase - Architecture
- HBase - Installation
- HBase - Shell
- HBase - General Commands
- HBase - Admin API
- HBase - Create Table
- HBase - Listing Table
- HBase - Disabling a Table
- HBase - Enabling a Table
- HBase - Describe & Alter
- HBase - Exists
- HBase - Drop a Table
- HBase - Shutting Down
- HBase - Client API
- HBase - Create Data
- HBase - Update Data
- HBase - Read Data
- HBase - Delete Data
- HBase - Scan
- HBase - Count & Truncate
- HBase - Security
- HBase Resources
- HBase - Questions and Answers
- HBase - Quick Guide
- HBase - Useful Resources
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
HBase Mock Test
This section presents you various set of Mock Tests related to HBase. You can download these sample mock tests at your local machine and solve offline at your convenience. Every mock test is supplied with a mock test key to let you verify the final score and grade yourself.
HBase Mock Test I
Q 1 - Hbase can store
Answer : D
Explanation
Hbase is a versatile data base which can handle both unstructured and structured data.
Q 2 - Columns in Hbase are organized to
Answer : B
Explanation
In Hbase columns are organized to column families.
Q 3 - Hbase is what type of database?
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 4 - The Value that is unique across all the rows in Hbase table is
Answer : D
Explanation
Rowkey is the value which is the unique values across all the rows.
Q 5 - To locate a piece of data Hbase uses coordinates. A coordinate is made-up of
A - rowId, table name, block address
B - rowid, table name, column name
Answer : C
Explanation
Rowkey ,table name and column name create a unique combination which can identify a piece of data in Hbase.
Q 6 - Which of the following is not one of the primitive commands to interact with Hbase
Answer : A
Explanation
The five primitive commands for interacting with Hbase are Get, put, Delete, Scan and Increment.
Q 7 - There are 2 programs which confirm a write into Hbase. One is write-ahead log(WAL) and the other one is
Answer : D
Explanation
The write access log and Memstore confirm the writing of a Hbase value.
Q 8 - What is the number of MemStore per column family
Answer : A
Explanation
There is only one Memstore per column family
Q 9 - The number of HF files, one column family in Habse can have is
Answer : B
Explanation
Onr column family can have multiple HF files associated with it.
Q 10 - A single HF file can be associated with
A - All the column families in a table
Answer : B
Explanation
A single HF file can be associated with only one column family.
Q 11 - While reading data from Hbase the command used to get only a specific column instead of all the columns in a column family is
Answer : A
Explanation
The addcolumn() command displays result for specific column given as a input to this command rather than all the columns in a table, which is the default behavior.
Q 12 - The addFamily() command is used for
A - Displaying all columns of a specific column family
B - Add new column family to the table
Answer : A
Explanation
The addFamily() command displays all the columns of a specific column family.
Q 13 - While reading from Hbase the sequence in which the read happens is
Answer : A
Explanation
The order is first read the Memcache, then the Blockcache and finally the HFile.
Q 14 - A record deleted in Hbase is not removed from Hbase immediately. Instead it is written to another file and marked as Delete. Such a file is Known as
Answer : C
Explanation
The deleted records are stored in file is known as Tombstone.
Q 15 - 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
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 16 - When a compaction operates over all HFiles in a column family in a given region, it is called
Answer : A
Explanation
IN a Major compaction all the HFIles of a column family for a given region are acted upon.
Q 17 - At the end of a major compaction the number of HFiles of a Hbase table is
A - Equal to number of column families
Answer : A
Explanation
At the end of major compaction one column family gets one HFile.
Q 18 - Hbase creates a new version of a record during
Answer : D
Explanation
All the three events of creating,modifying and Deleting a record create a new version of the record inHbase.
Q 19 - Each version of data within a cell adds a versioning information through a
Answer : B
Explanation
Each version of data within a cell contributes one KeyValue instance to the Result.
Q 20 - The verison information of a record in a KeyValue instance is inspected using the method
Answer : B
Explanation
The getTimestamp() method is used to inspect the specific verison associated with a KeyValue Instance.
Q 21 - The method which deletes a specific version within a cell is
Answer : B
Explanation
The deletecolumn() deletes a specific version but deletecolumns() deletes all the versions in a cell prior to the specified version.
Answer : D
Explanation
The rowkey values are stored as a byte data.
Q 23 - Every row in a Hbase table has
B - Same number of column families
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 24 - The values stored inside a cell which is identified using a rowkey, column family and column qualifier is stored as
Answer : A
Explanation
The data stored inside a cell is always in Byte format.
Q 25 - The default number of versions of a cell value which Hbase can store is
Answer : B
Explanation
Hbase stores 3 version of a value in a cell. But this can be configured to a higher value.
Answer Sheet
Question Number | Answer Key |
---|---|
1 | D |
2 | B |
3 | C |
4 | D |
5 | C |
6 | A |
7 | D |
8 | A |
9 | B |
10 | B |
11 | A |
12 | A |
13 | A |
14 | C |
15 | A |
16 | A |
17 | A |
18 | D |
19 | B |
20 | B |
21 | B |
22 | D |
23 | D |
24 | A |
25 | B |