QuizzesIntermediate DevOps Automation with Ansible
intermediate
devops

Intermediate DevOps Automation with Ansible

Test your knowledge on automating DevOps tasks using Ansible.

18 minutes 12 questions Pass at 70%
Time Limit
18 minutes - timer starts when you begin
Change Answers Freely
Revisit and change any answer before submitting
Full Review After Submit
Correct answers and explanations shown for every question
Auto-submit on timeout
Quiz submits automatically when time runs out

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. 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. 2.Which file format is used for writing Ansible playbooks?

    • AINI
    • BJSON
    • CXML
    • DYAML
  3. 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. 4.How does Ansible connect to managed nodes by default?

    • AFTP
    • BHTTP
    • CRDP
    • DSSH
  5. 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. 6.Which Ansible module is used to copy files from the control node to managed nodes?

    • Asynchronize
    • Bcopy
    • Cfetch
    • Dfile
  7. 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. 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. 9.Which Ansible feature allows for the reuse of task sets across multiple playbooks?

    • AHandlers
    • BRoles
    • CTemplates
    • DVariables
  10. 10.What is the purpose of the 'ansible-vault' command?

    • ATo manage inventory
    • BTo install Ansible
    • CTo encrypt sensitive data
    • DTo execute playbooks
  11. 11.Which module would you use to ensure a service is running on a managed node?

    • Aservice
    • Bcommand
    • Ccron
    • Dshell
  12. 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