DevOps Automation with Ansible: Beginner Best Practices
A quiz to introduce best practices in DevOps automation using Ansible.
Questions in this quiz
15 questions on DevOps Automation with Ansible: Beginner Best Practices. Work through them here, then start the quiz to answer them and see your score.
1.What is Ansible primarily used for in DevOps?
- AConfiguration management
- BFrontend development
- CGraphic design
- DDatabase management
2.Which language is used to write Ansible playbooks?
- AYAML
- BPython
- CJavaScript
- DRuby
3.What is the purpose of an Ansible Inventory file?
- ATo store playbooks
- BTo configure network settings
- CTo list managed nodes
- DTo define roles
4.Which command is used to execute an Ansible playbook?
- Aansible-playbook
- Bansible-run
- Cansible-launch
- Dansible-execute
5.What is a 'role' in Ansible?
- AA set of tasks and configurations
- BA user account
- CA network protocol
- DA database schema
6.Which of the following is a best practice when writing Ansible playbooks?
- AUsing absolute paths
- BIgnoring errors
- CUsing variables
- DHardcoding IP addresses
7.What is the default location for the Ansible configuration file?
- A/etc/ansible/ansible.cfg
- B/usr/local/ansible.cfg
- C/var/ansible/ansible.cfg
- D/home/ansible.cfg
8.How can you test an Ansible playbook without making changes to the system?
- AUsing the --preview option
- BUsing the --simulate option
- CUsing the --check option
- DUsing the --dry-run option
9.Which Ansible module is used to copy files to a remote machine?
- Afetch
- Bsynchronize
- Ccopy
- Dfile
10.What is the purpose of the Ansible Galaxy?
- ATo monitor Ansible tasks
- BTo share Ansible roles
- CTo configure Ansible environments
- DTo manage Ansible versions
11.What is the benefit of using Ansible tags?
- ATo configure network settings
- BTo run specific tasks
- CTo manage user permissions
- DTo encrypt playbooks
12.Which Ansible feature allows for the reuse of common task sets?
- ATemplates
- BVariables
- CRoles
- DHandlers
13.What is a 'handler' in Ansible?
- AA task that runs on change
- BA conditional statement
- CA type of variable
- DA network configuration
14.Which command lists all available Ansible modules?
- Aansible-modules
- Bansible-doc -l
- Cansible-list
- Dansible-show
15.What is the advantage of using Ansible Vault?
- ATo automate database backups
- BTo manage network settings
- CTo monitor system performance
- DTo encrypt sensitive data