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 - The two classes which are provided by coprocessors are
The two classes provided by co-processors to extend it custom its functionalities are −
OBSERVER AND Endpoint.
Q 2 - A coprocessor is executed when an event occurs. This type of coprocessor is known as
The observer type of coprocessor is executed when an event occurs.
Q 3 - The type of coprocessors which are similar to the stored procedures in relational database is
The Endpoint type of coprocessor is similar to the data abse store dprocedure in relational systems.
Q 4 - The table descriptor can be used only for which type of coprocessors?
The table descriptors are used only for the Region servers hence the region related coprocessors.
Q 5 - The class which ised to pool client API instances to the Hbase cluster is
The Htable pool is used to pool the client API instances to the Hbase cluster.
Q 6 - If one single column family exceeds the maximum file size specified by Hbase configuration then
Once the max file size is reached, the region is split into two.
Q 7 - The Hbase tables are
The Hbase tables by default are writable. They become read only by setting the readonly() option to true.
Q 8 - What is part of the directory name where Hbase data is stored?
The column family is part of the directory name where the Hbase data is stored. It must be made up of printable characters.
Q 9 - The Hbase column qualifier in a column can be
The column qualifier can be left empty and still written to and read from. ALos it can not be renamed after it is created
Q 10 - A Habse column family
A Hbase column family cannot be renamed. The only option is to create a new column family and copy the data.
Q 11 - Which of the following is not a valid file in Habse?
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 12 - The metadata of region is accessed using the file named
The file .regioninfo stores the metadata information.
Q 13 - If a region directory does not have .tmp directory then
No .tmp directory indicates no compaction happened
Q 14 - When a region does not have recovered.edits file, it indicates,
Only the write-ahead replay cerates the recovered.edits file
Q 15 - The Hfile contains variable number of blocks. One fixed blocks in it is the block named file info block and the other one is
in an Hfile only the file infor block and trailer blocks are fixed. All others are optional.
Q 16 - The Hbase block size and the HDFS block size
The HBAse and HDFS block sizes are not related. A HFile can spread over multiple HDFS blocks.
Q 17 - The method which can be used to access the HFiel directly without using Hbase is
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.
Q 18 - In Hbase there are two situations when the WAL logfiles needs to be replayed. One is when the server fails. The other is when
The only two instances when the logs are replayed is when cluster starts or the server fails.
Q 19 - Before the edits in a HBAse logfile can be replayed they are separated into one logfile per region.
It is called −
The separation of log file into one log per region is called log splitting.
Q 20 - The Hbase master node orchestrates
The Regionservers slaves are managed by the Hbase Master node
Q 21 - To see all the tables presen tin a user space in Hbase the command used is
The list command displays all the tables present in the user space in Hbase
Q 22 - In Habse the column can be added to a table
Without changing the schema awe can add columns to a column family in Hbase.
Q 23 - In Hbase a table can be
The table must be disabled before it is dropped.
Q 24 - The exported data using the inbuilt export utility from Hbase table is in which file format
The data exported from Hbase table using the inbuilt export utility is in sequence file format.
Q 25 - In which scenario nothing is written in the WAL on HBase?
during the bulk load process nothing gets written to the WAL.
|Question Number||Answer Key|