350-501 · Question #386
What Is one of the differences between Ansible and Chef?
The correct answer is A. Ansible uses YAML and Chef uses Ruby. A primary difference between Ansible and Chef is their language usage; Ansible employs YAML for its playbooks, while Chef utilizes Ruby for its cookbooks and recipes.
Question
What Is one of the differences between Ansible and Chef?
Options
- AAnsible uses YAML and Chef uses Ruby.
- BChef requires the use of Windows in the environment and Ansible requires Linux.
- CChef is highly scalable and Ansible is highly secure.
- DAnsible uses Ruby and Chef uses Python.
How the community answered
(30 responses)- A90% (27)
- B7% (2)
- D3% (1)
Why each option
A primary difference between Ansible and Chef is their language usage; Ansible employs YAML for its playbooks, while Chef utilizes Ruby for its cookbooks and recipes.
Ansible playbooks are written in YAML (Yet Another Markup Language), while Chef's configuration code (cookbooks and recipes) is written in Ruby, often using a Domain Specific Language (DSL) built on Ruby.
Both Chef and Ansible are cross-platform and can manage both Windows and Linux environments; neither tool has a strict requirement for the environment to be exclusively Windows or Linux.
Both Chef and Ansible are designed to be scalable and secure for configuration management; attributing one characteristic exclusively to one tool is a misrepresentation of their capabilities.
Ansible is primarily developed using Python, and Chef is primarily developed using Ruby, so this statement incorrectly reverses their primary language associations.
Concept tested: Configuration management tool comparison
Source: https://www.ansible.com/overview/how-ansible-works, https://www.chef.io/products/chef-infra
Topics
Community Discussion
No community discussion yet for this question.