ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 50 - NCP-MCA discussion

Report
Export

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.
Answers
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.
Answers
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.
Answers
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.
Answers
D.
Add an Email action to the end of the existing playbook and use the {{action[index] .stdout}} parameter in the Message field.
Suggested answer: D

Explanation:

The easiest way to satisfy the request is to add an Email action to the end of the existing playbook and use the {{action[index] .stdout}} parameter in the Message field. This way, the administrator does not need to modify the script or create a file to store the output. The {{action[index] .stdout}} parameter will capture the standard output of the previous action, which is the VM SSH action that executes the script. The Email action will then send the output as the message body to the specified recipients.Reference: You can find more information about this topic in the following sources:

Nutanix Certified Professional - Multicloud Automation (NCP-MCA) Exam Blueprint Guide, Section 3 - Validate Blueprints, Runbooks, Playbooks, and Automation Settings, page 10

Nutanix Multicloud Automation Administration (NMCAA), Module 4 - X-Play, Lesson 2 - Playbooks, page 4-11

asked 23/09/2024
Maria Telan
32 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first