Online Exam Quiz

questionQuestion  1 to 30

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 define a task to run only on specific operating systems in Ansible?

  • os
  • system
  • when_os
  • if_os
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

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 command to execute an Ansible playbook?

  • ansible run playbook
  • ansible execute
  • ansible-playbook
  • run ansible
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 manage dynamic inventories?

  • dynamic_inventory
  • script_inventory
  • custom_inventory
  • inventory_script
Mark for review

Which option should be used to check the syntax of an Ansible playbook without executing it?

  • --syntax-check
  • --check-syntax
  • --verify-syntax
  • --ansible-syntax
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

How can you dynamically create variable names in Ansible?

  • var
  • name
  • dynamic_var
  • var_name
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 Ansible collections?

  • Bundle and distribute roles
  • Manage collections
  • Group playbooks
  • Store playbooks
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 component of Ansible is responsible for connecting to nodes and running tasks?

  • Playbook
  • Inventory
  • Module
  • Control node
Mark for review

How can you enable verbose mode for debugging in Ansible?

  • --verbose
  • --debug
  • --verbosity
  • --verbose-mode
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

Which Ansible module is used to send email notifications?

  • email
  • mail
  • sendmail
  • smtp
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

How can you perform a dry-run of changes using Ansible?

  • dry-run
  • --simulate
  • --check
  • --test-run
Mark for review

Which Ansible keyword is used to include a task list from another file?

  • import_tasks
  • include_tasks
  • import_tasks_file
  • include_tasks_file
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 manage relational databases?

  • sql
  • mysql
  • db
  • database
Mark for review

Which option should be used to become a different user when running Ansible tasks?

  • --become-user
  • --run-as
  • --sudo-user
  • --change-user
Mark for review

Which Ansible module is used to interact with cloud platforms like AWS?

  • aws
  • ec2
  • cloud
  • aws_ec2
Mark for review

How can you include a comment in an Ansible playbook?

  • # Comment
  • // Comment
  • /* Comment */
  • <!-- Comment -->
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 install packages on remote systems?

  • apt
  • yum
  • pkg
  • install
Mark for review

What is the directory structure of a typical Ansible project called?

  • ansible-dir
  • ansible-layout
  • ansible-project
  • ansible-structure
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 Ansible Tower (AWX)?

  • Web-based UI for Ansible
  • Centralized automation platform
  • Containerized Ansible
  • Ansible GUI
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