exam questions

Exam NCP-MCA All Questions

View all questions & answers for the NCP-MCA exam

Exam NCP-MCA topic 1 question 18 discussion

Actual exam question from Nutanix's NCP-MCA
Question #: 18
Topic #: 1
[All NCP-MCA Questions]

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?

  • A. Modify the script to include a function to format the output of the script and email the output to the desired address.
  • B. Add an Email action to the end of the existing playbook and use the {{action [index].response_body}} parameter in the Message field.
  • C. Direct the output of the script to a file and use the Send Email with Payload action at the end of your existing playbook.
  • D. Add an Email action to the end of the existing playbook and use the {{action[index] .stdout}} parameter in the Message field.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
FrankE
9 months, 2 weeks ago
Selected Answer: D
{{action[index].stdout}} will have the output of the script with email action.
upvoted 2 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