exam questions

Exam 350-401 All Questions

View all questions & answers for the 350-401 exam

Exam 350-401 topic 1 question 885 discussion

Actual exam question from Cisco's 350-401
Question #: 885
Topic #: 1
[All 350-401 Questions]

A network engineer must configure the VTY lines on a router to achieve these results:
• Remote access should be permitted only for secure protocols.
• Only a password should be required for device authentication.
• All idle EXEC sessions must be terminated in 60 minutes.

Which configuration should be applied?

  • A. line vty 0 15
    password Cisco123
    transport input ssh
    exec-timeout 60
  • B. line vty 0 15
    login
    password Cisco123
    transport input ssh
    exec-timeout 60
  • C. line vty 0 15
    password Cisco123
    transport input telnet ssh
    exec-timeout 60
  • D. line vty 0 15
    password Cisco123
    transport input all
    session-timeout 60
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
AM17212
Highly Voted 10 months, 3 weeks ago
Selected Answer: B
Configuring Line Local Password Authentication To enable password authentication on a line, the following two commands are required under line configuration mode: ■ password password to configure the password ■ login to enable password checking at login
upvoted 8 times
...
jmarko80
Most Recent 5 days, 11 hours ago
Selected Answer: B
To enable password authentication on a line (con/vty/aux), the following two commands are required under line configuration mode: • password .....password to configure the password • login............ to enable password checking at login
upvoted 1 times
...
AbdullahMohammad251
3 months, 1 week ago
Selected Answer: A
If you try to issue the command "login" under a vty line before configuring a password on that line, an error message will be displayed "% Login disabled on line 2, until 'password' is set." We should first configure the password, and then we can use the command "login." Password checking is enabled by default.
upvoted 4 times
...
chiacche
3 months, 3 weeks ago
Selected Answer: B
login: Ensures that users are prompted for a password when they try to log in. password: Specifies the password that users must enter to gain access.
upvoted 2 times
...
Steve122
6 months ago
Selected Answer: B
Tested in LAB. 'B' works.
upvoted 3 times
...
Eyad_Alotaibi
6 months, 2 weeks ago
I have tried this in EVE-NG lab, and this result occured with me: If you set login keyword in line vty, the password will be required when you connect to the remote device. If you don't set login keyword, you will be able to connect to the remote device immediately with no password even you have already written a password in line vty. so B is the correct answer.
upvoted 2 times
Eyad_Alotaibi
6 months, 2 weeks ago
connect = access in my native language, sorry if you feel confuse
upvoted 1 times
...
...
[Removed]
7 months, 1 week ago
Selected Answer: B
B is correct If the command is simply "login" then it uses the password configured with the password command under the VTY configuration. If the command is "login local" then it asks for a username and password based on the local user database regardless of whether or not the password was used. https://notes.networklessons.com/security-authentication-on-vty-lines#:~:text=If%20the%20command,password%20was%20used.
upvoted 3 times
...
Shri_Fcb10
7 months, 3 weeks ago
Selected Answer: A
The login command prompts for username authentication in addition to the password. Since the requirement specifies that only a password should be required for device authentication, the login command is unnecessary and doesn't meet the specified criteria. Therefore, option B doesn't fulfill the requirement of allowing access only with a password.
upvoted 1 times
...
slacker_at_work
10 months, 1 week ago
Selected Answer: A
A is correct, "login" is not needed in this scenario
upvoted 1 times
...
outnumber_gargle024
11 months, 2 weeks ago
Selected Answer: A
provided answer is correct
upvoted 1 times
outnumber_gargle024
11 months, 2 weeks ago
Correction, provided answer of B is incorrect. The answer is A
upvoted 1 times
...
...
Mistwalker
11 months, 3 weeks ago
Selected Answer: A
Login is enabled by default, and even if it needed to be set, entering it before a password has been configured produces an error (tested in CML).
upvoted 2 times
...
Mizuchan
11 months, 3 weeks ago
Leaning towards A... Both would work I think.
upvoted 1 times
...
bigyan_jhapaca4
11 months, 3 weeks ago
Selected Answer: B
correct
upvoted 3 times
...
teems5uk
11 months, 4 weeks ago
Selected Answer: A
Option A is the only correct answer here.
upvoted 2 times
...
f490efc
12 months ago
Selected Answer: A
Seems login command is enabled by default. Both A and B looks okay
upvoted 1 times
...
kldoyle97
1 year ago
Its between A and B, Leaning towards A since the question states that only a password is required. B specifies "login" under vty configuration. Doest that mean that it will prompt the user to enter a username and password? however there is no username configured
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago