nerdexam
Cisco

350-701 · Question #431

An engineer is configuring device-hardening on a router in order to prevent credentials from being seen if the router configuration was compromised. Which command should be used?

The correct answer is A. service password-encryption. To prevent cleartext passwords from being visible in a router's configuration, the service password-encryption command should be used to encrypt them.

Submitted by yousef_jo· Mar 30, 2026Security Concepts

Question

An engineer is configuring device-hardening on a router in order to prevent credentials from being seen if the router configuration was compromised. Which command should be used?

Options

  • Aservice password-encryption
  • Busername <username> privilege 15 password <password>
  • Cservice password-recovery
  • Dusername < username> password <password>

How the community answered

(33 responses)
  • A
    91% (30)
  • B
    3% (1)
  • D
    6% (2)

Why each option

To prevent cleartext passwords from being visible in a router's configuration, the `service password-encryption` command should be used to encrypt them.

Aservice password-encryptionCorrect

The `service password-encryption` command encrypts all unencrypted passwords in the running and startup configurations, using a weak type 7 encryption, making them unreadable to casual observers and protecting against accidental disclosure if the configuration is viewed. This command specifically obfuscates locally configured passwords, such as those for VTY lines or console access.

Busername <username> privilege 15 password <password>

This command creates a username with a specified privilege level and password, but it does not encrypt existing or future passwords in the configuration.

Cservice password-recovery

`service password-recovery` enables or disables the password recovery mechanism, which is unrelated to encrypting passwords within the configuration itself.

Dusername < username> password <password>

This command creates a username and password, but without `service password-encryption` enabled, the password will be stored in cleartext.

Concept tested: Cisco router password encryption

Source: https://www.cisco.com/c/en/us/td/docs/ios/security/security_management/configuration/guide/sec_secure_mgmt.html

Topics

#device hardening#password encryption#IOS security#service password-encryption

Community Discussion

No community discussion yet for this question.

Full 350-701 Practice