Quiz: Network Applications and Protocols — 18 questions

Detailed questions and answers

1. Which description best defines a microservice?

A complete application deployed as one integrated unit with tightly combined functions
A database table that stores communication records for several applications
A physical server dedicated to hosting a single network application
A small application component that can be deployed independently through a defined interface

A small application component that can be deployed independently through a defined interface

Explanation

A microservice is a small, independently deployable application component that communicates through defined interfaces. A monolithic application is deployed as one integrated unit rather than as independently deployable components.

2. What distinguishes a peer-to-peer network from a client–server network?

Peers communicate through a dedicated server that coordinates every exchange
Peers communicate and share resources directly without requiring a central server
Clients obtain shared resources through a centrally managed service provider
Clients and servers divide resources while keeping communication centrally controlled

Peers communicate and share resources directly without requiring a central server

Explanation

Peer-to-peer networks allow participating peers to communicate and share resources directly, without a required central server. A client–server design instead depends on a central service provider for the requested services or resources.

3. What is the primary role of the application layer in networking?

Converting signals into electrical or wireless transmissions across physical media
Providing services and protocols that support communication between user applications
Routing packets between networks and selecting paths through intermediate routers
Assigning hardware addresses to devices connected to a local network

Providing services and protocols that support communication between user applications

Explanation

The application layer supplies network services and protocols used by user applications to communicate. Routing, signal transmission, and hardware addressing belong to lower networking functions.

4. Which network architecture has clients request services or resources from centralized servers?

Peer-to-peer architecture
Ad hoc mesh architecture
Client–server architecture
Federated architecture

Client–server architecture

Explanation

Client–server architecture centralizes services or resources on servers that respond to client requests. Peer-to-peer architecture differs because participating computers communicate directly and may provide services to one another.

5. What is the primary function of the Domain Name System?

Assigning temporary port numbers to applications during network communication
Transmitting web resources from servers to browsers over application protocols
Encrypting network traffic between clients and remote web services
Translating domain names into IP addresses through a distributed hierarchy

Translating domain names into IP addresses through a distributed hierarchy

Explanation

DNS translates human-readable domain names into IP addresses using a distributed hierarchy of name servers. HTTP uses the resulting address to request web resources, but it does not perform the name-resolution function.

6. Which sequence best describes the servers that may be contacted during recursive DNS resolution?

Authoritative server, local resolver, root server, then top-level-domain server
Local resolver, web server, authoritative server, then top-level-domain server
Top-level-domain server, web server, local resolver, then root server
Local resolver, root server, top-level-domain server, then authoritative server

Local resolver, root server, top-level-domain server, then authoritative server

Explanation

A recursive resolver can consult the local resolver, root server, top-level-domain server, and authoritative server before returning the requested record. The web server is not a standard step in locating the DNS record.

7. A network allows participating computers to provide resources and request resources directly from one another. Which architecture does this describe?

Hierarchical service architecture
Centralized hosting architecture
Peer-to-peer architecture
Client–server architecture

Peer-to-peer architecture

Explanation

Peer-to-peer architecture allows each participating computer to act as both a client and a server while communicating directly with other peers. A client–server model instead depends on centralized servers for service delivery.

8. Which description correctly distinguishes the contents of an HTTP request from those of an HTTP response?

A request contains routing tables, while a response contains port assignments
A request has a status code, while a response has a method and URL
A request contains mailbox data, while a response contains delivery instructions
A request has a method and URL, while a response has a status code

A request has a method and URL, while a response has a status code

Explanation

An HTTP request includes a method and requested URL, along with headers and possibly a body, while the response includes a status code, headers, and possibly a body. A status code reports the result returned by the server rather than defining the requested operation.

9. A networked application needs to identify a specific service running on a host; what combination identifies its communication endpoint?

A MAC address and a protocol name
A port number and a routing table
An IP address and a port number
A domain name and a subnet mask

An IP address and a port number

Explanation

A socket is identified by an IP address for the host and a port number for the application endpoint on that host. An IP address alone identifies the host but does not select the particular application.

10. Which set contains challenges commonly associated with peer-to-peer networks?

Bandwidth expansion, encryption, routing speed, and address allocation
Scalability, load distribution, fault tolerance, and resource sharing
Security, coordination, data consistency, and management
Centralized control, server maintenance, authentication, and backup scheduling

Security, coordination, data consistency, and management

Explanation

Security, coordination, data consistency, and management are identified as challenges of peer-to-peer networks. Scalability, load distribution, fault tolerance, and resource sharing are advantages rather than challenges.

11. What is the primary role of SMTP in an email system?

Synchronizing mailbox contents across devices
Transferring email between mail systems
Downloading messages from a recipient's mailbox
Rendering messages in a user's mail application

Transferring email between mail systems

Explanation

SMTP is an application-layer protocol used to transfer email between mail systems. POP3 and IMAP are associated with retrieving or managing messages in a mailbox, not with transferring mail between systems.

12. Which sequence best represents the typical path of an email from the sender to the recipient's mailbox?

MUA submits to MDA, MDAs transfer through SMTP, and MTA stores remotely
MUA submits to MTA, MTAs transfer through SMTP, and MDA delivers locally
MTA submits to MDA, MDAs transfer through SMTP, and MUA delivers locally
MDA submits to MUA, MUAs transfer through SMTP, and MTA downloads locally

MUA submits to MTA, MTAs transfer through SMTP, and MDA delivers locally

Explanation

The mail user agent submits the message to a mail transfer agent, MTAs transfer it between systems using SMTP, and a mail delivery agent places it in the recipient's local mailbox. The MTA handles system-to-system transfer, while the MDA performs local mailbox delivery.

13. What is an important trade-off associated with adopting microservices?

They reduce modularity while simplifying communication between all application functions
They prevent fault isolation because every component shares one deployment unit
They improve central control by combining application functions into one integrated process
They support scalability and independent deployment but add communication and management overhead

They support scalability and independent deployment but add communication and management overhead

Explanation

Microservices can improve scalability, modularity, deployment flexibility, and fault isolation, but distributing components creates additional communication and management overhead. Combining all functions into one deployment unit describes a monolithic design rather than this trade-off.

14. Which DNS record type maps an alias to its canonical domain name?

NS record
MX record
A record
CNAME record

CNAME record

Explanation

A CNAME record maps an alias to a canonical domain name. An A record instead maps a domain name directly to an IPv4 address.

15. How does HTTP enable communication between a web client and a server?

The server opens a transport circuit and the client forwards packets
The server transfers files while the client assigns port numbers
The client sends a request and the server returns a response
The client retrieves mailbox messages and the server synchronizes them

The client sends a request and the server returns a response

Explanation

HTTP uses an application-layer request–response model in which the client requests resources or processing and the server returns the result. The underlying reliable transport connection is provided by TCP, not by HTTP itself.

16. Which transport protocol is best characterized as connection-oriented and reliable, unlike a lightweight connectionless alternative?

SMTP
TCP
HTTP
UDP

TCP

Explanation

TCP establishes a connection and provides reliable transport, whereas UDP is lightweight and connectionless. HTTP and SMTP operate at the application layer rather than providing this transport-level distinction.

17. In a typical web application, which sequence best describes how a request is handled?

DNS resolves the URL, the server processes the request, needed data is accessed, and a response is sent
The server resolves the URL, the browser queries the database, and DNS sends the requested resource
The browser processes the page, DNS stores the data, and the server displays the completed response
DNS generates the application response, the server opens the browser, and data access follows afterward

DNS resolves the URL, the server processes the request, needed data is accessed, and a response is sent

Explanation

A web application first uses DNS to resolve the requested name, then the server processes the request, accesses data when needed, and sends back the requested resource. DNS performs name resolution; it does not generate the application response.

18. Which statement correctly distinguishes POP3 from IMAP when a user accesses email?

POP3 typically downloads messages, while IMAP keeps them managed on the server
POP3 keeps messages synchronized on the server, while IMAP typically downloads them
POP3 transfers mail between systems, while IMAP delivers it to a local mailbox
POP3 submits outgoing mail, while IMAP transfers it between mail systems

POP3 typically downloads messages, while IMAP keeps them managed on the server

Explanation

POP3 typically downloads messages from a mailbox, whereas IMAP keeps messages managed on the mail server and supports synchronization. SMTP handles transfer between mail systems, so it does not describe the main distinction between POP3 and IMAP.

Review with flashcards

Memorize the answers with 39 flashcards on Network Applications and Protocols.

What is client–server architecture in networking?

A model where clients request services from centralized servers.

What defines peer-to-peer architecture in networking?

Computers act as both clients and servers and communicate directly.

What advantage do client–server systems have over peer-to-peer?

They simplify management and can improve control and security.

See flashcards →

Read the study sheet

Read the complete study sheet on Network Applications and Protocols.

See study sheet →

Similar courses

Create your own quizzes

Import your course and AI generates quizzes with corrections in 30 seconds.

Quiz generator