Online Exam Quiz

questionQuestion  1 to 30

Which YAML file specifies the list of hosts that Ansible manages?

  • hosts.yml
  • inventory.yml
  • ansible.cfg
  • playbook.yml
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 cron jobs on remote systems?

  • cron
  • cron_job
  • schedule
  • manage_cron
Mark for review

Which Ansible module is used to manage Docker containers?

  • docker_container
  • container
  • docker
  • manage_docker
Mark for review

What is the preferred method to debug Ansible playbooks?

  • debug
  • print
  • log
  • trace
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

How can you set up passwordless SSH authentication for Ansible?

  • SSH keys
  • password file
  • token authentication
  • Ansible Vault
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

What is the purpose of Ansible Tower (AWX)?

  • Web-based UI for Ansible
  • Centralized automation platform
  • Containerized Ansible
  • Ansible GUI
Mark for review

How can you include a comment in an Ansible playbook?

  • # Comment
  • // Comment
  • /* Comment */
  • <!-- Comment -->
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 module is used to manage network devices?

  • network
  • network_device
  • switch
  • manage_network
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 perform a dry-run of changes using Ansible?

  • dry-run
  • --simulate
  • --check
  • --test-run
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 the directory structure of a typical Ansible project called?

  • ansible-dir
  • ansible-layout
  • ansible-project
  • ansible-structure
Mark for review

Which Ansible module is used to send email notifications?

  • email
  • mail
  • sendmail
  • smtp
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 skip a task based on certain conditions in Ansible?

  • skip
  • condition
  • skip_when
  • if_not
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

How can you define variables in Ansible playbooks?

  • vars
  • arguments
  • params
  • vars_prompt
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 module is used to make HTTP requests and handle JSON responses?

  • http_request
  • uri
  • http
  • request
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 Ansible Vault?

  • Securely manage sensitive data
  • Manage encrypted passwords
  • Store SSH keys securely
  • Manage private keys
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 services on remote systems?

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

How can you loop over a list of items in Ansible playbooks?

  • loop
  • iterate
  • repeat
  • for_each
Mark for review

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

  • conditional
  • condition
  • when
  • if
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

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