CCNA practice questions with answers
Free, exam-style CCNA 200-301 practice questions covering every domain — subnetting, OSPF, VLANs, spanning tree, NAT, ACLs, and IPv6. Each question has a single best answer and a full explanation. Reveal the answer only when you’re ready.
12 sample questions
Read the question, commit to an answer, then expand “Show answer” to check yourself and learn why.
1. How many usable host addresses are available in a /27 subnet?
- A. 14
- B. 30
- C. 32
- D. 62
Show answer
Correct answer: B
A /27 leaves 5 host bits (32 − 27). 2^5 = 32 total addresses; subtract the network and broadcast addresses to get 30 usable hosts.
2. Which IPv6 address is the loopback address?
- A. ::1/128
- B. fe80::/10
- C. ff02::1
- D. 2000::/3
Show answer
Correct answer: A
::1/128 is the IPv6 loopback, equivalent to 127.0.0.1 in IPv4. fe80::/10 is link-local, ff02::1 is the all-nodes multicast group, and 2000::/3 is the global unicast range.
3. What is the default administrative distance of OSPF?
- A. 1
- B. 90
- C. 110
- D. 120
Show answer
Correct answer: C
OSPF has an administrative distance of 110. Directly connected is 0, static is 1, EIGRP internal is 90, and RIP is 120. Lower AD is preferred when multiple sources offer the same prefix.
4. A router receives a packet destined for a network that is not in its routing table and no default route exists. What does the router do?
- A. Floods it out all interfaces
- B. Buffers it until a route appears
- C. Drops the packet
- D. Sends it to the DHCP server
Show answer
Correct answer: C
With no matching route and no gateway of last resort, the router drops the packet and (for ICMP) may return a destination-unreachable message. Routers never flood unknown unicast the way switches do.
5. Which command assigns a switch access port to VLAN 20?
- A. switchport trunk vlan 20
- B. switchport access vlan 20
- C. vlan 20 access
- D. switchport mode vlan 20
Show answer
Correct answer: B
After setting the port to access mode with switchport mode access, switchport access vlan 20 assigns it to VLAN 20. Trunk commands apply to 802.1Q trunk links, not access ports.
6. In 802.1D spanning tree, which port state receives BPDUs but does not forward frames or learn MAC addresses?
- A. Listening
- B. Learning
- C. Forwarding
- D. Blocking
Show answer
Correct answer: D
A blocking port only listens to BPDUs to maintain a loop-free topology; it does not forward frames or learn MACs. Learning ports build the MAC table but still do not forward; forwarding ports do both.
7. Which EtherChannel mode actively negotiates a bundle using LACP?
- A. on
- B. desirable
- C. active
- D. auto
Show answer
Correct answer: C
active and passive are LACP modes; active initiates negotiation. desirable and auto are PAgP (Cisco) modes. on forces the channel with no negotiation and must be set on both ends.
8. Which NAT variation maps many inside private addresses to a single public address by tracking port numbers?
- A. Static NAT
- B. Dynamic NAT
- C. PAT (NAT overload)
- D. Twice NAT
Show answer
Correct answer: C
Port Address Translation, configured with the overload keyword, lets many hosts share one public IP by distinguishing sessions with unique source ports. Static NAT is one-to-one; dynamic NAT maps to a pool without port overloading.
9. Place the DHCP DORA process in the correct order.
- A. Discover, Offer, Request, Acknowledge
- B. Offer, Discover, Acknowledge, Request
- C. Request, Offer, Discover, Acknowledge
- D. Discover, Request, Offer, Acknowledge
Show answer
Correct answer: A
The client broadcasts a DHCPDISCOVER, the server replies with a DHCPOFFER, the client sends a DHCPREQUEST for the offered lease, and the server confirms with a DHCPACK.
10. Following best practice, where should a standard ACL be applied?
- A. As close to the source as possible
- B. As close to the destination as possible
- C. On every interface in the path
- D. Only on the default gateway
Show answer
Correct answer: B
Standard ACLs filter on source address only, so placing them near the destination avoids unintentionally blocking traffic to other networks. Extended ACLs, which match source and destination, are placed near the source to drop unwanted traffic early.
11. What is the default violation mode for switchport port security?
- A. protect
- B. restrict
- C. shutdown
- D. disable
Show answer
Correct answer: C
The default violation mode is shutdown, which places the port in err-disabled state on a violation. protect silently drops offending frames, and restrict drops them while incrementing counters and sending an SNMP/syslog notification.
12. Which data format uses key/value pairs enclosed in braces and is commonly returned by REST APIs on Cisco controllers?
- A. YAML
- B. XML
- C. JSON
- D. CSV
Show answer
Correct answer: C
JSON (JavaScript Object Notation) represents data as key/value pairs inside curly braces and is the default payload format for most REST APIs, including Cisco DNA Center's northbound API.
How to use practice questions effectively
Practice questions are a diagnostic, not a study method on their own. When you miss one, don’t just memorize the right letter — open a lab and reproduce the concept on live gear. If you miss the OSPF administrative-distance question, build an OSPF topology and run show ip route to see the 110 in context. That connection between the fact and the CLI is what makes it stick under exam pressure.
Work the questions by domain alongside the study guide so you’re testing topics in the same order you learn them.
Turn wrong answers into lab reps
Generate a lab for any topic you miss and configure it yourself — free.
Start free