NEW
Font size
WorksheetsHadoop and HDFS Worksheet MCQs (Transcribed)
Total questions: 75
Worksheet time: 38mins
Hadoop is an open-source framework used for:
Web development
Big Data storage and processing
Game development
Image editing
Hadoop is mainly designed to handle:
Small files only
Structured data only
Large-scale data
Temporary data
Hadoop works on the principle of:
Centralized computing
Distributed computing
Parallel processing only
Sequential processing
Hadoop ecosystem refers to:
A single software
Collection of Hadoop-related tools
Operating system
Database system
Which of the following is NOT part of Hadoop ecosystem?
HDFS
MapReduce
YARN
MySQL
HDFS stands for:
High Data File System
Hadoop Distributed File System
Hierarchical Data File System
Hybrid Data File System
HDFS is mainly used for:
Data visualization
Distributed data storage
Network security
Web hosting
HDFS stores data in the form of:
Tables
Objects
Blocks
Rows
Default block size in HDFS is:
8 MB
16 MB
64 MB
128 MB
HDFS follows which architecture?
Peer-to-peer
Master–Slave
Client–Server only
Ring topology
Which is the master node in HDFS?
DataNode
NameNode
Client
TaskTracker
Which node stores actual data blocks in HDFS?
NameNode
Secondary NameNode
DataNode
JobTracker
NameNode stores:
Actual data
Metadata of files
User data
Logs only
Secondary NameNode is used to:
Replace NameNode
Store metadata backups
Process jobs
Store data blocks
Which Hadoop component manages resources?
HDFS
MapReduce
YARN
Hive
Hadoop Local mode runs on:
Multiple machines
Single machine
Cloud only
Virtual machines only
Local mode is mainly used for:
Production deployment
Development and testing
Large-scale storage
Fault tolerance
Pseudo-distributed mode means:
Fully distributed cluster
Multiple nodes on different machines
All Hadoop daemons run on one machine
No daemons running
Fully distributed mode runs on:
One node only
Multiple nodes across machines
Single process
Local disk only
Which mode is used in real-time production?
Local mode
Standalone mode
Pseudo-distributed mode
Fully distributed mode
Hadoop configuration files are written in:
JSON
XML
YAML
TXT
Which file configures core Hadoop settings?
hdfs-site.xml
core-site.xml
mapred-site.xml
yarn-site.xml
hdfs-site.xml is used to configure:
Resource management
HDFS properties
MapReduce jobs
Client settings
Which file configures YARN?
core-site.xml
hdfs-site.xml
yarn-site.xml
mapred-site.xml
mapred-site.xml is used for:
HDFS storage
MapReduce configuration
Network configuration
Client access
Scaling out means:
Increasing CPU speed
Adding more nodes
Increasing RAM
Replacing hardware
Hadoop supports scaling out because it is:
Centralized
Distributed
Single-threaded
Sequential
Scaling out improves:
Cost only
Storage and processing capacity
Security only
Network latency only
Hadoop prefers scaling out over scaling up because:
It is cheaper
It uses high-end machines
It reduces nodes
It limits growth
Adding DataNodes increases:
Metadata
Storage and parallelism
NameNode memory only
Network congestion
HDFS provides APIs in:
Python only
Java only
Java and other languages
C only
Which package provides HDFS Java API?
java.io
org.apache.hadoop.fs
org.apache.hadoop.util
java.util
FileSystem class is used to:
Manage jobs
Access HDFS
Configure XML files
Start daemons
Which method is used to create a file in HDFS?
open()
read()
create()
delete()
Java HDFS API allows:
Only read operations
Only write operations
Both read and write operations
No file operations
HDFS read operation is:
Centralized
Client-driven
NameNode-driven
DataNode-driven only
Client first contacts:
DataNode
Secondary NameNode
NameNode
JobTracker
NameNode provides:
File data
Block metadata
File contents
Job status
Data is read from:
NameNode
Client
DataNodes
YARN
HDFS supports:
Random writes
Sequential reads
Random updates
File locking
HDFS write operation starts when:
NameNode initiates
Client creates a file
DataNode initiates
Secondary NameNode initiates
Before writing data, client requests:
Permission from DataNode
Metadata from NameNode
Block from client
YARN resources
Data is written in:
Single copy
Multiple replicas
Cache memory only
Temporary files
Replication factor in HDFS means:
Block size
Number of file copies
File size
Cluster size
Default replication factor is:
1
2
3
5
HDFS achieves fault tolerance using:
Indexing
Replication
Encryption
Compression
If one DataNode fails:
Data is lost permanently
NameNode shuts down
Data is read from replicas
Client crashes
NameNode failure affects:
Only one file
Entire HDFS access
One DataNode
YARN only
HDFS is best suited for:
Small files
Large files
Real-time databases
Transaction processing
HDFS is optimized for:
Low latency
High throughput
Random access
Frequent updates
Hadoop is written mainly in:
Python
C++
Java
Ruby
Hadoop can run on:
High-end servers only
Commodity hardware
Supercomputers only
Mobile devices
Hadoop handles hardware failures by:
Stopping execution
Ignoring failures
Automatic recovery
Manual intervention
Which Hadoop mode requires SSH configuration?
Local
Pseudo-distributed
Fully distributed
Standalone
Hadoop daemons include:
NameNode and DataNode
Client and Browser
XML and JSON
CPU and RAM
HDFS does NOT support:
Write once, read many
Streaming access
Random write operations
Replication
Hadoop cluster means:
Single machine
Collection of nodes
Cloud service only
Database
Hadoop is suitable for:
OLTP systems
Batch processing
Real-time gaming
Image editing
Which component stores namespace information?
DataNode
NameNode
Client
TaskTracker
HDFS command-line interface is used to:
Configure XML files
Manage files and directories
Write Java code
Start OS services
Hadoop supports data locality to:
Increase network usage
Reduce data movement
Increase latency
Store metadata
Data locality means:
Processing near data
Data stored locally only
Data stored in NameNode
Data copied to client
Hadoop is scalable because:
It uses SQL
Nodes can be added easily
It uses large memory
It uses cloud only
Hadoop cluster setup requires:
Java installation
Python installation only
Browser
Compiler only
Which mode is easiest to configure?
Fully distributed
Pseudo-distributed
Local mode
Cloud mode
HDFS client communicates directly with:
NameNode only
DataNodes for data
Secondary NameNode
JobTracker
HDFS write pipeline involves:
Single DataNode
Chain of DataNodes
NameNode only
Client only
Hadoop supports which type of processing?
Interactive
Batch
Transactional
Real-time only
Hadoop ecosystem tools are built around:
SQL
HDFS and MapReduce
Operating system
Network protocols
Hadoop is fault-tolerant mainly due to:
High-speed CPUs
Replication and re-execution
Large memory
Encryption
HDFS is best used when data size is:
In KBs
In MBs
In GBs or TBs
In bytes
NameNode is a:
Slave
Master
Client
Backup node
Hadoop cluster setup includes:
Hardware only
Software only
Hardware + Software
Network only
HDFS is optimized for:
Write many times
Read many times
Random updates
File locking
Hadoop is mainly used in:
Small desktop apps
Big Data analytics
Embedded systems
Office automation
