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. Assign IP addresses to network devices
B. Transfer files between remote computers
C. Encrypt messages sent over a network
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. A record
B. PTR record
C. MX record
D. NS record

3 What does DHCP commonly provide to a client device?

Dynamic Host Configuration Protocol (DHCP) Easy
A. An email account
B. A firewall rule
C. A web document
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. DHCPOFFER
B. DHCPREQUEST
C. DHCPDISCOVER
D. DHCPACK

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

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

6 What is TELNET primarily used for?

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

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

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

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

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

9 What does FTP stand for?

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

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

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

11 What does WWW stand for?

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

12 What is the primary purpose of HTTP?

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

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

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

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. An HTTP browser
B. An SNMP agent
C. A DNS resolver
D. A DHCP client

16 What security service is provided by IPSec?

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

17 What does VPN stand for?

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

18 What is a common purpose of a VPN?

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

19 What is the main purpose of a network firewall?

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

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

Firewalls Easy
A. IP addresses and port numbers
B. File names and folder colors
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 immediately requests the new address from the root server
B. It deletes the record because the authoritative data changed
C. It returns both the cached address and the new address
D. It returns the cached address for up to 200 more seconds

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 TXT record containing mail.example.net
B. An NS record referencing mail.example.net
C. An MX record referencing mail.example.net
D. A PTR 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 static ARP entry on the DHCP server
B. A DHCP relay agent on the intervening router
C. A DNS forwarding service on the client subnet
D. A NAT rule translating the client's broadcast

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 DHCPREQUEST to the original server
B. A broadcast DHCPDISCOVER to every available server
C. A broadcast DHCPDECLINE to every available server
D. A unicast DHCPOFFER to the original 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. Enable DNS recursion on the logging server
D. Increase the logging severity on every router

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

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

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. SNMP
B. SMTP
C. POP3
D. IMAP

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. DNS aliases and recursive resolution
B. HTTP cookies and content negotiation
C. MIME content types and transfer encoding
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. Passive mode, because it uses one connection for all data
C. Active mode, because it does not require a control channel
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. TFTP
C. SCP
D. SFTP

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://example.com/images/logo.png
B. https://example.com/docs/images/logo.png
C. https://images.example.com/docs/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. 304 Not Modified without the full representation
C. 301 Moved Permanently with a replacement URL
D. 200 OK with 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. Multiple requests can reuse an established TCP connection
B. Application data is encrypted without using TLS
C. DNS resolution is permanently disabled for that server
D. Every resource is automatically stored in a shared cache

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 trap sent by the router
B. An SNMP SET sent by the manager
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 a domain name defined in an MX record
B. By a TCP port defined in a routing table
C. By a security association defined in IPSec
D. By an object identifier defined in a MIB

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. TLS in record mode
C. ESP in tunnel 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. AH authenticates header fields that NAT modifies
B. ESP replaces IP addressing with DNS hostnames
C. ESP avoids establishing security associations
D. AH requires all payloads to use TCP port 443

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 TELNET connection between branch routers
B. A site-to-site VPN between branch gateways
C. A remote-access VPN for every internal server
D. A public proxy shared by both branch networks

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. Static destination translation
D. Stateful packet inspection

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. In a DMZ with restricted access to the internal network
B. On the management VLAN with administrator workstations
C. In the internal LAN with unrestricted inbound access
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. 4200 seconds
B. 3600 seconds
C. 600 seconds
D. 3000 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. Use the glue for ns1.example.com but resolve ns.provider.net independently
B. Resolve ns1.example.com independently but trust the address of ns.provider.net
C. Cache both addresses as authoritative because they accompany signed NS records
D. Discard both addresses because delegation responses cannot contain authoritative address records

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 may validate until its signature expires because DNSSEC does not ensure freshness beyond validity data
B. The response is accepted only if the attacker also possesses the zone's private signing key
C. The response is rejected because every RRset replacement immediately revokes its previous signature
D. The response is rejected because DNSSEC compares it with the zone's current serial number

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 forces the server to broadcast the offer directly on the client's local subnet
D. It identifies the DHCP server that previously leased an address to the client

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. Send a unicast DHCPDISCOVER to the original server while retaining the address
B. Send a DHCPRELEASE and wait until the current lease naturally expires
C. Immediately stop using the address and restart in the INIT state
D. Broadcast a DHCPREQUEST so that any suitable DHCP server may extend the lease

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 5 (syslog), severity 20 (unknown)
C. Facility 20 (local4), severity 5 (Notice)
D. Facility 21 (local5), severity 3 (Error)

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. 0xFF 0xFF
B. 0xFF 0x00
C. 0xFF 0xF0
D. 0xFE 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 sender may retry, potentially causing duplicate delivery at the receiver
B. The receiver must delete the message because acknowledgement was not observed
C. The receiver must use the Message-ID field to suppress every later retry
D. The sender must assume delivery succeeded because the DATA phase had ended

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 only if the forwarder rewrites the visible From address
B. DMARC passes because one aligned authentication mechanism, DKIM, succeeds
C. DMARC fails because forwarding automatically invalidates identifier alignment
D. DMARC fails because both SPF and DKIM must pass with strict 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 anonymous authentication so the server returns its public interface address
C. Use EPSV and connect to its port on the control connection's server 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. https://cdn.shop.example/b/data.json
B. https://shop.example:8443/b/data.json
C. https://shop.example/b/data.json
D. http://shop.example:443/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. 304 Not Modified, because a matching If-None-Match takes precedence
B. 409 Conflict, because ETag and date validators cannot appear together
C. 412 Precondition Failed, because the two validators produce different results
D. 200 OK, because the resource changed after the supplied modification date

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

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. 14
B. 20
C. 12
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. 11
B. 13
C. 12
D. 7

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. ESP tunnel mode, with a new outer IP header between the gateways
B. AH tunnel mode, with both the inner and outer addresses encrypted
C. ESP transport mode, with the original IP header exposed between gateways
D. AH transport mode, with internal addresses replaced by TCP port numbers

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 0, because zero denotes a new anti-replay window after rollover
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 986, because it lies exactly 64 positions below the highest value

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 VPN rejects the DNS response because dual-stack names cannot cross tunnels
C. The IPv6 traffic is encapsulated by IPv4 merely because a default route exists
D. The IPv6 packets are automatically translated into IPv4 and remain in the tunnel

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. Both firewalls accept the flow because stateful inspection depends only on routing tables
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. Firewall B accepts the packet because SYN-ACK packets always create reverse state

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