Courseiva
Threats, Vulnerabilities, and MitigationsmediumDrag & DropObjective-mapped

SY0-701 Threats, Vulnerabilities, and Mitigations Practice Question

Drag and drop the steps for the SSH key exchange process in the correct order.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5

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

1: Client initiates SSH connection, 2: Server sends host key, 3: Diffie-Hellman key exchange, 4: Encryption established

SSH key exchange establishes a secure channel; the server's host key is used to verify identity, and Diffie-Hellman generates a shared secret.

Answer analysis

Option-by-option breakdown

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

  • 1: Client initiates SSH connection, 2: Server sends host key, 3: Diffie-Hellman key exchange, 4: Encryption established

    Why this is correct

    The SSH handshake always starts with the client opening a TCP connection and exchanging protocol version banners. After this initial handshake, the server sends its host key so the client can verify the server's identity before any key exchange parameters are trusted. Next, the Diffie-Hellman key exchange allows both peers to independently compute a shared secret without ever transmitting it. Only then do both sides activate symmetric encryption using session keys derived from that shared secret.

  • 1: Client initiates, 2: Diffie-Hellman key exchange, 3: Server sends host key, 4: Encryption established

    Why it's wrong here

    This order is wrong because the server's host key must be sent before the Diffie-Hellman key exchange so the client can verify the server's identity; without it, the client cannot trust the key exchange parameters.

  • 1: Server sends host key, 2: Client initiates, 3: Diffie-Hellman key exchange, 4: Encryption established

    Why it's wrong here

    This sequence is impossible because the server can only send its host key after the client has established a TCP connection and initiated the SSH protocol exchange. In practice, the server remains passive until it receives the client's version string and algorithm negotiation; only then will it present its host key within the key exchange reply. Without a client-initiated connection, there is no channel on which the server can transmit anything, so this ordering violates the client-server relationship.

  • 1: Client initiates, 2: Server sends host key, 3: Encryption established, 4: Diffie-Hellman key exchange

    Why it's wrong here

    Placing encryption before the Diffie-Hellman key exchange is technically backwards because symmetric encryption requires an agreed-upon session key, which is precisely the output of the DH computation. During the actual SSH handshake, the DH exchange yields a shared secret that is then run through a key derivation function to produce the encryption keys; only after both sides verify the same secret via SSH_MSG_NEWKEYS does encrypted communication begin. Establishing encryption earlier would leave no shared key to encrypt with.

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

One of 1,013 original SY0-701 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

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This SY0-701 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 SY0-701 exam.