Online Exam Quiz

questionQuestion  1 to 30

Which Ansible module is used to manage network devices?

  • network
  • network_device
  • switch
  • manage_network
Mark for review

Which Ansible module is used to manage Docker containers?

  • docker_container
  • container
  • docker
  • manage_docker
Mark for review

Which Ansible module is used to manage files and file properties on remote systems?

  • file
  • copy
  • files
  • manage_file
Mark for review

How does Ansible communicate with remote nodes?

  • SSH
  • HTTP
  • Telnet
  • FTP
Mark for review

How can you specify the order of execution for tasks within an Ansible playbook?

  • ordered
  • sequence
  • serial
  • order
Mark for review

Which Ansible module is used to manage dynamic inventories?

  • dynamic_inventory
  • script_inventory
  • custom_inventory
  • inventory_script
Mark for review

What is the preferred method to debug Ansible playbooks?

  • debug
  • print
  • log
  • trace
Mark for review

What is the purpose of the 'when' keyword in Ansible playbooks?

  • Conditional execution based on variables
  • Loop iteration
  • Error handling
  • Skip task
Mark for review

Which Ansible configuration file can be used to define default hosts and users?

  • hosts.yml
  • ansible.cfg
  • inventory.yml
  • ansible_hosts
Mark for review

Which option should be used to display Ansible playbook output in JSON format?

  • --json
  • --output=json
  • --format=json
  • --json-output
Mark for review

Which Ansible module is used to interact with REST APIs?

  • rest_api
  • rest
  • api
  • uri
Mark for review

What is the purpose of roles in Ansible?

  • Organize tasks and files
  • Group hosts
  • Define playbooks
  • Manage dynamic inventories
Mark for review

How can you define a task to run only on specific operating systems in Ansible?

  • os
  • system
  • when_os
  • if_os
Mark for review

Which Ansible module is used to manage relational databases?

  • sql
  • mysql
  • db
  • database
Mark for review

Which Ansible module is used to make HTTP requests and handle JSON responses?

  • http_request
  • uri
  • http
  • request
Mark for review

What is the default location of the main Ansible configuration file?

  • /etc/ansible/ansible.cfg
  • /etc/ansible.cfg
  • /etc/ansible.conf
  • /etc/ansible/config
Mark for review

What is Ansible?

  • A configuration tool
  • A monitoring tool
  • A programming language
  • A database management tool
Mark for review

What is the purpose of the Ansible Vault?

  • Securely manage sensitive data
  • Manage encrypted passwords
  • Store SSH keys securely
  • Manage private keys
Mark for review

What is the purpose of the 'delegate_to' parameter in Ansible tasks?

  • Delegate task execution to another host
  • Delegate to proxy
  • Execute tasks remotely
  • Delegate to a group
Mark for review

Which Ansible module is used to send email notifications?

  • email
  • mail
  • sendmail
  • smtp
Mark for review

How can you skip a task based on certain conditions in Ansible?

  • skip
  • condition
  • skip_when
  • if_not
Mark for review

Which Ansible module is used to manage services on remote systems?

  • service
  • manage_service
  • systemctl
  • start-stop-service
Mark for review

What is the preferred format for defining variables in Ansible playbooks?

  • XML
  • YAML
  • JSON
  • TOML
Mark for review

Which option should be used to set the number of parallel processes Ansible uses to manage nodes?

  • --forks
  • --parallel
  • --processes
  • --concurrency
Mark for review

How can you conditionally execute a task based on a variable in Ansible?

  • conditional
  • condition
  • when
  • if
Mark for review

What does idempotence mean in the context of Ansible?

  • Reversing changes made by playbooks
  • Ensuring consistent state
  • Making repeated executions safe
  • Controlling playbook versions
Mark for review

Which Ansible module is used to manage users and groups on remote systems?

  • user
  • manage_user
  • group
  • add_user
Mark for review

How can you dynamically create variable names in Ansible?

  • var
  • name
  • dynamic_var
  • var_name
Mark for review

What is the purpose of Ansible collections?

  • Bundle and distribute roles
  • Manage collections
  • Group playbooks
  • Store playbooks
Mark for review

Which Ansible module is used to manage cron jobs on remote systems?

  • cron
  • cron_job
  • schedule
  • manage_cron
Mark for review

blinkerOnline

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • Answered
  • Not Answered
  • Marked for Review