NCP-MCA Exam QuestionsBrowse all questions from this exam

NCP-MCA Exam - Question 18


An administrator has a vendor-provided script that must be run at 9 am every Saturday on a Linux application VM.

The administrator currently has a playbook that has a Time trigger and a VM SSH action to execute the script. However, the administrator has received a request to have the output of the script emailed to the application team when it is executed.

What is the easiest way to satisfy this request?

Show Answer
Correct Answer: CD

Adding an Email action to the end of the existing playbook and using the {{action[index].stdout}} parameter in the Message field is the easiest way to satisfy the request. This leverages the existing playbook structure and ensures that the output of the script, captured in the standard output (stdout), is included in the email without needing to modify the script or create additional files.

Discussion

1 comment
Sign in to comment
FrankEOption: D
Jan 8, 2024

{{action[index].stdout}} will have the output of the script with email action.