Sqoop Online Quiz



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

Q 1 - Besides the JDBC driver, sqoop also needs which of the following to connect to remote databases?

A - Putty

B - SSH

C - Conenctor

D - sqoop client

Answer : C

Explanation

Sqoop Needs both JDBC driver and Database connector which is required to import data.

Answer : B

Explanation

Sqoop does not have any inbuilt code to carry out file compression. It relies on Hadoop's compression settings.

Answer : A

Explanation

with the --meta-connect parameter the metastore starts running as a service with the default port 16000.Now this metastore service becomes accessible throughout the cluster.

Answer : B

Explanation

The data can be both imported and exported form Hadoop system using sqoop.

Answer : A

Explanation

The sqoop command submits the values form 10 records in each insert statement with this parameter.

Q 6 - Sqoop can automatically clear the staging table before loading by using the parameter

A - clear-table

B - clear-staging-table

C - --truncate-staging-table

D - -delete-from-staging-table

Answer : B

Explanation

the clear-staging-table automatically cleans data form the staging table.

Q 7 - The parameter used to override NULL values to be inserted into relational targets is

A - -override-null

B - input-null-string

C - -substitute-null

D - --replace-null

Answer : B

Explanation

the parameter input-null-string is used to override the NULL values when exporting to relational tables.

Q 8 - The parameter used in sqoop to import data directly into hive is

A - -import-direct

B - -import-hive

C - hive-import

D - -hive-sqoop

Answer : C

Explanation

The parameter used is hive-import which will directly place the data in hie without needing any connectors as in case of relational systems.

Answer : A

Explanation

both partition-key and partition value are passed in to load data into hive partitioned table.

Q 10 - The tool in sqoop which combines two data sets and preserves only the latest values using a primary key is

A - sqoop-merge

B - sqoop-combine

C - sqoop-preserve

D - sqoop-distinct

Answer : A

Explanation

The Sqoop-merge tool combines two datasets and preserves the latest records. The column marked for primary key is indicated by the parameter merge-key

sqoop_questions_answers.htm
Advertisements