Nutanix Certified Professional – Multicloud Automation (NCP-MCA) — Question 38

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?

Answer options

Correct answer: C

Explanation

The correct answer is C, as directing the output to a file and using the Send Email with Payload action allows for the output to be neatly packaged and sent via email. Option A requires modifying the script, which could introduce errors. Option B uses a parameter that may not capture the correct output, and option D also relies on stdout, which might not be appropriate in this context.