nerdexam
CiscoCisco

200-901 · Question #437

200-901 Question #437: Real Exam Question with Answer & Explanation

The correct answer is A: handlers. Sometimes you want a task to run only when a change is made on a machine. For example, you may want to restart a service if a task updates the configuration of that service, but not if the configuration is unchanged. Ansible uses handlers to address this use case. Handlers are ta

Infrastructure and Automation

Question

Which capability is used by Ansible to run a set of tasks when a property is changed?

Options

  • Ahandlers
  • Bplaybooks
  • Croles
  • Dtasks

Explanation

Sometimes you want a task to run only when a change is made on a machine. For example, you may want to restart a service if a task updates the configuration of that service, but not if the configuration is unchanged. Ansible uses handlers to address this use case. Handlers are tasks that only run when notified.

Topics

#Ansible#Automation#Handlers#Configuration Management

Community Discussion

No community discussion yet for this question.

Full 200-901 PracticeBrowse All 200-901 Questions