DSA621S - DISTRIBUTED SYSTEMS AND APPLICATIONS - 2ND OPP - JAN 2025


DSA621S - DISTRIBUTED SYSTEMS AND APPLICATIONS - 2ND OPP - JAN 2025



1 Page 1

▲back to top


nAmlBIA unlVERSITY
OF SCIEnCE Ano TECHnOLOGY
FACULTY OF COMPUTING AND INFORMATICS
DEPARTMENTOF SOFTWAREENGINEERING
QUALIFICATION: BACHELOROF COMPUTERSCIENCE
QUALIFICATION CODE: 07BCMS, 07BAIT
COURSE:DISTRIBUTEDSYSTEMSAND APPLICATIONS
DATE: JANUARY2025
DURATION: 3 HRS
LEVEL:6
COURSECODE: DSA612S
PAPER:THEORY
MARKS: 70
SUPPLEMENTARY/ SECONDOPPORTUNITYEXAMINATION QUESTION PAPER
EXAMINER(S)
Ms. NDINELAGO NASHANDI
MODERATOR:
PROFJOSEQUENUM
THIS QUESTION PAPERCONSISTSOF 6 PAGES
(Including this front page)

2 Page 2

▲back to top


INSTRUCTIONS TO STUDENTS:
1. Read all the questions, passages, scenarios, etc., carefully before answering.
2. Answer all the questions.
3. Number each answer clearly and correctly.
4. Write neatly and legibly.
5. Making use of any crib notes may lead to disqualification and disciplinary action.
6. Use the allocated marks as a guideline when answering questions.
7. Looking at other students' work is strictly prohibited.
8. This paper consists of six (6) pages including the cover page.
Page 1 of 6

3 Page 3

▲back to top


SECTION A: 10 marks
Multiple Choice questions (select the correct letter)
1.
Global Position System (GPS} satellites use the Network Time Protocol (NTP) to
keep their clocks synchronized.
A. False
B. True
2.
Which of the following is the primary method for communication between
processes in a distributed system?
A. Shared database
8. Network sockets
c. Message passing
o. Direct memory access
3.
What does 'consistency' refer to in the context of distributed systems?
A. The uptime of nodes in the network
8. All nodes seeing the same data at the same time
c. The uniformity of code across nodes
o. The geographical distribution of nodes
4.
Which of the following is a common challenge in distributed systems?
A. Limited ability to handle multiple data types
8. Increased security risks
c. Dependency on internet connectivity
o. Reduced performance due to system distribution
s. In distributed systems, what is the principle of transparency?
A. The complexities of the system are hidden from the user.
B. Nodes can transparently transmit data to each other.
C. All transactions are open for public audit.
D. Systems are transparently interchangeable.
Page2 of 6

4 Page 4

▲back to top


6. Vector Timestamp Ordering Algorithm is an example of-
A. Centralized Mutual Exclusion
B. Distributed Mutual Exclusion
C. Physical Clock Synchronization
D. Logical Clock Synchronization
7. Which of the following is a common method for achieving fault tolerance in
distributed systems?
A. Prioritizing tasks
B. Increasing server processing power
C. Client-side caching
D. Replicating data across multiple machines
8. An RPC(remote procedure call) is initiated by the ___ _
A. server
B. client
C. client after the server
D. a third party
9. We define the clock drift as ...
A. The difference in time between two clocks.
B. The interval between consecutive clock synchronization events.
C. The adjustment required to align a clock with the average time.
D. The rate at which a clock's time gradually deviates from the true time.
10. Which among the following is the duties of the Data Nodes
A. Manage file system namespace
B. Stores meta-data
C. Regulates client's access to files
D. Perform read-write operation as per request for the clients
Page 3 of 6

5 Page 5

▲back to top


SECTION B: 38 marks
1. Explain the caching model used in a Distributed File System (DFS)and describe the common
cache update policies. What are the key benefits and potential disadvantages of
implementing caching in a DFS?[12 marks]
2. Present the architecture of a Google File System (GFS)and explain how a client read
operation is performed in GFS.[ 10 marks]
3. Explain how Google File System handles a node failure? (4 marks]
4. Define the publish/subscribe communication paradigm. In your explanation, discuss the roles
of publishers, subscribers, and message brokers, as well as how this model differs from
traditional client-server communication. Provide two examples of real-world applications
where the publish/subscribe model is commonly used. (8 marks]
5. Differentiate between subscription flooding and filter-based event routing models in a
publish-subscribe system. [4 marks]
Page 4 of 6

6 Page 6

▲back to top


SECTIONC: 22 marks
Answer all the questions in the provided booklet.
The section consists of 3 questions.
1. Briefly explain the difference between logical and physical clocks. Why it is difficult
to synchronize physical clock? [2+3 Marks]
2. Outline three techniques for synchronizing physical clocks. [9 marks]
3. Consider the following event diagram for processes Pl, P2 and P3 executing in a
distributed system. Compute the time stamps that is carried on each message.
Pl
P2
P3
Assume that initial logical clock values are all initialized to Oas follows (0,0,0) hence
vector for Pl-----> P3: (1, 0, O)
P2-----> P3: _________
_
P3------>P2: _________
_
P1------>P2: _________
_
P2------>P1: _________
_
[8 points]
**************************** Endof the Paper***********************************
Page 5 of 6