JN0-231 Exam QuestionsBrowse all questions from this exam

JN0-231 Exam - Question 3


Click the Exhibit button.

Referring to the exhibit, a user is placed in which hierarchy when the exit command is run?

Show Answer
Correct Answer: C

When the user runs the exit command, they are placed back in the hierarchy level immediately before the last edit command. In this case, the user initially navigated to the 'edit security policies' level and then moved to 'edit from-zone trust to-zone dmz policy Trust-DMZ-Access.' Exiting from the second level brings them back to the 'edit security policies' level.

Discussion

10 comments
Sign in to comment
Bubu3kOption: C
Nov 15, 2022

It's C

kopcinkOption: C
Feb 3, 2023

The answer is C - exit command takes you back to the level prior the last edit command, or exit from configuration mode - JNCIA-Junos subject. Also, I've verified it on a device: [edit] root# edit security policies [edit security policies] root# edit from-zone trust to-zone dmz policy Trust-DMZ-Access [edit security policies from-zone trust to-zone dmz policy Trust-DMZ-Access] root# exit error: missing mandatory statement: 'match' error: missing mandatory statement: 'then' [edit security policies] root#

OJ1
Sep 16, 2023

C is the best answer, below is my test on a device. srx5600> edit Entering configuration mode [edit] srx5600# edit security policies [edit security policies] srx5600# edit from-zone trust to-zone dmz policy Trust-DMZ_access [edit security policies from-zone trust to-zone dmz policy Trust-DMZ_access] srx5600# exit [edit security policies] srx5600#

sajiby3kOption: A
Dec 31, 2022

Verified by typing the command in real device.

bigmokeyOption: B
Jan 19, 2023

exit Moves up the hierarchy to the previous level where you were working. This command is, in effect, the opposite of the edit command. Alternatively, you can use the quit command; exit and quit are interchangeable.

RbrahmiOption: A
Feb 24, 2023

Verified on the real device

Rbrahmi
Mar 2, 2023

The correct answer is C, Moderator please correct my answer

much2furiousOption: B
May 11, 2023

It is B, Tested on vSRX sandbox from Juniper jcluser@vSRX-0# [edit security policies from-zone trust to-zone untrust] jcluser@vSRX-0# exit [edit] jcluser@vSRX-0#

TECH3K3
Sep 7, 2023

How can so many people have confirmed on real equipment and have different results? What a joke.

ars92Option: C
Oct 9, 2023

The correct answer is C. Look carefully on the exhibit.

davidrsrOption: C
Oct 10, 2023

Tested on physical SRX. It's C.

westh4m1234Option: C
Feb 25, 2024

its is C because there are two edit commands involved [edit security policies] then you need to type edit from-zone abc to-zone def policy blah-blah which gives you the prompt below [edit security policies from-zone abc to-zone def policy blah-blah] when you exit it takes you back one step [edit security policies]