Drag steps to the numbered slots on the right, or tap a step then tap a slot.
SY0-701 Threats, Vulnerabilities, and Mitigations Practice Question
Drag and drop the steps for the SSH key exchange process in the correct order.
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
| Algorithm | Key Exchange | Signatures | Equivalent Security Key | Notes |
|---|---|---|---|---|
| RSA-3072 | Yes | Yes | 128-bit | Widely deployed; slow for bulk data |
| ECDSA P-256 | No | Yes | 128-bit | Fast signatures; standard TLS certs |
| ECDH / ECDHE | Yes | No | 128-bit | Perfect forward secrecy in TLS 1.3 |
| DH / DHE | Yes | No | 128-bit (3072-bit key) | Replaced by ECDHE in modern TLS |
| Ed25519 | No | Yes | ~128-bit | SSH keys, modern PKI |
Go deeper
Related to this question
Learn chapter
Injection Attacks Overview
Key term
Identity
Identity is the unique set of attributes that defines a user, device, or service in a computer system, determining what they can access and do.
Key term
Diffie-Hellman
Diffie-Hellman is a cryptographic protocol that allows two parties to securely exchange a shared secret key over an untrusted network like the internet.
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 →
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.