Microsoft Word – INFS3208_final_exam_V7.doc
Semester Two Final Examinations, 2019 INFS3208 Cloud Computing
Page 1 of 10
This exam paper must not be removed from the venue
School of Information Technology and Electrical Engineering
EXAMINATION
Semester Two Final Examinations, 2019
INFS3208 Cloud Computing
This paper is for St Lucia Campus students.
Examination Duration: 120 minutes
Reading Time: 10 minutes
Exam Conditions:
This is a Central Examination
This is a Closed Book Examination – no materials permitted
During reading time – write only on the rough paper provided
This examination paper will be released to the Library
Materials Permitted In The Exam Venue:
(No electronic aids are permitted e.g. laptops, phones)
Calculators – No calculators permitted
Materials To Be Supplied To Students:
None
Instructions To Students:
Additional exam materials (eg. answer booklets, rough paper) will be
provided upon request.
Please answer all questions in the space provided on the exam paper.
Total questions: 7
Total marks: 50
Venue ____________________
Seat Number ________
Student Number |__|__|__|__|__|__|__|__|
Family Name _____________________
First Name _____________________
For Examiner Use Only
Question Mark
Total ________
Semester Two Final Examinations, 2019 INFS3208 Cloud Computing
Page 2 of 10
Introduction to Cloud Computing
Question Set 1 (8 marks)
a) What are horizontal scaling and vertical scaling? (2 marks)
b) What are the cloud delivery models and corresponding characteristics? Please give an
example for each delivery model. (6 marks)
Semester Two Final Examinations, 2019 INFS3208 Cloud Computing
Page 3 of 10
Cloud-based Applications
Question Set 2 (7 marks)
a) What are the cloud-enabling technologies? (2 marks)
b) Compare similarities and dissimilarities between the container and virtual machine
technologies. (5 marks)
Semester Two Final Examinations, 2019 INFS3208 Cloud Computing
Page 4 of 10
In-memory Computing – Spark Programming
Question Set 3 (4 marks)
a) What is Resilient Distributed Dataset (RDD) in Apache Spark? (1 mark)
b) How many ways are there to create an RDD in Apache Spark? (1 mark)
c) What is the lazy evaluation mechanism in Apache Spark? (2 marks)
Semester Two Final Examinations, 2019 INFS3208 Cloud Computing
Page 5 of 10
Scala and Resilient Distributed Datasets
Question Set 4 (11 marks)
a) Please use Scala to fill in the appropriate RDD transformation operations in the steps
a, b, and c. (3 marks)
a: __________________
b: __________________
c: __________________
b) Given the code that generates a random collection below, please write the code
according to the requirements. (8 marks)
import util.Random.nextInt
val collection = Seq.fill(20)(util.Random.nextInt)
I. Load the collection data into an RDD and calculate the product of all the elements in
the RDD
Write your code here:
1
Array(1,2,
3,4,5)
array RDD(rdd1)
2
3
4
5
11
RDD(rdd2)
12
13
14
15
RDD(rdd3)
13
14
15
a
b c
Semester Two Final Examinations, 2019 INFS3208 Cloud Computing
Page 6 of 10
II. Load the collection data into an RDD and get the sum of the RDD
Write your code here:
III. Load the collection data into an RDD and count how many elements are in the RDD.
Write your code here:
IV. Load the collection data into an RDD and randomly display four elements.
Write your code here:
Semester Two Final Examinations, 2019 INFS3208 Cloud Computing
Page 7 of 10
Spark SQL and Distributed File Systems
Question Set 5 (8 marks)
a) Compare RDD with DataFrame? (3 marks)
b) Describe each step in the READ operation in Google File System (GFS). (5 marks)
Semester Two Final Examinations, 2019 INFS3208 Cloud Computing
Page 8 of 10
Databases in Cloud Computing
Question Set 6 (7 marks)
a) What are CAP theorem and BASE properties? (5 marks)
b) What are the implementation options of Cassandra and HBase, respectively? (2
marks)
Semester Two Final Examinations, 2019 INFS3208 Cloud Computing
Page 9 of 10
Hadoop MapReduce
Question 7 (5 marks)
Give the following text input, please use the below Map-Reduce framework to perform word count
(case insensitive). Note that a combiner should be in use if necessary. Please write down the
answers according to the box numbers below.
Text Input:
Saturn is a planet.
Planet Earth is a planet.
Pluto is not a planet anymore.
Answer sample:
1: (Input).
Saturn is a planet
Planet earth is a planet
Pluto is not a planet anymore
Please write the answers in the below tables:
Split Mapping
2: 5:
3: 6:
4: 7:
Semester Two Final Examinations, 2019 INFS3208 Cloud Computing
Page 10 of 10
Shuffling Reduce
8: 16:
9: 17:
10: 18:
11: 19:
12: 20:
13: 21:
14: 22:
15: 23:
Output
24:
END OF EXAMINATION