exam questions

Exam 350-401 All Questions

View all questions & answers for the 350-401 exam

Exam 350-401 topic 1 question 938 discussion

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



Refer to the exhibit. An engineer constructs an EEM applet to prevent anyone from entering configuration mode on a switch. Which snippet is required to complete the EEM applet?

  • A. sync yes skip yes
  • B. sync no skip yes
  • C. sync no skip no
  • D. sync yes skip no
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
Aaron_0801
Highly Voted 1 year ago
Selected Answer: B
Provided answer is correct. The "sync no" option tells the script to run before the CLI command is executed. This means that this applet is executed before the actual "configure terminal" CLI command is executed. This gives you the opportunity to choose what to do after the applet is run. Since "skip yes" is indicated, the "configure terminal" CLI command is skipped completely and is replaced by the actions of the script.
upvoted 14 times
Aaron_0801
1 year ago
https://notes.networklessons.com/eem-sync-and-skip-keywords
upvoted 3 times
...
...
chmacnp
Most Recent 1 week ago
Selected Answer: B
B - another example and use case for sync no skip yes event manager applet NoReload event cli pattern "reload" sync no <------The EEM script intercepts the command skip yes <------ skips the CLI command from running at all action 1.0 syslog priority errors msg "Cannot reload this router" sync yes - would you be used to run the CLI command once the EEM script has completed successfully, enabling additional checks and control over the operation
upvoted 1 times
...
zbeugene7
4 months, 2 weeks ago
It can't be C or D because skip no = comand would run and we don't want it to, it should be skip yes for the command not to run. It should be sync = yes for EEM script to run and apply the skip, so the answer is A: sync yes skip yes: run applet do not run command
upvoted 1 times
zbeugene7
4 months ago
sync no skip yes is correct , I was wrong sync now would always run the script first
upvoted 1 times
...
...
AbdullahMohammad251
4 months, 3 weeks ago
Selected Answer: B
Options A and D are incorrect. Sync "yes" doesn't have the skip option, because both the CLI command and the EEM script will run simultaneously. C. Incorrect, the CLI command will be executed after the EEM script ("skip" is set to no.) B. Correct! Sync "no" does have the "skip" option, because they are run asynchronously (not at the same time.) The EEM script will run first, and then we can decide whether or not to run the CLI command that triggered the event. "skip" yes means, the CLI command will be skipped (not executed,) whenever it is entered on the terminal.
upvoted 1 times
AbdullahMohammad251
4 months, 3 weeks ago
https://learningnetwork.cisco.com/s/question/0D56e0000D0nZ6sCQE/how-does-eem-synchronous-and-asynchronous-processing-work https://notes.networklessons.com/eem-sync-and-skip-keywords
upvoted 1 times
...
...
16561f6
4 months, 3 weeks ago
D. sync yes skip no Explanation: sync yes: This ensures that the EEM applet will wait for the command to complete before continuing with the next steps, providing synchronous behavior. skip no: This prevents the execution of the command (in this case, entering configuration mode) when the EEM applet is triggered.
upvoted 1 times
...
[Removed]
8 months, 2 weeks ago
Selected Answer: B
B is correct
upvoted 2 times
...
[Removed]
9 months ago
B is correct
upvoted 1 times
...
slacker_at_work
11 months, 2 weeks ago
Selected Answer: B
I don't even have the skip option when using sync yes: R2(config)#event manager applet Config R2(config-applet)#event cli pattern "configure terminal" sync yes ? default Default action timer maxrun Maximum runtime of applet occurs The number of occurrences before raising the event period Number of occurrences must occur within this time period <cr>
upvoted 3 times
...
Mistwalker
1 year ago
Selected Answer: B
B is correct. sync no = run the EEM applet first (asynchronously i.e. ahead of the CLI command) skip yes = skip (don't run) the CLI command after the EEM applet is done "The sync no option tells the script to run before the CLI command is executed. This means that this applet is executed before the actual CLI command is executed. This gives you the opportunity to choose what to do after the applet is run. Since skip yes is indicated, the CLI command is skipped completely and is replaced by the actions of the script." https://notes.networklessons.com/eem-sync-and-skip-keywords
upvoted 3 times
...
teems5uk
1 year ago
Selected Answer: C
C. seems better
upvoted 1 times
...
Mizuchan
1 year, 1 month ago
Selected Answer: C
To prevent anyone from entering configuration mode on a switch using the provided EEM applet, you would want to ensure that the applet does not synchronize with other applets (sync no) and that it does not skip subsequent statements if the current one fails (skip no). Therefore, the correct option for the snippet to complete the EEM applet is: C. sync no skip no
upvoted 1 times
Mizuchan
1 year ago
Going with B
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