Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

network 3

Total questions: 28

Worksheet time: 14mins

Name
Class
Date
1.

In which two file types can the Ansible inventory file be represented? choose two

a)

XML

b)

INI-like

c)

YAML

d)

Cisco CLI

2.

Which configuration management tool is 100 percent agentless?

a)

Puppet

b)

Salt

c)

Chef

d)

Ansible

3.

Which two variable types are supported in Ansible?

a)

group

b)

children

c)

parent

d)

host

4.

Which Ansible command-line utility can be used to view offline documentation?

a)

ansible-config

b)

ansible-playbook

c)

ansible-doc

d)

ansible

5.

Which module would you use to collect basic characteristics of a Cisco IOS device that is returned preparsed?

a)

ios_command

b)

ios_config

c)

ios_get_facts

d)

ios_facts

6.

Which two statements about Ansible are true? (Choose two.)

a)

Ansible can be used to configure and manage network devices.

b)

Ansible requires the use of the Jinja2 template to manage configurations.

c)

Ansible cannot be used to configure and manage network devices.

d)

Ansible does not require Python to be installed on network devices to manage them.

e)

Ansible requires Python be installed on network devices to manage them.

7.

What is the value of snmp_ro for csr1kv1 with the following inventory file configuration?

a)

cisco-rtp

b)

cisco-sjc

c)

cisco-devnet

d)

cisco

8.

Which two statements about the ios_command module are true? (Choose two.)

a)

It is used to send configuration commands to devices.

b)

It is used to send operational and show commands to devices.

c)

It returns the command response of the command sent to the device.

d)

It returns the commands that are sent to the device.

e)

It is used to send show commands to devices exclusively.

9.

Which two options represent the proper syntax for basic variable replacement using Jinja2?

a)

{{variable}}

b)

{variable}

c)

{{ variable }}

d)

{% variable %}

e)

{ variable }

10.

What is the most common source of data that is rendered with a template to create a configuration file with Ansible?

a)

XML

b)

INI-like

c)

YAML

d)

JSON

11.

Which two statements about Jinja2 in Ansible are true? (Choose two.)

a)

Jinja2 variables can be used in a playbook.

b)

Jinja2 variables can be used in a template.

c)

Jinja2 variables can be used on the command line when executing a playbook.

d)

Jinja2 variables can be used within the ansible.cfg file.

e)

Jinja2 is the only templating language that works with networking devices.

12.

Which two parameters are required when using the template module?

a)

A. template

b)

B. source

c)

C. destination

d)

D. src

e)

E. dest

13.

What is the equivalent of a dictionary or hash in YAML?

a)

Sequence

b)

Hyphen

c)

*Mapping

d)

List

14.

The process of managing and provisioning devices and networks through machine-readable definition files is known as?

a)

DevOps

b)

Infrastructure as Code

c)

Agile

d)

Configuration Management

15.

Which configuration management tools type requires at least some process running between the controller and managed device?

a)

agent-based configuration management tools

b)

agentless configuration management tools

c)

proxy agent configuration management tools

d)

virtual configuration management tools

16.

Which command is used to execute an Ansible playbook?

a)

ansible

b)

ansible-playbook

c)

ansible-doc

d)

ansible-play

17.

Which two files are required when executing several automated tasks with Ansible?

a)

vars files

b)

inventory file

c)

playbook

d)

group vars file

18.

Which of the following statements about Ansible is TRUE?

a)

Ansible playbooks are written in JSON.

b)

Plays in Ansible contain one or more playbooks.

c)

There are three types of modules defined in Ansible: Core, Extra and Custom.

d)

The unit action in Ansible is called a Task and it is written in YAML.

19.

Which statement about using group and host variables in Ansible is true?

a)

Ansible looks for files that have the same names as devices in the inventory for variables.

b)

A file in a group_vars subdirectory must have the same name as a group defined in the inventory file.

c)

A file in a host_vars subdirectory must have the same name as a host defined in the inventory file.

d)

When using the group_vars subdirectory, it must contain files or directories that are the names of groups.

20.

Which two parameters can be used to deploy configurations in the configuration module?

a)

config

b)

src

c)

commands

d)

command

21.

What is the main use case for the ansible-doc utility?

a)

viewing all the Ansible documentation offline

b)

viewing module documentation offline

c)

executing a playbook

d)

configuration of Ansible

22.

Which of the following is used to store the output of a task in a variable?

a)

handler

b)

ios_facts

c)

register

d)

ios_command

23.

Which of the following modules is used to send arbitrary operational commands to networking devices?

a)

ios_command

b)

ios_cmd

c)

ios_facts

d)

debug_command

24.

Which two options describe how you view the facts that are returned when using the facts module?

a)

A. Use the debug statement to debug a fact directly by name.

b)

B. Debug a variable called ios_facts.

c)

C. Debug the variable called facts that exists.

d)

D. Use register and debug to debug the registered variable.

25.

When Ansible creates a configuration file from a Jinja template, how does Ansible know where to look for the variables that the template uses?

a)

The variables are passed to the template as parameters in the template module.

b)

Ansible uses a default set of places and looks for variables in a specific order.

c)

Variable search paths are defined in the ansible.cfg file.

d)

Ansible knows to look only in host_vars and group_vars files.

26.

Which statement about YAML is true?

a)

YAML uses tabs and spaces.

b)

YAML is not case-sensitive.

c)

YAML uses indents for structuring the content.

d)

Strings must always be presented in quotes.

27.

Which of the following is true about configuration management tools?

a)

Puppet is written in Python and refers to its automation instruction set as Puppet manifests.

b)

Puppet is an agent-less configuration tool and has been around for a long time compared to Chef and Ansible

c)

Salt, by Saltstack, is written in Python and it uses a message queue-based system (zeroMQ

d)

Chef is an agent-less configuration tool. It uses zeroMQ to push commands and configuration to minions and allows for publish and subscribe messaging

28.

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

a)

It generates a single SNMP configuration file called snmp.cfg.

b)

It generates an SNMP configuration file for each device in the inventory file called snmp.cfg.

c)

It generates a single SNMP configuration file called snmp_configs.cfg.

d)

It generates an SNMP configuration file for each device in the inventory file called snmp_configs.cfg.