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

Answer : B

Explanation

A Mapreduce job executes multiple mappers and each mapper retrieves a slice of Table's data.

Q 2 - The data type mapping between the database column and sqoop column can be overridden by using the parameter

A - --override-column-type

B - --map-column-type

C - --override-column-java

D - --map-column-java

Answer : D

Explanation

As sqoop uses the Java Data types internally, the mapping of the data types has to be done with Java Data Types.

Answer : D

Explanation

The command line options (the name and value of the parameters) that do not change from time to time can be saved into a file and used again and again. This is called an options file.

Q 4 - In the import involving join of two tables the if there are two columns with matching name between two tables then this conflict can be resolved by

A - Using table aliases

B - Column aliases

C - First creating temporary tables form each table with different column names

D - Rename the columns in the source system and then import

Answer : B

Explanation

We can create column aliases in the import query and the mapreduce job will refer to the column aliases, avoiding the conflict.

Answer : A

Explanation

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

Q 6 - Sqoop can insert new rows and update existing changed rows into an already exported table by using the parameter

A - update-insert

B - -update-else-insert

C - update-mode insert

D - update-mode allowinsert

Answer : D

Explanation

the update-mode allwoinsert can be used to update as well as insert existing rows into the exported table.

Q 7 - Load all or load nothing semantics is implemented by using the parameter

A - -loadd-all-nothing

B - -stage-load

C - -all-load

D - -staging-table

Answer : D

Explanation

The staging-table parameter is used to load all the required data into a intermediate table before finally loading into the real table.

Q 8 - The temporary location to which sqoop moves the data before loading into hive is specified by the parameter

A - --target-dir

B - --source-dir

C - --hive-dir

D - --sqoop-dir

Answer : A

Explanation

The --target-dir parameter mentions the directory used for temporary staging the data before loading into the hive table.

Q 9 - The parameter that can create a hbase table using sqoop when importing data to hbase is

A - -hbase-create-table

B - -create-hbase-table

C - -create-hbase-table-columnlist

D - -create-hbase-table-rowkey

Answer : B

Explanation

If thecreate-hbase-table is mentioned during the import then the Hbase table can get created using sqoop if it does not already exist.

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