IKM Network Engineering and Security — Questions and Answers
Question 1: What is the primary purpose of a firewall?
- Speed up traffic
- Monitor and control traffic based on security rules (Correct answer)
- Compress data packets
- Assign IP addresses
Correct answer: Monitor and control traffic based on security rules
A firewall examines traffic against security rules and permits or blocks accordingly.
Types: packet filters (Layer 3-4), stateful (track connections), application (Layer 7), next-generation (combine all with IPS). Rules processed top-to-bottom with default deny.
Question 2: What is a man-in-the-middle attack?
- Brute force password attack
- Attacker intercepts and potentially alters communications between two parties (Correct answer)
- Denial-of-service attack
- Social engineering call
Correct answer: Attacker intercepts and potentially alters communications between two parties
In MITM, the attacker positions between two parties, intercepting and possibly modifying data.
Methods include ARP spoofing, DNS spoofing, SSL stripping, and rogue Wi-Fi. Prevention includes TLS with certificate pinning, HSTS, and mutual authentication.
Question 3: Which wireless encryption standard is currently recommended?
- WEP
- WPA
- WPA2-AES
- WPA3 (Correct answer)
Correct answer: WPA3
WPA3 provides stronger encryption and protection against brute-force attacks.
WPA3 uses SAE replacing WPA2's 4-way handshake, providing forward secrecy. WEP is broken, WPA was temporary. WPA3 addresses KRACK and other WPA2 vulnerabilities.
Question 4: What is the purpose of an IDS?
- Block all traffic
- Monitor traffic for suspicious activity and generate alerts (Correct answer)
- Encrypt data in transit
- Manage passwords
Correct answer: Monitor traffic for suspicious activity and generate alerts
IDS monitors for malicious behavior and generates alerts but does not actively block.
NIDS monitors network traffic; HIDS monitors system files. Detection methods: signature-based, anomaly-based, heuristic. IDS is passive; IPS is active (blocks).
Question 5: What is network segmentation?
- Dividing a network to contain breaches and reduce attack surface (Correct answer)
- Combining networks for efficiency
- Compressing traffic
- Rotating encryption keys
Correct answer: Dividing a network to contain breaches and reduce attack surface
Segmentation divides a network into isolated segments to limit lateral movement during breaches.
Uses VLANs, subnets, and firewalls. Common segments: DMZ, management, guest, PCI zone. Microsegmentation uses SDN for individual workload isolation.
Question 6: What is the function of a VPN?
- Increase internet speed
- Create an encrypted tunnel over public networks (Correct answer)
- Block malware
- Manage DNS records
Correct answer: Create an encrypted tunnel over public networks
A VPN creates an encrypted tunnel ensuring data confidentiality and integrity.
Protocols include IPsec, OpenVPN, WireGuard. Site-to-site connects networks; remote access connects users. Split vs full tunneling determines which traffic goes through the VPN.
Question 7: What is a DDoS attack?
- Credential theft
- Overwhelming a target with traffic from multiple sources (Correct answer)
- Software vulnerability exploit
- Intercepting encrypted data
Correct answer: Overwhelming a target with traffic from multiple sources
DDoS uses multiple compromised systems to flood a target, making it unavailable.
Types: volumetric (UDP flood), protocol (SYN flood), application layer (HTTP flood). Mitigation includes CDN protection, rate limiting, and traffic scrubbing.
Question 8: What is the principle of least privilege?
- Minimum number of passwords
- Grant only the minimum access rights needed for job functions (Correct answer)
- Run fewest services
- Encrypt only sensitive data
Correct answer: Grant only the minimum access rights needed for job functions
Users and systems should only have minimum permissions necessary.
Implementation includes RBAC, just-in-time access, PAM solutions, and regular access reviews. Applies to user accounts, service accounts, API keys, and firewall rules.
Question 9: What is PKI?
- Password management system
- Framework for managing digital certificates and encryption keys (Correct answer)
- Network monitoring protocol
- Backup strategy
Correct answer: Framework for managing digital certificates and encryption keys
PKI provides infrastructure for creating, managing, and revoking digital certificates.
Components: Certificate Authorities (issue certs), Registration Authorities (verify identity), CRL and OCSP (revocation). Enables TLS, S/MIME, code signing, and VPN auth.
Question 10: What is the difference between symmetric and asymmetric encryption?
- Symmetric is stronger
- Symmetric uses one shared key; asymmetric uses a public-private key pair (Correct answer)
- Asymmetric is for storage only
- No practical difference
Correct answer: Symmetric uses one shared key; asymmetric uses a public-private key pair
Symmetric uses the same key for both operations; asymmetric uses a mathematically related key pair.
Symmetric (AES-256) is fast for bulk data. Asymmetric (RSA, ECC) solves key distribution but is 100-1000x slower. TLS uses both: asymmetric for key exchange, symmetric for data.
Question 11: What is multi-factor authentication?
- Multiple passwords
- Two or more verification factors from different categories (Correct answer)
- Multiple simultaneous logins
- Password complexity requirement
Correct answer: Two or more verification factors from different categories
MFA requires factors from different categories: something you know, have, or are.
Categories: knowledge (password), possession (phone, token), inherence (fingerprint). FIDO2/WebAuthn provides strongest phishing-resistant auth. Adaptive MFA adjusts based on risk.
Question 12: What is a zero-day vulnerability?
- Patched within 24 hours
- Unknown flaw exploited before a patch exists (Correct answer)
- Zero risk score
- Vulnerability in outdated software
Correct answer: Unknown flaw exploited before a patch exists
A zero-day is exploited before the vendor knows about it or has a patch.
Traditional signature-based defenses are ineffective. Mitigation includes behavior-based detection, application whitelisting, segmentation, and defense-in-depth.
Question 13: A client opens a TCP connection to a web server. Which sequence of segments completes the three-way handshake?
- SYN, ACK, SYN-ACK
- SYN, SYN-ACK, ACK (Correct answer)
- SYN-ACK, SYN, ACK
- SYN, FIN, ACK
Correct answer: SYN, SYN-ACK, ACK
The client sends SYN, the server replies SYN-ACK, and the client confirms with ACK.
Question 14: An administrator wants directory queries encrypted using LDAP over SSL/TLS. Which TCP port is used by default?
- 389
- 443
- 3268
- 636 (Correct answer)
Correct answer: 636
LDAPS listens on TCP 636, while plain LDAP uses 389.
Question 15: Which IEEE standard defines how VLAN tags are inserted into Ethernet frames on trunk links?
- 802.1Q (Correct answer)
- 802.1X
- 802.3ad
- 802.11i
Correct answer: 802.1Q
IEEE 802.1Q adds a 4-byte tag carrying the VLAN ID to Ethernet frames.
Question 16: An attacker on a LAN sends forged replies mapping the default gateway's IP to the attacker's MAC address. What is this attack called?
- DNS cache poisoning
- MAC flooding
- ARP spoofing (Correct answer)
- VLAN hopping
Correct answer: ARP spoofing
ARP spoofing poisons hosts' ARP caches so traffic for the gateway is redirected through the attacker.
Question 17: By default, what does OSPF use to calculate its route metric?
- Hop count
- Cost derived from interface bandwidth (Correct answer)
- Delay and reliability combined
- AS path length
Correct answer: Cost derived from interface bandwidth
OSPF cost is calculated as a reference bandwidth divided by the interface bandwidth.
Question 18: How many usable host addresses are available in a /26 IPv4 subnet?
- 30
- 64
- 126
- 62 (Correct answer)
Correct answer: 62
A /26 has 64 addresses, minus the network and broadcast addresses, leaving 62 usable hosts.
Question 19: What primarily distinguishes a stateful firewall from a stateless packet filter?
- It tracks connection state and permits return traffic for established sessions (Correct answer)
- It inspects only source and destination IP addresses
- It works exclusively at Layer 2
- It cannot filter by port number
Correct answer: It tracks connection state and permits return traffic for established sessions
Stateful firewalls keep a state table so replies matching established sessions are allowed automatically.