This set of MCQ(multiple choice questions) focuses on the Advanced Distributed System NPTEL Week 6 Solutions.
This course is on Advanced Distributed Systems. It will start with epidemic and gossip based algorithms and then move on to peer-to-peer networks. The core focus in this part will be on distributed hash tables (DHTs). Then, the course will focus on theoretical aspects such as vector clocks, distributed leader election, the FLP result, and the CAP theorem. The last part of the course will focus on practical technologies such as the Paxos and RAFT consensus protocols, commit protocols, Bitcoin and blockchains, distributed file systems, and distributed programming languages.
Course Layout
Answers COMING SOON! Kindly Wait!
- Week 1: Assignment Solution
- Week 2: Assignment Solution
- Week 3: Assignment Solution
- Week 4: Assignment Solution
- Week 5: Assignment Solution
- Week 6: Assignment Solution
- Week 7: Assignment Solution
- Week 8: Assignment Solution
- Week 9: Assignment Solution
- Week 10: Assignment Solution
- Week 11: Assignment Solution
- Week 12: Assignment Solution
NOTE: You can check your answer immediately by clicking show answer button. Moreover, this set of “Advanced Distributed Sytem NPTEL Week 6 Solutions” contains 10 questions.
Now, start attempting the quiz.
Advanced Distributed System NPTEL Week 6 Solutions
Q1. Consider, P1 and P2 , to be two proposals in the Paxos algorithm. If P1 < P2 and both succeed, then what can be said about the values chosen?
a) They choose the same value.
b) The value chosen by P1 is greater than the value chosen by P2.
c) The value chosen by P2 is greater than the value chosen by P1.
d) Can’t say.
Answer: a) They choose the same value.
Q2. Which of the following consensus algorithms does NOT always guarantee consensus?
a) Paxos
b) Raft
c) Both Paxos and Raft
d) Neither Paxos not Raft
Answer: c) Both Paxos and Raft
Q3. In the Paxos Algorithm, a node can be a _________ and ___________ at the same time.
a) proposer, learner
b) proposer, acceptor
c) learner, acceptor
d) learner, leader
Answer: b) proposer, acceptor
Q4. Which of the following statement(s) is/are true about the Paxos algorithm?
a) An acceptor does not know the number of proposals in the system.
b) Different acceptors could accept different proposals.
c) An acceptor needs to accept multiple proposals.
d) All of these
Answer: d) All of these
Q5. What problem does Paxos solve in a distributed system?
a) Achieving clock synchronization.
b) Ensuring fault tolerance.
c) Coordinating nodes to agree on a single value.
d) Load balancing between nodes.
Answer: c) Coordinating nodes to agree on a single value.
Q6. In the Paxos Algorithm, what does the “quorum” refer to?
a) The total number of nodes in the network.
b) A majority of the nodes needed to achieve consensus.
c) A subset of nodes that never participate in consensus.
d) The role responsible for sending the messages.
Answer: b) A majority of the nodes needed to achieve consensus.
Q7. Which of the following is not a valid server state in the Raft consensus protocol?
a) Follower
b) Candidate
c) Leader
d) Worker
Answer: d) Worker
Q8. Consider the following statements about the Raft protocol:
S1: Each term starts with a leader election.
S2: Each server stores the current term number.
a) S1 is true; S2 is false.
b) S1 is false; S2 is true.
c) Both S1 and S2 are true.
d) Both S1 and S2 are false.
Answer: c) Both S1 and S2 are true.
Q9. In the Raft protocol, a log entry is committed once the ___________ has replicated it on a majority of servers.
a) leader
b) follower
c) candidate
d) worker
Answer: a) leader
Q10. What happens if a leader finds out about another leader or a server with a higher term id in the Raft Cluster?
a) Former leader becomes a follower.
b) Former leader becomes a candidate.
c) Former leader stays the leader and the latter one becomes a follower.
d) The latter leader becomes a candidate.
Answer: a) Former leader becomes a follower.
>> Prev- Advance Distributed System Week 5 Assignment Solutions
>> Next- Advance Distributed System Week 7 Assignment Solutions
DISCLAIMER: Use these answers only for the reference purpose. Quizermania doesn't claim these answers to be 100% correct. So, make sure you submit your assignments on the basis of your knowledge.
For discussion about any question, join the below