Cloud Computing and Distributed Systems Week 3 Answers

Are you looking for Nptel Cloud Computing and Distributed Systems Week 3 Answers? You’ve come to the right place! Access the most accurate answers at Progiez.


Cloud Computing and Distributed Systems Week 3 Answers
Cloud Computing and Distributed Systems Week 3 Answers

Course Link: Click Here

Cloud Computing and Distributed Systems Week 3 Answers (Jan-Apr 2025)


1. In a Classical Algorithm of Ring Election, what will be the message complexity for N labelled processes.

  • (N-1) messages
  • (2N-1) messages
  • (3N-1) messages
  • (4N-1) messages

View Answer


2. True or False ?

There is no leader election algorithm for anonymous rings, even if algorithm knows the ring size (non-uniform) and synchronous model.

  • True
  • False

View Answer


3. True or False ?

Zookeeper is a replicated service that holds the metadata of distributed applications.

  • True
  • False

View Answer


4. True or False ?

“Leader Election problem represents a general class of non symmetry-breaking problems.”

  • True
  • False

View Answer


5. ZooKeeper itself is intended to be replicated over a sets of hosts called :

  • Chunks
  • Ensemble
  • Subdomains
  • None of the mentioned

View Answer


6. Find the message and time complexity of below algorithm:

send value of own id to the left

when receive an id j (from the right):

if j > id then

forward j to the left (this processor has lost)

if j = id then

elect self (this processor has won)

if j < id then

do nothing

  • O(n2) Messages and O(n) time
  • O(logn) Messages and O(logn) time
  • O(n) Messages and O(n2) time
  • O(n3) Messages and O(n) time

View Answer


7. In the O(nlogn) messages leader election algorithm, the probe distance in phase k is _ and the Number of messages initiated by a processor in phase k is at most ______________including probes and replies in both directions.

  • 2k−1,4k
  • 2k,4∗2k
  • k,2k
  • 2k,4∗2k

View Answer


8. 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.

  • Only statement 1 is true
  • Only statement 2 is true
  • Both statements are true
  • Both statements are false

View Answer


9. In an anonymous ring topology, which of the following is true regarding leader election?

  • Leader election is always possible in both synchronous and asynchronous settings
  • Leader election is possible only if the number of nodes is known.
  • Leader election is impossible in an anonymous ring without additional mechanisms.
  • The election can be performed using a random number assigned to each node.

View Answer


10. How does having unique node identifiers (non-uniform ring) affect the leader election process?

  • It makes the election process more complex and inefficient.
  • It allows leader election to be completed in a finite number of steps using identifier-based comparison.
  • It has no impact, as the algorithm would work the same way in uniform and non-uniform rings.
  • It requires additional communication rounds to resolve conflicts among nodes

Cloud Computing and Distributed Systems Week 3 Answers (Jan-Apr 2025)

For answers to others Nptel courses, please refer to this link: NPTEL Assignment