Courseiva
Security Engineering →easyMultiple Choice

CAS-004 Security Engineering Practice Question

Which key exchange algorithm provides perfect forward secrecy (PFS) and is recommended for use in TLS 1.3?

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

✓

ECDHE

ECDHE (Elliptic Curve Diffie-Hellman Ephemeral) provides PFS as session keys are ephemeral.

Answer analysis

Option-by-option breakdown

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

  • ✓

    ECDHE

    Why this is correct

    ECDHE generates an ephemeral key pair per session, then discards the private key, so compromising the long-term certificate key cannot decrypt past sessions — satisfying TLS 1.3's PFS requirement. TLS 1.3 mandates ephemeral Diffie-Hellman, and ECDHE is its recommended elliptic-curve instantiation, unlike static RSA key transport.

  • ✗

    RSA key exchange

    Why it's wrong here

    RSA key exchange encrypts the premaster secret with the server's long-term certificate key, so recorded traffic is decryptable once that private key leaks, giving no forward secrecy. RSA remains valid for signing and certificate authentication; TLS 1.3 mandates ephemeral (EC)DHE for key agreement.

  • ✗

    Pre-shared key (PSK)

    Why it's wrong here

    A pre-shared key is symmetric key material, not a key exchange algorithm, so it cannot deliver perfect forward secrecy: compromise of the PSK exposes all recorded sessions. PSK is tempting because TLS 1.3 does support pre_shared_key for session resumption and constrained IoT devices, but that mode lacks PFS.

  • ✗

    Diffie-Hellman (DH)

    Why it's wrong here

    Finite-field Diffie-Hellman is not recommended in TLS 1.3; the standard mandates ephemeral key agreement via ECDHE, with only named FFDHE groups permitted and DHE removed. Plain DH is tempting because it does provide PFS, but TLS 1.3 requires ephemeral elliptic-curve variants, not static or generic DH.

Quick reference

Asymmetric Encryption Algorithm Comparison

AlgorithmKey ExchangeSignaturesEquivalent Security KeyNotes
RSA-3072YesYes128-bitWidely deployed; slow for bulk data
ECDSA P-256NoYes128-bitFast signatures; standard TLS certs
ECDH / ECDHEYesNo128-bitPerfect forward secrecy in TLS 1.3
DH / DHEYesNo128-bit (3072-bit key)Replaced by ECDHE in modern TLS
Ed25519NoYes~128-bitSSH keys, modern PKI

About these practice questions

Courseiva writes every CAS-005 question from scratch — 973 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

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.