wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Hadoop and HDFS Worksheet MCQs (Transcribed)

Total questions: 75

Worksheet time: 38mins

Name
Class
Date
1.

Hadoop is an open-source framework used for:

a)

Web development

b)

Big Data storage and processing

c)

Game development

d)

Image editing

2.

Hadoop is mainly designed to handle:

a)

Small files only

b)

Structured data only

c)

Large-scale data

d)

Temporary data

3.

Hadoop works on the principle of:

a)

Centralized computing

b)

Distributed computing

c)

Parallel processing only

d)

Sequential processing

4.

Hadoop ecosystem refers to:

a)

A single software

b)

Collection of Hadoop-related tools

c)

Operating system

d)

Database system

5.

Which of the following is NOT part of Hadoop ecosystem?

a)

HDFS

b)

MapReduce

c)

YARN

d)

MySQL

6.

HDFS stands for:

a)

High Data File System

b)

Hadoop Distributed File System

c)

Hierarchical Data File System

d)

Hybrid Data File System

7.

HDFS is mainly used for:

a)

Data visualization

b)

Distributed data storage

c)

Network security

d)

Web hosting

8.

HDFS stores data in the form of:

a)

Tables

b)

Objects

c)

Blocks

d)

Rows

9.

Default block size in HDFS is:

a)

8 MB

b)

16 MB

c)

64 MB

d)

128 MB

10.

HDFS follows which architecture?

a)

Peer-to-peer

b)

Master–Slave

c)

Client–Server only

d)

Ring topology

11.

Which is the master node in HDFS?

a)

DataNode

b)

NameNode

c)

Client

d)

TaskTracker

12.

Which node stores actual data blocks in HDFS?

a)

NameNode

b)

Secondary NameNode

c)

DataNode

d)

JobTracker

13.

NameNode stores:

a)

Actual data

b)

Metadata of files

c)

User data

d)

Logs only

14.

Secondary NameNode is used to:

a)

Replace NameNode

b)

Store metadata backups

c)

Process jobs

d)

Store data blocks

15.

Which Hadoop component manages resources?

a)

HDFS

b)

MapReduce

c)

YARN

d)

Hive

16.

Hadoop Local mode runs on:

a)

Multiple machines

b)

Single machine

c)

Cloud only

d)

Virtual machines only

17.

Local mode is mainly used for:

a)

Production deployment

b)

Development and testing

c)

Large-scale storage

d)

Fault tolerance

18.

Pseudo-distributed mode means:

a)

Fully distributed cluster

b)

Multiple nodes on different machines

c)

All Hadoop daemons run on one machine

d)

No daemons running

19.

Fully distributed mode runs on:

a)

One node only

b)

Multiple nodes across machines

c)

Single process

d)

Local disk only

20.

Which mode is used in real-time production?

a)

Local mode

b)

Standalone mode

c)

Pseudo-distributed mode

d)

Fully distributed mode

21.

Hadoop configuration files are written in:

a)

JSON

b)

XML

c)

YAML

d)

TXT

22.

Which file configures core Hadoop settings?

a)

hdfs-site.xml

b)

core-site.xml

c)

mapred-site.xml

d)

yarn-site.xml

23.

hdfs-site.xml is used to configure:

a)

Resource management

b)

HDFS properties

c)

MapReduce jobs

d)

Client settings

24.

Which file configures YARN?

a)

core-site.xml

b)

hdfs-site.xml

c)

yarn-site.xml

d)

mapred-site.xml

25.

mapred-site.xml is used for:

a)

HDFS storage

b)

MapReduce configuration

c)

Network configuration

d)

Client access

26.

Scaling out means:

a)

Increasing CPU speed

b)

Adding more nodes

c)

Increasing RAM

d)

Replacing hardware

27.

Hadoop supports scaling out because it is:

a)

Centralized

b)

Distributed

c)

Single-threaded

d)

Sequential

28.

Scaling out improves:

a)

Cost only

b)

Storage and processing capacity

c)

Security only

d)

Network latency only

29.

Hadoop prefers scaling out over scaling up because:

a)

It is cheaper

b)

It uses high-end machines

c)

It reduces nodes

d)

It limits growth

30.

Adding DataNodes increases:

a)

Metadata

b)

Storage and parallelism

c)

NameNode memory only

d)

Network congestion

31.

HDFS provides APIs in:

a)

Python only

b)

Java only

c)

Java and other languages

d)

C only

32.

Which package provides HDFS Java API?

a)

java.io

b)

org.apache.hadoop.fs

c)

org.apache.hadoop.util

d)

java.util

33.

FileSystem class is used to:

a)

Manage jobs

b)

Access HDFS

c)

Configure XML files

d)

Start daemons

34.

Which method is used to create a file in HDFS?

a)

open()

b)

read()

c)

create()

d)

delete()

35.

Java HDFS API allows:

a)

Only read operations

b)

Only write operations

c)

Both read and write operations

d)

No file operations

36.

HDFS read operation is:

a)

Centralized

b)

Client-driven

c)

NameNode-driven

d)

DataNode-driven only

37.

Client first contacts:

a)

DataNode

b)

Secondary NameNode

c)

NameNode

d)

JobTracker

38.

NameNode provides:

a)

File data

b)

Block metadata

c)

File contents

d)

Job status

39.

Data is read from:

a)

NameNode

b)

Client

c)

DataNodes

d)

YARN

40.

HDFS supports:

a)

Random writes

b)

Sequential reads

c)

Random updates

d)

File locking

41.

HDFS write operation starts when:

a)

NameNode initiates

b)

Client creates a file

c)

DataNode initiates

d)

Secondary NameNode initiates

42.

Before writing data, client requests:

a)

Permission from DataNode

b)

Metadata from NameNode

c)

Block from client

d)

YARN resources

43.

Data is written in:

a)

Single copy

b)

Multiple replicas

c)

Cache memory only

d)

Temporary files

44.

Replication factor in HDFS means:

a)

Block size

b)

Number of file copies

c)

File size

d)

Cluster size

45.

Default replication factor is:

a)

1

b)

2

c)

3

d)

5

46.

HDFS achieves fault tolerance using:

a)

Indexing

b)

Replication

c)

Encryption

d)

Compression

47.

If one DataNode fails:

a)

Data is lost permanently

b)

NameNode shuts down

c)

Data is read from replicas

d)

Client crashes

48.

NameNode failure affects:

a)

Only one file

b)

Entire HDFS access

c)

One DataNode

d)

YARN only

49.

HDFS is best suited for:

a)

Small files

b)

Large files

c)

Real-time databases

d)

Transaction processing

50.

HDFS is optimized for:

a)

Low latency

b)

High throughput

c)

Random access

d)

Frequent updates

51.

Hadoop is written mainly in:

a)

Python

b)

C++

c)

Java

d)

Ruby

52.

Hadoop can run on:

a)

High-end servers only

b)

Commodity hardware

c)

Supercomputers only

d)

Mobile devices

53.

Hadoop handles hardware failures by:

a)

Stopping execution

b)

Ignoring failures

c)

Automatic recovery

d)

Manual intervention

54.

Which Hadoop mode requires SSH configuration?

a)

Local

b)

Pseudo-distributed

c)

Fully distributed

d)

Standalone

55.

Hadoop daemons include:

a)

NameNode and DataNode

b)

Client and Browser

c)

XML and JSON

d)

CPU and RAM

56.

HDFS does NOT support:

a)

Write once, read many

b)

Streaming access

c)

Random write operations

d)

Replication

57.

Hadoop cluster means:

a)

Single machine

b)

Collection of nodes

c)

Cloud service only

d)

Database

58.

Hadoop is suitable for:

a)

OLTP systems

b)

Batch processing

c)

Real-time gaming

d)

Image editing

59.

Which component stores namespace information?

a)

DataNode

b)

NameNode

c)

Client

d)

TaskTracker

60.

HDFS command-line interface is used to:

a)

Configure XML files

b)

Manage files and directories

c)

Write Java code

d)

Start OS services

61.

Hadoop supports data locality to:

a)

Increase network usage

b)

Reduce data movement

c)

Increase latency

d)

Store metadata

62.

Data locality means:

a)

Processing near data

b)

Data stored locally only

c)

Data stored in NameNode

d)

Data copied to client

63.

Hadoop is scalable because:

a)

It uses SQL

b)

Nodes can be added easily

c)

It uses large memory

d)

It uses cloud only

64.

Hadoop cluster setup requires:

a)

Java installation

b)

Python installation only

c)

Browser

d)

Compiler only

65.

Which mode is easiest to configure?

a)

Fully distributed

b)

Pseudo-distributed

c)

Local mode

d)

Cloud mode

66.

HDFS client communicates directly with:

a)

NameNode only

b)

DataNodes for data

c)

Secondary NameNode

d)

JobTracker

67.

HDFS write pipeline involves:

a)

Single DataNode

b)

Chain of DataNodes

c)

NameNode only

d)

Client only

68.

Hadoop supports which type of processing?

a)

Interactive

b)

Batch

c)

Transactional

d)

Real-time only

69.

Hadoop ecosystem tools are built around:

a)

SQL

b)

HDFS and MapReduce

c)

Operating system

d)

Network protocols

70.

Hadoop is fault-tolerant mainly due to:

a)

High-speed CPUs

b)

Replication and re-execution

c)

Large memory

d)

Encryption

71.

HDFS is best used when data size is:

a)

In KBs

b)

In MBs

c)

In GBs or TBs

d)

In bytes

72.

NameNode is a:

a)

Slave

b)

Master

c)

Client

d)

Backup node

73.

Hadoop cluster setup includes:

a)

Hardware only

b)

Software only

c)

Hardware + Software

d)

Network only

74.

HDFS is optimized for:

a)

Write many times

b)

Read many times

c)

Random updates

d)

File locking

75.

Hadoop is mainly used in:

a)

Small desktop apps

b)

Big Data analytics

c)

Embedded systems

d)

Office automation