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 - To prevent the password from being mentioned in the sqoop import clause we can use the additional parameters

A - -p

B - --password-file

C - both of these

D - cannot be prevented

Answer : C

Explanation

The -P option asks for password from standard input without echoing and --password-file option reads the password value stored in some other file.

Answer : C

Explanation

You can do both full and partial data import from tables but not a subset of columns from a table.

Answer : A

Explanation

The main advantage of using metastore is it can be used by any user having access to the environment without knowing the password.

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

sqoop runs another mapreduce job to load the final table after the staging load completes successfully.

Q 6 - Can the upsert feature of sqoop delete some data form the exported table?

A - Yes

B - No

C - Depends on database

D - Yes With some additional sqoop parameters

Answer : A

Explanation

Sqoop will never delete data as part of upsert statement.

Answer : D

Explanation

As sqoop will call the stored procedure using parallel jobs, so heavy laod is induced in the database.

Answer : D

Explanation

Sqoop supports loading into hive partitions using additional parameters in the sqoop command.

Answer : C

Explanation

the parameter --hive-drop-import-delims removes the mentioned characters.

Q 10 - The parameters in sqoop command can be passed in to Oozie by using which tags?

A - <parameters>

B - <args>

C - <sqoop>

D - <command>

Answer : B

Explanation

The <args> tag can contain the parameters of a sqoop command when scheduling with Oozie.

sqoop_questions_answers.htm
Advertisements