🧪 Ansible MCQ Quiz Hub

Ansible MCQ Questions

Choose a topic to test your knowledge and improve your Ansible skills

1. ___________ is something that is used for streamlining the development and deployment process.




2. _________ is a combination of multiple pieces working together to become an automation tool.




3. What are the features of Ansible?




4. IaC stands for?




5. ___________ is a repository of Ansible roles that can be shared among users and can be directly dropped into playbooks for execution. C. D.




6. How many types of modules in Ansible?




7. YAML or files are like any formatted text file with few sets of rules just like JSON or XML.




8. In Which Language Ansible engine written?




9. What language is an Ansible playbooks are written in by default ?




10. The task is a unit action of Ansible.




11. NCS has collaborated with Red Hat on several initiatives around Ansible automation. Which are some of those?




12. Red Hat Ansible Automation Platform offers new features. Which are the ones?




13. Command to verify the current ansible version




14. Ansible Content Collections is the new way to build and consume What command shows you CPU and memory utilization for running processes?




15. What command displays your current username?




16. How to install ansible using RHEL?




17. Tests reachability using ping from Cisco IOS network devices




18. This is a usecase for ansible Facts




19. In which programming language is Ansible based on?




20. How do you use variables in ansible?




21. What extension do the template files in Ansible have?




22. Which ones are alternatives to Ansible?(choose all that apply)




23. Ansible is able to deploy and manage automation of your entire IT footprint. Which are the ones that can be managed by Ansible?




24. Ansible program files that contains ansible plug-in documentation




25. What is Ansible?




26. What does orchestration in Ansible mean?




27. An ______ command is a single, manually-run Ansible task that you want to perform quickly




28. Which of following commands will check ansible inventory and group variable




29. Command to check the playbook for syntax errors, but it does not execute it.




30. Ansible is based on




31. In which format ansible playbooks are written?




32. Which option is used for specifying the variable while running ansible playbook?




33. Ansible is written in




34. From a playbook, I want to run only 1 task and ignore others. Which of the below can I use?




35. Which option in ad-hoc command is used to execute a module?




36. Which of the below creates new authentication key pairs?




37. Which of tasks run on notifying?




38. Which of the command line option is used for selecting the username for play?




39. Which option is used to select inventory file?




40. ___ is used to access shell environment variables?




41. To increase verbosity during execution of playbook, we can use




42. Conditional statement in ansible is




43. Which directory contains default values for variables of a role?




44. Linux commands can be run using module/s




45. How to continue running tasks even if a task is failed?




46. Jinja2 - Guess the output of : {{ [2,2,3,4] | unique }}




47. Jinja2 - Guess the output of : {{ [2,3,4] | intersect( [4,5,6] ) }}




48. Jinja2 - Guess the output of : {{ ["Hello","World"] | join(" ") }}




49. Error handling in block module uses




50. Which of the below module installs .rpm file on centos/rhel machines?