200-301 exam dumps

200-301 practice question 420 of 506

Cisco Certified Network Associate. Free level, Cisco. Free question with the correct answer and a full explanation.

200-301 Question 420

Single answer

A network administrator is tasked with configuring local access control on a Cisco router. They need to ensure that the console port requires a password for login and that this password is stored locally on the device. Which set of commands will achieve this goal?

  1. A

    line console 0 password cisco123 login

  2. B

    line console 0 login username admin password cisco123

  3. C

    username admin password cisco123 line console 0 login local

  4. D

    line console 0 password cisco123 login local

Show answer and explanation

Correct answer: A

Explanation

To configure device access control using local passwords, the administrator must use the 'password' command to define the password for the console line and the 'login' command to enable password authentication. The correct answer ensures that the console port requires a password for access without involving username-based authentication.

  • A. Correct.

    This is the correct configuration to set a local password for the console port. The 'password cisco123' command sets the password, and the 'login' command ensures the device prompts for it during console access.

  • B. Incorrect.

    This configuration is incorrect because the 'login' command is used, but a local username and password are not applied to the console line. The router will not reference the locally stored username.

  • C. Incorrect.

    This configuration uses 'login local' to authenticate using a locally stored username and password. However, the requirement is to configure a local password directly for the console, not with a username.

  • D. Incorrect.

    This configuration incorrectly combines the 'password' command and 'login local'. The 'login local' command is used for username-based authentication, not for a simple console password.

Timed practice exam

Take a 200-301 practice test under exam conditions

75 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam