nerdexam
Cisco

352-001 · Question #722

Which markup language is used to format Ansible's playbook?

The correct answer is B. YAML. Ansible playbooks are written in YAML, a human-readable data serialization format that uses indentation-based structure to define automation tasks.

Designing Management and Operations

Question

Which markup language is used to format Ansible's playbook?

Options

  • AADML
  • BYAML
  • CXML
  • DHTML
  • ENAML

How the community answered

(39 responses)
  • A
    5% (2)
  • B
    90% (35)
  • C
    3% (1)
  • E
    3% (1)

Why each option

Ansible playbooks are written in YAML, a human-readable data serialization format that uses indentation-based structure to define automation tasks.

AADML

ADML (Administrative Template Markup Language) is a Microsoft Group Policy format and has no association with Ansible playbook authoring.

BYAMLCorrect

Ansible uses YAML (YAML Ain't Markup Language) as the exclusive format for playbooks and variable files because its key-value, indentation-driven syntax is both human-readable and natively parsed by the Ansible engine. All Ansible documentation and tooling expect playbook files to carry the .yml or .yaml extension and conform to valid YAML syntax.

CXML

XML is a tag-based markup language used in many configuration systems but is not the format Ansible uses for defining playbooks.

DHTML

HTML is a markup language for rendering web content and is unrelated to Ansible automation playbook structure.

ENAML

NAML is not a recognized standard markup language and has no defined role in the Ansible ecosystem.

Concept tested: Ansible playbook file format using YAML

Source: https://docs.ansible.com/ansible/latest/reference_appendices/YAMLSyntax.html

Topics

#Ansible#YAML#automation#playbook

Community Discussion

No community discussion yet for this question.

Full 352-001 Practice