wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

network auto 1-2

Total questions: 92

Worksheet time: 46mins

Name
Class
Date
1.

Which network automation use case verifies that all networking devices only communicate with each other using secured mechanisms?

a)

pre- and post-validation

b)

configuration management

c)

reporting

d)

continuous compliance

2.

Which enterprise platform type can be used to receive real-time notifications from automation tools to alert a given individual or team?

a)

dashboards

b)

orchestration

c)

ITSM

d)

chat

3.

Which option best describes the reason for using automation tools like Python and Ansible in large enterprise networks?

a)

Easily configure a networking device

b)

Obtain information programmatically

c)

Eliminate human error and standardize the configuration while bringing speed and efficiency to network operations

d)

Eliminate the need for the CLI

4.

Which component streamlines the development of network automation applications?

a)

SDK

b)

ChatBot

c)

RESTCONF

d)

DevOps

5.

Which two options are common trends in the network industry in the context of automation?

a)

A. increasing the rate and use of the CLI

b)

B. hiring more engineers to scale network management

c)

C. actively testing automation in production

d)

D. adoption of open source

e)

E. implementing DevOps processes and principles

6.

Which challenge does collaboration solve?

a)

security concerns

b)

application availability

c)

network reachability

d)

communication among teams

7.

Which method is used to automate a multidomain network?

a)

CLI

b)

GUI

c)

console

d)

API

8.

To which domain does Cisco Meraki belong?

a)

data center

b)

security

c)

collaboration

d)

enterprise

9.

Which type of automation use case is appropriate if you need to shut down an interface when errors are found on that interface?

a)

continuous compliance

b)

configuration management

c)

automated backups

d)

reporting

e)

event-driven network automation

10.

If it is a requirement to integrate network change automation directly with the automation system so that a change can be executed when a ticket is opened, which platforms and technology will need to be integrated?

a)

dashboard

b)

chat

c)

configuration management

d)

automated backups

e)

ITSM

11.

Cisco ISE belongs to which network domain?

a)

service provider

b)

security

c)

data center

d)

enterprise

12.

A module that is named inventory has a variable that is called devices. After successfully importing the module using import inventory, what is the proper syntax to print the contents of the variable?

a)

print(inventory.devices)

b)

print(devices.inventory)

c)

print(inventory.devices())

d)

print(devices)

13.

A method was successfully imported with the command from netmiko import ConnectHandler as ch. What does ch mean?

a)

It is a method that is defined in the Python standard libraries.

b)

It is a Python-defined method to shorten ConnectHandler.

c)

It is a user-defined alias for the ConnectHandler.

d)

It is a method that is defined in the Netmiko module.

14.

Which command is used to locate a Python package that is stored on the Python Package Index?

a)

pip locate

b)

pip find

c)

pip search

d)

pip lookup

15.

Which two options can be used to list all available methods for any supported Python data type and learn how to use a given method?

a)

print()

b)

dir()

c)

help()

d)

show()

e)

len()

16.

A variable of a dictionary data type named inventory has the following value: {"csr1kv1":{"vendor":"cisco"}}. Which Python command will print the value of the "vendor" key?

a)

print(inventory ["csr1kv1"])

b)

print(inventory ["vendor"])

c)

print(inventory [0]["vendor"])

d)

print(inventory ["csr1kv1"]["vendor"])

17.

Which program is used to install Python packages?

a)

ls

b)

pip

c)

grep

d)

install

e)

Python

18.

Which option is an open source multivendor SSH Python package?

a)

Genie

b)

NAPALM

c)

ACI

d)

Netmiko

e)

Cobra

19.

Which two Python data types can relate to JSON?

a)

lists

b)

sets

c)

tuples

d)

dictionaries

e)

integers

20.

Which method must be used to convert a JSON object to a supported Python data type?

a)

json.dumps()

b)

json.loads()

c)

json.scanner

d)

json.dump()

21.

What is the main reason to learn how to interact with JSON objects?

a)

JSON is a simple data object.

b)

The Python programming language supports it.

c)

JSON is one of the encoding formats that is commonly used in APIs.

d)

JSON is an XML-based data exchange format for HTTP requests.

22.

The root element in XML data has the xmlns:prod="http://www.cisco.com/ns/" namespace. How can you easily apply the namespace to all elements with the least amount of effort?

a)

Nothing. The namespace will be applied to all child elements by default.

b)

Using the and syntaxes, only apply the namespace to the child elements. Subchild elements inherit it automatically.

c)

Using the and syntaxes, apply the namespace to the child and subchild elements.

d)

Change the namespace type to default.

23.

What is the name of the Python object that represents XML data?

a)

xml

b)

xml.etree.ElementTree

c)

xml.etree

d)

xml.etree.ElementTree.parse()

24.

To which YAML value does the following JSON data convert?

a)

*inventory: - csr1kv1 - ios-xe

b)

inventory: csr1kv1: ios-xe

c)

- inventory - csr1kv1 - ios-xe

d)

inventory: - csr1kv1:

25.

Assuming that there are three devices in the inventory, what is wrong with the following YAML data?

a)

Everything looks correct.

b)

The line csr1kv2: nx-os cannot have nx-os as a value.

c)

The indentation is invalid.

d)

The text “- sign” is absent at the beginning of each line.

26.

Which two of the following options are the main data encoding formats that are commonly used in Application Programming Interfaces?

a)

HTML

b)

JSON

c)

PDF

d)

XML

27.

Which HTTP error code should show up when the number of API calls have been exceeded?

a)

404

b)

200

c)

429

d)

501

28.

Why are API health checks useful?

a)

to prevent you from creating requests that will fail

b)

to make sure the API endpoint has no viruses

c)

to prevent memory leaks in the API code

d)

to make it harder for malicious users to exploit the API

29.

Which two options are the main encoding formats?

a)

NETCONF

b)

HTTP

c)

JSON

d)

XML

e)

RESTCONF

30.

Which option is a command-line tool for consuming REST APIs?

a)

Postman

b)

Firefox

c)

cURL

d)

Python requests

31.

Which statement about RESTful APIs is true?

a)

If you can make an API call, it means it is RESTful.

b)

There are only three constraints that make an API RESTful.

c)

RESTful APIs can only be used with web browsers.

d)

REST stands for Representational State Transfer.

32.

What does the CRUD acronym stand for?

a)

create, read, update, and delete

b)

call, return, update, and delete

c)

create, remove, update, and delete

d)

create, release, upload, and delete

33.

Which two functions of the requests module can be used to replace or update a configuration that exists on the API endpoint?

a)

POST

b)

GET

c)

PUT

d)

DELETE

e)

PATCH

34.

Which statement regarding the Requests library is true?

a)

It is a standard library.

b)

It does not format data before making the API call.

c)

It is not a standard library and you must install it.

d)

It is used to interact with devices using SSH connection

35.

Which word is prepended to the basic authentication in the headers?

a)

Basic

b)

None

c)

Bearer

d)

Simple

36.

What is the name of the argument that can perform basic authentication when the API call is made?

a)

basic

b)

*auth

c)

token

d)

body

37.

Where should the token be referenced when making an API call?

a)

In the request header

b)

In the request body

c)

In the URL parameters

d)

In the response payload

e)

depends on the API implementation

38.

What does the session variable represent in the session = requests.Session() command?

a)

an instance (object) of the requests Session() class

b)

a variable that holds data that is returned from requests.Session()

c)

a method of the requests Session() class

d)

a subclass of the requests Session() class

39.

Which statement regarding session-based authentication is true?

a)

Session-based authentication uses tokens to authenticate.

b)

Session-based authentication uses cookies to authenticate.

c)

Session-based authentication uses Base64-encoded strings to authenticate.

d)

Session-based authentication uses the authorization header to authenticate.

40.

Which object of the response variable shows when the session cookie will expire?

a)

text

b)

reason

c)

ok

d)

cookies

41.

Which two statements best describe the current state of network operations? (Choose two.)

a)

A. Network engineers automate all their tasks.

b)

B. SSH and CLI are the primary means of network management.

c)

C. Network teams should have to hire more engineers as the network grows.

d)

D. SNMP is the primary programmatic interface for network management systems to communicate with network devices.

e)

E. RESTful APIs are the primary programmatic interface for network management systems to communicate with network devices.

42.

What does a network operation team require in order to successfully benefit from network automation?

a)

The network operation team needs to hire more network engineers.

b)

The network must be completely upgraded to the latest vendor models.

c)

Network Operation teams need to be able to use multiple tools for network automation.

d)

Network Operations teams need a cohesive network management strategy with proper controls and standards.

43.

What is one reason why Simple Network Management Protocol (SNMP) is not an optimal protocol for programmatic network device configuration?

a)

SNMP is new protocol, and many Network Engineers have not worked with it.

b)

SNMP is only used for network monitoring.

c)

SNMP is not as reliable as other network configuration protocols.

d)

Unlike other network automation protocols, SNMP offers no security.

44.

Which two options are not a network API?

a)

RESTCONF

b)

YANG

c)

NETCONF

d)

RESTful

e)

gRPC

45.

Which is not a benefit of DevOps culture and mindset?

a)

Improved speed and agility to deploy network configurations

b)

Using tools that improve collaboration and communication.

c)

Iterative and continual Improvement.

d)

Using faster-converging routing protocols.

46.

What is the current Cisco product that allows you to create virtualized network devices through an API that can be used for QA and testing?

a)

VIRL

b)

NSO

c)

CML

d)

pyATS

47.

Which use case enables historical tracking of changes for compliance and audits?

a)

Automated Backups

b)

Zero-Touch Provisioning

c)

Continuous Compliance

48.

What is the name of the DevOps concept that uses chat clients that can receive notifications from automation tools?

a)

ChatOps

b)

DevOps

c)

Automation

d)

Notifications

49.

ACI is integrated with an SD-WAN controller and provides information on how to prioritize traffic to or from a particular application. Which pair of domains is involved?

a)

enterprise and data center

b)

data center and security

c)

data center and service provider

d)

service provider and enterprise

50.

What technology domain supports a network engineer using Cisco Webex to send a request to a chatbot to provision a network interface on a network device?

a)

Collaboration

b)

Enterprise

c)

Data Center

d)

Service Provider

51.

What has Cisco implemented on platforms across various technology domains that enables multidomain automation?

a)

Security

b)

Smart Licensing

c)

APIs

d)

Guestshell

52.

Which two options are the main data encoding formats?

a)

NETCONF

b)

HTTP

c)

JSON

d)

XML

e)

gRPC

53.

What is considered a disadvantage of Controller-Level management?

a)

large scope of impact

b)

small scope of impact

c)

time-consuming to configure and manage

d)

potential for configuration drift

54.

What is one function of a controller on a network?

a)

provide a layer of abstraction

b)

make the network more complex for network engineers to manage

c)

control the flow of data between different network devices

d)

lower the licensing costs for organizations

55.

A variable of the list data type that is named devices has the following value: [{"hostname":"csr1kv1"}]. Which Python command will print the value of the "hostname" key?

a)

print(devices["hostname"])

b)

print(devices[0]["hostname"])

c)

print(devices(0))

d)

print(devices[0][hostname])

56.

Refer to the following Python script. Which message will be printed?

a)

No Match Was Found!

b)

models variable contains CATALYST

c)

models variable contains NEXUS

d)

models variable contains ASA

57.

Which is the correct syntax to define a function?

a)

function print_hostname():

b)

define print_hostname():

c)

type print_hostname():

d)

def print_hostname():

58.

What should a folder contain for Python to consider it as a package?

a)

A init.py file, which can be empty.

b)

A main.py file, which contains the package initializing code.

c)

A name.py conditional statement in the program itself.

d)

Nothing. Python will consider it as package as long as it contains a valid Python file.

59.

What environmental value is a list of directories that the operating system uses to search for Python modules and packages?

a)

PYTHONSTARTUP

b)

PYTHONHOME

c)

PYTHONPATH

d)

PYTHONDEVMODE

60.

If you are using the package installer for Python which command installs all Python packages with specified versions from a text file?

a)

pip install -r requirements.txt

b)

pip install requirements.txt

c)

pip freeze > requirements.txt

d)

pip install --no-cache-dir requirements.txt

61.

What can be done if pip is unavailable on the host machine or you need the latest software with a bug fix not yet posted on PyPI?

a)

Use the pip install command with the --no-deps option.

b)

Use the git clone command to obtain the software.

c)

Use the npm command and the URL of the git repository of the Python software.

d)

Use the git install command to download the software from a Git repository.

62.

An operator tests code against a Cisco Integrated Services Router using the Netmiko module in the Python interpreter. After successfully connecting to the device, the operator leaves the workstation for 5 minutes. When the operator returns, the device is no longer alive. What should the operator do to re-establish the connection?

a)

Use the Netmiko establish_connection() method.

b)

Use the Netmiko reconnect() method.

c)

Use the Netmiko set_alive() method.

d)

Use the ConnectHandler object to build a connection.

63.

What is the relationship between Netmiko and Paramiko?

a)

Netmiko is a more powerful alternative to Paramiko for SSH connections.

b)

Paramiko is a wrapper for Netmiko that adds network intelligence for networking devices.

c)

Netmiko is a wrapper for Paramiko with added network intelligence for networking devices

64.

What a markup language like HTML used for storing, transmitting, and reconstructing arbitrary data?

a)

JSON

b)

XML

c)

YAML

d)

XPATH

65.

Which data format heavily uses whitespace indentations to define data structure?

a)

A) YAML

b)

B) JSON

c)

C) CSV

d)

D) XML

66.

Which of the following statements about data encoding formats is TRUE?

a)

JSON is used mainly for machine-to-machine communication

b)

Every JSON value should be enclosed by an opening and closing tag.

c)

An XML compiler is used to read XML documents and provide access to their content and structure.

d)

YAML is a digestible data serialization language used to create configuration files in any programming language.

67.

Which option represents the default XML namespace syntax?

a)

xmlns="https://www.cisco.com/ns/devices"

b)

xmlns=https://www.cisco.com/ns/devices

c)

xmlns "https://www.cisco.com/ns/devices"

d)

xmlnsdefault=https://www.cisco.com/ns/devices

68.

What is a reason to use XML namespaces?

a)

to describe the element

b)

to combine elements by their purpose

c)

to easily identify a desired element

d)

to avoid element name conflicts

69.

What keyword argument may be used with the json.dumps() function to pretty print a JSON object when converted from a Python dictionary?

a)

indent

b)

space

c)

pretty_print

d)

deep

70.

What is the purpose of the Python json module’s dumps() function?

a)

It converts a Python dictionary containing key/value pairs that are strings to a JSON object.

b)

It converts a JSON object to a Python dictionary.

c)

It converts a Python dictionary or list to a JSON object.

d)

It converts a Python list containing strings to a JSON object.

71.

Which statement regarding XML data processing in Python is true?

a)

Python natively understands XML data.

b)

Python cannot use XML data.

c)

Python can use XML data with imported modules.

d)

XML data needs to be converted to the Python native data type before processing.

72.

Which statement regarding the Python YAML module is true?

a)

It is possible to convert a YAML file to the JSON data type using the safe_load method.

b)

The YAML module needs to be installed with pip before using.

c)

It is possible to convert a YAML file only to the Python dictionary data type using the safe_load method.

d)

It is possible to convert a YAML file to the Python list and dictionary data type using the safe_load method.

73.

To which JSON value would the following YAML data convert?

a)

{100: [200, 300]}

b)

[[100], [200], [300]]

c)

[100, [200, 300]]

d)

[100, 200, 300]

74.

Which data formats are an ideal choice when consuming an API?

a)

XML

b)

JSON

c)

Plain Text

d)

YAML

75.

Which feature of a RESTful API ensures that each HTTP request received by the server is independent of previous requests?

a)

Scalability

b)

Cacheable

c)

Stateless

d)

Simple

76.

What are two primary attributes of next-generation programmatic interfaces?

a)

They must support various types of transport: HTTPS, Telnet, and TCP.

b)

They must be flexible and support various types of encoding formats such as XML and JSON.

c)

They should support various types of transport: HTTP, SSH, and TLS.

d)

They should support various types of encoding formats such as HTTP, SSH, and TLS.

e)

They must be flexible and support various types of encoding formats such as Tcl and Python.

77.

What protocol is used in RESTful APIs?

a)

SOAP

b)

HTTP

c)

MQTT

d)

FTP

78.

Which HTTP method is used to modify but not completely update a resource?

a)

MODIFY

b)

TRACE

c)

PUT

d)

PATCH

79.

RESTCONF is based on which data model?

a)

Next-Gen

b)

YANG

c)

REST

d)

HTTP

80.

APIs that do not implement REST principles are called?

a)

Non-RESTful APIs

b)

REST-less APIs

c)

Non-HTTP APIs

d)

Anti-REST APIs

81.

What is the difference between client-side rate limiting and payload limiting?

a)

With client-side rate limiting, you limit the rate of API responses that the API produces, while with payload limiting, you limit the size of the API request bodies

b)

With client-side rate limiting, you limit the rate of API responses that the API produces, while with payload limiting, you limit the size of the API responses bodies

c)

With client-side rate limiting, you limit the rate of API requests, while with payload limiting, you limit the size of the API response bodies

d)

With client-side rate limiting, you limit the rate of API requests, while with payload limiting, you limit the size of the API request bodies.

82.

What should a user receive when the API call limit for that user has been reached?

a)

408 Request Timeout

b)

429 Too Many Requests

c)

503 Service Unavailable

83.

Which of the following software can you use to test APIs?

a)

cURL

b)

Docker

c)

Kibana

d)

Postman

e)

Python PIP

84.

Which two statements about using Postman are true? (Choose two.)

a)

A) You can only use XML as the content type for a request while using Postman.

b)

B) Postman is an application that provides you with a very easy GUI to consume REST APIs.

c)

C) Postman is the only tool available to consume REST APIs.

d)

D) Postman can make GET, PUT, POST, and DELETE requests.

e)

E) There is only basic authorization type.

85.

What are two weaknesses of SNMP?

a)

Incorrect data is returned.

b)

SNMP is an ideal candidate for non-standard traps.

c)

Data ordering is slow.

d)

Data needs to be pushed.

e)

Pulling data from various sources slows down the device.

86.

Which two options can be used to view the JSON response from an API call?

a)

A) dict(response.text)

b)

B) json.dumps(response.text)

c)

C) json.loads(response.text)

d)

response.json()

e)

response.text.json()

87.

Which class is used to manage session-based authentication?

a)

Cookies()

b)

Session()

c)

Request()

d)

Connect()

88.

Which object of the response variable contains a Boolean data type that indicates if the API call was successful?

a)

reason

b)

ok

c)

status_code

d)

text

89.

How should the username and password be formatted before Base64 encoding?

a)

"username:password"

b)

"username_password"

c)

"username+password"

d)

"username;password"

90.

Which HTTP method is used to obtain a token in token-based authentication?

a)

GET

b)

POST

c)

HEAD

d)

OPTIONS

91.

Which API method is commonly used to obtain a token from the API server

a)

GET

b)

PATCH

c)

PUT

d)

POST

92.

Which two examples are valid JSON formatted strings in Python? (Choose two.)

a)

{"vlan_ids":[100,200,300]}

b)

'{"vlan_ids":[100,200,300]}'

c)

[["csr1kv1", "cisco"], ["csr1kv1", "cisco"]]

d)

'[["csr1kv1", "cisco"], ["csr1kv1", "cisco"]]'

e)

[{"hostname":"csr1kv", "uptime":"184 days"}]