CAS-004 Security Engineering Practice Question
A security engineer is configuring IPsec VPN between two sites. The requirement is to encrypt the entire IP packet, including the original IP header. Which IPsec mode and protocol should be used?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Tunnel mode with ESP
Tunnel mode with ESP encrypts the entire original IP packet and adds a new IP header, which is required for gateway-to-gateway VPNs. ESP provides encryption and optional authentication.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Transport mode with AH
Why it's wrong here
AH provides integrity and authentication but no encryption, so the packet payload is never encrypted, and transport mode leaves the original IP header intact and unencrypted. AH is tempting where only integrity and anti-replay are required, such as authenticating routing updates between trusted peers.
- ✗
Tunnel mode with AH
Why it's wrong here
Tunnel mode encapsulates the entire original packet, but AH still performs no encryption, so the requirement to encrypt the packet is unmet. AH is tempting for integrity-only protection, such as authenticating traffic between gateways where confidentiality is not required.
- ✗
Transport mode with ESP
Why it's wrong here
ESP encrypts only the payload; transport mode leaves the original IP header unencrypted and unencapsulated, so the whole-packet requirement fails. Transport mode with ESP is tempting for host-to-host encryption between two endpoints, where the original header need not be hidden.
- ✓
Tunnel mode with ESP
Why this is correct
Tunnel mode encapsulates the entire original IP packet, including its header, inside a new IP packet, whereas transport mode protects only the payload. ESP supplies the encryption, so tunnel mode with ESP encrypts the whole packet as the stem requires.
Quick reference
VPN Protocol Comparison
| Protocol | Port | Encryption | Authentication | Use Case |
|---|---|---|---|---|
| IKEv2 / IPsec | UDP 500 / 4500 | AES-256 | Certificates / PSK | Site-to-site & remote access |
| SSL / TLS VPN | TCP 443 | TLS 1.3 | Certificates / MFA | Clientless remote access |
| L2TP / IPsec | UDP 1701 | AES (IPsec) | PSK / Certificates | Legacy remote access |
| WireGuard | UDP 51820 | ChaCha20 | Public keys | Modern high-performance VPN |
| PPTP | TCP 1723 | MPPE (weak) | MS-CHAPv2 | Legacy — avoid in production |
PPTP is considered insecure. IKEv2/IPsec and SSL VPN are the current recommended options.
About these practice questions
One of 973 original CAS-005 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This CAS-005 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CAS-005 exam.