Courseiva
CryptographyhardMultiple ChoiceObjective-mapped

Forward Secrecy: Ephemeral Diffie-Hellman in IPsec

An organization is configuring a VPN using IPsec. To ensure forward secrecy, which key exchange method should be used?

Quick Answer

Ephemeral Diffie-Hellman, whether the classic DHE or its elliptic-curve variant ECDHE, is what provides forward secrecy because it generates a brand-new, temporary key pair for every single session rather than reusing a long-term key across many sessions. That temporary key is used only to derive that one session's encryption key and is then discarded once the session ends, meaning there's no persistent secret tied to that session sitting around waiting to be compromised later. This matters because the alternative, deriving session keys directly from a long-term static private key, creates a single point of failure: if an attacker ever obtains that long-term key, whether through a breach or years of patient cryptanalysis, they could retroactively decrypt every session ever protected by it, including traffic they recorded and stored long ago. Ephemeral key exchange breaks that link entirely, since each session's key material is independent of the long-term key and independent of every other session's key material; compromising the long-term key in the future tells an attacker nothing about past ephemeral session keys, which no longer exist anywhere. This is why forward secrecy is specifically a property of how keys are exchanged, not of the encryption algorithm itself. Whenever a question asks what enables forward secrecy in IPsec or similar protocols, look for ephemeral or temporary key exchange methods rather than static, long-term key usage.

⚠ Common exam trap

Test-takers frequently confuse 'Diffie-Hellman' in general with forward secrecy, not realizing that only the ephemeral variant (DHE/ECDHE) provides it, while static Diffie-Hellman does not.

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

Ephemeral Diffie-Hellman (DHE or ECDHE)

Ephemeral Diffie-Hellman (DHE or ECDHE) provides forward secrecy because it generates a temporary, one-time key pair for each session. If the long-term private key is compromised, past session keys cannot be derived, as the ephemeral keys are discarded after use. This ensures that even if an attacker records encrypted traffic and later obtains the private key, they cannot decrypt past sessions.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Ephemeral Diffie-Hellman (DHE or ECDHE)

    Why this is correct

    Ephemeral DH generates new key pairs for each session, so compromise of long-term keys does not expose past session keys.

  • RSA key exchange

    Why it's wrong here

    RSA key exchange does not provide forward secrecy because the session key is encrypted with the server's RSA private key; if that key is compromised, past sessions can be decrypted.

  • Pre-shared key (PSK)

    Why it's wrong here

    PSK is a symmetric key; if compromised, all past sessions using that key are exposed.

  • Static Diffie-Hellman

    Why it's wrong here

    Static DH uses fixed private keys; if the private key is compromised, all past session keys can be derived.

Quick reference

VPN Protocol Comparison

ProtocolPortEncryptionAuthenticationUse Case
IKEv2 / IPsecUDP 500 / 4500AES-256Certificates / PSKSite-to-site & remote access
SSL / TLS VPNTCP 443TLS 1.3Certificates / MFAClientless remote access
L2TP / IPsecUDP 1701AES (IPsec)PSK / CertificatesLegacy remote access
WireGuardUDP 51820ChaCha20Public keysModern high-performance VPN
PPTPTCP 1723MPPE (weak)MS-CHAPv2Legacy — avoid in production

PPTP is considered insecure. IKEv2/IPsec and SSL VPN are the current recommended options.

About these practice questions

One of 920 original SSCP 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 →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 more way this is tested on SSCP

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. A company is deploying a VPN using IPsec. They want to ensure that even if the private key of the server is compromised, past session keys cannot be derived. Which key exchange method should they use?

medium
  • A.Pre-shared key (PSK)
  • B.RSA key exchange
  • C.Ephemeral Diffie-Hellman (DHE or ECDHE)
  • D.Diffie-Hellman with static keys

Why C: Ephemeral Diffie-Hellman (DHE or ECDHE) provides perfect forward secrecy (PFS) because it generates a unique, temporary session key for each session using ephemeral key pairs. Even if the server's long-term private key is compromised, past session keys cannot be derived because they were created from ephemeral keys that are discarded after each session. This ensures that historical encrypted traffic remains secure.

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This SSCP practice question is part of Courseiva's free ISC2 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 SSCP exam.