




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































Question 1. Which characteristic is not typical of a distributed system? A) Lack of a global clock B) Independent failures C) Centralized control D) Heterogeneity Answer: C Explanation: Distributed systems are characterized by decentralization, meaning control is spread among multiple nodes, unlike centralized control. Question 2. Which of the following is a primary advantage of distributed systems over centralized systems? A) Single point of failure B) Improved scalability C) Reduced complexity D) Limited heterogeneity Answer: B Explanation: Distributed systems enhance scalability by allowing the system to expand horizontally, adding more nodes as needed.
Question 3. Which example best illustrates a peer-to-peer system? A) Client-server web application B) Distributed database C) BitTorrent file sharing D) Cloud IaaS platform Answer: C Explanation: BitTorrent is a classic peer-to-peer system where peers share files directly without relying on a central server. Question 4. In the context of distributed systems, transparency does not include which of the following? A) Access transparency B) Location transparency C) Failure transparency D) Single-threaded execution Answer: D Explanation: Transparency aims to hide complexity such as access, location, and failures; single-threaded execution is unrelated to transparency.
Question 7. Which variation of the client-server model introduces multiple layers of servers? A) Peer-to-peer model B) Three-tier architecture C) Distributed hash table D) Event-driven model Answer: B Explanation: The three-tier architecture adds an intermediate layer (e.g., application server) between client and data server to improve modularity. Question 8. In a peer-to-peer system, what is a Distributed Hash Table (DHT) primarily used for? A) Routing messages efficiently B) Managing distributed transactions C) Organizing nodes for data lookup D) Ensuring security Answer: C Explanation: DHTs organize nodes in a peer-to-peer network to facilitate efficient data lookup and retrieval.
Question 9. Which failure type in distributed systems occurs when a node stops functioning unexpectedly? A) Byzantine failure B) Omission failure C) Crash failure D) Timing failure Answer: C Explanation: Crash failures happen when a node stops executing operations unexpectedly. Question 10. Which communication paradigm involves processes exchanging messages explicitly? A) Remote Procedure Call (RPC) B) Message passing C) Shared memory D) Event-driven programming Answer: B Explanation: Message passing involves processes explicitly sending and receiving messages for communication.
Question 13. Which mechanism allows a client to invoke procedures on a remote server transparently? A) Remote Procedure Call (RPC) B) Distributed locking C) Gossip protocol D) Distributed hash table Answer: A Explanation: RPC enables clients to invoke procedures on remote servers as if they were local, providing transparency. Question 14. Which of the following is not a typical parameter-passing semantics in RPC? A) Exactly-once B) At-most-once C) At-least-once D) Always-once Answer: D Explanation: "Always-once" is not a standard semantics; the typical ones are exactly-once, at-most-once, and at-least-once.
Question 15. In Java RMI, the primary concept that enables remote object invocation is: A) Stub and skeleton B) Remote stub C) Proxy object D) Remote method dispatcher Answer: A Explanation: Java RMI uses stubs and skeletons to enable method invocation on remote objects transparently. Question 16. Which communication model involves components subscribing to events and being notified asynchronously? A) Request-response B) Publish-subscribe C) RPC D) Shared memory Answer: B Explanation: The publish-subscribe model allows components to subscribe to events and receive notifications asynchronously.
Question 19. Which relation defines that event A happened before event B in distributed systems? A) Causal relation B) Concurrent relation C) Logical relation D) Transitive relation Answer: A Explanation: The happened-before relation, introduced by Lamport, defines causal order between events. Question 20. Which algorithm is not used for leader election in distributed systems? A) Bully algorithm B) Ring algorithm C) Ricart-Agrawala algorithm D) Paxos Answer: C Explanation: Ricart-Agrawala is a mutual exclusion algorithm, not a leader election algorithm.
Question 21. The FLP impossibility result states that: A) Distributed consensus cannot be reached in asynchronous systems with even one faulty process B) Distributed deadlocks are undecidable C) Consensus is impossible in synchronous systems D) Fault tolerance is unachievable in distributed systems Answer: A Explanation: FLP proves that achieving deterministic consensus in an asynchronous system with even one faulty process is impossible. Question 22. Which consensus algorithm is most fault-tolerant and widely used in distributed systems? A) Two-Phase Commit B) Paxos C) Bully algorithm D) Ricart-Agrawala Answer: B Explanation: Paxos is designed to achieve consensus in the presence of faults, making it highly fault-tolerant.
Question 25. In DFS, what is the primary purpose of name resolution? A) Securing file access B) Mapping file names to locations C) Managing user permissions D) Synchronizing file replicas Answer: B Explanation: Name resolution maps human-readable file names to their physical locations or identifiers. Question 26. Which consistency model guarantees that all replicas see the same sequence of updates? A) Eventual consistency B) Causal consistency C) Strong consistency D) Weak consistency Answer: C Explanation: Strong consistency ensures all replicas reflect the same state after updates.
Question 27. Which is not a typical reason for implementing replication in distributed systems? A) Fault tolerance B) Increased latency C) Improved availability D) Performance enhancement Answer: B Explanation: Replication generally reduces latency and improves availability, not increases it. Question 28. Which consistency model allows updates to propagate asynchronously, leading to temporary divergence among replicas? A) Strong consistency B) Eventual consistency C) Sequential consistency D) Causal consistency Answer: B Explanation: Eventual consistency permits temporary divergence with eventual convergence.
Explanation: Heterogeneity is not an ACID property; ACID focuses on transaction reliability. Question 31. Which concurrency control method involves acquiring locks before accessing data? A) Optimistic concurrency control B) Two-Phase Locking (2PL) C) Timestamp ordering D) Multi-Version Concurrency Control (MVCC) Answer: B Explanation: Two-Phase Locking involves locking data items before access to ensure serializability. Question 32. Which technique is used to recover a distributed system from failures using logs and checkpoints? A) Rollback recovery B) Forward recovery C) Checkpointing D) Both A and C
Answer: D Explanation: Both rollback recovery and checkpointing are used together to restore system state after failures. Question 33. Which type of fault detector is ideal but often impractical in real-world distributed systems? A) Strong failure detector B) Weak failure detector C) Perfect failure detector D) Probabilistic failure detector Answer: C Explanation: A perfect failure detector always correctly detects failures but is often impractical due to network delays. Question 34. Which approach to fault tolerance involves replicating a system's state machine across multiple nodes? A) Primary-backup B) Quorum-based C) State machine replication
Answer: B Explanation: IaaS provides virtualized hardware resources like servers, storage, and networking. Question 37. Which technology enables containerized deployment in cloud environments? A) Hypervisors B) Docker C) RAID D) SOAP Answer: B Explanation: Docker allows containerization, enabling lightweight, portable application deployment. Question 38. In the MapReduce paradigm, what is the primary purpose of the "reduce" phase? A) Distribute data across nodes B) Process and aggregate intermediate data C) Store data in distributed storage
D) Handle data input/output Answer: B Explanation: The reduce phase processes intermediate data generated by mappers and combines results. Question 39. Which distributed storage system is not primarily designed for big data applications? A) HDFS B) Amazon S C) RAID D) Ceph Answer: C Explanation: RAID is a local storage technology, not a distributed storage system for big data. Question 40. Blockchain technology is best described as a: A) Centralized ledger B) Decentralized, immutable distributed ledger C) Distributed hash table