A playbook contains five tasks in total. An administrator runs the playbook and four out of five tasks finish successfully, but one task fails.
What will be the status of the playbook after it is run?
Correct Answer: A
In FortiAnalyzer, when a playbook is run, each task's status impacts the overall playbook status. Here's what happens based on task outcomes:
* Status When All Tasks Succeed:
* If all tasks finish successfully, the playbook status is marked asSuccess.
* Status When Some Tasks Fail:
* If one or more tasks in the playbook fail, but others succeed, the playbook status generally changes toAttention required. This status indicates that the playbook completed execution but requires review due to one or more tasks failing.
* This is different from a completeFailedstatus, which is used if the playbook cannot proceed due to a critical error in an early task, often one that upstream tasks depend on.
* Option Analysis:
* A. Attention required: This is correct as the playbook has completed, but with partial success and a task requiring review.
* B. Upstream_failed: This status is used if a task cannot run because a prerequisite or "upstream" task failed. Since four out of five tasks completed, this is not the case here.
* C. Failed: This status would imply that the playbook completely failed, which does not match the scenario where only one task out of five failed.
* D. Success: This status would apply if all tasks had completed successfully, which is not the case here.
Conclusion:
* Correct Answer:A. Attention required
* The playbook status reflects that it completed, but an error occurred in one of the tasks, prompting the administrator to review the failed task.
References:
* FortiAnalyzer 7.4.1 documentation on playbook execution statuses and task error handling.