Q.1
Command to check the playbook for syntax errors, but it does not execute it.
  • ansible-playbook <playbook.yml> --syntax-check
  • ansible-playbook <playbook.yml> --check
  • ansible-playbook <playbook.yml> --list-hosts
  • ansible-playbook <playbook.yml> --skip-tags
Q.2
Which python module does Ansible use to connect via ssh with all its nodes?
  • pikamolo
  • paramiko
  • parangaricutirimicuaro
  • poco-yo
Q.3
The pricing for Red Hat Ansible Automation Platform is based on the number of nodes (systems, hosts, instances, VMs, containers or devices) that it is managing. The minimum number of nodes for a subscription is
  • 10
  • 100
  • 1
  • 1000
Q.4
Which ones are alternatives to Ansible?(choose all that apply)
  • jenkins
  • chef
  • Both a & b
  • None of these
Q.5
Packer is a tool that builds
  • a VM
  • an image for a container
  • an image for a VM
Q.6
Ansible has a paid license option
  • True
  • False
Q.7
What extension do the template files in Ansible have?
  • .in
  • .yml
  • .j2
Q.8
How do you use variables in ansible?
  • with {{ }}
  • with $
  • just write the name of the variable
  • with $()
Q.9
In which programming language is Ansible based on?
  • Java
  • Ruby
  • Python
  • C#
Q.10
This is a usecase for ansible Facts
  • When I want to change the standard output color
  • When you want to apply commands to specific hosts
  • When I want to apply a command multiple times
Q.11
What does Notify do when available in ansible tasks?
  • It makes sure that a task runs only once, doesn’t matter if the task was called 1000 times or more
  • Sends a notification of a task completion
  • Creates a comment for an specific task.
Q.12
It collect facts from remote devices running Cisco IOS
  • ios_facts
  • ios_command
  • ios_config
  • ios_ping
Q.13
A YAML file containing one or more plays.
  • task
  • playbook
  • module
  • inventory
Q.14
What's the Ansible Playbook execution order?
  • Playbook->Play->Tasks->Task
  • Playbook->Play->Task->Tasks
  • Play->Playbook->Tasks->Task
  • Playbook->Tasks->Play-Task
Q.15
Which of following commands will check ansible inventory and group variable
  • ansible-inventory --list
  • ansible-inventory -graph
  • ansible-inventory -h
  • ansible-inventory -v
Q.16
Which of the following ad hoc commands will backup the device configuration of ios
  • ansible -m debug ios
  • ansible –m ios_command –a “backup:yes” ios
  • ansible –m ios_config –a “backup=yes” ios
  • ansible -m ping ios
Q.17
Tests reachability using ping from Cisco IOS network devices
  • ios_ping
  • ping
  • debug
  • ios_command
Q.18
An ______ command is a single, manually-run Ansible task that you want to perform quickly
  • ad hoc
  • ansible
  • ansible.cfg
  • ansible-doc
Q.19
We have a playbook /playbook/copy.yml, which hosts would this playbook run against.copy.yml - hosts: webtasks:- name: copy test.txt filesrc: test.txtdest: /tmp/test.txtinventory file:[web]web1 10.0.0.1web2 10.0.0.2
  • web
  • web1
  • web2
  • web1 and web2
Q.20
We can have multiple plays in a single playbook
  • No
  • Yes
0 h : 0 m : 1 s