ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 142 - XK0-005 discussion

Report
Export

A systems administrator is tasked with creating an Ansible playbook to automate the installation of patches on several Linux systems. In which of the following languages should the playbook be written?

A.
SQL
Answers
A.
SQL
B.
YAML
Answers
B.
YAML
C.
HTML
Answers
C.
HTML
D.
JSON
Answers
D.
JSON
Suggested answer: B

Explanation:

The language that the playbook should be written in is YAML. YAML stands for YAML Ain't Markup Language, which is a human-readable data serialization language. YAML is commonly used for configuration files and data exchange. YAML uses indentation, colons, dashes, and brackets to represent the structure and values of the data. YAML also supports comments, variables, expressions, and functions. Ansible is an open-source tool for automating tasks and managing configuration on Linux systems. Ansible uses YAML to write playbooks, which are files that define the desired state and actions for the systems. Playbooks can be used to automate the installation of patches on several Linux systems by specifying the hosts, tasks, modules, and parameters. The language that the playbook should be written in is YAML. This is the correct answer to the question.

The other options are incorrect because they are not the languages that Ansible uses for playbooks (SQL, HTML, or JSON). Reference: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 18:

Securing Linux Systems, page 549.

asked 02/10/2024
Mehdi BELGAS
46 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first