Practice
Solution
Step 1: Understand port forwarding (DNAT)
Port forwarding rewrites destination IP and port of incoming packets to internal server's IP and port.Step 2: Trace reply path
The server replies to the router's internal IP, which rewrites the source IP back to its public IP before sending to the external client.Step 3: Analyze options
The router changes the destination IP and port to the internal server's IP and port, forwards the packet, and rewrites the source IP of the reply back to the router's public IP correctly describes both forward and reply translation. The router changes the destination IP and port to the internal server's IP and port, then forwards the packet; the server replies directly to the client is incorrect because the server cannot reply directly to the client without NAT rewriting. The router only changes the destination IP but leaves the port unchanged; the internal server receives the packet and replies to the router misses port translation. The router forwards the packet without any translation; the internal server replies directly to the external client ignores NAT translation entirely.Final Answer:
Option A -> Option AQuick Check:
Port forwarding requires bidirectional NAT translation [OK]
- Assuming server replies directly to external client
- Forgetting port translation in forwarding
- Ignoring reply path NAT rewriting
Solution
Step 1: Recall idempotency definition
An idempotent method produces the same result no matter how many times it is repeated.Step 2: Analyze POST properties
POST is not idempotent; repeated identical POSTs can create multiple resources or side effects.Step 3: Evaluate options
Because POST is not idempotent, repeated identical requests may cause unintended side effects correctly identifies the non-idempotent nature of POST. Others are factually incorrect.Final Answer:
Option D -> Option DQuick Check:
POST is not idempotent, so using it for idempotent operations risks unintended consequences.
- Thinking POST is cached by default (it is not)
- Believing POST cannot carry a body (it can)
- Assuming POST deletes resources before updating
Solution
Step 1: Recall PAT function
PAT maps multiple internal IP:port pairs to a single public IP with unique source ports.Step 2: Identify limitation
Since TCP/UDP ports are 16-bit, only ~65,000 ports are available per public IP, limiting simultaneous connections.Step 3: Analyze options
PAT can run out of available source ports, limiting the number of simultaneous connections correctly identifies port exhaustion. PAT requires a unique public IP per internal host, increasing IP address consumption is false; PAT uses one public IP for many hosts. PAT cannot translate destination IP addresses, so inbound connections are impossible is unrelated to PAT's outbound translation. PAT causes all internal hosts to share the same source port, causing packet collisions is false; PAT assigns unique ports to avoid collisions.Final Answer:
Option C -> Option CQuick Check:
PAT port exhaustion limits simultaneous connections [OK]
- Thinking PAT needs multiple public IPs
- Confusing PAT with DNAT limitations
- Believing PAT uses the same source port for all hosts
Solution
Step 1: Review Network Layer responsibilities
The Network Layer handles routing and forwarding but does NOT guarantee reliable delivery.Step 2: Identify which layer ensures reliability
Transport Layer provides end-to-end reliability, not Network Layer.Step 3: Validate other statements
Data Link Layer handles error detection/correction on physical links, Session Layer manages sessions, Physical Layer transmits bits.Final Answer:
Option B -> Option BQuick Check:
Network Layer does NOT guarantee reliability [OK]
- Assuming Network Layer guarantees reliable delivery
- Confusing Session Layer with Transport Layer
- Misunderstanding Data Link Layer's error handling
Solution
Step 1: Understand advanced ARP spoofing mitigation
Dynamic ARP Inspection (DAI) is a security feature on switches that intercepts ARP packets and verifies them against a trusted binding database.Step 2: Why not disabling ARP?
ARP is essential for IP-to-MAC resolution; disabling it breaks local communication.Step 3: DHCP snooping is complementary but not sufficient
DHCP snooping helps build trusted bindings but does not directly inspect ARP packets.Step 4: Increasing ARP cache timeout worsens spoofing risk
Longer cache times mean stale or poisoned entries persist longer.Final Answer:
Option A -> Option AQuick Check:
DAI validates ARP packets to prevent spoofing effectively [OK]
- Thinking ARP can be disabled safely
- Confusing DHCP snooping with ARP inspection
- Believing longer ARP cache timeout improves security
