Network Daemons  «Prev  Next»

Iterative Concurrent Servers - Quiz


Server processes and iterative/concurrent servers
Each question is worth one point. Select the best answer for each question.
 

1. What are the two modes of operation for a listening server process?
Please select the correct answer:
  A. Telnet and HTTP
  B. Telnet and FTP
  C. Iterative and concurrent
  D. TCP and concurrent

2. Why is a concurrent server able to remain available for incoming connections?
Please select the correct answer:
  A. Because it uses fewer system resources, such as entries in the kernel's process table, than an iterative server
  B. Because it relies on the inetd process to listen to many ports simultaneously
  C. Because it calls fork() to split itself into a child and parent process, so while the child handles the connection, the parent listens on the original port
  D. Because it uses the exec() system calls to start the specific server processes needed to handle the connection at that well-known port

3. How is the inetd process controlled?
Please select the correct answer:
  A. By the file /etc/services
  B. By the rpcinfo command
  C. By the in.telnetd daemon
  D. By the /etc/inetd.conf file

4. On a modern Linux system, which service has largely replaced the legacy inetd super-server for managing on-demand network services?
Please select the correct answer:
  A. The portmapper process (rpcbind)
  B. systemd socket activation
  C. The xinetd daemon
  D. The in.telnetd daemon

5. An iterative server is processing a long-running client request. A second client attempts to connect to the same port during this time. What happens?
Please select the correct answer:
  A. The kernel immediately rejects the second connection with a connection refused error.
  B. The second client connection is placed in the kernel listen backlog queue and waits until the server finishes with the first client.
  C. The server calls fork() to create a child process that handles the second client while the parent finishes with the first.
  D. The second client triggers inetd to start a new instance of the server process.

6. Which of the following scenarios is best suited to an iterative server rather than a concurrent server?
Please select the correct answer:
  A. An HTTP server handling thousands of simultaneous browser connections.
  B. A time-of-day server that responds to each client with a timestamp and immediately closes the connection.
  C. An FTP server that maintains a long-lived session and transfers large files.
  D. A database server that processes complex queries concurrently for multiple clients.