Unit 6: Application layer - Practice Quiz

CAP7001 — Data Communication And Networking 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 What is the main function of the Domain Name System (DNS)?

Domain Name System (DNS) Easy
A. Encrypt messages sent over a network
B. Transfer files between remote computers
C. Assign IP addresses to network devices
D. Translate domain names into IP addresses

2 Which DNS record type maps a domain name to an IPv4 address?

Domain Name System (DNS) Easy
A. NS record
B. MX record
C. A record
D. PTR record

3 What does DHCP commonly provide to a client device?

Dynamic Host Configuration Protocol (DHCP) Easy
A. A web document
B. A firewall rule
C. An email account
D. An IP configuration

4 What is the first message normally sent by a DHCP client seeking network configuration?

Dynamic Host Configuration Protocol (DHCP) Easy
A. DHCPDISCOVER
B. DHCPREQUEST
C. DHCPOFFER
D. DHCPACK

5 Which protocol is commonly used to send system log messages to a remote server?

Remote logging Easy
A. Telnet
B. SNMP
C. Syslog
D. SMTP

6 What is TELNET primarily used for?

TELNET Easy
A. Encrypted file storage
B. Domain name resolution
C. Remote command-line access
D. Automatic address assignment

7 Which protocol is primarily used to send electronic mail between mail servers?

Electronic mail Easy
A. HTTP
B. SMTP
C. FTP
D. POP3

8 Which protocol commonly downloads email messages from a mail server to a client?

Electronic mail Easy
A. DNS
B. DHCP
C. SMTP
D. POP3

9 What does FTP stand for?

File transfer Easy
A. Fast Transport Process
B. File Tracking Procedure
C. File Transfer Protocol
D. Folder Transmission Program

10 Which protocol provides encrypted file transfer through an SSH connection?

File transfer Easy
A. FTP
B. TFTP
C. SMTP
D. SFTP

11 What does WWW stand for?

WWW Easy
A. World Wide Web
B. Web Wide Window
C. Wide World Workflow
D. World Wireless Web

12 What is the primary purpose of HTTP?

HTTP Easy
A. Transfer web resources
B. Resolve domain names
C. Monitor network devices
D. Assign network addresses

13 Which HTTP method is commonly used to retrieve a resource from a server?

HTTP Easy
A. PATCH
B. DELETE
C. GET
D. POST

14 What is SNMP mainly used for?

Simple Network Management Protocol (SNMP) Easy
A. Transferring user files
B. Displaying web pages
C. Managing network devices
D. Sending email messages

15 What does an SNMP manager communicate with on a managed device?

Simple Network Management Protocol (SNMP) Easy
A. A DNS resolver
B. A DHCP client
C. An HTTP browser
D. An SNMP agent

16 What security service is provided by IPSec?

IPSec Easy
A. Dynamic address assignment
B. Web page formatting
C. Domain name translation
D. IP packet protection

17 What does VPN stand for?

VPN Easy
A. Virtual Protocol Node
B. Virtual Private Network
C. Verified Public Network
D. Variable Private Node

18 What is a common purpose of a VPN?

VPN Easy
A. Automatic domain registration
B. Public website development
C. Secure remote network access
D. Local printer configuration

19 What is the main purpose of a network firewall?

Firewalls Easy
A. Translate domain names
B. Create web documents
C. Filter network traffic
D. Store email messages

20 Which information can a basic packet-filtering firewall examine?

Firewalls Easy
A. File names and folder colors
B. IP addresses and port numbers
C. Keyboard layout and language
D. Screen size and brightness

21 A DNS resolver has cached an address record with a TTL of 600 seconds. After 400 seconds, the authoritative server changes the address. What will normally happen when the resolver receives another query for the name?

Domain Name System (DNS) Medium
A. It returns the cached address for up to 200 more seconds
B. It returns both the cached address and the new address
C. It immediately requests the new address from the root server
D. It deletes the record because the authoritative data changed

22 An administrator wants email addressed to user@example.com to be delivered to mail.example.net. Which DNS record should be configured for example.com?

Domain Name System (DNS) Medium
A. A PTR record referencing mail.example.net
B. An NS record referencing mail.example.net
C. A TXT record containing mail.example.net
D. An MX record referencing mail.example.net

23 A DHCP server and a new client are located on different IP subnets separated by a router. What is needed if the server must assign an address to the client?

Dynamic Host Configuration Protocol (DHCP) Medium
A. A NAT rule translating the client's broadcast
B. A static ARP entry on the DHCP server
C. A DNS forwarding service on the client subnet
D. A DHCP relay agent on the intervening router

24 A DHCP client reaches the normal renewal time for its current lease and can still contact the server that issued it. Which message does the client send first to renew the lease?

Dynamic Host Configuration Protocol (DHCP) Medium
A. A unicast DHCPOFFER to the original server
B. A broadcast DHCPDISCOVER to every available server
C. A unicast DHCPREQUEST to the original server
D. A broadcast DHCPDECLINE to every available server

25 Logs from several routers reach a central logging server, but their timestamps cannot be reliably compared. Which change most directly addresses the problem?

Remote logging Medium
A. Reduce the maximum size of each log message
B. Synchronize all devices to a common time source
C. Increase the logging severity on every router
D. Enable DNS recursion on the logging server

26 An administrator captures traffic from a TELNET management session. Which security issue is most likely?

TELNET Medium
A. The session key may be reused after disconnection
B. Login credentials can be read from captured packets
C. The encrypted payload may reveal only packet lengths
D. The server certificate may use an expired signature

27 A user wants messages and folders to remain synchronized across a laptop and a phone while mail stays on the server. Which protocol is most appropriate for retrieving the mail?

Electronic mail Medium
A. POP3
B. SNMP
C. IMAP
D. SMTP

28 An email client must send a binary image as an attachment through a traditional text-oriented email system. Which mechanism enables this?

Electronic mail Medium
A. HTTP cookies and content negotiation
B. MIME content types and transfer encoding
C. DNS aliases and recursive resolution
D. SNMP objects and variable bindings

29 An FTP client is behind a firewall that blocks unsolicited inbound connections. Which FTP mode is generally easier to use in this situation?

File transfer Medium
A. Active mode, because the server initiates both connections
B. Active mode, because it does not require a control channel
C. Passive mode, because it uses one connection for all data
D. Passive mode, because the client initiates both connections

30 A diskless device must download a small boot configuration from a local server with minimal protocol overhead and no user authentication. Which protocol best matches the requirement?

File transfer Medium
A. FTPS
B. SFTP
C. TFTP
D. SCP

31 A page at https://example.com/docs/index.html contains the relative link images/logo.png. Which resource does a browser request when the link is selected?

WWW Medium
A. https://images.example.com/docs/logo.png
B. https://example.com/images/logo.png
C. https://example.com/docs/images/logo.png
D. https://example.com/docs/index.html/images/logo.png

32 A browser sends a conditional GET with If-None-Match, and the server determines that the cached representation is still current. Which response is most appropriate?

HTTP Medium
A. 204 No Content after deleting the cached copy
B. 301 Moved Permanently with a replacement URL
C. 200 OK with the full representation
D. 304 Not Modified without the full representation

33 A web page requires many resources from the same server. What is the main benefit of using persistent HTTP connections?

HTTP Medium
A. Application data is encrypted without using TLS
B. Every resource is automatically stored in a shared cache
C. DNS resolution is permanently disabled for that server
D. Multiple requests can reuse an established TCP connection

34 A network manager must be notified immediately when a router interface goes down, rather than repeatedly checking the interface state. Which SNMP mechanism should be used?

Simple Network Management Protocol (SNMP) Medium
A. An SNMP SET sent by the manager
B. An SNMP trap sent by the router
C. An SNMP GET sent by the router
D. An SNMP walk started by the router

35 A monitoring application needs to retrieve a specific interface counter from an SNMP agent. How is that managed value uniquely identified?

Simple Network Management Protocol (SNMP) Medium
A. By an object identifier defined in a MIB
B. By a security association defined in IPSec
C. By a domain name defined in an MX record
D. By a TCP port defined in a routing table

36 A company connects two office networks across the Internet using security gateways. It wants the original IP packets, including their headers, protected inside new packets. Which IPSec configuration is appropriate?

IPSec Medium
A. AH in transport mode
B. ESP in tunnel mode
C. TLS in record mode
D. ESP in transport mode

37 IPSec traffic must cross a NAT device that changes IP addresses. Why is ESP with NAT traversal generally preferred over AH?

IPSec Medium
A. ESP avoids establishing security associations
B. AH requires all payloads to use TCP port 443
C. AH authenticates header fields that NAT modifies
D. ESP replaces IP addressing with DNS hostnames

38 Two branch offices need their internal subnets to communicate securely over the public Internet without employees starting individual VPN sessions. Which design is most appropriate?

VPN Medium
A. A remote-access VPN for every internal server
B. A site-to-site VPN between branch gateways
C. A public proxy shared by both branch networks
D. A TELNET connection between branch routers

39 A firewall allows an internal host to initiate a TCP connection to a web server and automatically permits only the matching return traffic. What capability is being used?

Firewalls Medium
A. Stateless source filtering
B. Application-layer caching
C. Stateful packet inspection
D. Static destination translation

40 A public web server must be reachable from the Internet, but it should not be placed directly inside the private employee network. Where should it be located?

Firewalls Medium
A. On the management VLAN with administrator workstations
B. In the internal LAN with unrestricted inbound access
C. In a DMZ with restricted access to the internal network
D. Outside the firewall with direct database access

41 An authoritative DNS server returns an NXDOMAIN response containing an SOA record whose RR TTL is 3600 seconds and whose MINIMUM field is 600 seconds. Under negative-caching rules, what maximum initial TTL should a recursive resolver assign to this negative answer?

Domain Name System (DNS) Hard
A. 3000 seconds
B. 4200 seconds
C. 600 seconds
D. 3600 seconds

42 A .com server delegates example.com to ns1.example.com and ns.provider.net, including A records for both names in the Additional section. How should a security-conscious recursive resolver treat these addresses?

Domain Name System (DNS) Hard
A. Cache both addresses as authoritative because they accompany signed NS records
B. Discard both addresses because delegation responses cannot contain authoritative address records
C. Use the glue for ns1.example.com but resolve ns.provider.net independently
D. Resolve ns1.example.com independently but trust the address of ns.provider.net

43 A zone replaces an A RRset, but the old RRset's RRSIG remains cryptographically valid for another hour. An attacker replays the correctly signed old response to a validating resolver. Which statement best describes DNSSEC's behavior?

Domain Name System (DNS) Hard
A. The response is rejected because every RRset replacement immediately revokes its previous signature
B. The response is rejected because DNSSEC compares it with the zone's current serial number
C. The response is accepted only if the attacker also possesses the zone's private signing key
D. The response may validate until its signature expires because DNSSEC does not ensure freshness beyond validity data

44 A DHCP relay forwards a DHCPDISCOVER with giaddr = 10.20.0.1 and ciaddr = 0.0.0.0. What is the primary significance of giaddr to the DHCP server?

Dynamic Host Configuration Protocol (DHCP) Hard
A. It specifies the default gateway that must be inserted into every offered lease
B. It identifies the client's subnet and provides the relay destination for the reply
C. It identifies the DHCP server that previously leased an address to the client
D. It forces the server to broadcast the offer directly on the client's local subnet

45 A DHCP client has a valid lease but receives no response from its original server at renewal time . When rebinding time is reached, what should the client do?

Dynamic Host Configuration Protocol (DHCP) Hard
A. Immediately stop using the address and restart in the INIT state
B. Send a unicast DHCPDISCOVER to the original server while retaining the address
C. Broadcast a DHCPREQUEST so that any suitable DHCP server may extend the lease
D. Send a DHCPRELEASE and wait until the current lease naturally expires

46 A syslog message begins with the priority field <165>. Using , how should this priority be decoded?

Remote logging Hard
A. Facility 19 (local3), severity 13 (invalid)
B. Facility 21 (local5), severity 3 (Error)
C. Facility 5 (syslog), severity 20 (unknown)
D. Facility 20 (local4), severity 5 (Notice)

47 A TELNET application must transmit a literal data byte 0xFF, which is also the Interpret As Command (IAC) byte. Which byte sequence must it place in the TELNET data stream?

TELNET Hard
A. 0xFE 0xFF
B. 0xFF 0x00
C. 0xFF 0xF0
D. 0xFF 0xFF

48 An SMTP receiver commits a message to durable storage and sends 250 OK after the terminating <CRLF>.<CRLF>, but the TCP connection fails before the sender receives that reply. What outcome is consistent with SMTP semantics?

Electronic mail Hard
A. The receiver must delete the message because acknowledgement was not observed
B. The receiver must use the Message-ID field to suppress every later retry
C. The sender must assume delivery succeeded because the DATA phase had ended
D. The sender may retry, potentially causing duplicate delivery at the receiver

49 A message with From: user@example.com is forwarded without modifying its DKIM-signed headers or body. The final receiver finds that SPF fails because the forwarder's IP is unauthorized, but an example.com DKIM signature validates. Under DMARC, what is the likely result?

Electronic mail Hard
A. DMARC passes because one aligned authentication mechanism, DKIM, succeeds
B. DMARC passes only if the forwarder rewrites the visible From address
C. DMARC fails because both SPF and DKIM must pass with strict alignment
D. DMARC fails because forwarding automatically invalidates identifier alignment

50 An FTP server behind NAT responds to PASV with a private IP address and a port number, causing the client's data connection to fail. Which change most directly avoids reliance on the advertised private address?

File transfer Hard
A. Use active mode and require the server to connect to the client's port 21
B. Use EPSV and connect to its port on the control connection's server address
C. Use anonymous authentication so the server returns its public interface address
D. Use binary transfer mode so the NAT can infer the endpoint from file contents

51 A document is loaded from https://shop.example:443/a/page.html. Which resource has the same origin as the document under the Web's scheme-host-port origin model?

WWW Hard
A. http://shop.example:443/b/data.json
B. https://shop.example/b/data.json
C. https://cdn.shop.example/b/data.json
D. https://shop.example:8443/b/data.json

52 A client sends a GET request with If-None-Match: "v2" and an If-Modified-Since date older than the resource's last modification. The current representation has ETag "v2". Assuming ordinary HTTP conditional-request processing, what should the origin server return?

HTTP Hard
A. 200 OK, because the resource changed after the supplied modification date
B. 409 Conflict, because ETag and date validators cannot appear together
C. 412 Precondition Failed, because the two validators produce different results
D. 304 Not Modified, because a matching If-None-Match takes precedence

53 Multiple HTTP/2 streams share one TCP connection. A TCP segment containing data for one stream is lost while later segments contain frames for other streams. What is the expected transport-level effect?

HTTP Hard
A. Later frames bypass the loss because HTTP/2 frame identifiers override TCP ordering
B. Delivery for all streams can stall until TCP recovers the missing ordered bytes
C. Only the stream whose frame was lost waits because TCP tracks each HTTP stream independently
D. The connection closes because HTTP/2 does not permit retransmission of framed data

54 An SNMP GETBULK request contains five variable bindings, with non-repeaters = 2 and max-repetitions = 4. Assuming no size truncation or early end-of-MIB condition, how many variable bindings can the response contain?

Simple Network Management Protocol (SNMP) Hard
A. 12
B. 20
C. 14
D. 18

55 An SNMP Counter32 is sampled as 4,294,967,290 and later as 7. Assuming exactly one wrap and no reset, how many events occurred between samples?

Simple Network Management Protocol (SNMP) Hard
A. 12
B. 11
C. 7
D. 13

56 Two security gateways must protect entire internal IP packets while preventing observers on the public network from learning internal source and destination addresses. Which IPsec arrangement meets this requirement?

IPSec Hard
A. AH transport mode, with internal addresses replaced by TCP port numbers
B. ESP tunnel mode, with a new outer IP header between the gateways
C. ESP transport mode, with the original IP header exposed between gateways
D. AH tunnel mode, with both the inner and outer addresses encrypted

57 An IPsec Security Association uses a 64-packet anti-replay window. The highest authenticated sequence number is 1050. Which arriving packet can be accepted, assuming sequence number 990 has not previously arrived and sequence number 1040 has?

IPSec Hard
A. Sequence 986, because it lies exactly 64 positions below the highest value
B. Sequence 1040, because packets within the current window are always accepted
C. Sequence 990, because it is inside the window and has not been received
D. Sequence 0, because zero denotes a new anti-replay window after rollover

58 A remote-access VPN installs an IPv4 default route through the tunnel but leaves the client's native IPv6 configuration unchanged. The client accesses a dual-stack website over IPv6. What security issue is most likely?

VPN Hard
A. The IPv6 traffic may bypass the VPN and leave through the local network
B. The IPv6 packets are automatically translated into IPv4 and remain in the tunnel
C. The VPN rejects the DNS response because dual-stack names cannot cross tunnels
D. The IPv6 traffic is encapsulated by IPv4 merely because a default route exists

59 A TCP connection's outbound SYN passes through stateful firewall A, but routing changes cause the returning SYN-ACK to pass through stateful firewall B. Firewall B has no synchronized state table. What is the most likely result?

Firewalls Hard
A. Firewall B accepts the packet because SYN-ACK packets always create reverse state
B. Firewall B drops the SYN-ACK as unsolicited unless state is synchronized or routing is symmetric
C. Firewall A forwards a state record through TCP options embedded in the original SYN
D. Both firewalls accept the flow because stateful inspection depends only on routing tables

60 A firewall and an internal host apply different rules when reassembling overlapping IPv4 fragments. An attacker crafts overlaps so the firewall sees an allowed transport header while the host reconstructs a prohibited one. Which defense most directly addresses this evasion?

Firewalls Hard
A. Apply application filtering separately to every fragment before reassembly
B. Disable transport-layer checks whenever the IPv4 fragment flag is present
C. Permit all non-initial fragments after validating only the first fragment
D. Normalize or reassemble fragments consistently and drop ambiguous overlaps