CCNA · Domain 4 of 6 · 10% of the exam

CCNA Domain 4: IP Services

20 free practice questions for IP Services in the Cisco Certified Network Associate (CCNA 200-301) exam. Try each question first, then open "Show answer" for the correct option and explanation.

IP Services practice questions

  1. Question 1. Many inside hosts share one public IP address, distinguished by port numbers. Which NAT type is this?

    1. Static NAT
    2. Dynamic NAT with a pool
    3. Twice NAT
    4. PAT (NAT overload)
    Show answer

    Answer: D. PAT (NAT overload)

    PAT maps many private addresses to one public address using unique source ports.

  2. Question 2. An internal web server must always be reachable from the internet at the same public address. Which NAT type fits?

    1. PAT with an interface overload
    2. Dynamic NAT from a pool
    3. Static NAT
    4. No NAT is needed for private addresses
    Show answer

    Answer: C. Static NAT

    Static NAT creates a permanent one-to-one mapping, which allows inbound connections.

  3. Question 3. In Cisco NAT terminology, what is the "inside global" address?

    1. The public address that represents an inside host to the outside
    2. The private address configured on the inside host
    3. The address of a server on the internet
    4. The address of the router's inside interface
    Show answer

    Answer: A. The public address that represents an inside host to the outside

    Inside local is the host's private address. Inside global is how that host appears to the outside world.

  4. Question 4. Which command configures PAT using the address of interface Gi0/1 for hosts matched by ACL 1?

    1. ip nat outside source list 1 interface Gi0/1
    2. ip nat inside source static 1 Gi0/1
    3. ip nat inside source list 1 interface Gi0/1 overload
    4. ip nat pool 1 interface Gi0/1 overload
    Show answer

    Answer: C. ip nat inside source list 1 interface Gi0/1 overload

    The overload keyword enables PAT. Interfaces must also be marked ip nat inside and ip nat outside.

  5. Question 5. Why is accurate time from NTP important on network devices?

    1. So log timestamps can be correlated across devices during troubleshooting
    2. So routing protocols can calculate path costs
    3. So DHCP can assign addresses faster
    4. So spanning tree elects the correct root bridge
    Show answer

    Answer: A. So log timestamps can be correlated across devices during troubleshooting

    Consistent time is essential for logs, certificates, and authentication protocols.

  6. Question 6. What does a lower NTP stratum number indicate?

    1. The device is closer to an authoritative time source
    2. The device has a less accurate clock
    3. The device is farther from the reference clock
    4. The device is not synchronized
    Show answer

    Answer: A. The device is closer to an authoritative time source

    Stratum 0 is the reference clock and stratum 1 servers connect to it directly. Each hop adds one.

  7. Question 7. Hosts on VLAN 20 must receive addresses from a DHCP server on another subnet. What must be configured on the VLAN 20 gateway?

    1. ip dhcp excluded-address on the VLAN 20 SVI
    2. ip nat inside on the VLAN 20 SVI
    3. A static route to the DHCP server's MAC address
    4. ip helper-address pointing to the DHCP server
    Show answer

    Answer: D. ip helper-address pointing to the DHCP server

    DHCP discovers are broadcasts, which routers don't forward. The DHCP relay converts them to unicast toward the server.

  8. Question 8. What is the order of messages in a DHCP address assignment?

    1. Request, Offer, Discover, Acknowledge
    2. Offer, Discover, Acknowledge, Request
    3. Discover, Request, Offer, Acknowledge
    4. Discover, Offer, Request, Acknowledge
    Show answer

    Answer: D. Discover, Offer, Request, Acknowledge

    DORA: the client discovers, the server offers, the client requests, and the server acknowledges.

  9. Question 9. What is the role of DNS in a network?

    1. Assign IP addresses to hosts
    2. Resolve host names to IP addresses
    3. Translate private addresses to public ones
    4. Synchronize device clocks
    Show answer

    Answer: B. Resolve host names to IP addresses

    DNS maps names such as www.example.com to IP addresses.

  10. Question 10. A monitoring server polls routers using the community string "public". Which weakness does this configuration have?

    1. SNMP cannot be used to read interface counters
    2. Community strings are encrypted but expire daily
    3. SNMP polls can only be sent to switches, not routers
    4. The community string is sent in clear text and is widely guessed
    Show answer

    Answer: D. The community string is sent in clear text and is widely guessed

    SNMPv1 and v2c use clear-text community strings, and "public" is a well-known default. SNMPv3 with authPriv adds authentication and encryption.

  11. Question 11. What is an SNMP trap?

    1. A request from the manager to read a value
    2. A command that changes a device's configuration
    3. A database of all managed objects
    4. An unsolicited message from an agent to the manager about an event
    Show answer

    Answer: D. An unsolicited message from an agent to the manager about an event

    Traps (and informs) let devices report events immediately without being polled.

  12. Question 12. Which syslog severity level is the MOST severe?

    1. 0 (emergency)
    2. 7 (debugging)
    3. 4 (warning)
    4. 3 (error)
    Show answer

    Answer: A. 0 (emergency)

    Levels range from 0 (emergency) to 7 (debugging). Setting a level logs that level and everything more severe.

  13. Question 13. An administrator sets logging trap 4 on a router. Which messages are sent to the syslog server?

    1. Levels 0 through 4
    2. Only level 4 messages
    3. Levels 4 through 7
    4. All levels 0 through 7
    Show answer

    Answer: A. Levels 0 through 4

    A logging level includes the chosen level and all lower-numbered, more severe levels.

  14. Question 14. Which QoS action marks packets with a DSCP value so later devices can prioritize them?

    1. Policing
    2. Shaping
    3. Queuing
    4. Marking
    Show answer

    Answer: D. Marking

    Classification identifies traffic and marking sets values such as DSCP. Later devices then apply queuing policies.

  15. Question 15. Which DSCP value is commonly used for voice traffic?

    1. CS1 (8)
    2. EF (46)
    3. AF11 (10)
    4. Default (0)
    Show answer

    Answer: B. EF (46)

    Expedited Forwarding is used for low-latency voice. CS1 is often scavenger traffic.

  16. Question 16. What is the difference between traffic policing and traffic shaping?

    1. Policing buffers excess traffic; shaping drops it right away
    2. Both drop any excess traffic immediately at the interface
    3. Policing drops or re-marks excess; shaping buffers and delays it
    4. Both only mark excess traffic without ever limiting it
    Show answer

    Answer: C. Policing drops or re-marks excess; shaping buffers and delays it

    Shaping smooths traffic to a rate using buffers. Policing enforces a limit by dropping or re-marking.

  17. Question 17. Which queuing method gives voice traffic strict priority while sharing remaining bandwidth among other classes?

    1. First in, first out (FIFO)
    2. Random early detection only
    3. Low latency queuing (LLQ)
    4. Round robin without priority
    Show answer

    Answer: C. Low latency queuing (LLQ)

    LLQ adds a strict priority queue to class-based weighted fair queuing.

  18. Question 18. Which steps are needed to enable SSH on a Cisco router?

    1. Enable Telnet, set an enable password, and disable the console
    2. Configure SNMPv3, then enable HTTPS
    3. Set a banner, then enable ip ssh on each interface
    4. Set a hostname and domain name, generate RSA keys, create a user, and set transport input ssh
    Show answer

    Answer: D. Set a hostname and domain name, generate RSA keys, create a user, and set transport input ssh

    SSH needs a hostname and domain name for key generation, RSA keys, local or AAA login, and VTY lines allowing SSH.

  19. Question 19. Which protocol is lightweight, uses UDP port 69, and is often used to copy IOS images, but has no authentication?

    1. FTP
    2. SFTP
    3. SCP
    4. TFTP
    Show answer

    Answer: D. TFTP

    TFTP is simple but insecure. FTP uses TCP with logins, and SCP and SFTP add encryption.

  20. Question 20. What does the DHCP option 150 or option 43 commonly provide in Cisco networks?

    1. The host's default gateway address
    2. The host's subnet mask and prefix length
    3. The DNS domain name for the host
    4. The address of a TFTP server or WLC
    Show answer

    Answer: D. The address of a TFTP server or WLC

    Option 150 gives IP phones a TFTP server address, and option 43 helps APs find a WLC.

Cisco and CCNA are trademarks or registered trademarks of Cisco Systems, Inc. These questions are original study material, not questions from the real exam.