📝 Distributed operating systems (31 MCQs)
Unified Operating System Services Across Multiple Machines
A distributed operating system manages a collection of networked computers and aims to make their resources appear as one coordinated computing environment. It integrates communication, process management, resource allocation, and sometimes file management across nodes. Distribution is largely hidden from users and applications through transparency mechanisms, although the system must still handle independent failures and network delays.
Why Distributed Resources Need Coordinated Management
Independent computers provide processing and storage capacity, but separate administration can make resource use and application development difficult. A distributed operating system coordinates these machines so tasks and resources can be accessed through common services. It must manage concurrency and communication despite the absence of one shared physical memory or clock.
Process Distribution and Transparent Resource Access
The system accepts a task, identifies suitable nodes, and schedules work across available processors. Nodes communicate through message passing and coordinate shared services. Naming and file abstractions hide physical locations where possible, while failure detection and recovery handle unavailable machines. The system must preserve correct execution when messages are delayed or lost.
Example of a Distributed Computing Environment
A user starts an application that requires data stored on another node and processing capacity available elsewhere. The distributed operating system locates the data, allocates computation, and coordinates communication between nodes. The user interacts through a common interface without manually managing each computer's physical location.
Transparency, Scalability and Implementation Complexity
Distributed operating systems can improve resource sharing, workload distribution, and system-wide usability. Their design is complicated by network partitions, partial failures, security boundaries, and consistency requirements. Complete transparency is not always practical because remote access has different latency and failure behaviour from local operations.
Misconceptions About Distributed Operating Systems
'A distributed OS requires one physical processor' is false because it coordinates several machines. 'All nodes share one physical memory' ignores message-based communication and distributed memory. 'Transparency means failures are impossible to observe' is incorrect because networks and remote services can still fail visibly.
Exam Focus: Distributed OS Architecture and Transparency
Compare a distributed operating system with a network operating system. Explain how resource management, process distribution, naming, and transparency work across nodes. Questions may ask how a remote resource appears to an application or why partial failures make distributed coordination more difficult than local operating system management.
Key Terms of Distributed Operating Systems
- Distributed OS - Coordinates several machines as one environment.
- Transparency - Hides selected distribution details.
- Node - Individual computer in the system.
- Partial failure - Failure of some components only.
- Resource allocation - Assigning work and resources across nodes.
📝 All Distributed operating systems MCQs
Q1. A distributed system loses communication with Site X. Which sequence of actions correctly restores correct operation according to fault‑tolerance principles?
📖 Explanation: Option B is correct because fault‑tolerant distributed systems must first detect a site failure, cease relying on its services, and, if possible, transfer the failed site’s responsibilities to another operational site. After the failed site is repaired, its state must be synchronized before it re‑joins, ensuring consistency. Option A ignores failure detection and synchronization, leading to inconsistent state. Option C incorrectly assumes services can be used while offline. Option D needlessly halts the whole system, wasting resources. This sequence mirrors real‑world recovery procedures.
Q2. A company wants to guarantee that any single site failure does not disrupt file access. Which redundancy strategy best meets this requirement while minimizing extra hardware?
📖 Explanation: Option D is correct because erasure coding spreads fragments so that the loss of any one site still leaves enough information on the remaining sites to rebuild the original file, providing fault tolerance with less storage overhead than full duplication. Option A leaves the backup server idle, causing delay when it must be powered on. Option B doubles storage cost without additional benefit. Option C protects only against disk failures, not whole‑site outages. Thus D balances resilience and hardware efficiency, matching real‑world redundancy needs.
Q3. An organization is deciding between a traditional mainframe and a distributed network of workstations for a high‑throughput transaction system. Which statement most accurately reflects the trade‑off they must consider?
📖 Explanation: Option B captures the essential trade‑off: mainframes excel at centralized, high‑speed processing, yet a well‑designed distributed cluster can match that throughput while adding redundancy and the ability to grow by adding nodes. Option A is false because latency depends on network conditions, not just proximity. Option C is incorrect; distributed systems routinely implement RPC. Option D misstates cost trends, as mainframes typically involve higher acquisition and maintenance expenses. Understanding this balance helps managers choose the architecture that aligns with performance, reliability, and budget goals.
Q4. Why is rapid detection of a site failure essential in a distributed operating system that provides redundant services?
📖 Explanation: Option B is correct because quick detection lets the system promptly redirect work to healthy sites, preserving availability and minimizing user impact. Option A is counterproductive, as shutting down healthy sites reduces overall capacity. Option C ignores the need for system‑wide consistency; a failed site cannot safely continue processing. Option D is unrealistic—some messages may be lost during a failure, and protocols must handle such loss. Rapid detection therefore underpins the fault‑tolerance mechanisms that keep distributed services running smoothly.
Q5. How does low‑level message passing in a distributed system enable higher‑level services such as remote procedure calls (RPC) and file transfer?
📖 Explanation: Option A is correct because message passing provides a basic, reliable way to exchange data between nodes, and higher‑level protocols like RPC and file transfer are constructed by layering additional semantics on this primitive. Option B is false; encryption is a separate concern. Option C misrepresents the role of OS services, which remain necessary for resource management. Option D is inaccurate because message passing can be asynchronous; synchronous communication is not a prerequisite for file transfer. Recognizing this layering explains how complex distributed functionalities are built from simple message exchanges.
Q6. A company needs to move user files from an old server to a new one while keeping user downtime as short as possible. Which migration step best achieves this goal?
📖 Explanation: Incremental synchronization after the initial bulk copy lets the bulk transfer happen during off‑peak hours and then only the changed files are moved later, reducing the window when users cannot access their data. Shutting down the old server (B) would increase downtime, unsecured FTP (C) risks data loss, and deleting old data before verification (D) can cause irreversible errors. By using an incremental approach, the organization maintains service continuity and can quickly roll back if problems appear, which aligns with best practices for minimizing disruption during data migration.
Q7. What is the most accurate definition of data migration in an IT environment?
📖 Explanation: Data migration refers to the systematic transfer of information from one storage medium, format, or computer system to another, typically to improve performance, consolidate resources, or replace legacy hardware. Option A describes backup, which preserves copies rather than moving the primary dataset. Option C focuses on encryption, a security measure unrelated to relocation. Option D suggests discarding data, which is the opposite of migration. Therefore, the correct choice captures the core activity of relocating data while maintaining its accessibility and integrity in the new environment.
Q8. Why is data validation considered a critical step after completing a migration?
📖 Explanation: Validation checks compare source and target datasets to confirm that every record, field, and relationship survived the transfer unchanged, which is essential for maintaining trustworthy operations. Enhancing network speed (A) is unrelated to post‑migration checks, and reducing storage cost (B) or increasing user count (C) are outcomes that depend on correct data, not on the validation process itself. By detecting missing or corrupted records early, validation allows administrators to remediate errors before users rely on the new system, thereby protecting business continuity and data quality.
Q9. During a large‑scale data migration, a remote site becomes unreachable after half of the files have been transferred. Which strategy most effectively preserves progress while handling the failure?
📖 Explanation: Implementing checkpointing records the state of the transfer at defined intervals, so when the site recovers the process can resume from the last successful point instead of starting over. Aborting and rolling back (A) would waste the already transferred data, while continuing without verification (B) risks data loss or duplication. Ignoring the failure (D) could lead to inconsistent datasets across sites. Checkpointing balances efficiency and reliability, enabling administrators to maintain continuity and reduce overall migration time despite intermittent connectivity issues.
Q10. How does system redundancy influence planning for a data migration project?
📖 Explanation: Redundancy means that duplicate resources or data copies exist, so if a migration step fails, the original remains intact, allowing a safe rollback or retry without service interruption. This safety net lowers the risk profile and lets planners schedule migrations with confidence. Redundancy does not remove the necessity for thorough testing (B), nor does it automatically enable parallel migrations (C), which require additional coordination. While extra copies might add some overhead, the primary impact is improved resilience, not slower performance.
Q11. A company must transfer 5 TB of data over a network that provides a sustained 200 Mbps throughput. Ignoring protocol overhead, approximately how many hours will the bulk transfer require?
📖 Explanation: First convert 5 TB to bits: 5 TB × 8 = 40 Tb (terabits). Dividing by the 200 Mbps link gives 40 Tb / 0.2 Gbps = 200 000 seconds. Converting seconds to hours (200 000 ÷ 3600) yields about 55.6 hours, which rounds to roughly 55 hours. Option B matches this estimate. The other choices either underestimate or overestimate the time by factors of two or four, reflecting common miscalculations such as ignoring the bit‑to‑byte conversion or using incorrect unit scales. Accurate timing helps schedule migrations to minimize impact on business operations.
Q12. In a multi‑site data migration that uses a two‑phase commit protocol, what is the primary responsibility of the coordinator node?
📖 Explanation: The coordinator orchestrates the two‑phase commit by first asking each participant to prepare and report readiness (vote). Based on unanimous readiness, it then issues a commit command; if any participant signals a problem, it sends an abort. This central decision ensures atomicity across distributed sites. Writing data locally (A) is the participant’s task, and validation after commit (B) is not part of the protocol’s decision phase. Replication (C) may occur separately but does not define the coordinator’s role in the commit process. Proper coordination prevents partial migrations that could corrupt the system.
Q13. Why is incremental data migration often preferred over a single, full‑scale migration in distributed environments?
📖 Explanation: Incremental migration moves only changed or new data after an initial baseline copy, letting the original system stay online and users continue their work, which dramatically cuts downtime. It also confines any errors to smaller batches, making troubleshooting easier and reducing the chance of a catastrophic failure. The approach does not inherently reduce the amount of storage needed (B), nor does it remove the necessity for thorough testing (C). While network usage may be spread over time, the primary advantage is operational continuity and risk mitigation, essential for large, geographically dispersed systems.
Q14. What is computation migration in a distributed operating system?
📖 Explanation: The correct answer is B because computation migration refers to moving the execution context of a running process—including its registers, memory pages, and open resources—from one node to another so that it can continue without interruption. Option A describes data backup, not process movement. Option C talks about user account replication, which is unrelated. Option D mentions decompilation, which is a debugging activity. Understanding this definition is key to recognizing how distributed systems keep applications alive across different hardware.
Q15. Why must a distributed system detect the failure of a site before migrating its functions?
📖 Explanation: The correct answer is D because detecting a site failure before migrating its functions prevents the same computation from running on both the failed and a healthy site, which could cause inconsistent results or duplicated work. Option A is wrong; a failed site cannot reliably send messages. Option B misinterprets detection as a means to maximize bandwidth, which is unrelated to correctness. Option C confuses failure detection with load‑balancing decisions. Accurate failure detection is essential for maintaining system integrity during migration.
Q16. How does computation migration contribute to fault tolerance in a distributed environment?
📖 Explanation: The correct answer is C. By moving the computation to a node that is still operational, the system preserves the service the computation provides, thereby contributing to fault tolerance. Option A suggests disabling the node, which does not help the computation continue. Option B describes replication, which is a different fault‑tolerance technique and incurs higher overhead. Option D is irrelevant because converting a computation to a static file does not keep it running. Migration thus enables the system to survive individual node failures.
Q17. When a previously failed site rejoins the system, what mechanism is essential for smooth reintegration?
📖 Explanation: The correct answer is A. A handshake or similar synchronization protocol allows the rejoining site to exchange its current state, update routing and resource tables, and confirm that its data is consistent with the rest of the system, ensuring a smooth reintegration. Option B would risk assigning tasks to a node that may still be unstable. Option C unnecessarily shuts down the node, defeating the purpose of reintegration. Option D deletes valuable data, which could cause loss of information. Proper synchronization is therefore critical when a previously failed site returns.
Q18. A site fails while running a transaction that has partially updated a database. Which migration strategy best ensures consistency?
📖 Explanation: The correct answer is A. Suspending the transaction, migrating its partial state to a healthy node, and then resuming preserves the work already done while maintaining atomicity and consistency of the transaction. Option B aborts the work, causing loss of the completed portion and requiring a full restart. Option C assumes the failed site will recover, which is unsafe for critical data. Option D creates duplicate work, risking conflicts and violating transaction isolation. By moving the in‑progress state, the system ensures that the transaction can finish correctly on the new site.
Q19. A cluster experiences uneven load, with Node 3 at 90% CPU while Node 5 is idle. Which computation migration technique should the scheduler employ?
📖 Explanation: The correct answer is B because moving only the high‑CPU processes from the overloaded Node 3 to the idle Node 5 balances the load without disturbing other system services, reducing overall response time. Option A is unrealistic; transferring an entire operating system is unnecessary and disruptive. Option C would halt all work on Node 3, causing downtime. Option D merely speeds up Node 3 but does not address the imbalance. Selective process migration is the standard technique for dynamic load balancing in distributed environments.
Q20. An image‑processing job consists of three stages: preprocessing (Stage 1), filtering (Stage 2), and rendering (Stage 3). The job starts on Node X, but Node X fails after completing Stage 1. Which migration plan minimizes total execution time?
📖 Explanation: The correct answer is B. By transferring only the state needed for Stage 2 and Stage 3 to Node Y, the system can resume processing from the point where the failure occurred, avoiding the cost of re‑executing Stage 1. Option A would restart the whole job, incurring unnecessary work. Option C assumes Node X will recover to redo Stage 2, which may delay completion. Option D discards the partially finished work, wasting resources. Migrating the remaining stages preserves the work already done and minimizes total execution time.
Q21. A remote procedure call (RPC) is in progress between Client C on Site 1 and Server S on Site 2. Mid‑execution, Site 2 experiences a hardware fault. Which approach ensures the RPC completes correctly?
📖 Explanation: The correct answer is B. Migrating the server process together with the current RPC state to a backup server on Site 3 allows the call to continue where it left off, preserving both client expectations and server progress. Option A forces the client to restart, which may be unacceptable for long‑running calls. Option C redirects the client but loses the in‑progress state, leading to incorrect results. Option D ignores the fault, risking loss of the RPC. State‑ful migration therefore ensures the RPC completes correctly despite the hardware failure.
Q22. What is process migration in distributed operating systems?
📖 Explanation: Process migration means moving the complete execution context—code, memory, registers, and open resources—of a running process from one machine to another so that it resumes execution without restarting. Option A describes this accurately. Options B and C describe file transfer and shutdown, which are unrelated actions. Option D suggests no movement, which contradicts the definition. Understanding this core concept is essential for grasping how distributed systems maintain flexibility and resilience.
Q23. A company wants to free up CPU capacity on Site A by moving a low‑priority process to Site B, which has idle resources. Which outcome best describes the effect of this migration?
📖 Explanation: Moving the process to an under‑utilized site directly reduces the load on the original node while allowing the process to continue running, which is described in option A. Option B incorrectly assumes the migration cost always exceeds benefits; option C suggests the process ends, which is not the goal of migration; option D implies copying without termination, which would waste resources. This scenario illustrates the practical advantage of migration for load management.
Q24. Why must a distributed system reliably detect a site failure before migrating its processes?
📖 Explanation: Detecting failures first ensures that migration decisions are based on accurate system state, preventing attempts to move processes to a node that cannot accept them. Option A misstates the purpose; detection prevents sending to unavailable nodes, not the other way around. Option C is unrelated to failure detection, and option D concerns security, not fault handling. Correct detection underpins safe migration, preserving continuity and preventing wasted effort.
Q25. How does process migration contribute to load balancing across sites in a distributed system?
📖 Explanation: Load balancing is achieved by moving processes from heavily loaded nodes to those with spare capacity, as described in option A. Duplicating processes (option B) would increase load, while shutting down processes (option C) reduces functionality. Encrypting data (option D) is a security measure, not a balancing technique. Understanding this relationship clarifies why migration is a key tool for distributing workload evenly.
Q26. Three sites have CPU utilizations of 80 %, 30 %, and 20 %. A process requiring 25 % CPU is running on the 80 % site. Which migration decision best balances the load?
📖 Explanation: Transferring the process to the site with 30 % utilization (option A) results in loads of 55 % and 55 % on the two sites, achieving a more even distribution than moving it to the 20 % site, which would create a 105 % overload. Keeping it (option C) leaves the original site overloaded, and termination (option D) defeats the purpose of migration. This analysis shows how migration decisions are guided by quantitative load data.
Q27. After a failed site recovers, what steps should a system take to reintegrate processes that were migrated away?
📖 Explanation: When a site comes back online, the system typically informs it of its status (option A) and may decide to move processes back based on current load, but it does not automatically revert all migrations. Ignoring the site (option B) would be a mistake; however, the correct answer reflects the need for a deliberate decision rather than forced reintegration. Options C and D would waste resources or cause inconsistency. This scenario highlights the careful coordination required after recovery.
Q28. What is the relationship between process migration and fault tolerance in distributed systems?
📖 Explanation: By moving processes off nodes that are showing signs of failure, the system can continue operation without interruption, which directly improves fault tolerance. Option B incorrectly claims vulnerability, while option C denies the benefit, and option D overstates migration as a substitute for redundancy. Recognizing this link helps students see migration as a proactive strategy for maintaining service continuity.
Q29. In systems supporting both pre‑copy and post‑copy migration, under which condition is pre‑copy generally preferred?
📖 Explanation: Pre‑copy migration copies memory pages before the process stops, requiring sufficient bandwidth; however, when the destination node has ample memory (option D), the overhead of copying can be managed efficiently, making pre‑copy advantageous. Low bandwidth (option A) favors post‑copy to reduce data transfer before suspension. Options B and C describe unrelated scenarios. Understanding these trade‑offs guides system designers in selecting the appropriate migration technique.
Q30. A process with 2 GB of memory needs to be moved over a 100 Mbps link. Which migration technique minimizes downtime?
📖 Explanation: Post‑copy migration transfers execution state first, then streams memory pages, allowing the process to resume quickly on the destination, thus minimizing downtime. Pre‑copy (option A) would require multiple rounds of copying, extending pause time. Incremental checkpointing (option C) adds overhead, and cold migration (option D) involves stopping the process entirely, leading to the longest interruption. Selecting the technique that reduces pause is crucial for time‑sensitive applications.
Q31. A node will be taken offline for a hardware upgrade. Which sequence best ensures minimal service interruption using process migration?
📖 Explanation: The optimal approach is to first migrate essential processes to healthy nodes, perform the upgrade without affecting active workloads, and later move processes back if desired. This sequence (option A) maintains continuity. Shutting down without migration (option B) would cause downtime. Duplicating processes (option C) wastes resources, and ignoring migration (option D) relies solely on redundancy, which may not cover all services. This plan demonstrates practical use of migration for planned maintenance.