nerdexam
Cisco

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.

Automation and Assurance

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)
  • A
    90% (27)
  • B
    7% (2)
  • D
    3% (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.

AAnsible uses YAML and Chef uses Ruby.Correct

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.

BChef requires the use of Windows in the environment and Ansible requires Linux.

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.

CChef is highly scalable and Ansible is highly secure.

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.

DAnsible uses Ruby and Chef uses Python.

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

#Ansible#Chef#Configuration Management#Automation Tools

Community Discussion

No community discussion yet for this question.

Full 350-501 Practice