wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Pre-requitse Test Big Data, Hadoop and ML

Total questions: 55

Worksheet time: 28mins

Name
Class
Date
1.

What does the 'Variety' aspect of Big Data refer to?

a)

The amount of data being generated

b)

The speed at which data is produced

c)

The types and formats of data

d)

The correctness of data

2.

Which of the following is used in Hadoop for distributed storage?

a)

Hive

b)

HDFS

c)

YARN

d)

Spark

3.

Which technology enables resource management in a Hadoop cluster?

a)

MapReduce

b)

YARN

c)

HDFS

d)

Pig

4.

What is Apache Spark primarily known for?

a)

Real-time processing using batch jobs

b)

Disk-based computation

c)

Resource management

d)

In-memory computation for fast analytics

5.

What does MapReduce do in the Hadoop ecosystem?

a)

Manages job execution

b)

Provides data security

c)

Splits and processes large data sets in parallel

d)

Stores data

6.

What is the purpose of Apache Zookeeper?

a)

Coordinates and manages distributed applications

b)

Stores massive unstructured data

c)

In-memory computation

d)

Provides SQL support

7.

Why is traditional RDBMS not suitable for Big Data?

a)

It lacks GUI

b)

It cannot support SQL

c)

It fails to handle large volume, variety, and velocity of data

d)

It is open-source

8.

A research lab is storing high-resolution satellite images, videos, and sensor data from different instruments. What Big Data characteristic does this scenario highlight?

a)

Volume

b)

Variety

c)

Veracity

d)

Viscosity

9.

You are developing a healthcare monitoring system using wearable sensors that stream data continuously. Which Big Data technologies should you consider for processing this stream?

a)

Spark Streaming and Kafka

b)

Hive and Pig

c)

HDFS and MapReduce

d)

Cassandra and ZooKeeper

10.

Which of the following is a NoSQL database suitable for handling unstructured data?

a)

Oracle

b)

Hive

c)

Cassandra

d)

MySQL

11.

Which of the following best describes the reason for data locality in HDFS?

a)

To reduce disk I/O latency

b)

To improve CPU utilization

c)

To increase network throughput

d)

To reduce data transfer latency and improve performance

12.

Which feature was introduced in HDFS Federation to overcome scalability issues?

a)

Block-level striping

b)

Multiple NameNodes with independent namespaces

c)

Centralized metadata server

d)

Heterogeneous replication

13.

Why is the HDFS default block size larger than traditional file systems?

a)

It supports better file security

b)

It enables faster metadata lookup

c)

It minimizes disk seek time and maximizes throughput

d)

It reduces replication overhead

14.

What happens when a DataNode fails to send heartbeat to the NameNode in time?

a)

DataNode is upgraded to active mode

b)

NameNode increases replication factor

c)

DataNode is marked dead, and blocks are re-replicated

d)

System restarts the failed DataNode automatically

15.

Which MapReduce feature makes it highly fault tolerant?

a)

Re-execution of failed tasks on other nodes

b)

Heartbeat mechanism

c)

Vertical scaling

d)

Immediate job termination on failure

16.

What would be the outcome if the replication factor is set to 1 in HDFS?

a)

No data access will be allowed

b)

Data will be more robust

c)

There will be no tolerance to node failure

d)

Performance will drastically increase

17.

Which of the following is NOT a component of Hadoop 2.x's YARN architecture?

a)

Node Manager

b)

Application Master

c)

Resource Manager

d)

Task Tracker

18.

In HDFS, the parameter dfs.blocksize is primarily tuned to:

a)

Reduce network latency

b)

Increase memory size of DataNode

c)

Control the number of blocks a file is divided into

d)

Manage CPU allocation per task

19.

Which MapReduce phase is responsible for combining all values with the same key?

a)

Map

b)

Shuffle

c)

Reduce

d)

Partition

20.

Why are many small files problematic in HDFS?

a)

They increase disk seek time

b)

They cause NameNode memory overhead

c)

They slow down the replication

d)

They reduce the number of map tasks

21.

Which CAP property is most likely reduced when a system uses asynchronous replication?

a)

Availability

b)

Consistency

c)

Partition tolerance

d)

Throughput

22.

Which of the following systems is an example of CP under CAP theorem?

a)

DNS

b)

MongoDB (default)

c)

HBase

d)

Cassandra

23.

A stock trading platform must ensure that once a transaction is confirmed, all users see the same updated balance immediately, even if it delays responses during network issues. Which CAP property is being prioritized?

a)

Availability

b)

Consistency

c)

Partition tolerance

d)

Durability

24.

How does CAP theorem impact the design of distributed systems?

a)

It emphasizes data accuracy over system availability

b)

It requires trade-offs between consistency, availability, and partition tolerance

c)

It prioritizes system performance over data security

d)

It eliminates the need for fault tolerance measures

25.

If a distributed system must always be available, which property will it have to sacrifice during partitions?

a)

Consistency

b)

Partition tolerance

c)

Durability

d)

Reliability

26.

If a distributed system chooses Consistency and Partition Tolerance (CP) according to the CAP theorem, what may it sacrifice?

a)

Fault Tolerance

b)

Availability

c)

Scalability

d)

Reliability

27.

Which CAP theorem property ensures the system continues to operate even if some nodes cannot communicate?

a)

Availability

b)

Partition tolerance

c)

Consistency

d)

Fault tolerance

28.

Why is it impossible to achieve all three CAP properties simultaneously in a distributed system?

a)

Due to hardware limitations

b)

Because of network latency

c)

Because network partitions are inevitable in distributed systems

d)

Because data replication is slow

29.

HBase is primarily designed to run on top of:

a)

MySQL

b)

Hadoop Distributed File System (HDFS)

c)

MongoDB

d)

PostgreSQL

30.

HBase prefers ________ over availability in the CAP theorem.

a)

Availability

b)

Consistency

c)

Partition Tolerance

d)

Durability

31.

Zookeeper in HBase is used for:

a)

Data Storage

b)

Distributed Coordination

c)

Caching

d)

Query Execution

32.

A company stores billions of sensor readings in HBase. Each reading is identified by a unique sensor ID and timestamp. The application frequently queries by sensor ID and requires strong consistency. Which HBase feature makes this possible?

a)

Bloom Filters

b)

Row Key

c)

HFile Compression

d)

MemStore

33.

Which is an example of classification?

a)

Predicting next day’s temperature in °C

b)

Identifying whether a tumor is malignant or benign

c)

Estimating sales revenue for next month

d)

Predicting rainfall in millimeters

34.

In regression tasks, the output is:

a)

A discrete label

b)

A probability distribution

c)

A continuous numeric value

d)

A similarity score

35.

In K-means clustering, the elbow method is used for:

a)

Choosing the number of clusters (k)

b)

Reducing dimensionality

c)

Selecting features

d)

Measuring classification accuracy

36.

Which similarity measure is not a proper distance metric but efficient for sparse vectors?

a)

Euclidean distance

b)

Manhattan distance

c)

Cosine similarity

d)

Jaccard distance

37.

Which evaluation metric measures exactness of predictions?

a)

Recall

b)

Precision

c)

Accuracy

d)

F-measure

38.

Which method divides data into k partitions and uses each once for validation?

a)

Holdout method

b)

Leave-one-out validation

c)

K-fold cross-validation

d)

Random subsampling

39.

What technique helps to avoid overfitting in decision trees?

a)

Increasing tree depth indefinitely

b)

Using pre-pruning or post-pruning

c)

Using noisy data intentionally

d)

Removing validation set

40.

An e-commerce company wants to recommend related items when a customer buys something (e.g., “Customers who bought X also bought Y”). Which ML technique should be used?

a)

Classification

b)

Regression

c)

Association analysis

d)

Clustering

41.

A weather department wants to group weather patterns into categories like monsoon, snowy, dry, and humid without prior labels. Which technique is best?

a)

Regression

b)

Classification

c)

Clustering

d)

Precision-recall analysis

42.

A company is using K-means clustering to segment customers. After plotting WSSE for different values of k, they notice the curve bends (forms an elbow) at k=4k=4 . What does this suggest?

a)

The best number of clusters is likely 4

b)

They should always increase k for better results

c)

Clustering is not possible with this data

d)

WSSE does not apply to K-means

43.

Which is generally considered the best predictive method for classification/regression?

a)

Single Decision Tree

b)

Bagging

c)

Gradient Boosted Trees

d)

Random Forest

44.

Why do Random Forests lose interpretability compared to single trees?

a)

They prune nodes

b)

They contain hundreds of trees

c)

They use PCA internally

d)

They are only regression models

45.

Cross-validation in Spark ML is used for:

a)

Building deeper trees

b)

Improving feature scaling

c)

Selecting best model parameters

d)

Reducing overfitting by pruning

46.

Which of the following is true for Gradient Boosting?

a)

Combines weak classifiers iteratively

b)

Uses bagging of decision trees

c)

Selects features randomly

d)

Cannot be used for regression

47.

Random Forest differs from Bagging by:

a)

Selecting random features for each split

b)

Using pruning

c)

Building only shallow trees

d)

Handling missing values

48.

What is Bagging mainly used for?

a)

Reducing bias

b)

Reducing variance

c)

Improving interpretability

d)

Feature selection

49.

What is the purpose of entropy in decision trees?

a)

Measure the number of attributes

b)

Measure dataset purity/impurity

c)

Reduce dimensionality

d)

Increase interpretability

50.

In regression trees, what happens if no split is made?

a)

Model predicts the median of targets

b)

Model predicts the average of targets

c)

Model predicts the mode of targets

d)

Model predicts randomly

51.

A bank wants to predict whether a loan applicant will default or not. They use a decision tree, but the model is overfitting badly. Which strategy should they apply?

a)

Allow the tree to grow deeper

b)

Use pruning or set maxDepth

c)

Remove the validation set

d)

Train on fewer features

52.

If a page has fewer outgoing links, its PageRank contribution to each link is:

a)

Higher

b)

Lower

c)

Zero

d)

Independent of number of links

53.

Why is MapReduce inefficient for PageRank?

a)

It cannot store graphs

b)

It redundantly shuffles graph structure each iteration

c)

It cannot perform joins

d)

It does not support parallelism

54.

A flight network graph represents airports as vertices and flights as edges. A company wants to find the most influential airport (hub) in the network. Which algorithm in GraphX should they use?

a)

K-means

b)

PageRank

c)

Logistic Regression

d)

Linear Regression

55.

Which algorithm can GraphX execute for graph analytics?

a)

PageRank

b)

Triangle Counting

c)

Shortest Path

d)

All of the above