Worksheetsnetwork 3
Total questions: 28
Worksheet time: 14mins
In which two file types can the Ansible inventory file be represented? choose two
XML
INI-like
YAML
Cisco CLI
Which configuration management tool is 100 percent agentless?
Puppet
Salt
Chef
Ansible
Which two variable types are supported in Ansible?
group
children
parent
host
Which Ansible command-line utility can be used to view offline documentation?
ansible-config
ansible-playbook
ansible-doc
ansible
Which module would you use to collect basic characteristics of a Cisco IOS device that is returned preparsed?
ios_command
ios_config
ios_get_facts
ios_facts
Which two statements about Ansible are true? (Choose two.)
Ansible can be used to configure and manage network devices.
Ansible requires the use of the Jinja2 template to manage configurations.
Ansible cannot be used to configure and manage network devices.
Ansible does not require Python to be installed on network devices to manage them.
Ansible requires Python be installed on network devices to manage them.
What is the value of snmp_ro for csr1kv1 with the following inventory file configuration?
cisco-rtp
cisco-sjc
cisco-devnet
cisco
Which two statements about the ios_command module are true? (Choose two.)
It is used to send configuration commands to devices.
It is used to send operational and show commands to devices.
It returns the command response of the command sent to the device.
It returns the commands that are sent to the device.
It is used to send show commands to devices exclusively.
Which two options represent the proper syntax for basic variable replacement using Jinja2?
{{variable}}
{variable}
{{ variable }}
{% variable %}
{ variable }
What is the most common source of data that is rendered with a template to create a configuration file with Ansible?
XML
INI-like
YAML
JSON
Which two statements about Jinja2 in Ansible are true? (Choose two.)
Jinja2 variables can be used in a playbook.
Jinja2 variables can be used in a template.
Jinja2 variables can be used on the command line when executing a playbook.
Jinja2 variables can be used within the ansible.cfg file.
Jinja2 is the only templating language that works with networking devices.
Which two parameters are required when using the template module?
A. template
B. source
C. destination
D. src
E. dest
What is the equivalent of a dictionary or hash in YAML?
Sequence
Hyphen
*Mapping
List
The process of managing and provisioning devices and networks through machine-readable definition files is known as?
DevOps
Infrastructure as Code
Agile
Configuration Management
Which configuration management tools type requires at least some process running between the controller and managed device?
agent-based configuration management tools
agentless configuration management tools
proxy agent configuration management tools
virtual configuration management tools
Which command is used to execute an Ansible playbook?
ansible
ansible-playbook
ansible-doc
ansible-play
Which two files are required when executing several automated tasks with Ansible?
vars files
inventory file
playbook
group vars file
Which of the following statements about Ansible is TRUE?
Ansible playbooks are written in JSON.
Plays in Ansible contain one or more playbooks.
There are three types of modules defined in Ansible: Core, Extra and Custom.
The unit action in Ansible is called a Task and it is written in YAML.
Which statement about using group and host variables in Ansible is true?
Ansible looks for files that have the same names as devices in the inventory for variables.
A file in a group_vars subdirectory must have the same name as a group defined in the inventory file.
A file in a host_vars subdirectory must have the same name as a host defined in the inventory file.
When using the group_vars subdirectory, it must contain files or directories that are the names of groups.
Which two parameters can be used to deploy configurations in the configuration module?
config
src
commands
command
What is the main use case for the ansible-doc utility?
viewing all the Ansible documentation offline
viewing module documentation offline
executing a playbook
configuration of Ansible
Which of the following is used to store the output of a task in a variable?
handler
ios_facts
register
ios_command
Which of the following modules is used to send arbitrary operational commands to networking devices?
ios_command
ios_cmd
ios_facts
debug_command
Which two options describe how you view the facts that are returned when using the facts module?
A. Use the debug statement to debug a fact directly by name.
B. Debug a variable called ios_facts.
C. Debug the variable called facts that exists.
D. Use register and debug to debug the registered variable.
When Ansible creates a configuration file from a Jinja template, how does Ansible know where to look for the variables that the template uses?
The variables are passed to the template as parameters in the template module.
Ansible uses a default set of places and looks for variables in a specific order.
Variable search paths are defined in the ansible.cfg file.
Ansible knows to look only in host_vars and group_vars files.
Which statement about YAML is true?
YAML uses tabs and spaces.
YAML is not case-sensitive.
YAML uses indents for structuring the content.
Strings must always be presented in quotes.
Which of the following is true about configuration management tools?
Puppet is written in Python and refers to its automation instruction set as Puppet manifests.
Puppet is an agent-less configuration tool and has been around for a long time compared to Chef and Ansible
Salt, by Saltstack, is written in Python and it uses a message queue-based system (zeroMQ
Chef is an agent-less configuration tool. It uses zeroMQ to push commands and configuration to minions and allows for publish and subscribe messaging
What is the outcome of the following playbook?
---
- name: GENERATE & DEPLOY CONFIGURATIONS
hosts: all
connection: network_cli
gather_facts: no
tasks:
- name: GENERATE CONFIGURATIONS
template:
src: snmp.j2
dest: ./configs/snmp_configs.cfg
It generates a single SNMP configuration file called snmp.cfg.
It generates an SNMP configuration file for each device in the inventory file called snmp.cfg.
It generates a single SNMP configuration file called snmp_configs.cfg.
It generates an SNMP configuration file for each device in the inventory file called snmp_configs.cfg.
