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 : D

Explanation

Instead of returning error, Hive returns null values for mismatch between schema and actual data.

Answer : A

Explanation

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

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

A - Describe

B - show

C - describe extended

D - show extended

Answer : B

Explanation

SHOW PARTTIONS table_name

Q 4 - While querying a hive table for a column with MAP data type, the elements in the column are referenced by

A - Index

B - Key

C - Value

D - nested Index

Answer : B

Explanation

The MAP data type is a key-value pair and not index based.

Q 5 - The property set to run hive in local mode as true so that it runs without creating a mapreduce job is

A - hive.exec.mode.local.auto

B - hive.exec.mode.local.override

C - hive.exec.mode.local.settings

D - hive.exec.mode.local.config

Answer : A

Explanation

In local mode hive will not trigger a mapreduce job.

Answer : C

Explanation

TBLPROPERTIES stores some documentation about the table like created date time etc.

Answer : D

Explanation

AN index can be dropped only after dropping the table on which index is created.

Answer : C

Explanation

When files are not splitable , querying them becomes inefficient.

Answer : B

Explanation

This property controls the logging in Mapreduce tasks

Answer : D

Explanation

All the listed filesystem can be accessed using UDF

hive_questions_answers.htm
Advertisements