📝 Redirectors and servers in Window 7 (26 MCQs)
Redirecting Remote Resource Requests in Windows
Windows redirectors allow applications to access remote files and other network resources through familiar local interfaces. A redirector intercepts or handles requests for network paths and sends them to remote servers using protocols such as SMB. The server receives requests, checks permissions, performs operations on its local resources, and returns results to clients.
Why Remote Access Should Resemble Local File Operations
Applications are easier to develop when they can use standard file APIs for both local and remote resources. A redirector hides network protocol details and translates file operations into remote requests. However, remote resources still involve network latency, server availability, and different consistency behaviour from local storage.
SMB Redirector and Server Request Handling
The client redirector recognises a remote path and sends file operations through the SMB protocol. The remote server service processes requests against shared folders and applies authentication and access permissions. Results return to the redirector, which presents them through the normal Windows file operation interface.
Example of Opening a Shared Folder
A user opens a path such as \\\\SERVER\\Documents. The redirector sends the required SMB requests to SERVER. The server authenticates the user, checks share and filesystem permissions, and returns directory information. Windows presents the remote files through Explorer as an accessible network location.
Convenient Access and Network Dependency
Redirectors simplify application access to shared storage and support centralised file services. Network congestion, server failure, and authentication changes can interrupt operations. Caching can improve responsiveness but may affect consistency, while share permissions and NTFS permissions both influence whether a remote client can perform an operation.
Misconceptions About Windows Redirectors
'A redirector is the remote file server' reverses client and server roles. 'A mapped network drive stores files locally' is false because it commonly represents a remote share. 'Share permissions alone determine every remote file operation' ignores underlying NTFS permissions and their combined effective access.
Exam Focus: SMB Redirector and Server Roles
Trace a remote path through the redirector, SMB communication, server service, and local filesystem. Distinguish client redirection from server-side resource management. Questions may examine share and NTFS permissions, authentication, mapped drives, or why a network failure interrupts remote file access.
Key Terms of Windows Redirectors and Servers
- Redirector - Client component forwarding remote resource requests.
- SMB - Server Message Block protocol.
- Server service - Provides shared Windows resources.
- Network share - Resource published for remote access.
- Mapped drive - Drive letter representing a network resource.
📝 All Redirectors and servers in Window 7 MCQs
Q1. What does ALPC stand for?
📖 Explanation: Advanced Local Procedure Call is the correct expansion. The other options describe unrelated concepts: Asynchronous Local Process Communication is not a Windows term, Automatic Link Procedure Control refers to networking hardware, and Application Layer Protocol Converter is a generic term unrelated to Windows internals. Knowing the exact name helps administrators recognize the mechanism used for early‑boot communication and for services that cannot rely on RPC.
Q2. Why is ALPC preferred over RPC during the early stages of system boot?
📖 Explanation: ALPC is preferred because it can operate without the RPC runtime, which is not yet available during early boot. The other choices are inaccurate: ALPC does not inherently use less memory, it is not designed for network throughput (it works locally), and it does not automatically encrypt messages. Understanding this limitation explains why native services fall back to ALPC when RPC cannot be used.
Q3. Which of the following best describes the purpose of the three message‑passing techniques used when an ALPC channel is created?
📖 Explanation: The three techniques exist to support varying message sizes and performance trade‑offs, allowing the system to choose the most efficient method. They are not about security levels, network protocols, or eliminating copying entirely—only the third technique minimizes copying, while the first two involve some copying. Recognizing this helps developers select the appropriate technique for a given workload, improving system responsiveness.
Q4. A client needs to send a 40 KB request to a server using ALPC. Which technique will the system most likely use?
📖 Explanation: For a 40 KB request, which is below the threshold, the system normally chooses Technique 1, copying data via the port’s message queue. Technique 2 is reserved for larger messages, Technique 3 involves direct address‑space writes that are more complex, and there is no Technique 4. Selecting the correct technique ensures the request is delivered efficiently without unnecessary overhead.
Q5. A service must transfer a 200 KB file between processes. Which ALPC technique minimizes copying overhead?
📖 Explanation: When the payload exceeds the limit, Technique 2 is used because it creates a shared‑memory section, allowing the receiver to read the data directly without copying. Technique 1 would involve copying large amounts of data, which is inefficient. Technique 3 is reserved for special cases and is more complex to implement. There is no Technique 4 in ALPC. Understanding this choice helps developers design high‑performance inter‑process communication.
Q6. In an ALPC channel, a client sends a request and then waits for a reply, but the server also needs to send an unsolicited notification. Which feature enables this behavior?
📖 Explanation: The channel’s callback mechanism lets the client accept incoming requests while it is expecting a reply, enabling unsolicited notifications. A separate callback port is not part of the standard ALPC design, polling would waste CPU cycles, and priority boosting does not affect message flow. Recognizing the callback capability is essential for building responsive services that can both answer requests and push updates.
Q7. What is the primary trade‑off when choosing between copying messages (Technique 1) and using a shared‑memory section (Technique 2) in ALPC?
📖 Explanation: The central trade‑off is that copying is faster for small messages because the overhead of creating a shared section outweighs the benefit, whereas shared memory reduces copy overhead for large messages. It is not true that copying always uses less memory; both methods allocate buffers. Shared memory does not inherently improve security, and copying still requires synchronization to ensure data integrity. Knowing this helps system architects decide which technique best fits their workload.
Q8. A developer must decide which ALPC technique to use for a message that is exactly in size. Which technique should be selected?
📖 Explanation: Since the message size of exceeds the threshold for Technique 1, the system will choose Technique 2, creating a shared‑memory section to avoid copying large data. Technique 3 is reserved for special scenarios and is more complex, while there is no Technique 4 in ALPC. Selecting the correct technique avoids unnecessary copying and improves performance in real‑world inter‑process communication.
Q9. When a Windows service starts before the RPC subsystem is available, which communication mechanism does it use to interact with other components?
📖 Explanation: The service uses ALPC directly because RPC cannot be relied upon before the RPC subsystem is initialized. Named pipes and TCP/IP sockets are alternatives that involve network stacks, which are not yet ready. Waiting for RPC would delay service startup, potentially breaking dependencies. Understanding this fallback explains why early‑boot services can still communicate reliably.
Q10. How does the relationship between RPC and ALPC affect the design of Windows inter‑process communication?
📖 Explanation: ALPC is a lower‑level message‑passing mechanism that RPC may use as a transport, especially for local calls. It does not replace RPC for remote communication, nor are they unrelated; they complement each other. Recognizing this hierarchy helps developers choose the appropriate API based on locality and performance requirements.
Q11. A system administrator notices that a service fails to start because RPC is not yet initialized. Which of the following actions will most likely resolve the issue?
📖 Explanation: Increasing the RPC buffer does not address the core problem that the RPC subsystem itself is unavailable. The correct resolution is to configure the service to use ALPC directly, which operates without RPC. Switching to TCP/IP would still require RPC for certain operations, and disabling the dependency would not make the service functional. This solution aligns with how early‑boot services communicate.
Q12. During debugging, a developer observes three ports associated with an ALPC channel: a client port, a server port, and a callback port. Which statement best explains the role of the callback port?
📖 Explanation: The callback port does not store copies for auditing; its primary purpose is to allow the client to receive unsolicited messages while waiting for a reply. Establishing the initial connection uses the client and server ports, and encryption is handled by other mechanisms. Understanding the function of each port helps developers troubleshoot communication issues efficiently.
Q13. If a developer must transmit a message that is 70 KB in size, which ALPC technique should be chosen to avoid copying overhead?
📖 Explanation: Because the message exceeds the limit for Technique 1, the system will automatically select Technique 2, which uses a shared‑memory section to avoid copying large data. Technique 3 is more complex and not typically used for standard transfers, while there is no Technique 4 in ALPC. Selecting the appropriate technique ensures efficient handling of large messages in real‑world applications.
Q14. A Windows service needs to communicate with a subsystem during early boot before RPC is available. Which transport should it use?
📖 Explanation: The correct answer is ALPC because it is the low‑level message‑passing mechanism that Windows services use when RPC cannot run during boot. TCP/IP and HTTP require the network stack, which is not fully initialized early in boot, so they cannot be relied on. Named pipes also depend on RPC services that are unavailable at that stage. Choosing ALPC lets the service open a connection‑port object and exchange messages directly, matching the real‑world need for early‑stage communication.
Q15. Why does ALPC provide three separate message‑passing techniques?
📖 Explanation: ALPC offers three techniques so it can handle messages efficiently depending on their size. Small to medium messages (up to about 63 KB) use the queue‑copy method, while larger data uses a shared‑memory section to avoid copying, and the third technique allows direct address‑space access for specialized cases. The other options are incorrect: ALPC does not deal with network protocols or multicast, and security is handled by other mechanisms, not by choosing a technique. In practice, this size‑based design lets a distributed file system move data quickly without unnecessary overhead.
Q16. A developer must transfer a 100 KB file between a client and a server using ALPC. Which technique should be chosen?
📖 Explanation: The second technique is correct because it creates a shared‑memory section for large messages, allowing the 100 KB file to be placed once and read directly by the receiver, eliminating costly copies. The first technique is limited to messages up to 63 KB, so it would require splitting the file and add overhead. The third technique is intended for special cases where processes can map each other’s address space, which is more complex than needed. RPC is not used here because the scenario explicitly relies on ALPC. Selecting the shared‑memory method matches the real‑world need for efficient large‑data transfer.
Q17. What is the maximum size for messages that can be handled by ALPC’s first message‑passing technique?
📖 Explanation: The first technique supports messages up to 63 KB, which is the defined limit for the queue‑based copying method. Anything larger must use another technique. Option B (64 KB) exceeds the limit by one kilobyte and would trigger the second technique. Option C (32 KB) is below the limit but is not the maximum, and option D (128 KB) far exceeds the capacity of the first method. Knowing this exact limit is important when designing a distributed file system, because it determines when to switch to shared‑memory handling for larger blocks.
Q18. How does the callback mechanism in ALPC channels affect client‑server interaction?
📖 Explanation: The callback mechanism lets both the client and the server issue new requests even when they are expecting a reply, enabling full‑duplex communication and reducing idle time. Option A is the opposite of what callbacks achieve; they prevent simple request‑reply blocking. Option C incorrectly suggests that communication stops, which never happens. Option D mischaracterizes callbacks as turning messages into events, while they simply permit overlapping calls. In a distributed file system, this capability means a client can request additional metadata while waiting for a file read, improving overall throughput.
Q19. In a distributed file system, a client opens a handle to a server’s connection‑port object to request file metadata. What ALPC step occurs next?
📖 Explanation: After the client opens the server’s connection‑port, the server responds by creating a private communication channel and returning its handle, establishing two dedicated ports for further exchange. Option B assumes a shared‑memory section is already in place, which is not true until the channel is set up. Option C incorrectly involves RPC, which is not part of the ALPC flow described. Option D describes only the initial request but omits the crucial step of channel creation. In real distributed file system operations, establishing this channel is essential before any metadata can be transferred.
Q20. Which Windows mechanism provides client-side caching for redirected folders?
📖 Explanation: The correct answer is Offline Files because it stores copies of redirected folder contents on the local machine, allowing access when the network share is unavailable. DFS Replication moves files between servers but does not cache locally. NTFS Compression reduces file size on disk but does not provide offline access. BitLocker encrypts drives and is unrelated to caching. This caching lets users work with their files even if the network is down, matching real‑world expectations for reliability.
Q21. Why does folder redirection improve login performance on a terminal server?
📖 Explanation: Caching of files locally (Option C) speeds logins because the system can read the user’s profile data from the fast local disk instead of waiting for network responses. Reducing network traffic (A) is a side effect but not the primary reason. Storing profiles locally (B) describes a different strategy—roaming profiles—while disabling roaming profiles (D) would remove the benefit entirely. In practice, local caching cuts the time needed for each user to start a session.
Q22. A company redirects the Documents folder to a network share but users report slow access. Which configuration change would most likely improve performance?
📖 Explanation: Enabling client‑side caching (Option A) creates local copies of the redirected files, so users read and write to their own disk, dramatically reducing perceived latency. Increasing the share quota (B) does not affect speed. Disabling redirection (C) would eliminate the benefit of centralized storage. Moving the share to a slower disk (D) would worsen performance. In real deployments, offline files are the standard fix for sluggish redirected folders.
Q23. How does client-side caching interact with file locking semantics on a redirected folder?
📖 Explanation: When a file is locked on a redirected folder, the client‑side cache communicates the lock status to the server so that other clients see the lock (Option B). Ignoring locks (A) would cause data corruption. Applying locks only locally (C) would let another user overwrite the file on the server. Claiming no locking occurs (D) is false; Windows maintains locking across the network. Proper synchronization ensures consistency, which is why administrators rely on cached files without risking data loss.
Q24. In a mixed environment where some users have intermittent connectivity, what combination of settings ensures that changes made offline are correctly merged with the server version without data loss?
📖 Explanation: Option C combines Offline Files (providing local copies) with the “Sync all offline files” policy (ensuring any changes are queued) and transaction‑aware caching (guaranteeing atomic updates). This prevents conflicts and loss when the connection returns. Option A’s “Only sync when online” would drop changes made offline. Option B disables the needed caching. DFS Replication (D) does not address offline edits directly. Enterprises use this exact setting to maintain data integrity across unreliable links.
Q25. Explain why ALPC is preferred over RPC for early boot services, and how this choice impacts folder redirection mechanisms that rely on network communication.
📖 Explanation: ALPC (Advanced Local Procedure Call) operates entirely within the kernel and does not depend on the TCP/IP stack, which may not be initialized during early boot (Option B). Because it bypasses network layers, services that must start before networking—such as the components that establish folder redirection—can still function. The other options are incorrect: memory usage (A) is not the primary factor, encryption speed (C) is unrelated, and message size limits (D) do not explain early‑boot suitability. This design ensures redirection can be set up as soon as the system is ready.
Q26. What size limit applies to the first ALPC message‑passing technique, and how does this limit affect the transmission of large redirected folder files?
📖 Explanation: The first ALPC technique caps messages at 63 KB (Option A). When a redirected folder contains files larger than this limit, the system must switch to the second technique (shared‑memory sections) to avoid copying large buffers. Options B‑D describe larger limits that belong to other mechanisms, not the first ALPC method. Understanding this limit helps administrators diagnose why very large files may trigger different transfer paths, ensuring performance expectations are realistic.