Spark Tutorial Answer Sheet
Running a notebook follow up questions
1. Record used and remaining capacity hours
Total account capacity unit hours used is 0 and remaining account capacity unit hours after
loading the data is 50.
Total account capacity unit hours used 7.7 and remaining account capacity unit hours after
Graded exercise 6 is 42.3.
2. Why did the values change or not change? Ans: The value changed because of the instance
consumes capacity unit hours.
3. What is the difference between “Computing Service” and “Environment”? Ans: Computing
service are the resources required to perform computational work in cloud. While
Environment refers to a hardware platform and the operating system that is used in an
environment.
4. What is the difference between Apache Spark Service and the IBM Analytic Engine?
5. What is the difference between Watson Studio and IBM Cloud? Ans: The Watson Studio, a
tool, are used by the data scientists, developers, and analysts to build, run, and manage AI
models, and optimize decisions anywhere on IBM Cloud. While the IBM Cloud platform
combines platform as a service (PaaS) with infrastructure as a service (IaaS) to provide an
integrated experience.
Spark Quiz
Put your answers to Spark Quiz questions below.
• For multiple choice questions, enter the letter of your answer into the second
column.
• For multiselect questions, enter the letters of your answer choices into the
second column.
• For short answer questions, enter your answer into the second column.
Question
number
Your Answer
1
D = All of the above
2
A = Distributed file system and MapReduce
3
D = Batch processing
4
B = UC Berkley university
5
A = Performs up to 100 times slower than MapReduce
6
C = Linux and Windows only
7
D = All of the above
8
C = Suitable for large datasets
9
C = RDD
10
D = SparkContext
11
D = All of the above
12
Transformation and Action Transformation creates a new dataset from an
existing one, action returns a value after running a computation on the
dataset.
13
E = union
14
E = All of the above
15
B = Pascal
16
A = Is built on top of the IBM Cloud technology
17
B = Run a notebook -builder Java program
18
C = Bucket
19
B = The code cells are read-only and do not execute and
G = The cell execution behavior depends on the cell type
20
21
E = sc.version
22
B = lambda
23
B = flatMap(func)
24
A = flatmap()
25
C = count()
26
C = Employee contact information and past employment history
27
B = Approximately 25% of employees left the company
28
D = Sales
29
30
B = CSV
31
Spark is easier to program than MapReduce.
Spark runs 100 times faster in memory, and 10 times faster on disk
Spark performs batch, real-Time and graph processing, while
MapReduce processes data in batched.
32
The