Test Your Knowledge: Ansible Concepts Quiz


Gensen Huang
Idyllic Icon

Gensen Huang

Created 6/20/2024

895

85.02%

Q & A


Share This Quiz

Sources

https://www.ansible.com/how-ansible-works/
https://docs.ansible.com/ansible/latest/getting_started/basic_concepts.html
https://en.wikipedia.org/wiki/Ansible_(software)

Think you know everything about Ansible? Take this quiz to put your knowledge to the test!

Think you know everything about Ansible? Take this quiz to put your knowledge to the test!

1. What is the main purpose of the control node in Ansible?

To manage inventory files
To execute Ansible commands and playbooks
To store encrypted files
To run SSH or WinRM

2. Which language is primarily used to write Ansible playbooks?

JSON
INI
YAML
XML

3. What are Ansible modules designed to be?

Repeatable
Configurable
Volatile
Idempotent

4. Which protocol does Ansible use by default to communicate with managed nodes on Unix-like systems?

HTTP
SSH
FTP
SCP

5. What is an inventory in Ansible?

A list of hosts that are managed by Ansible
A script that automates tasks
A module for configuring systems
A playbook variable

6. Who originally wrote Ansible?

Linus Torvalds
Michael DeHaan
Red Hat
Guido van Rossum

7. What is the function of Ansible Vault?

To manage SSH connections
To store sensitive data in encrypted files
To synchronize inventories
To install software packages

8. How does Ansible treat task definitions?

As ad hoc commands
As inventory lists
As declarative instructions
As encrypted files

9. Which company acquired Ansible in 2015?

IBM
Microsoft
Canonical
Red Hat

10. In Ansible, what is a 'play'?

A single task executed on a host
The execution or scheduling of a task
A set of roles associated with a group of hosts
A sequence of tasks applied to a set of hosts

11. Which file format can be used for inventory in Ansible?

YAML and INI
JSON
Executable Scripts
All of the above

12. What is the primary benefit of Ansible's agentless architecture?

It requires less memory
It improves network speeds
It simplifies installation and operation
It provides better encryption

13. What is the purpose of a handler in Ansible?

To execute a task immediately
To notify a task to run when state changes
To manage inventory files
To run playbooks

14. What does the 'state' option specify in a task?

The type of module to be used
The desired state of the resource
The IP address of the managed node
The name of the playbook

15. Which component is necessary to execute tasks on managed nodes?

Handlers
Playbooks
Modules
Roles