Courseiva
Security →easyMultiple Choice

350-401 Practice Question: A network administrator needs to secure management access to a Cisco IOS XE switch

A network administrator needs to secure management access to a Cisco IOS XE switch. The requirement is that only SSH version 2 with a 2048-bit RSA key be accepted, that Telnet be disabled, and that only the 'netadmin' user with privilege level 15 be allowed to log in via VTY lines 0 through 4. Which configuration accomplishes this?

⚠ Common exam trap

The trap here is overlooking one of the three simultaneous conditions—key size, SSH version, or privilege level—and selecting a configuration that only partially satisfies the policy.

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

✓

crypto key generate rsa modulus 2048; ip ssh version 2; line vty 0 4; transport input ssh; login local; username netadmin privilege 15 secret <password>

The correct configuration generates a 2048-bit RSA key, forces SSH version 2, restricts VTY transport to SSH only (disabling Telnet), and uses local authentication with the netadmin user at privilege 15. Alternatives fail because they use a weak key size, allow Telnet, force SSHv1, or assign the wrong privilege level, each violating at least one stated requirement.

Answer analysis

Option-by-option breakdown

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

  • ✓

    crypto key generate rsa modulus 2048; ip ssh version 2; line vty 0 4; transport input ssh; login local; username netadmin privilege 15 secret <password>

    Why this is correct

    Each requirement maps to a command here: a 2048-bit RSA key, SSH version 2 only, 'transport input ssh' to block Telnet, local authentication, and a privilege 15 user with a hashed secret. The key needs a hostname and 'ip domain-name' first. Also apply the same settings to VTY lines 5 to 15, and remember 'login local' accepts any local user, so remove other accounts to truly limit access to netadmin.

  • ✗

    crypto key generate rsa modulus 2048; ip ssh version 1; line vty 0 4; transport input ssh; login local; username netadmin privilege 15 secret <password>

    Why it's wrong here

    Everything is right except 'ip ssh version 1', which forces the obsolete SSH version 1 and violates the SSH version 2 requirement. Version 1 has known cryptographic weaknesses, and many modern clients no longer support it at all. 'ip ssh version 2' restricts the server to version 2; 'show ip ssh' then confirms the version in use and the RSA key size.

  • ✗

    crypto key generate rsa modulus 2048; ip ssh version 2; line vty 0 4; transport input ssh; login local; username netadmin privilege 1 secret <password>

    Why it's wrong here

    This option meets the SSH and Telnet requirements, but creates netadmin at privilege level 1, user EXEC, so the administrator could not run configuration or most diagnostic commands without an enable password. The requirement explicitly asks for privilege 15. 'username netadmin privilege 15 secret <password>' places the user directly in privileged EXEC mode at login.

  • ✗

    crypto key generate rsa modulus 1024; ip ssh version 2; line vty 0 4; transport input telnet ssh; login local; username netadmin privilege 15 secret <password>

    Why it's wrong here

    Two requirements fail: the 1024-bit key is weaker than the 2048 bits required, and many current SSH clients refuse such keys, and 'transport input telnet ssh' still accepts clear-text Telnet. Only SSH version 2 and the local user are right. The fixes are regenerating the key with 'modulus 2048' and restricting the lines to 'transport input ssh'.

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

This 350-401 question is part of Courseiva's 1,923-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

You might also like

Similar 350-401 questions

Written and reviewed by Johnson Ajibi, MSc IT Security

Security Systems Architect · founder of Courseiva

Last reviewed September 2026 · checked against the official Cisco exam blueprint

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