Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

Define the difference between Hive and HBase?

Answer»

Define the difference between Hive and HBase?
Below are the our main difference between Hive and HBase
HBase:-(1)HBase is built on the top of HDFS
Hive:-(1)On the other HAND it is a data warehousing infrastructure

HBase:-(2)HBase operations run in a real time on its database rather
Hive:-(2)On the other hand Hive queries are executed as MapReduce JOBS internally

HBase:-(3)In HBase it will provides low latency to single rows from huge datasets
Hive:-(3)In Hive it will provides high latency for huge datasets

HBase:-(4)It will provides RANDOM access to data
Hive:-(4)It will provides random access to data

2.

Kind of applications which is supported by Apache Hive?

Answer»

Kind of applications which is supported by Apache HIVE?
Apache Hive will supports all the client application which is written in below langauages:-
(1)C++
(2)JAVA
(3)PHP
(4)Python
(5)Ruby
by EXPOSING its THRIFT server.

3.

What is Hive or its basic defination

Answer»

What is Hive or its BASIC defination
Hive is a data warehouse system which helps in data summarization, querying of large data systems and ANALYSIS in an open SOURCE hadoop platform. In another WAY we can say Hive is a data warehousing package or infrastructure built on top of hadoop.
Hive enables ADVANCED work on HDFS and MapReduce. We can query data stored in Hive using HiveQL which is similar to Transact-SQL.

4.

How does partitioning help?

Answer»

How does partitioning help?
CHOOSE the CORRECT option from below LIST
(1)To create SUBDIRECTORIES under the table
(2)To create subdirectories inside the database

Answer:-(1)To create subdirectories under the table

5.

How to change column data type in Hive?

Answer»

How to CHANGE COLUMN data TYPE in Hive?
We can change data type of column in hive and below is the SYNTAX to change that
ALTER TABLE table_name CHANGE column_name column_name new_datatype;;

6.

Code to enable buckets in Hive?

Answer» CODE to ENABLE BUCKETS in HIVE?
Below is the COMMAND to enable buckets in Hive
set.hive.enforce.bucketing=true;
7.

Name the different components of a Hive query processor?

Answer»

Name the different components of a Hive QUERY processor?
Below are the components of a Hive query processor:-
(1)Logical PLAN Generation
(2)Physical Plan Generation
(3)Execution Engine
(4)OPERATORS
(5)UDF's and UDAF's
(6)Optimizer
(7)Parser
(8)Semantic Analyzer
(9)Type Checking

8.

Name the most famous Organizations Use Hive?

Answer»

Name the most famous Organizations Use Hive?
Below are the list of most common organiation which used. Actually Hive was DEVELOPED by Facebook.
(1)Netflix
(2)FINRA
(3)AMAZON
(4)Facebook

9.

Which of the following Hive uses for logging?

Answer»

Which of the following HIVE uses for logging?
CHOOSE the correct option from below LIST
(1)None of the options
(2)LOGJ4
(3)log4i
(4)log4j

Answer:-(4)log4j

10.

A UDF is created to accept arguments of different data types. Which of the following option defines the given statement?

Answer»

A UDF is CREATED to ACCEPT arguments of different data types. Which of the following option defines the given statement?
Choose the correct option from below list
(1)Super functions
(2)Aggregate Function
(3)Standard UDF
(4)Generic Function

Answer:-(3)Standard UDF

11.

Where is data stored?

Answer»

Where is DATA stored?
CHOOSE the correct option from below list
(1)MYSQL
(2)HDFS
(3)None of the options
(4)Hive

Answer:-(2)HDFS

12.

Which of the following file format was designed to overcome limitations of the other Hive file formats?

Answer»

Which of the following FILE format was designed to overcome limitations of the other Hive file FORMATS?
Choose the CORRECT option from below list
(1)ORC
(2)OPC
(3)None of the options
(4)ODC

Answer:-(1)ORC

13.

Which of the following is the advantage of creating partitions?

Answer»

Which of the following is the advantage of CREATING partitions?
Choose the correct option from below list
(1)effective MEMORY utilization
(2)NameNode using LESS RAM
(3)FASTER RESULTS
(4)Query syntax simpler

Answer:-(3)faster results

14.

In this command, where will Hive search for a file?

Answer»

In this command, where will Hive search for a FILE?
LOAD DATA INPATH into table < tablename>;
Choose the correct option from below LIST
(1)It will search the file inpath.
(2)It will search for file in HDFS.
(3)None of the options
(4)It will throw error.

Answer:-(1)It will search the file inpath.

15.

Which of the following does Hive use for logging?

Answer»

Which of the FOLLOWING does Hive use for logging?
CHOOSE the correct option from below list
(1)log4i
(2)LOG4J
(3)logj4
(4)None of the options

Answer:-(2)log4j

16.

Which of the following are types of metastore?

Answer»

Which of the following are types of metastore?
(1)LOCAL metastore
(2)All of the OPTIONS
(3)Embedded metastore
(4)Remote metastore

Answer:-(2)All of the options

17.

When there is a large set of data and you want to retrieve a small set of data. What is the concept called?

Answer»

When there is a LARGE SET of data and you want to retrieve a small set of data. What is the CONCEPT called?
Choose the correct option from below list
(1)BUCKETING
(2)Partitioning
(3)None of the options
(4)Data Sampling

Answer:-(4)Data Sampling

18.

What can be altered using ALTER command?

Answer»

What can be altered using ALTER COMMAND?
Choose the correct OPTION from below list
(1)database name
(2)dbproperties
(3)database creation name
(4)DIRECTORY where the database is stored

Answer:-(2)dbproperties

19.

Which of the following command can be used to show partitions?

Answer»

Which of the following command can be used to show partitions?
Choose the CORRECT OPTION from below LIST
(1)show
(2)describe extended < tablename>
(3)show extended
(4)describe extended

Answer:-(1)show

20.

Which of the following will overwrite any existing data in the table or partition?

Answer»

Which of the FOLLOWING will overwrite any existing data in the table or partition?
CHOOSE the correct option from below list
(1)insert write
(2)insert overwrite
(3)insert into
(4)NONE of the options

Answer:-(3)insert into

21.

Which of the following is the new CLI?

Answer»

Which of the FOLLOWING is the new CLI?
Choose the correct OPTION from below list
(1)CliLine
(2)SqlLine
(3)BeeLine
(4)HiveLine

Answer:-(3)BeeLine

22.

Hive stores metadata by default in ____________.

Answer»

Hive STORES metadata by default in
Choose the correct option from below list
(1)Derby
(2)Tez
(3)None of the options
(4)Hadoop

Answer:-(1)Derby

23.

The result of a Hive query is saved in _______________.

Answer»

The result of a Hive query is saved in _______________.
Choose the CORRECT option from below list
(1)HDFS
(2)None of the OPTIONS
(3)local File
(4)both

Answer:-(1)hdfs

24.

Hive allows the feature to copy __________.

Answer»

Hive allows the feature to COPY __________.
Choose the correct option from below LIST
(1)Both Schema and DATA
(2)Data
(3)Schema
(4)NONE of the options

Answer:-(3)Schema

25.

Thrift service is used for __________

Answer»

Thrift service is USED for
Choose the correct option from below list
(1)Using multiple HIVE versions
(2)INSTALLING Hive
(3)SUBMITTING hive queries from a REMOTE client
(4)Moving data files between different servers

Answer:-(3)Submitting hive queries from a remote client

26.

In what language is Hive written?

Answer»

In what language is HIVE written?
CHOOSE the correct option from below LIST
(1)Python
(2)Gama
(3)Java
(4)NONE of the options

Answer:-(3)Java

27.

Which of the following is true about drop command in Hive?

Answer»

Which of the FOLLOWING is true about drop command in Hive?
CHOOSE the correct option from below list
(1)When an EXTERNAL table is dropped, the table with its data is also dropped.
(2)When an external table is dropped, only the METADATA is effected.
(3)Both of the options

Answer:-(2)When an external table is dropped, only the metadata is effected.

28.

Which of the following, does Hive use for logging?

Answer»

Which of the FOLLOWING, does Hive USE for logging?
Choose the correct OPTION from below LIST
(1)log4j
(2)None of the options
(3)log4i
(4)logj4

Answer:-(1)log4j

29.

Which of the following are not the components of Hive architecture?

Answer»

Which of the FOLLOWING are not the components of HIVE architecture?
CHOOSE the correct option from below list
(1)COMPILER
(2)metastore
(3)Interpreter
(4)Driver

Answer:-(3)Interpreter

30.

When the schema of the table does not match with the data types of the file that is to be loaded, what does Hive do?

Answer»

When the schema of the table does not match with the DATA types of the file that is to be loaded, what does HIVE do?
Choose the CORRECT option from below LIST
(1)DROPS the file
(2)Throws error
(3)Corrects the data
(4)Returns null

Answer:-(4)Returns null

31.

Apache Hive is open source.

Answer» APACHE Hive is OPEN source.
Choose the correct OPTION from below list
(1)FALSE
(2)True

Answer:-(2)True
32.

Hive can replace RDBMS.

Answer»

Hive can REPLACE RDBMS.
Choose the correct option from below list
(1)True
(2)FALSE

Answer:-(2)False

33.

Apache Hive was initially developed by ____________.

Answer»

Apache Hive was initially DEVELOPED by ____________.
Choose the correct option from below list
(1)Amazon
(2)FACEBOOK
(3)TWITTER
(4)Microsoft

Answer:-(2)Facebook

34.

If the database contains some tables, then using which keyword can it be forced to drop the tables?

Answer»

If the DATABASE contains some tables, then using which keyword can it be forced to drop the tables?
Choose the correct OPTION from below LIST
(1)Restrict
(2)CASCADE
(3)Overwrite
(4)Drop

Answer:-(2)Cascade

35.

If the partition of an index table is dropped, then ____________.

Answer»

If the partition of an index table is dropped, then ____________.
Choose the correct option from below LIST
(1)Corresponding partitions are also dropped
(2)Error is THROWN
(3)INDEXES are refreshed by default.
(4)None of the indexes are dropped

Answer:-(1)Corresponding partitions are also dropped

36.

Which of the following is used for disabling the substitution of variables?

Answer»

Which of the FOLLOWING is USED for disabling the substitution of variables?
Choose the correct option from below list
(1)set hive.variable.substitute=false;
(2)set hive.variable.substitute=true;
(3)all of the MENTIONED
(4)set hive.variable.substitutevalues=false;

Answer:-(1)set hive.variable.substitute=false;

37.

Which of the following options Hive doesn t convert queries to?

Answer»

Which of the following options HIVE doesn t convert QUERIES to?
Choose the CORRECT option from below list
(1)MAPREDUCE
(2)None of the options
(3)Spark jobs
(4)Apache Tez

Answer:-(1)MapReduce