All practice questions

2237 questions

Question 601Question

Match each IEEE 802.1Q trunking component or configuration parameter on the left with its correct operational behavior or definition on the right.

Click a left item, then click its matching right item

Items

Native VLAN
802.1Q Header
Allowed VLAN List
Access Port

Matches

Show answer & explanation

Answer

Native VLAN matches with carrying untagged frame traffic across an 802.1Q trunk link. 802.1Q Header matches with inserting a 4-byte field containing a VLAN ID into the Ethernet frame. Allowed VLAN List matches with specifying which VLAN traffic is permitted to traverse a trunk link. Access Port matches with belonging to a single VLAN and transmitting untagged frames to end-user devices.
Each key trunking component maps directly to its operational definition: the Native VLAN handles untagged trunk frames, the 802.1Q header inserts a 4-byte tagging field, the allowed VLAN list restricts allowed VLAN IDs on a trunk, and an access port connects end devices to a single untagged VLAN domain.

Step-by-Step Solution

1
Identify the function of Native VLAN on 802.1Q trunks.
Native VLAN carries untagged traffic over trunk links without modification.
By definition in 802.1Q, frames originating on the native VLAN do not receive a 4-byte VLAN tag when crossing a trunk link.
2
Identify the structure and purpose of the 802.1Q header.
802.1Q inserts a 4-byte tag into the frame header to identify the destination VLAN ID.
Trunk interfaces use tagging to multiplex frames from multiple VLANs over a single physical link.
3
Identify the purpose of the allowed VLAN list configuration.
Allowed VLAN list restricts which VLANs can pass traffic across the trunk link.
Pruning or specifying allowed VLANs prevents unnecessary broadcast and unicast traffic for unneeded VLANs from traversing the trunk.
4
Identify the characteristics of an access port.
Access ports belong to a single VLAN and carry untagged frames for endpoint connectivity.
End-user devices such as PCs or printers do not understand 802.1Q VLAN tags, so access ports strip tags prior to frame egress.

Key Concept

VLAN Configuration and 802.1Q Trunking Fundamentals
Estimated Time:1m 0s
Question 602Question

An enterprise network topology consists of four switches operating standard IEEE 802.1w Rapid Spanning Tree Protocol (RSTP) using default path costs (1 Gbps=41\text{ Gbps} = 4, 100 Mbps=19100\text{ Mbps} = 19).

- Switch-R is configured with a bridge priority of 4096 (MAC address `00:11:22:33:44:55`).
- Switch-X, Switch-Y, and Switch-Z all maintain the default bridge priority of 32768.
- Switch-X connects to Switch-R via a 1 Gbps1\text{ Gbps} trunk link.
- Switch-Y connects to Switch-R via a 100 Mbps100\text{ Mbps} trunk link.
- Switch-Y also connects to Switch-X via a 1 Gbps1\text{ Gbps} trunk link.

Assuming all links are operational and STP convergence is complete, which statement accurately describes the Root Port selection and port status on Switch-Y?

Show answer & explanation

Answer: Switch-Y selects its interface connected to Switch-X as its Root Port, while its direct interface connected to Switch-R enters the Alternate (Discarding) state.

Answer

Switch-Y selects its interface connected to Switch-X as its Root Port, while its direct interface connected to Switch-R enters the Alternate (Discarding) state.
Root Port election on a non-root switch prioritizes the path with the lowest cumulative Root Path Cost to the Root Bridge. Switch-Y has two paths to Switch-R: a direct 100 Mbps100\text{ Mbps} link (cost 1919) and an indirect path via Switch-X (1 Gbps+1 Gbps1\text{ Gbps} + 1\text{ Gbps}, cost 4+4=84 + 4 = 8). Since 8<198 < 19, Switch-Y selects the link toward Switch-X as its Root Port. On the direct link between Switch-R and Switch-Y, Switch-R is the Designated Switch because it advertises a Root Path Cost of 00. Consequently, Switch-Y's direct port to Switch-R assumes the Alternate role and enters the Discarding state.

Step-by-Step Solution

1
Determine the Root Bridge of the topology.
Switch-R is elected Root Bridge because it has the lowest Bridge Priority (4096 vs 32768).
The switch with the lowest Bridge ID (Priority + MAC address) becomes the Root Bridge.
2
Calculate the cumulative Root Path Cost (RPC) for all candidate paths from Switch-Y to Switch-R.
Direct path via 100 Mbps100\text{ Mbps} link: RPC=19\text{RPC} = 19.
Indirect path via Switch-X (1 Gbps+1 Gbps1\text{ Gbps} + 1\text{ Gbps}): RPC=4+4=8\text{RPC} = 4 + 4 = 8.
Root Path Cost is the sum of path costs along the path to the Root Bridge.
3
Select the Root Port for Switch-Y based on the lowest Root Path Cost.
The interface connecting Switch-Y to Switch-X is elected as Switch-Y's Root Port because its path cost (88) is strictly less than the direct path cost (1919).
Each non-root switch selects a single Root Port corresponding to the path with the lowest cumulative cost to the Root Bridge.
4
Determine the role and state of Switch-Y's direct interface connected to Switch-R.
On the Switch-R to Switch-Y link, Switch-R is the Designated Bridge (advertising cost 00). Switch-Y's port on this segment receives superior BPDUs from Switch-R, so Switch-Y's local port becomes an Alternate Port in the Discarding state.
An interface that is neither a Root Port nor a Designated Port transitions to the Alternate role (Discarding/Blocking state) to prevent Layer 2 loops.

Key Concept

Spanning Tree Protocol Root Port Election and Root Path Cost Evaluation
Estimated Time:2m 0s
Question 603Question

A workstation on a remote branch subnet initializes network communications and requires an IP address assignment from a centralized DHCP server located across a routed WAN link. Place the chronological steps of the DHCP Relay forwarding process in the correct sequence from initial client packet creation to the reception of the initial offer.

Drag items to arrange them in the correct order

Show answer & explanation

Answer

The correct sequence starts with the workstation broadcasting a DHCPDISCOVER request locally on UDP port 67. Next, the Layer 3 relay agent inserts its interface IP into the giaddr field and unicasts the request to the central DHCP server. The DHCP server processes the giaddr field to match the scope and responds with a unicast DHCPOFFER to the relay agent. Finally, the relay agent forwards the DHCPOFFER down to the workstation segment on UDP port 68.
The DHCP sequence across subnets requires specific steps to bridge broadcast domains. First, the unconfigured client broadcasts a DHCPDISCOVER message using destination UDP port 6767. Second, the local relay agent captures the broadcast, inserts its local interface IP into the gateway IP address (giaddrgiaddr) header field, and unicasts the message across the routed network to the DHCP server on UDP port 6767. Third, the server uses the giaddrgiaddr value to select the proper subnet pool and unicasts a DHCPOFFER back to the relay agent interface. Fourth, the relay agent delivers the offer back to the client host on UDP port 6868.

Step-by-Step Solution

1
Identify the initial client request behavior.
The client broadcasts a DHCPDISCOVER packet locally using source UDP port 6868 and destination UDP port 6767.
Unconfigured hosts must broadcast locally to locate network configuration services.
2
Determine the action of the DHCP relay agent (IP Helper).
The relay agent captures the broadcast, appends its local interface address into the Gateway IP Address (giaddrgiaddr) field, and forwards the packet as a unicast transmission to the central DHCP server on UDP port 6767.
Routers drop local broadcasts by default; relaying requires converting the broadcast to a routable unicast packet and tagging the originating subnet.
3
Trace the DHCP server processing and reply.
The server matches the giaddrgiaddr to the appropriate scope, generates a DHCPOFFER, and unicasts it back to the relay agent interface on UDP port 6767.
The server relies on giaddrgiaddr rather than the IP header source address to determine which pool of addresses to draw from.
4
Trace the relay agent's final delivery to the client.
The relay agent forwards the DHCPOFFER packet onto the client's local subnet to UDP port 6868.
The client listens for DHCP server replies on UDP port 6868 to parse lease parameters.

Key Concept

DHCP Relay Agent Unicast Conversion and giaddr Field Processing
Estimated Time:2m 0s
Question 604Question

A network administrator needs to deploy several network-attached printers across multiple subnets. The printers must consistently maintain the same IP addresses for administrative routing and access control purposes, but the administrator wants to manage all IP configuration settings from a central server rather than manually configuring static entries on each physical device. Which IP addressing service feature should the administrator configure to satisfy these requirements?

Show answer & explanation

Answer: A DHCP reservation mapped to each printer's media access control (MAC) address

Answer

Configuring a DHCP reservation mapped to each printer's unique MAC address ensures consistent IP address assignment while retaining centralized network management.
A DHCP reservation allows a network administrator to configure fixed IP addresses for specific devices using their physical hardware (MAC) address. This maintains consistent addressing for services like network printing while centralizing control, lease options, and gateway definitions within the DHCP management console.

Step-by-Step Solution

1
Analyze the operational requirements
Identified the requirement for fixed IP addressing combined with centralized administration.
Manual static IP assignment on devices increases administrative overhead and prevents centralized management.
2
Evaluate DHCP service features
A DHCP reservation binds a specific IP address within a DHCP scope to a device's unique MAC address.
This guarantees that whenever the device requests an IP lease, the DHCP server hands out the designated reserved IP address along with standard scope options.

Key Concept

DHCP Reservations and IP Address Management
Estimated Time:1m 0s
Question 605Question

An enterprise edge router receives advertisements for the destination prefix 10.20.0.0/1610.20.0.0/16 from three distinct routing sources: an eBGP session (Administrative Distance 2020), an OSPF area (Administrative Distance 110110), and a floating static route configured with an Administrative Distance of 130130. Currently, the router installs the eBGP route into its routing table. The network operations team requires all traffic bound for 10.20.0.0/1610.20.0.0/16 to prefer the internal OSPF path under normal operating conditions, while maintaining the eBGP path as an automatic secondary backup if OSPF fails. Which configuration change directly achieves this objective without modifying network subnets or prefixes?

Show answer & explanation

Answer: Increase the eBGP Administrative Distance for the route above 110 but below 130.

Answer

Increase the eBGP Administrative Distance for the route to a value greater than OSPF (110) but less than the floating static route (130).
When a router learns the exact same destination prefix through multiple routing sources, it evaluates Administrative Distance (AD) first. Lower AD values indicate higher trust. By increasing the eBGP AD for the route to a value between 111 and 129, OSPF (AD 110) becomes the primary active route in the routing table, while eBGP (e.g., AD 120) remains available as the secondary backup before the floating static route (AD 130).

Step-by-Step Solution

1
Analyze how routers select paths among multiple routing sources.
When a router receives identical prefix routes (10.20.0.0/1610.20.0.0/16) from different protocols, it compares their Administrative Distance (AD). The route with the lowest AD is installed in the Routing Information Base (RIB).
Administrative Distance indicates the trustworthiness of a routing source.
2
Evaluate the current AD hierarchy.
Current order: eBGP (2020) < OSPF (110110) < Floating Static (130130). Hence, eBGP is active.
Lower AD values take precedence over higher AD values.
3
Adjust AD values to achieve the desired failover hierarchy (Primary: OSPF, Secondary: eBGP, Tertiary: Floating Static).
Increasing eBGP's AD to a value between 111111 and 129129 (e.g., 120120) causes OSPF (110110) to become the primary route, followed by eBGP (120120), and lastly the floating static route (130130).
This establishes the exact failover ordering specified in the requirements without altering prefix lengths.

Key Concept

Administrative Distance Hierarchy and Multi-Protocol Path Selection
Question 606Question

A network administrator is connecting a wireless access point (AP) to switch port GigabitEthernet 1/0/5. The AP transmits management traffic untagged on VLAN 100, while wireless user traffic on the 'Guest' SSID is transmitted with an 802.1Q tag for VLAN 200. The switch port is currently operating with default 802.1Q trunk settings, where VLAN 1 is the default native VLAN. Which interface configuration command must be executed on Switch GigabitEthernet 1/0/5 so that untagged management frames are correctly processed on VLAN 100?

Show answer & explanation

Answer: switchport trunk native vlan 100

Answer

The command 'switchport trunk native vlan 100' correctly designates VLAN 100 as the native VLAN on the 802.1Q trunk interface.
On an IEEE 802.1Q trunk link, untagged frames are associated with the port's native VLAN. By default, Cisco switches assign VLAN 1 as the native VLAN. Issuing the command 'switchport trunk native vlan 100' changes this mapping so that all untagged traffic (in this case, AP management traffic) is placed into VLAN 100 while maintaining 802.1Q tagging for VLAN 200.

Step-by-Step Solution

1
Analyze the framing requirements for the connected network device
Management traffic requires untagged framing for VLAN 100, and Guest traffic requires tagged 802.1Q framing for VLAN 200.
802.1Q trunks pass tagged frames for specified VLANs and untagged frames for a single designated native VLAN.
2
Identify the switch port's current state and necessary modification
The trunk defaults to VLAN 1 as the native VLAN. Untagged traffic will inadvertently enter VLAN 1 unless reconfigured.
To route untagged management frames into VLAN 100, the switch port's native VLAN ID must be explicitly changed from VLAN 1 to VLAN 100.
3
Select the appropriate interface CLI command
Executing 'switchport trunk native vlan 100' maps untagged ingress and egress frames to VLAN 100.
This command specifically redefines the 802.1Q native VLAN for the trunk port without disrupting tagged VLAN 200 traffic.

Key Concept

802.1Q Native VLAN Configuration
Question 607Question

A network administrator is inspecting an IEEE 802.1Q trunk link between two switches, `SW-CAMPUS-01` and `SW-CAMPUS-02`. The configuration of interface GigabitEthernet0/1 on `SW-CAMPUS-01` is:

text
interface GigabitEthernet0/1
switchport mode trunk
switchport trunk native vlan 50
switchport trunk allowed vlan 10,20,30,50

The configuration of interface GigabitEthernet0/1 on `SW-CAMPUS-02` is:

text
interface GigabitEthernet0/1
switchport mode trunk
switchport trunk native vlan 1
switchport trunk allowed vlan 10,20,30,50

A workstation connected to an access port on `SW-CAMPUS-01` in VLAN 50 transmits an unencapsulated Ethernet broadcast frame destined across the trunk link. Which of the following best describes how `SW-CAMPUS-02` will handle this frame upon arrival at its GigabitEthernet0/1 interface?

Show answer & explanation

Answer: It will accept the untagged frame and forward it to all active ports belonging to VLAN 1.

Answer

The switch receiving the frame will accept the untagged frame and forward it to all active ports belonging to VLAN 1.
Under IEEE 802.1Q trunking, traffic belonging to the native VLAN configured on an egress trunk port is sent untagged. Because the sending switch has VLAN 50 set as native, VLAN 50 frames enter the link without an 802.1Q tag. Upon receiving an untagged frame on a trunk port, the receiving switch assigns it to its own configured native VLAN (VLAN 1). Consequently, the frame is forwarded within VLAN 1 on the receiving switch.

Step-by-Step Solution

1
Analyze frame egress processing on the transmitting switch.
SW-CAMPUS-01 has native VLAN configured as VLAN 50. Therefore, frames belonging to VLAN 50 egress GigabitEthernet0/1 untagged (without an 802.1Q header).
By definition of IEEE 802.1Q standard, traffic belonging to the native VLAN of a trunk interface is transmitted untagged.
2
Analyze frame ingress processing on the receiving switch.
SW-CAMPUS-02 receives an untagged frame on GigabitEthernet0/1. Its configured native VLAN for that port is VLAN 1.
When a switch receives an untagged frame on an 802.1Q trunk port, it associates the frame with the local native VLAN configured on that specific receiving port.
3
Determine the forwarding behavior and operational impact.
The frame is processed as belonging to VLAN 1 on SW-CAMPUS-02, causing traffic to leak from VLAN 50 on the source switch into VLAN 1 on the destination switch.
Native VLAN mismatches do not block untagged frame forwarding by default; they result in cross-VLAN traffic leakage between different VLAN IDs.

Key Concept

802.1Q Native VLAN Operation and Mismatch Behavior
Question 608Question

While inspecting a packet capture file on a network monitoring station, a system administrator isolates an outbound HTTPS request generated by a client host. Which of the following correctly describes the encapsulation sequence and resulting Protocol Data Units (PDUs) as the application data travels down the protocol stack from Layer 4 to Layer 2?

Show answer & explanation

Answer: The Layer 4 protocol appends a TCP header to form a Segment, which is encapsulated by Layer 3 into an IP Packet, and finally encapsulated by Layer 2 with a header and trailer to form a Frame.

Answer

The correct sequence begins with the Transport layer (Layer 4) appending a TCP header to the application payload to create a Segment. Next, the Network layer (Layer 3) adds an IP header to create a Packet. Finally, the Data Link layer (Layer 2) wraps the packet with an Ethernet header and frame check sequence trailer to create a Frame.
During outbound network transmission, data flows downward through the protocol stack. Layer 4 (Transport) appends a TCP header to application data to produce a Segment. Layer 3 (Network) wraps the Segment inside an IP header to form a Packet. Layer 2 (Data Link) wraps the Packet with an Ethernet header and trailer to form a Frame ready for physical transmission.

Step-by-Step Solution

1
Identify Layer 4 (Transport Layer) processing
Application data receives a TCP header containing source and destination port numbers, creating a Transport layer Protocol Data Unit (PDU) known as a Segment.
HTTPS traffic utilizes TCP at Layer 4 to ensure reliable, connection-oriented delivery.
2
Identify Layer 3 (Network Layer) processing
The entire TCP Segment becomes the payload for Layer 3, where an IP header containing source and destination IP addresses is attached, creating a Packet.
Layer 3 encapsulation is required to enable logical routing across subnets.
3
Identify Layer 2 (Data Link Layer) processing
The IP Packet is encapsulated inside a Layer 2 header (containing source/destination MAC addresses) and a trailer (containing a Frame Check Sequence), creating a Frame.
Layer 2 framing prepares data for physical transmission across local network media.

Key Concept

Data Encapsulation and PDU Hierarchy
Estimated Time:1m 0s
Question 609Question

A network engineer is designing a core infrastructure interconnecting five datacenter switches. The design must provide maximum fault tolerance and link redundancy without relying on an intermediate core hub. Which TWO of the following statements correctly describe the physical requirements and operational characteristics of implementing a full-mesh topology in this scenario?

Select all that apply

Show answer & explanation

Answer: Connecting all five core switches in this topology requires a total of 1010 dedicated physical point-to-point links.; Every switch maintains a direct physical connection to every other switch, eliminating single points of failure between core nodes.

Answer

Connecting all five core switches requires a total of 10 dedicated physical links, and every switch maintains a direct point-to-point connection to every other switch.
In a full-mesh topology consisting of 5 switches, the link calculation formula n(n1)2\frac{n(n-1)}{2} specifies exactly 10 dedicated physical links. Additionally, the defining characteristic of a full-mesh topology is that every node has a direct connection to every other node, providing complete path redundancy.

Step-by-Step Solution

1
Calculate the required physical link count for a 5-node full-mesh topology
Using n=5n = 5 in n(n1)2\frac{n(n-1)}{2} yields 5×42=10\frac{5 \times 4}{2} = 10 links.
A full-mesh topology requires a dedicated connection between every unique pair of devices.
2
Evaluate the architectural redundancy of full mesh
Direct connections exist between all nodes.
This guarantees that no individual switch or cable failure will isolate any remaining device.
3
Identify misconceptions regarding Layer 3 boundaries and duplex modes
Physical mesh cabling does not replace Layer 3 routing nor automatically reconfigure port duplex settings.
Physical layout dictates path availability, whereas broadcast domain boundaries and port configurations operate at Layer 2/3 and interface configuration levels.

Key Concept

Full-Mesh Network Topology Link Calculations and Redundancy Characteristics
Question 610Question

A network administrator is establishing stateless inbound Access Control List (ACL) rules on an internal gateway router to allow remote network infrastructure monitoring and log aggregation. The management policy mandates that managed switches send encrypted log events via Secure Syslog (Syslog-TLS) to a central server while concurrently synchronizing system clocks with a dedicated internal time server. Which combination of transport layer protocols and destination port numbers must be permitted on the router to support both Secure Syslog and Network Time Protocol (NTP) traffic?

Show answer & explanation

Answer: TCP port 6514 for Secure Syslog and UDP port 123 for NTP

Answer

The correct rule configuration permits TCP port 6514 for Secure Syslog and UDP port 123 for NTP.
Secure Syslog (RFC 5425) specifies TCP port 6514 for transport layer security (TLS) log transmission to ensure confidentiality and reliable delivery. Network Time Protocol (NTP) utilizes UDP port 123 to handle low-latency timestamp exchanges across network devices.

Step-by-Step Solution

1
Identify the transport protocol and port number required for Secure Syslog (Syslog-TLS).
Standard unencrypted Syslog uses UDP port 514, while Secure Syslog over TLS mandates TCP port 6514 to establish encrypted transport sessions.
Encryption and session reliability require connection-oriented TCP at Layer 4.
2
Identify the transport protocol and port number required for Network Time Protocol (NTP).
NTP operates exclusively over UDP port 123.
Time synchronization requires minimal latency overhead provided by connectionless UDP.
3
Synthesize the ACL requirements to combine both port definitions.
The firewall rule must permit TCP port 6514 for Secure Syslog and UDP port 123 for NTP.
Matching both service specifications ensures secure log collection and accurate time synchronization across subnets.

Key Concept

Port and transport layer protocol mappings for Secure Syslog (TCP 6514) and NTP (UDP 123)
Question 611Question

A security analyst is investigating a potential incident involving a server assigned the IP address 10.80.35.138/2610.80.35.138/26. What is the broadcast IPv4 address of the subnet to which this server belongs?

Show answer & explanation

Answer: 10.80.35.191

Answer

10.80.35.191
The CIDR prefix /26/26 indicates a subnet mask of 255.255.255.192255.255.255.192, creating subnet increments of 6464 addresses in the fourth octet. The subnets start at .0.0, .64.64, .128.128, and .192.192. The IP address 10.80.35.13810.80.35.138 lies within the .128.128 subnet block (10.80.35.128/2610.80.35.128/26). The broadcast address is the final IP in this block, which is 10.80.35.19110.80.35.191.

Step-by-Step Solution

1
Determine the subnet mask and block size from the CIDR prefix length.
A /26/26 prefix corresponds to a subnet mask of 255.255.255.192255.255.255.192. The block size in the fourth octet is 256192=64256 - 192 = 64.
The CIDR notation /26/26 uses 26 network bits, leaving 6 host bits (26=642^6 = 64 addresses per subnet).
2
Identify the network boundaries for the fourth octet.
Subnet boundaries increment by 6464: 00, 6464, 128128, and 192192.
Each subnet span covers 64 continuous IP addresses.
3
Locate the given IP address within its subnet range.
The IP address 10.80.35.13810.80.35.138 falls within the range 10.80.35.12810.80.35.128 through 10.80.35.19110.80.35.191.
Since 128138<192128 \le 138 < 192, the network address for this subnet is 10.80.35.12810.80.35.128.
4
Determine the broadcast address for the subnet.
The broadcast address is 10.80.35.19110.80.35.191.
The broadcast address is the last address in the subnet range, immediately preceding the next subnet network ID (10.80.35.1921=10.80.35.19110.80.35.192 - 1 = 10.80.35.191).

Key Concept

IPv4 Subnetting and Broadcast Address Calculation
Question 612Question

A Layer 2 switch receives an Ethernet frame on Port 2, which is an access port assigned to VLAN 15. The source MAC address 0011.AA22.BB330011.AA22.BB33 is not currently listed in the switch's CAM table. The destination MAC address 0033.CC44.DD550033.CC44.DD55 is already present in the CAM table and associated with Port 7, an access port also assigned to VLAN 15. Port 10 is an access port assigned to VLAN 30, and Port 20 is configured as an 802.1Q trunk port carrying VLAN 15 and VLAN 30.

Which TWO of the following actions will the switch perform upon processing this frame? (Select TWO.)

Select all that apply

Show answer & explanation

Answer: The switch enters the source MAC address 0011.AA22.BB33 into its CAM table, associating it with Port 2 and VLAN 15.; The switch forwards the frame directly out Port 7 as an untagged frame.

Answer

The switch records the source MAC address 0011.AA22.BB33 mapped to Port 2 and VLAN 15 in its CAM table, and forwards the frame as an untagged Ethernet frame directly out Port 7.
When an Ethernet frame arrives at a switch, Layer 2 forwarding operations follow two distinct checks: source MAC learning and destination MAC forwarding. First, the switch checks the source MAC address. Because it is absent from the CAM table, the switch records the address 0011.AA22.BB33 associated with Port 2 in VLAN 15. Second, the switch looks up the destination MAC address 0033.CC44.DD55. Because it exists in the CAM table on Port 7 (which belongs to the same VLAN), the switch performs a microsegmentated unicast transmission directly out Port 7 as an untagged frame.

Step-by-Step Solution

1
Analyze source MAC address processing (Ingress learning).
The source MAC address 0011.AA22.BB33 is checked against the CAM table. Since it is missing, the switch adds an entry binding 0011.AA22.BB33 to Port 2 within VLAN 15.
Layer 2 switches perform dynamic MAC address learning on incoming frames to maintain an accurate CAM table.
2
Analyze destination MAC address processing (Egress forwarding).
The destination MAC address 0033.CC44.DD55 is looked up in the CAM table and found on Port 7 in VLAN 15. The switch forwards the frame directly to Port 7.
Known unicast frames are forwarded exclusively out the specific egress interface mapped to the destination MAC address within the matching VLAN.
3
Determine frame encapsulation format on egress.
The frame is transmitted out Port 7 without an 802.1Q tag.
Access switchports communicate with end hosts using standard untagged Ethernet frames.

Key Concept

Layer 2 Switch Frame Forwarding and Dynamic MAC Learning
Question 613Question

A network administrator is configuring a newly created VLAN dedicated to VoIP phones. The router interface handling this subnet is configured with the network block 172.16.45.128/27172.16.45.128/27. What is the maximum number of usable host IP addresses that can be assigned to end devices within this subnet?

Show answer & explanation

Answer: 30

Answer

The maximum number of usable host IP addresses that can be assigned is 30.
A prefix length of /27 leaves 5 host bits (3227=532 - 27 = 5). Calculating 252^5 yields 32 total IP addresses in the subnet block. Subtracting 2 for the unassignable network and broadcast addresses results in 30 usable host IP addresses.

Step-by-Step Solution

1
Determine the number of host bits remaining from the CIDR prefix.
3227=532 - 27 = 5 host bits
An IPv4 address consists of 32 total bits. Subtracting the prefix length gives the bits reserved for host addressing.
2
Calculate the total number of IP addresses in the subnet.
25=322^5 = 32 total IP addresses
The total number of addresses is calculated as 2 raised to the power of the host bits.
3
Subtract reserved addresses to find usable host IP addresses.
322=3032 - 2 = 30 usable host IP addresses
The first address in the block is reserved for the network ID and the last address is reserved for the network broadcast address.

Key Concept

IPv4 Subnet Host Calculation
Estimated Time:1m 15s
Question 614Question

A network administrator needs to apply a critical vendor security update to the organization's core infrastructure routers. In what order should the administrator execute the patch management lifecycle steps from first to last?

Drag items to arrange them in the correct order

Show answer & explanation

Answer

The correct sequence for the patch management lifecycle is: 1) Verify the cryptographic hash of the patch file, 2) Test the patch in an isolated sandbox lab, 3) Perform a baseline backup and obtain change management approval, 4) Install the patch across production devices during an approved maintenance window, and 5) Conduct post-installation system audits and performance monitoring.
A structured patch management lifecycle prioritizes risk reduction by verifying package integrity and testing in a lab staging environment first. After validating stability, administrators secure device baseline backups and obtain change management authorization. The patch is then deployed during an approved maintenance window, followed by post-implementation verification to ensure system integrity.

Step-by-Step Solution

1
Verify patch file integrity
Confirmed authentic update package file
Ensures corrupted or altered binary files are never staged or executed.
2
Lab staging and non-production testing
Validated patch stability in isolation
Exposes unexpected software behavior or service defects before impacting active production networks.
3
Configuration baseline backup and change approval
Authorized change ticket with a rollback baseline
Establishes administrative compliance and secures a recovery point if installation fails.
4
Production deployment during maintenance window
Patch applied using a phased rollout strategy
Restricts operational impact to scheduled downtime and limits blast radius.
5
Post-patch verification and telemetry monitoring
Verified operational compliance and remediated security posture
Ensures services are functioning as intended without performance degradation.

Key Concept

Standard Patch Management Lifecycle
Question 615Question

A network security administrator is deploying a site-to-site IPsec VPN tunnel between a branch office and central headquarters across an ISP connection where the branch router sits behind a network device performing Port Address Translation (PAT). Initial testing using Authentication Header (AH) in transport mode fails to pass traffic, whereas switching the configuration to Encapsulating Security Payload (ESP) in tunnel mode with NAT-Traversal (NAT-T) enabled allows full connectivity. Which of the following technical mechanisms explains why AH fails across a PAT-enabled device while ESP with NAT-T functions successfully?

Show answer & explanation

Answer: AH computes its Integrity Check Value (ICV) over immutable header fields including IP source and destination addresses, causing authentication failures when PAT mutates header fields; ESP with NAT-T encapsulates protocol packets inside UDP port 4500 headers to preserve payload integrity across translation.

Answer

AH fails in a PAT environment because its Integrity Check Value (ICV) calculation incorporates the outer IP header (including IP addresses), which is altered by PAT and leads to verification failure. In contrast, ESP encapsulates payload data without hashing the outer IP header, and NAT-T wraps ESP inside UDP port 4500 headers to allow PAT routers to translate IP addresses and UDP port numbers without breaking packet integrity or firewall tracking.
The option explaining that AH includes outer IP header fields in its ICV calculation while ESP with NAT-T encapsulates traffic in UDP port 4500 is correct. Because PAT modifies IP addresses in the packet header, AH's cryptographic integrity check fails upon receipt. ESP does not include the outer IP header in its ICV, and NAT-Traversal encapsulates ESP within UDP port 4500 packets, allowing PAT devices to translate address and port headers seamlessly.

Step-by-Step Solution

1
Analyze the scope of cryptographic integrity protection for IPsec Authentication Header (AH).
Identify that AH calculates an Integrity Check Value (ICV) over the entire IP packet, including immutable fields in the outer IP header such as Source and Destination IP addresses.
Understanding what fields are signed by AH explains why any modification to the IP packet in transit invalidates the hash.
2
Examine the impact of Port Address Translation (PAT) on packet headers.
Recognize that PAT modifies source/destination IP addresses and layer 4 port numbers on intermediate network devices.
Address translation changes header values, which directly causes the receiving peer's AH ICV check to fail.
3
Evaluate why Encapsulating Security Payload (ESP) with NAT-Traversal (NAT-T) resolves the issue.
Note that ESP does not protect the outer IP header within its ICV, and NAT-T encapsulates ESP (IP Protocol 50) inside standard UDP datagrams (UDP port 4500).
Encapsulating ESP within UDP allows PAT routers to modify outer IP and UDP headers without altering the encrypted inner payload or invalidating the ICV.

Key Concept

IPsec AH vs ESP Header Protection and NAT-Traversal (NAT-T) Mechanics
Question 616Question

A network security team is deploying an extended stateless IPv4 Access Control List (ACL) on an egress router interface filtering traffic between an internal database server (10.50.10.25/2410.50.10.25/24) and external application servers (172.16.100.0/24172.16.100.0/24). The application servers initiate database connections to TCP port 54325432 (PostgreSQL), and the database server is configured to send automated diagnostic alerts to an external syslog server at 172.16.100.50172.16.100.50 listening on UDP port 514514. Which TWO configuration entries or operational requirements must be implemented on the stateless egress ACL to guarantee bidirectional application communication and outbound alerting? (Select TWO.)

Select all that apply

Show answer & explanation

Answer: Permit outbound TCP traffic from host 10.50.10.25 source port 5432 to 172.16.100.0/24 with TCP control flags set to permit return query responses.; Permit outbound UDP traffic from host 10.50.10.25 to destination host 172.16.100.50 on destination port 514.

Answer

To allow communication through a stateless router ACL, explicit outbound rules must be created: one allowing return TCP responses from source port 5432 with TCP control flags (ACK/established) set, and one allowing outbound UDP syslog traffic from the database server to destination IP 172.16.100.50 on destination UDP port 514.
Because stateless ACLs do not automatically track session state, return traffic from TCP port 5432 must be explicitly permitted using TCP flag matching (ACK/established). Additionally, UDP syslog traffic originating from the server targeting destination port 514 requires an explicit permit statement due to the implicit deny at the end of the ACL.

Step-by-Step Solution

1
Analyze the stateless filtering behavior for connection-oriented TCP traffic.
Unlike stateful firewalls, stateless router ACLs do not maintain a connection table. When an external host connects to TCP port 5432, return packets originating from the database server (source port 5432) require an explicit outbound ACL rule matching the TCP ACK or established flag.
Without an explicit return rule for source port 5432 with TCP control flags, return database traffic will be dropped by the ACL.
2
Analyze the stateless filtering behavior for connectionless UDP traffic.
Syslog traffic transmitted from the database server to the logging server at 172.16.100.50 uses connectionless UDP port 514. An explicit permit rule matching destination UDP port 514 is necessary.
Because UDP has no handshakes or connection states, stateless devices require a simple direction-specific match rule for destination UDP port 514.
3
Evaluate default ACL behavior and protocol definitions.
Standard ACLs end with an implicit deny all statement (`deny ip any any`), so unpermitted traffic is blocked. Standard Syslog uses UDP rather than TCP.
Confusing implicit deny rules or protocol types (TCP vs UDP) causes security rule misconfigurations.

Key Concept

Stateless ACL rules require bidirectional explicit definitions, using TCP control flag matching for TCP return flows and specific UDP port permitting for connectionless logging.
Question 617Question

Remote workers attempting to connect to an enterprise network using an IPsec IKEv2 remote access client report that authentication succeeds, but no internal network resources are accessible and tunnel data transmission fails immediately after connection setup. The edge network security monitoring tool shows that Phase 1 (IKE) negotiations complete successfully over UDP port 500, but Encapsulating Security Payload (ESP) packets sent during Phase 2 are silently dropped by the remote users' Small Office/Home Office (SOHO) routers performing Port Address Translation (PAT). Which of the following configuration changes will resolve this connectivity issue while maintaining secure, encrypted communications?

Show answer & explanation

Answer: Enable NAT Traversal (NAT-T) on the VPN headend gateway to encapsulate ESP data within UDP port 4500 packets.

Answer

Enabling NAT Traversal (NAT-T) on the VPN headend gateway encapsulates ESP traffic inside UDP port 4500 packets, allowing the IPsec tunnel to traverse PAT/NAT devices without dropping Phase 2 traffic.
Standard IPsec Encapsulating Security Payload (ESP) operates at Layer 3 using IP protocol number 50. Because ESP lacks Layer 4 TCP/UDP port headers, SOHO routers using Port Address Translation (PAT) frequently drop or misroute raw ESP packets. Enabling NAT Traversal (NAT-T) encapsulates ESP packets inside standard UDP datagrams targeting port 4500, permitting PAT routers to properly process and forward the encrypted tunnel traffic.

Step-by-Step Solution

1
Analyze the reported issue and network path symptoms.
Phase 1 (IKE) succeeds over UDP port 500, but Phase 2 data transport fails when raw ESP traffic (IP protocol 50) encounters intermediate SOHO routers performing Port Address Translation (PAT).
PAT devices rebind Layer 4 TCP/UDP ports, but standard ESP operates directly on Layer 3 (IP protocol 50) without TCP or UDP headers, causing many basic consumer NAT routers to drop or fail to track ESP sessions correctly.
2
Evaluate potential solutions for IPsec NAT compatibility.
NAT Traversal (NAT-T) automatically detects intermediate NAT/PAT devices during Phase 1 negotiations (IKE) and wraps the raw ESP packets inside UDP headers using port 4500.
Because UDP port 4500 contains standard Layer 4 port headers, PAT gateways can cleanly translate and track the stateful VPN session.
3
Verify protocol enforcement and security posture.
Enabling NAT-T on the headend gateway allows remote users behind home PAT routers to establish a fully encrypted IPsec tunnel without sacrificing confidentiality.
NAT-T maintains ESP encryption while resolving the NAT handling conflict.

Key Concept

IPsec NAT Traversal (NAT-T) and UDP Port 4500 Encapsulation
Estimated Time:2m 0s
Question 618Question

An IT administrator investigating unexpected latency on a voice-over-IP (VoIP) network segment notices that host traffic destined for the default gateway IP address (10.20.4.110.20.4.1) is being redirected through an unauthorized host with MAC address `02:AB:C1:23:45:67`. Inspection of network captures reveals continuous unsolicited Gratuitous Address Resolution Protocol (GARP) frames originating from IP address 10.20.4.8810.20.4.88, associating its own physical address with 10.20.4.110.20.4.1. Which of the following network attack types is actively occurring on this segment?

Show answer & explanation

Answer: ARP Poisoning

Answer

ARP Poisoning is occurring because the attacker uses unsolicited GARP broadcasts to overwrite the Layer 2 cache entries of local devices.
The correct option correctly identifies ARP Poisoning because the attacker sends forged Gratuitous ARP packets to pollute the neighbor caches of local hosts, binding the gateway's IP address to the attacker's physical MAC address for traffic interception.

Step-by-Step Solution

1
Analyze the protocol behavior described in the incident logs.
Unsolicited Gratuitous ARP (GARP) frames are mapping IP address 10.20.4.1 to MAC address 02:AB:C1:23:45:67.
Address Resolution Protocol operates at Layer 2 to map IPv4 logical addresses to physical MAC addresses.
2
Determine how local hosts handle these incoming frames.
Hosts update their internal ARP tables to send gateway traffic to the attacker's network interface.
Standard network nodes blindly update their ARP tables upon receiving ARP responses without validating prior request queries.
3
Identify the corresponding security attack classification.
This technique matches the operation of ARP Poisoning (or ARP Spoofing).
Manipulating Layer 2 neighbor discovery entries with spoofed MAC mappings is the core mechanism of ARP poisoning.

Key Concept

Common Network Attack Types and Vectors - ARP Poisoning
Question 619Question

During a security incident investigation on an enterprise local area network, network monitoring tools record a high volume of traffic originating from a host connected to switch port Fa0/12. Analysis reveals that the host flooded the switch with thousands of Ethernet frames containing randomized source MAC addresses, completely filling the switch Content Addressable Memory (CAM) table. Immediately following this flood, analysts observe that confidential unicast traffic intended for a specific internal database server is being replicated and sent out all active ports on the VLAN. Which of the following statements accurately describe the underlying mechanics of this network attack and the appropriate Layer 2 countermeasures? (Select TWO)

Select all that apply

Show answer & explanation

Answer: The attack forces the switch into a fail-open state (unicast flooding), causing it to act like a hub and broadcast unicast frames across all ports in the VLAN when destination MAC addresses cannot be found in the CAM table.; Configuring Port Security on switch interfaces to limit the maximum number of learned MAC addresses and specify violation actions effectively prevents MAC flooding attacks.

Answer

The attack forces the switch into a fail-open state (unicast flooding) due to CAM table exhaustion, and configuring Port Security with MAC address limits on switch interfaces is the primary Layer 2 mitigation.
The scenario describes a classic MAC flooding (CAM table exhaustion) attack. By overwhelming the switch with spoofed source MAC addresses, the switch's forwarding table fills up, causing it to fall back to flooding unknown unicast frames out all ports in the VLAN (behaving like a hub). Implementing Port Security on switch access ports restricts the allowed MAC addresses per port, preventing an attacker from injecting thousands of fake MAC addresses.

Step-by-Step Solution

1
Analyze the observed attack mechanics described in the scenario.
The continuous generation of frames with randomized source MAC addresses exhausts the fixed storage space of the switch CAM table.
Once the CAM table is full, legitimate MAC-to-port bindings are flushed, and the switch cannot store new valid bindings.
2
Evaluate how a switch handles frames with destination MAC addresses missing from the CAM table.
The switch enters a fail-open condition known as unknown unicast flooding.
Because the switch cannot look up the destination port in its table, it floods unicast frames to every port in the same VLAN except the ingress port, allowing an attacker on any port to capture the traffic.
3
Identify the proper switch configuration control to mitigate this specific Layer 2 attack vector.
Port Security with strict MAC address limits effectively blocks MAC flooding.
Port Security bounds the number of MAC addresses learned on access ports (e.g., maximum of 1 or 2 MACs per port) and triggers a shutdown or restrict action if unknown MAC addresses are received.

Key Concept

MAC Flooding / CAM Table Exhaustion and Port Security Mitigation
Question 620Question

An administrator is auditing an enterprise network's device monitoring architecture to satisfy compliance guidelines. The policy mandates that all SNMP telemetry and event notifications transmitted between network switches and the central management station must enforce both sender identity verification and full packet payload encryption. Which of the following SNMPv3 security levels must be configured on the devices to meet these audit requirements?

Show answer & explanation

Answer: authPriv

Answer

The correct option is authPriv, as it provides both user authentication and data encryption for SNMPv3 management traffic.
The authPriv (Authentication and Privacy) security level in SNMPv3 uses cryptographic hashing for identity verification and symmetric encryption (such as AES) to ensure data confidentiality, fulfilling both requirements of the audit policy.

Step-by-Step Solution

1
Analyze the security audit compliance requirements.
The requirements demand sender authentication (identity verification) and packet privacy (payload encryption).
Auditing standards mandate protecting network management telemetry against unauthorized tampering and eavesdropping.
2
Evaluate SNMPv3 User-based Security Model (USM) levels.
noAuthNoPriv offers no authentication or encryption; authNoPriv offers authentication without encryption; authPriv offers both authentication and encryption.
SNMPv3 defines three security modes with escalating cryptographic protection levels.
3
Select the security level matching both audit criteria.
authPriv satisfies both identity verification and encryption requirements.
It is the only SNMP level that combines HMAC authentication hashing with AES encryption.

Key Concept

SNMPv3 Security Levels (noAuthNoPriv, authNoPriv, authPriv)
PreviousPage 31 / 112Next
All practice questions — CompTIA Network+ | Examkin