Cloud Computing | Week 5
Cloud Computing week 5 Assignment 5 Answers
Course Link: https://onlinecourses.nptel.ac.in/noc23_cs89/preview
Q1. Which of the following is/are the objective(s) of Resource Management?
A) Increased overhead
B) Increased throughput
C) Increased latency
D) Scalability
Q2. Multiple KPIs are aggregated to SLA.
A) True
B) False
Q3. In computing, Performance/Watt follows Moore’s law
A) True
B) False
Q4. Which of the following is/are resource adaptation approaches?
A) Reinforcement learning guided control policy
B) Intelligent multi-agent model
C) Network queueing model
D) Web-service based prototype
Q5. A third party application runs in the cloud for 18 hours/day. At the end of one month (30 days), it was found that the cloud suffered outages totaling 6 hours and Thours, on different days over the service period. The cloud guarantees service availability for 98% of the time. What are the value(s) of T among the given options such that the SLA negotiation does NOT get honored in terms of service availability?
A) 3 hours
B) 5 hours
C) 6 hours
D) 4 hours
Q6. Consider that the peak computing demand for an organization is 200 units. The demand as a function of time can be expressed as D(t) = 8t. Baseline (owned) unit cost is 120 and cloud unit cost is 150. The cloud is owned for a period of T time units. Select the values of T for which cloud is cheaper than owning.
A) 25
B) 30
C) 35
D) 45
Q7. Which of the following is/are true regarding penalty cost?
(Here D(t) and R(t) are instantaneous demand and resources at time t.)
A) If demand is flat, the penalty is equal to 0.
B) Penalty cost o ID(t)/R(t)|dt
C) If demand is exponential (D(t)-e), any fixed provisioning interval (tp) according to the current demands will fall linearly behind.
D) The penalty cost for exponential demand is exponential.
Q8. In resource management, ________ is determining when an activity should start or end, depending on its duration, predecessor activities, predecessor relationships etc.
A) Resource allocation
B) Resource mapping
C) Resource scheduling
D) Resource modeling
Q9. Which of the following techniques can be used to conserve energy within a Cloud environment?
A) Schedule VMs to conserve energy.
B) Optimize data center design.
C) Maximize operating inefficiencies for non-essential tasks.
D) Management of both VMs and underlying infrastructure.
Q10. An app collects the ratings of restaurants in a particular location and logs it in the following form : . ‘restaurantId’ takes any of the values (A, B, C, D) and each user having a unique userId can provide [0,5] rating. There are three files and each file consists of three columns : userId, restaurantId and rating. Each file may consist of the data for the same user or same restaurant multiple times. Now, out of this data, we need to calculate the number of times each restaurant gets a “5 star” rating from users.
The MapReduce framework will divide it into three map tasks and each map task will perform data functions on one of the three files. The inputs are as shown below.
M1 : {(u1,A,5); (u1,B,3); (u2,A,5); (u3,C,5); (u3,D,2); (u7,D,5)}
M2 : {(u1,C,3); (u1,D,5); (u2,C,5); (u2,D,5); (u4,D,5); (u6,A,5)}
M3 : {(u1,A,5); (u2,A,5); (u2, B,5); (u3,B,5); (u4,C,5); (u3,D,5)}
The tasks of all mappers (M1, M2 and M3) are passed to the reducer job. Reducer will output:
(a) <A, 5>; <B, 5>; <C, 5>; <D, 5>
(b) <A, 5>; <B, 2>; <C, 3>; <D, 5>
(c) A; B; C; D
(d) <A, 5>; <D,5>