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.
Q 1 - Hbase can store
Hbase is a versatile data base which can handle both unstructured and structured data.
Q 2 - Columns in Hbase are organized to
In Hbase columns are organized to column families.
Q 3 - Hbase is what type of database?
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
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
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
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
The write access log and Memstore confirm the writing of a Hbase value.
Q 8 - What is the number of MemStore per column family
There is only one Memstore per column family
Q 9 - The number of HF files, one column family in Habse can have is
Onr column family can have multiple HF files associated with it.
Q 10 - A single HF file can be associated with
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
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
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
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
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
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
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
At the end of major compaction one column family gets one HFile.
Q 18 - Hbase creates a new version of a record during
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
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
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
The deletecolumn() deletes a specific version but deletecolumns() deletes all the versions in a cell prior to the specified version.
The rowkey values are stored as a byte data.
Q 23 - Every row in a Hbase table has
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
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
Hbase stores 3 version of a value in a cell. But this can be configured to a higher value.