You are on page 1of 10

HBD QUIZ QUESTIONS for MID-2

1. HDFS works in a __________ fashion.

a) master-worker

b) master-slave

c) worker/slave

d) all of the mentioned

2. ______________ class allows the Map/Reduce framework to partition the map outputs based on
certain key fields, not the whole keys.

a) KeyFieldPartitioner

b) KeyFieldBasedPartitioner

c) KeyFieldBased

d) None of the mentioned

3. ________ NameNode is used when the Primary NameNode goes down.

a) Rack

b) Data

c) Secondary

d) None of the mentioned

4. _______ is the slave/worker node and holds the user data in the form of Data Blocks.

a) DataNode

b) NameNode

c) Data block

d) Replication

5. HDFS provides a command line interface called __________ used to interact with HDFS.

a) “HDFS Shell”
b) “FS Shell”

c) “DFS Shell”

d) None of the mentioned

6. HDFS is implemented in _____________ programming language.

a) C++

b) JAVA

c) SCALA

d) NONE

7. For YARN, the ___________ Manager UI provides host and port information.

a) DATA NODE

b) NAMENODE

c) RESOURCE

d) REPLICATION

8. For ________ the HBase Master UI provides information about the HBase Master uptime.

a) HBase

b) Oozie

c) Kafka

d) All of the mentioned

9. During start up, the ___________ loads the file system state from the fsimage and the edits log
file.

a) DataNode

b) NameNode

c) ActionNode

d) None of the mentioned

10. Pig operates in mainly how many nodes?


a) Two

b) Three

c) Four

d) Five

11. You can run Pig in interactive mode using the ______ shell.

a) Grunt

b) FS

c) HDFS

d) None of the mentioned

a) Grunt

b) FS

c) HDFS

d) None of mentioned

12. ._________ operator is used to review the schema of a relation.

a) DUMP

b) LOAD

c) DESCRIBE

d) STORE

13. Which of the following operator is used to view the map reduce execution plans?

a) DUMP

b) DESCRIBE

c) STORE

d) EXPLAIN

14. __________ is a framework for collecting and storing script-level statistics for Pig Latin.
a) Pig Stats

b) PStatistics

c) Pig Statistics

d) None of the mentioned

15. PigUnit runs in Pig’s _______ mode by default.

a) local

b) tez

c) mapreduce

d) none of the mentioned

16. Which of the following has methods to deal with metadata?

a) LoadPushDown

b) LoadMetadata

c) LoadCaster

d) All of the mentioned

17. Apache Pig uses multi-query approach

a) True

b) False

18. Pig Latin is a procedural language

a) False

b) True

19. Optimizer Checks the syntax of PigLatin script

a) True

b) False
20. Use the __________ command to run a Pig script that can interact with the Grunt shell
(interactive mode).

a) fetch

b) declare

c) run

d) all of the mentione

21. Which of the following command can be used for debugging?

a) exec

b) execute

c) error

d) throw

22. ________ is a record that consists of a sequence of fields

a) tuple

b) bag

c) Map

d) Atom

23. Ex: [ ‘name’#’Ankit’, ‘age’#32] which is example for

a) Tuple

b) Bag

c) Map

d) atom

24. There is a removal of unwanted rows from a relation in PIG operations

a) FILTER

b) DISTINCT

c) REMOVE
d) TRIM

25. ______________stores a relation to the file system (local/HDFS))

a) STORE

b) DUMP

c) ADD

d) RELATION

26. How many execution modes are there in pig

a) 2

b) 3

c) 4

d) 5

27. Spark is Developed on Principle

a) In-memory

b) Disk I/O

c) both

d) None

28. How many spark deployments are there in spark

a) 4

b) 3

c) 5

d) 1

29. Spark SQL Deals with

a) Un strucured

b) structured

c) Both

d) None
30. Spark streaming Deals with Batch Data

a) True

b) False

31. RDD is Abbrivated as

a) Real Data Disk

b) Real Data development

c) Resilient Distributed Dataset

d) Resistant Data Dataset

32. Scala Not Required to install Spark

a) False

b) True

33. command used to open spark shell

a) &spark

b) $spark

c) $ spark-shell

d) &spark-shell

34. What is SC abbrivated in Spark

a) Spark console

b) Spark Content

c) Spaark Context

d) spark collapse

35. Spark Not much secure compare to Hadoop

a) yes

b) no
36. Hive is a data warehouse infrastructure tool

a) True

b) False

37. HIVE is a Relational Database

a) False

b) True

38. Metastore in Hive stores

a) Data about tables,databases etc...

b) Data about store

c) Data about data

d) Data about Hive

39. Query for Create Database Statement in HIVE

a) CREATE DATABASE|SCHEMA [IF NOT EXISTS] <database name>

b) DROP DATABASE StatementDROP (DATABASE|SCHEMA) [IF EXISTS] database_name

c) CREATE [TEMPORARY] [EXTERNAL] TABLE [IF NOT EXISTS] [db_name.] table_name

d) NONE

40. The Language used to Deal with Structured data in dataware house

a) HQL or HIVEQL

b) SQL

c) HCQL

d) SQCL

----------Key----------

1. (a)
2. (b)

3. (c)

4. (a)

5. (b)

6. (b)

7. (c)

8. (a)

9. (b)

10. (a)

11. (a)

12. (c)

13. (d)

14. (c)

15. (a)

16. (b)

17. (a)

18. (b)

19. (b)

20. (c)

21. (a)

22. (a)

23. (c)

24. (a)

25. (a)

26. (a)

27. (a)

28. (b)

29. (b) (d)

30. (b)

31. (c)

32. (a)
33. (c)

34. (c)

35. (a)

36. (a)

37. (a)

38. (a)

39. (a)

40. (a)

You might also like