International University of East Africa Crest

International University of East Africa

IUEA

"Learning to Succeed" Β· Learning to Succeed

Portal
Autonomous Institutional Intelligence & Predictive Exam Vault

Curriculum & Examination Intelligence

Calibrated against International University of East Africa's official course unit rubrics, past paper repositories (ROR ID: 02kj9vk28), and professor examination vectors.

Est. Year 2010
Campus Kampala, Uganda
Term System Trimester
Verified Benchmarks:

Mock Exam Paper 1: Core High-Yield Standard (IUEA)

Confidence: 96% Probability Β· Standard ISO 216 A4 Rubric

INSTRUCTIONS TO CANDIDATES: Answer QUESTION ONE in Section A (Compulsory 30 Marks) and any THREE questions from Section B (20 Marks each). All step-by-step derivations, proof steps, and diagrams must be shown. Examiner: Prof. Emeka Akaezuwa.
Section A (Compulsory)

Contrast Lamport Logical Clocks with Vector Clocks in Distributed Systems & Concurrency. Prove mathematically why $L(e) < L(e')$ does NOT strictly imply that event $e$ causally happened before $e'$ in a Lamport clock system, whereas Vector Clocks guarantee causal equivalence ($a \to b \iff V(a) < V(b)$).

15 Marks 96% Yield
View Official Marking Scheme & Model Solution
### Model Solution (15 Marks): 1. **Lamport Monotonicity**: If $e \to e'$, then $L(e) < L(e')$. However, the converse does not hold for concurrent events $a \parallel b$. 2. **Vector Clock Causality Guarantee**: Vector clock partial order $V(a) \le V(b)$ holds iff $\forall k, V(a)[k] \le V(b)[k]$ and $\exists k, V(a)[k] < V(b)[k]$. Hence $a \to b \iff V(a) < V(b)$.
Section A (Compulsory)

In the Raft Consensus Protocol, explain how Leader Election prevents split-vote stagnation. What invariant ensures that a newly elected Leader contains all committed log entries from prior terms without rollbacks?

15 Marks 94% Yield
View Official Marking Scheme & Model Solution
### Model Solution (15 Marks): 1. **Randomized Election Timeouts**: Staggered intervals (150ms-300ms) prevent simultaneous candidate declarations. 2. **Leader Completeness Invariant**: Voters reject candidates whose logs are less up-to-date than their own. Since committed entries reside on a majority quorum, any elected leader must overlap with at least one node containing the latest committed log entry.
Section B (Question 2)

Given a distributed transaction across 3 database partitions, construct the message sequence under Two-Phase Commit (2PC). Explain why 2PC is a blocking protocol under coordinator crash.

20 Marks 90% Yield
View Official Marking Scheme & Model Solution
### Model Solution (20 Marks): 1. **Phase 1 (Prepare)**: Coordinator sends PREPARE; cohorts write to WAL and reply VOTE_COMMIT or VOTE_ABORT. 2. **Phase 2 (Commit)**: Coordinator broadcasts GLOBAL_COMMIT; cohorts commit and reply ACK. 3. **Blocking Impossibility**: If coordinator crashes after cohorts vote commit but before broadcasting outcome, cohorts remain blocked holding locks indefinitely.
Section B (Question 3)

State and prove the Byzantine Agreement impossibility bound $N \ge 3f + 1$. Explain why consensus is mathematically impossible in a 3-node system with 1 traitor ($N=3, f=1$).

20 Marks 87% Yield
View Official Marking Scheme & Model Solution
### Model Solution (20 Marks): 1. In a 3-node system (Commander C, Lieutenants L1, L2), if C sends ATTACK to L1 and RETREAT to L2, L1 cannot distinguish whether C is lying or L2 is lying. 2. Hence, no deterministic protocol can resolve Byzantine agreement when $N \le 3f$. Resilient consensus strictly requires $N > 3f$.

Multi-Cycle Recurrence Matrix

Cross-analyzed across 5 consecutive academic examination cycles.

Consensus Protocols (Paxos, Raft, 2PC) Recorded in Cycles: 2022, 2023, 2024
96% Recurrence Definite (96%)
Logical Clocks & Causality (Lamport, Vector) Recorded in Cycles: 2021, 2023, 2024
92% Recurrence Very High (92%)
CAP Theorem & Consistency Models Recorded in Cycles: 2022, 2024
88% Recurrence High (88%)
Byzantine Fault Tolerance & State Machines Recorded in Cycles: 2023, 2024
83% Recurrence High (83%)

Faculty & Chief Examiners

Examiners & module leaders presiding over course units.

A

Prof. Emeka Akaezuwa

Vice Chancellor

Artificial Intelligence & Educational Innovation
P

Dr. Chinedu Pascal

Head of Computing

Software Architecture

Revision Checklist (VoltrixDB)

Track high-yield mastery before sitting for the exam.

Verified ROR: 02kj9vk28
Voltrix OS