Intermediate DevOps Automation with Ansible
Test your knowledge on automating DevOps tasks using Ansible.
Questions in this quiz
12 questions on Intermediate DevOps Automation with Ansible. Work through them here, then start the quiz to answer them and see your score.
1.What is the primary purpose of an Ansible playbook?
- ATo store inventory information
- BTo manage Ansible roles
- CTo configure Ansible itself
- DTo define a set of tasks to be executed on managed nodes
2.Which file format is used for writing Ansible playbooks?
- AINI
- BJSON
- CXML
- DYAML
3.What is the role of the 'hosts' directive in an Ansible playbook?
- ATo define the tasks to run
- BTo list the target nodes for the playbook
- CTo specify the control node
- DTo set environment variables
4.How does Ansible connect to managed nodes by default?
- AFTP
- BHTTP
- CRDP
- DSSH
5.What is the purpose of the 'ansible-galaxy' command?
- ATo configure SSH keys
- BTo execute playbooks
- CTo list inventory hosts
- DTo manage Ansible roles
6.Which Ansible module is used to copy files from the control node to managed nodes?
- Asynchronize
- Bcopy
- Cfetch
- Dfile
7.In Ansible, what is an 'inventory'?
- AA list of managed nodes
- BA collection of playbooks
- CA set of roles
- DA list of tasks
8.What is the function of the 'become' directive in Ansible?
- ATo switch to a different user
- BTo define a new task
- CTo include another playbook
- DTo manage roles
9.Which Ansible feature allows for the reuse of task sets across multiple playbooks?
- AHandlers
- BRoles
- CTemplates
- DVariables
10.What is the purpose of the 'ansible-vault' command?
- ATo manage inventory
- BTo install Ansible
- CTo encrypt sensitive data
- DTo execute playbooks
11.Which module would you use to ensure a service is running on a managed node?
- Aservice
- Bcommand
- Ccron
- Dshell
12.What is the purpose of 'handlers' in an Ansible playbook?
- ATo execute tasks conditionally
- BTo trigger actions based on task results
- CTo manage inventory
- DTo define variables