WorksheetsBig Data Computing MOOC Course
Total questions: 80
Worksheet time: 40mins
Name
Class
Date
1.
1)True or False ? Big Data is a collection of data that is huge in volume, yet growing exponentially with time.
Big Data is a collection of data that is huge in volume, yet growing exponentially with time. It is a data with so large size and complexity that none of traditional data management tools can store it or process it efficiently.
a)
True
b)
False
2.
What does “Velocity” in Big Data mean?
a)
Speed of input data generation
b)
Speed of individual machine processors
c)
Speed of storing and processing data
d)
Speed of ONLY storing data
3.
_______________ refers to the accuracy and correctness of the data relative to a particular use
a)
Value
b)
Veracity
c)
Velocity
d)
Validity
4.
Consider the following statements:
Statement 1: Viscosity refers to the connectedness of big data.
Statement 2: Volatility refers to the rate of data loss and stable lifetime of data
a)
Only statement 1 is true
b)
Only statement 2 is true
c)
Both statements are true
d)
Both statements are false
5.
______________ is a programming model and an associated implementation for processing and generating large data sets
a)
HDFS
b)
YARN
c)
Map Reduce
d)
PIG
6.
_______________is an open source software framework for big data. It has two basic parts: HDFS and Map Reduce.
a)
Spark
b)
HBASE
c)
HIVE
d)
Apache Hadoop
7.
The fundamental idea of __________________ is to split up the functionalities of resource management and job scheduling/monitoring into separate daemons. The idea is to have a global Resource Manager (RM) and per-application Application Master (AM). An application is either a single job or a DAG of jobs.
a)
Hadoop Common
b)
Hadoop Distributed File System (HDFS)
c)
Hadoop YARN
d)
Hadoop MapReduce
8.
____________is a highly reliable distributed coordination kernel , which can be used for distributed locking, configuration management, leadership election, and work queues etc.
a)
Apache Sqoop
b)
Mahout
c)
Flume
d)
ZooKeeper
9.
______________ is an open source stream processing software platform developed by the Apache Software Foundation written in Scala and Java.
a)
Hive
b)
Cassandra
c)
Apache Kafka
d)
RDDs
10.
True or False ?
NoSQL databases are non-tabular databases and store data differently than relational tables. NoSQL databases come in a variety of types based on their data model. The main types are document, key-value, wide-column, and graph. They provide flexible schemas and scale easily with large amounts of data and high user loads.
a)
True
b)
False
11.
_______________works as a master server that manages the file system namespace and basically regulates access to these files from clients, and it also keeps track of where the data is on the Data Nodes and where the blocks are distributed essentially.
a)
Data Node
b)
Name Node
c)
Data block
d)
Replication
12.
When a client contacts the name node for accessing a file, the name node responds with
a)
Size of the file requested
b)
Block ID of the file requested
c)
Block ID and hostname of any one of the data nodes containing that block
d)
Block ID and hostname of all the data nodes containing that block
13.
The namenode knows that the datanode is active using a mechanism known as
a)
datapulse
b)
h-signal
c)
heartbeats
d)
Active-pulse
14.
For reading/writing data to/from HDFS, clients first connect to ______________
a)
NameNode
b)
Checkpoint Node
c)
DataNode
d)
None of the mentioned
15.
True or False ?
HDFS performs replication, although it results in data redundancy?
a)
True
b)
False
16.
Consider the following statements:
Statement 1: Task Tracker is hosted inside the master and it receives the job execution request from the client.
Statement 2: Job tracker is the MapReduce component on the slave machine as there are multiple slave machines.
a)
Only statement 1 is true
b)
Only statement 2 is true
c)
Both statements are true
d)
Both statements are false
17.
Consider the following statements:
Statement 1: MapReduce is a programming model and an associated implementation for processing and generating large data sets.
Statement 2: Users specify a map function that processes a key/value pair to generate a set of intermediate key/value pairs, and a reduce function that merges all intermediate values associated with the same intermediate key
a)
Only statement 1 is true
b)
Only statement 2 is true
c)
Both statements are true
d)
Both statements are false
18.
Point out the correct statement in context of YARN:
a)
YARN extends the power of Hadoop to incumbent and new technologies found within the data center
b)
YARN is highly scalable
c)
YARN enhances a Hadoop compute cluster in many ways
d)
All of the mentioned
19.
Apache Hadoop YARN stands for:
a)
Yet Another Reserve Negotiator
b)
Yet Another Resource Negotiator
c)
Yet Another Resource Network
d)
Yet Another Resource Manager
20.
Consider the pseudo-code for MapReduce's WordCount example (not shown here). Let's now assume that you want to determine the average length of all the words in a text file. Which part of the pseudo-code do you need to adapt?
a)
Only map()
b)
Only reduce()
c)
map() and reduce()
d)
The code does not have to be changed
21.
Consider the following statements in the context of Spark:
Statement 1: Spark improves efficiency through in-memory computing primitives and general computation graphs.
Statement 2: Spark improves usability through high-level APIs in Java, Scala, Python and also provides an interactive shell
a)
Only statement 1 is true
b)
Only statement 2 is true
c)
Both statements are true
d)
Both statements are fase
22.
True or False ?
Resilient Distributed Datasets (RDDs) are fault-tolerant and immutable
a)
True
b)
False
23.
In Spark, a ______________________is a read-only collection of objects partitioned across a set of machines that can be rebuilt if a partition is lost.
a)
Spark Streaming
b)
FlatMap
c)
Resilient Distributed Dataset (RDD)
d)
Driver
24.
Given the following definition about the join transformation in Apache Spark:
def join[W](other: RDD[(K, W)]): RDD[(K, (V, W))]
Where join operation is used for joining two datasets. When it is called on datasets of type (K, V) and (K, W), it returns a dataset of (K, (V, W)) pairs with all pairs of elements for each key.
Output the result of joinrdd, when the following code is run.
val rdd1 = sc.parallelize(Seq(("m",55),("m",56),("e",57),("e",58),("s",59),("s",54)))
val rdd2 = sc.parallelize(Seq(("m",60),("m",65),("s",61),("s",62),("h",63),("h",64)))
val joinrdd = rdd1.join(rdd2)
joinrdd.collect
a)
Array[(String, (Int, Int))] = Array((m,(55,60)), (m,(55,65)), (m,(56,60)), (m,(56,65)), (s,(59,61)), (s,(59,62)), (h,(63,64)), (s,(54,61)), (s,(54,62)))
b)
Array[(String, (Int, Int))] = Array((m,(55,60)), (m,(55,65)), (m,(56,60)), (m,(56,65)), (s,(59,61)), (s,(59,62)), (s,(54,61)), (s,(54,62)))
c)
Array[(String, (Int, Int))] = Array((m,(55,60)), (m,(55,65)), (m,(56,60)), (m,(56,65)), (s,(59,61)), (s,(59,62)), (e,(57,58)), (s,(54,61)), (s,(54,62)))
d)
None of the mentioned
25.
True or False ?
Apache Spark potentially run batch-processing programs up to 100 times faster than Hadoop MapReduce in memory, or 10 times faster on disk.
a)
True
b)
False
26.
______________ leverages Spark Core fast scheduling capability to perform streaming analytics.
a)
MLlib
b)
GraphX
c)
RDDs
d)
Spark Streaming
27.
____________________ is a distributed graph processing framework on top of Spark.
a)
GraphX
b)
MLlib
c)
Spark streaming
d)
All of the mentioned
28.
Which of the following are the simplest NoSQL databases ?
a)
Wide-column
b)
Key-value
c)
Document
d)
All of the mentioned
29.
Consider the following statements:
Statement 1: Scale out means grow your cluster capacity by replacing with more powerful machines.
Statement 2: Scale up means incrementally grow your cluster capacity by adding more COTS machines (Components Off the Shelf).
a)
Only statement 1 is true
b)
Only statement 1 is true
c)
Both statements are false
d)
Both statements are true
30.
Point out the incorrect statement in the context of Cassandra:
a)
It is originally designed at Facebook
b)
It is designed to handle large amounts of data across many commodity servers, providing high availability with no single point of failure
c)
It is a centralized key-value store
d)
It uses a ring-based DHT (Distributed Hash Table) but without finger tables or routing
31.
In Cassandra, ________________ replication strategy treats the entire cluster as a single data center. It is suitable for a single data center and one rack. This is also called as Rack-Unaware Strategy.
a)
Simple strategy
b)
Network topology strategy
c)
Quorum strategy
d)
None of the mentioned
32.
In Cassandra, ____________________ is used to specify data centers and the number of replicas to place within each data center. It attempts to place replicas on distinct racks to avoid the node failure and to ensure data availability.
a)
Simple strategy
b)
Network topology strategy
c)
Quorum strategy
d)
None of the mentioned
33.
True or False ?
A Snitch determines which data centers and racks nodes belong to. Snitches inform Cassandra about the network topology so that requests are routed efficiently and allows Cassandra to distribute replicas by grouping machines into data centers and racks.
a)
TRUE
b)
False
34.
Identify the correct choices for the given scenarios:
P: All nodes see same data at any time, or reads return latest written value by any client
Q: The system allows operations all the time, and operations return quickly
R: The system continues to work in spite of network partitions
a)
P: Consistency, Q: Availability, R: Partition tolerance
b)
P: Availability, Q: Consistency, R: Partition tolerance
c)
P: Partition tolerance, Q: Consistency, R: Availability
d)
P: Consistency, Q: Partition tolerance, R: Availability
35.
Consider the following statements:
Statement 1: In Cassandra, during a write operation, when hinted handoff is enabled and If any replica is down, the coordinator writes to all other replicas, and keeps the write locally until down replica comes back up.
Statement 2: In Cassandra, Ec2Snitch is important snitch for deployments and it is a simple snitch for Amazon EC2 deployments where all nodes are in a single region. In Ec2Snitch region name refers to data center and availability zone refers to rack in a cluster.
a)
Only Statement 1 is true
b)
Only Statement 2 is true
c)
Both Statements are true
d)
Both Statements are false
36.
Cassandra uses a protocol called __________________to discover location and state information about the other nodes participating in a Cassandra cluster.
a)
Key-value
b)
Memtable
c)
Gossip
d)
Heartbeat
37.
What is Eventual Consistency ?
a)
At any time, the system is linearizable
b)
At any time, concurrent reads from any node return the same values
c)
If writes stop, a distributed system will become consistent
d)
If writes stop, all reads will return the same value after a while
e)
If writes stop, all reads will return the same value after a while
38.
Consider the following statements:
Statement 1: When two processes are competing with each other causing data corruption, it is called deadlock
Statement 2: When two processes are waiting for each other directly or indirectly, it is called race condition
a)
Only Statement 1 is true
b)
Only Statement 2 is true
c)
Both Statements are false
d)
Both Statements are true
39.
Which of the following is incorrect statement ?
a)
ZooKeeper is a distributed co-ordination service to manage large set of hosts.
b)
ZooKeeper allows developers to focus on core application logic without worrying about the distributed nature of the application.
c)
ZooKeeper solves this issue with its simple architecture and API.
d)
The ZooKeeper framework was originally built at "Google" for accessing their applications in an easy and robust manner.
40.
In Zookeeper, when a _______ is triggered the client receives a packet saying that the znode has changed.
a)
Event
b)
row
c)
watch
d)
value
41.
ZooKeeper itself is intended to be replicated over a sets of hosts called ____________
a)
Chunks
b)
Ensemble
c)
Subdomains
d)
None of the mentioned
42.
Consider the Table temperature_details in Keyspace “day3” with schema as follows:
temperature_details(daynum, year,month,date,max_temp)
with primary key(daynum,year,month,date)
There exists same maximum temperature at different hours of the same day. Choose the correct CQL query to:
Alter table temperature_details to add a new column called “seasons” using map of type <varint, text> represented as <month, season>. Season can have the following values season={spring, summer, autumn, winter}.
Update table temperature_details where columns daynum, year, month, date contain the following values- 4317,1955,7,26 respectively.
Use the select statement to output the row after updation.
Note: A map relates one item to another with a key-value pair. For each key, only one value may exist, and duplicates cannot be stored. Both the key and the value are designated with a data type.
a)
cqlsh:day3> alter table temperature_details add hours1 set<varint>;
cqlsh:day3> update temperature_details set hours1={1,5,9,13,5,9} where daynum=4317; cqlsh:day3> select * from temperature_details where daynum=4317;
b)
cqlsh:day3> alter table temperature_details add seasons map<varint,text>;
cqlsh:day3> update temperature_details set seasons = seasons + {7:'spring'} where daynum=4317 and year =1955 and month = 7 and date=26;
cqlsh:day3> select * from temperature_details where daynum=4317 and year=1955 and month=7 and date=26;
c)
cqlsh:day3>alter table temperature_details add hours1 list<varint>;
cqlsh:day3> update temperature_details set hours1=[1,5,9,13,5,9] where daynum=4317 and year = 1955 and month = 7 and date=26;
cqlsh:day3> select * from temperature_details where daynum=4317 and year=1955 and month=7 and date=26;
d)
cqlsh:day3> alter table temperature_details add seasons map<month, season>;
cqlsh:day3> update temperature_details set seasons = seasons + {7:'spring'} where daynum=4317;
cqlsh:day3> select * from temperature_details where daynum=4317;
43.
True or False ?
Apache HBase is a column-oriented, NoSQL database designed to operate on top of the Hadoop distributed file system (HDFS).
a)
TRUE
b)
False
44.
A small chunk of data residing in one machine which is part of a cluster of machines holding one HBase table is known as__________________
a)
Rowarea
b)
Tablearea
c)
Region
d)
Split
45.
In HBase, what is the number of MemStore per column family ?
a)
1
b)
2
c)
3
d)
Equal to as many columns in the column family
46.
In HBase, __________________is a combination of row, column family, column qualifier and contains a value and a timestamp.
a)
Stores
b)
HMaster
c)
Region Server
d)
Cell
47.
HBase architecture has 3 main components:
a)
Client, Column family, Region Server
b)
HMaster, Region Server, Zookeeper
c)
Cell, Rowkey, Stores
d)
HMaster, Stores, Region Server
48.
True or False ?
Kafka is a high performance, real time messaging system. It is an open source tool and is a part of Apache projects
a)
TRUE
b)
False
49.
Kafka maintains feeds of messages in categories called___________________
a)
Chunks
b)
Domains
c)
Messages
d)
Topics
50.
True or False ?
Statement 1: Batch Processing provides ability to process and analyze data at-rest (stored data)
Statement 2: Stream Processing provides ability to ingest, process and analyze data in-motion in real or near-real-time.
a)
Only statement 1 is true
b)
Only statement 2 is true
c)
Both statements are true
d)
Both statements are false
51.
What exactly Kafka key capabilities?
a)
Publish and subscribe to streams of records, similar to a message queue or enterprise messaging system
b)
Store streams of records in a fault-tolerant durable way
c)
Process streams of records as they occur
d)
All of the mentioned
52.
is a framework to import event streams from other source data systems into Kafka and export event streams from Kafka to destination data systems.
a)
Kafka Core
b)
Kafka Connect
c)
Kafka Streams
d)
None of the mentioned
53.
________________is a central hub to transport and store event streams in real time.
a)
Kafka Core
b)
Kafka Connect
c)
Kafka Streams
d)
None of the mentioned
54.
________________is a Java library to process event streams live as they occur
a)
Kafka Core
b)
Kafka Connect
c)
Kafka Streams
d)
None of the mentioned
55.
Which of the following tasks can be best solved using Clustering ?
a)
Predicting the amount of rainfall based on various cues
b)
Detecting fraudulent credit card transactions
c)
Training a robot to solve a maze
d)
All of the mentioned
56.
Identify the correct statement in context of Regressive model of Machine Learning
a)
Regressive model predicts a numeric value instead of category.
b)
Regressive model organizes similar item in your dataset into groups.
c)
Regressive model comes up with a set of rules to capture associations between items or events.
d)
None of the Mentioned
57.
___________ refers to a model that can neither model the training data nor generalize to new data
a)
Good fitting
b)
Overfitting
c)
Underfitting
d)
All of the mentioned
58.
Which of the following is required by K-means clustering ?
a)
Defined distance metric
b)
Number of clusters
c)
Initial guess as to cluster centroids
d)
All of the mentioned
59.
Imagine you are working on a project which is a binary classification problem. You trained a model on training dataset and get the below confusion matrix on validation datasetBased on the above confusion matrix, choose which option(s) below will give you correct predictions ?
1. Accuracy is ~0.91
2. Misclassification rate is ~ 0.91
3. False positive rate is ~0.95
4. True positive rate is ~0.95
a)
1 and 3
b)
1 and 4
c)
2 and 4
d)
2 and 3
60.
Identify the correct method for choosing the value of ‘k’ in k-means algorithm ?
a)
Dimensionality reduction
b)
Elbow method
c)
Both Dimensionality reduction and Elbow method
d)
Data partitioning
61.
True or False ?
If your model has very low training error but high generalization error, then it is overfitting.
a)
TRUE
b)
False
62.
Identify the correct statement(s) in context of overfitting in decision trees:
Statement I: The idea of Post-pruning is to grow a tree to its maximum size and then remove the nodes using a top-bottom approach.
Statement II: The idea of Pre-pruning is to stop tree induction before a fully grown tree is built, that perfectly fits the training data.
a)
Only Statement I is true
b)
Only Statement 2 is true
c)
Both Statements are true
d)
Both Statements are false
63.
Which of the following options is/are true for K-fold cross-validation ?
1. Increase in K will result in higher time required to cross validate the result.
2. Higher values of K will result in higher confidence on the cross-validation result as compared to lower value of K.
3. If K=N, then it is called Leave one out cross validation, where N is the number of observations.
a)
1 and 2
b)
2 and 3
c)
1 and 3
d)
1, 2 and 3
64.
Identify the correct statement(s) in context of machine learning approaches:
Statement I: In supervised approaches, the target that the model is predicting is unknown or unavailable. This means that you have unlabeled data.
Statement II: In unsupervised approaches the target, which is what the model is predicting, is provided. This is referred to as having labeled data because the target is labeled for every sample that you have in your data set.
a)
Only Statement I is true
b)
Only Statement 2 is true
c)
Both Statements are false
d)
Both Statements are true
65.
True or False ?
The bootstrap sampling method is a resampling method that uses random sampling with replacement.
a)
TRUE
b)
False
66.
True or False ?
Statement 1: Maximum likelihood estimation is a method that determines values for the parameters of a model. The parameter values are found such that they maximize the likelihood that the process described by the model produced the data that were actually observed.
Statement 2: Bagging provides an averaging over a set of possible datasets, removing noisy and non-stable parts of models.
a)
Only statement 1 is true
b)
Only statement 2 is true
c)
Both statements are true
d)
Both statements are false
67.
In which of the following scenario a gain ratio is preferred over Information Gain ?
a)
When a categorical variable has very small number of category
b)
When a categorical variable has very large number of category
c)
Number of categories is the not the reason
d)
None of the mentioned
68.
Given an attribute table shown below, which stores the basic information of attribute a, including the row identifier of instance row_id , values of attribute values (a) and class labels of instances c.Which of the following attribute will first provide the pure subset ?
a)
Humidity
b)
Outlook
c)
Wind
d)
None of the mentioned
69.
Hundreds of trees can be aggregated to form a Random forest model. Which of the following is true about any individual tree in Random Forest?
1. Individual tree is built on a subset of the features
2. Individual tree is built on all the features
3. Individual tree is built on a subset of observations
4. Individual tree is built on full set of observations
a)
1 and 3
b)
1 and 4
c)
2 and 3
d)
2 and 4
70.
Which of the following is/are true about Random Forest and Gradient Boosting ensemble methods ?
1. Both methods can be used for classification task
2. Random Forest is use for classification whereas Gradient Boosting is use for regression task
3. Random Forest is use for regression whereas Gradient Boosting is use for Classification task
4. Both methods can be used for regression task
a)
1 and 2
b)
2 and 3
c)
1 and 4
d)
2 and 4
71.
Boosting any algorithm takes into consideration the weak learners. Which of the following is the main reason behind using weak learners ?
Reason I-To prevent overfitting
Reason II- To prevent underfitting
a)
Reason I
b)
Reason II
c)
Both the Reasons
d)
None of the Reasons
72.
To apply bagging to regression trees which of the following is/are true in such case ?
1. We build the N regression with N bootstrap sample
2. We take the average the of N regression tree
3. Each tree has a high variance with low bias
a)
1 and 2
b)
2 and 3
c)
1 and 3
d)
1, 2 and 3
73.
Which of the following statement(s) is/are true in the context of Apache Spark GraphX operators ?
S1: Structural operators operate on the structure of an input graph and produces a new graph.
S2: Property operators modify the vertex or edge properties using a user defined map function and produces a new graph.
S3: Join operators add data to graphs and produces a new graphs.
a)
Only statement S1 is true
b)
Only statement S2 is true
c)
Only statement S3 is true
d)
All of the mentioned
74.
GraphX provides an API for expressing graph computation that can model the __________ abstraction
a)
GaAdt
b)
Pregel
c)
Spark Core
d)
None of the mentioned
75.
Match the following:
A. Dataflow Systems i. Vertex Programs
B. Graph Systems ii. Parameter Servers
C. Shared Memory Systems iii. GuineaPig
a)
A:ii, B: i, C: iii
b)
A:iii, B: i, C: ii
c)
A:ii, B: iii, C: i
d)
A:iii, B: ii, C: i
76.
is the PageRank score of vertex 'B' after the second iteration? (Without damping factor)Hint:- The basic PageRank formula is:Where, PRt+1(u)PRt+1(u) : page rank of node uu under consideration, PRt(v)PRt(v) : previous page rank of node ‘vv’ pointing to node ‘uu’ , C(v)C(v): outgoing degree of vertex ‘vv’
a)
1/6/
b)
1.5/12
c)
2.5/12
d)
1/3/
77.
Which of the following statement(s) is/are true in context of Parameter Servers.
S1: A machine learning framework
S2: Distributes a model over multiple machines
S3: It offers two operations: (i) Pull for query parts of the model (ii) Push for update parts of the model.
a)
Only statement S1 is true
b)
Only statement S2 is true
c)
Only statement S3 is true
d)
All of the mentioned
78.
Identify the correct statement for Stale synchronous process (SSP):
Statement 1: SSP interpolates between BSP (Bulk synchronous parallel) and Asynchronous and subsumes both.
Statement 2: SSP allows usually workers to run at own pace
a)
Only statement 1 is true
b)
Only statement 2 is true
c)
Both statements are true
d)
Both statements are false
79.
Which of the following are provided by spark API for graph parallel computations:
i. joinVertices
ii. subgraph
iii. aggregateMessages
a)
Only (i)
b)
Only (i) and (ii)
c)
Only (ii) and (iii)
d)
All of the mentioned
80.
Which of the following statement(s) is/are true ?
S1: Apache Spark GraphX provides the following property operators - mapVertices(), mapEdges(), mapTriplets()
S2: The RDDs in Spark, depend on one or more other RDDs. The representation of dependencies in between RDDs is known as the lineage graph. Lineage graph information is used to compute each RDD on demand, so that whenever a part of persistent RDD is lost, the data that is lost can be recovered using the lineage graph information.
a)
Only S1 is true
b)
Only S2 is true
c)
Both S1 and S2 are true
d)
None of the mentioned
100 %
