Hive Online Quiz



Following quiz provides Multiple Choice Questions (MCQs) related to Hive. 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

Answer : B

Explanation

Hive is suited for effectively organizing and querying the store data and not inserting/updating data which is required for OLTP.

Answer : A

Explanation

As the data is stored externally Hive only drops the schema.

Q 3 - To see the partitions keys present in a Hive table the command used is

A - describe

B - show

C - describe extended

D - show extended

Answer : C

Explanation

The DESCRIBE EXTENDED command gives all the details

Answer : B

Explanation

The LOCAL clause only copies without moving the files.

Answer : C

Explanation

CONCAT function accepts any number of arguments

Answer : A

Explanation

A table can be created form a view

Q 7 - When importing data to using SerDe, if a row is found to have more columns than expected then

A - The extra columns are replaced with NULL

B - The row is skipped

C - The import halts with error

D - The Columns are ignored.

Answer : D

Explanation

Hive is schema on Read and It does not throw error for mismatch between schema and actual data.

Answer : C

Explanation

Streaming a table of small size makes the query faster.

Q 10 - When one of the join tables is small enough to fit into memory, The type of join used by Hive is

A - Inner Join

B - Map join

C - Reduce Join

D - Sort Join

Answer : B

Explanation

As one of the tables already fits into the memory each row of the big table is quickly compared with each row of small table using Map Join.

hive_questions_answers.htm
Advertisements