350-401 · Question #123
350-401 Question #123: Real Exam Question with Answer & Explanation
The correct answer is D: $_exit_status. $_exit_status is set when you use the sync yes option in an EEM (Embedded Event Manager) applet, because this variable captures the exit status of a synchronous command execution, indicating whether the operation succeeded or failed (typically 0 for success, non-zero for failure)
Question
Which variable in an EEM applet is set when you use the sync yes option?
Options
- A$_cli_result
- B$_result
- C$_string_result
- D$_exit_status
Explanation
$_exit_status is set when you use the sync yes option in an EEM (Embedded Event Manager) applet, because this variable captures the exit status of a synchronous command execution, indicating whether the operation succeeded or failed (typically 0 for success, non-zero for failure). The sync yes option forces the applet to wait for the command to complete before continuing, and the result of that completion is stored in $_exit_status.
Why the distractors are wrong:
- $_cli_result stores the raw output of a CLI command executed via
action cli command, not the sync status. - $_result is a generic result variable used in some EEM contexts (like regular expression matching), but is not associated with the
sync yesoption. - $_string_result is not a standard EEM built-in variable associated with synchronous execution.
Memory tip: Think of sync yes as asking "Did it exit cleanly?" - and exit status ($_exit_status) answers that question. Link sync → exit → $_exit_status to lock it in for the exam.
Topics
Community Discussion
No community discussion yet for this question.