Worksheetsnetwork auto 1-2
Total questions: 92
Worksheet time: 46mins
Which network automation use case verifies that all networking devices only communicate with each other using secured mechanisms?
pre- and post-validation
configuration management
reporting
continuous compliance
Which enterprise platform type can be used to receive real-time notifications from automation tools to alert a given individual or team?
dashboards
orchestration
ITSM
chat
Which option best describes the reason for using automation tools like Python and Ansible in large enterprise networks?
Easily configure a networking device
Obtain information programmatically
Eliminate human error and standardize the configuration while bringing speed and efficiency to network operations
Eliminate the need for the CLI
Which component streamlines the development of network automation applications?
SDK
ChatBot
RESTCONF
DevOps
Which two options are common trends in the network industry in the context of automation?
A. increasing the rate and use of the CLI
B. hiring more engineers to scale network management
C. actively testing automation in production
D. adoption of open source
E. implementing DevOps processes and principles
Which challenge does collaboration solve?
security concerns
application availability
network reachability
communication among teams
Which method is used to automate a multidomain network?
CLI
GUI
console
API
To which domain does Cisco Meraki belong?
data center
security
collaboration
enterprise
Which type of automation use case is appropriate if you need to shut down an interface when errors are found on that interface?
continuous compliance
configuration management
automated backups
reporting
event-driven network automation
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?
dashboard
chat
configuration management
automated backups
ITSM
Cisco ISE belongs to which network domain?
service provider
security
data center
enterprise
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?
print(inventory.devices)
print(devices.inventory)
print(inventory.devices())
print(devices)
A method was successfully imported with the command from netmiko import ConnectHandler as ch. What does ch mean?
It is a method that is defined in the Python standard libraries.
It is a Python-defined method to shorten ConnectHandler.
It is a user-defined alias for the ConnectHandler.
It is a method that is defined in the Netmiko module.
Which command is used to locate a Python package that is stored on the Python Package Index?
pip locate
pip find
pip search
pip lookup
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?
print()
dir()
help()
show()
len()
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?
print(inventory ["csr1kv1"])
print(inventory ["vendor"])
print(inventory [0]["vendor"])
print(inventory ["csr1kv1"]["vendor"])
Which program is used to install Python packages?
ls
pip
grep
install
Python
Which option is an open source multivendor SSH Python package?
Genie
NAPALM
ACI
Netmiko
Cobra
Which two Python data types can relate to JSON?
lists
sets
tuples
dictionaries
integers
Which method must be used to convert a JSON object to a supported Python data type?
json.dumps()
json.loads()
json.scanner
json.dump()
What is the main reason to learn how to interact with JSON objects?
JSON is a simple data object.
The Python programming language supports it.
JSON is one of the encoding formats that is commonly used in APIs.
JSON is an XML-based data exchange format for HTTP requests.
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?
Nothing. The namespace will be applied to all child elements by default.
Using the
Using the
Change the namespace type to default.
What is the name of the Python object that represents XML data?
xml
xml.etree.ElementTree
xml.etree
xml.etree.ElementTree.parse()
To which YAML value does the following JSON data convert?
*inventory: - csr1kv1 - ios-xe
inventory: csr1kv1: ios-xe
- inventory - csr1kv1 - ios-xe
inventory: - csr1kv1:
Assuming that there are three devices in the inventory, what is wrong with the following YAML data?
Everything looks correct.
The line csr1kv2: nx-os cannot have nx-os as a value.
The indentation is invalid.
The text “- sign” is absent at the beginning of each line.
Which two of the following options are the main data encoding formats that are commonly used in Application Programming Interfaces?
HTML
JSON
XML
Which HTTP error code should show up when the number of API calls have been exceeded?
404
200
429
501
Why are API health checks useful?
to prevent you from creating requests that will fail
to make sure the API endpoint has no viruses
to prevent memory leaks in the API code
to make it harder for malicious users to exploit the API
Which two options are the main encoding formats?
NETCONF
HTTP
JSON
XML
RESTCONF
Which option is a command-line tool for consuming REST APIs?
Postman
Firefox
cURL
Python requests
Which statement about RESTful APIs is true?
If you can make an API call, it means it is RESTful.
There are only three constraints that make an API RESTful.
RESTful APIs can only be used with web browsers.
REST stands for Representational State Transfer.
What does the CRUD acronym stand for?
create, read, update, and delete
call, return, update, and delete
create, remove, update, and delete
create, release, upload, and delete
Which two functions of the requests module can be used to replace or update a configuration that exists on the API endpoint?
POST
GET
PUT
DELETE
PATCH
Which statement regarding the Requests library is true?
It is a standard library.
It does not format data before making the API call.
It is not a standard library and you must install it.
It is used to interact with devices using SSH connection
Which word is prepended to the basic authentication in the headers?
Basic
None
Bearer
Simple
What is the name of the argument that can perform basic authentication when the API call is made?
basic
*auth
token
body
Where should the token be referenced when making an API call?
In the request header
In the request body
In the URL parameters
In the response payload
depends on the API implementation
What does the session variable represent in the session = requests.Session() command?
an instance (object) of the requests Session() class
a variable that holds data that is returned from requests.Session()
a method of the requests Session() class
a subclass of the requests Session() class
Which statement regarding session-based authentication is true?
Session-based authentication uses tokens to authenticate.
Session-based authentication uses cookies to authenticate.
Session-based authentication uses Base64-encoded strings to authenticate.
Session-based authentication uses the authorization header to authenticate.
Which object of the response variable shows when the session cookie will expire?
text
reason
ok
cookies
Which two statements best describe the current state of network operations? (Choose two.)
A. Network engineers automate all their tasks.
B. SSH and CLI are the primary means of network management.
C. Network teams should have to hire more engineers as the network grows.
D. SNMP is the primary programmatic interface for network management systems to communicate with network devices.
E. RESTful APIs are the primary programmatic interface for network management systems to communicate with network devices.
What does a network operation team require in order to successfully benefit from network automation?
The network operation team needs to hire more network engineers.
The network must be completely upgraded to the latest vendor models.
Network Operation teams need to be able to use multiple tools for network automation.
Network Operations teams need a cohesive network management strategy with proper controls and standards.
What is one reason why Simple Network Management Protocol (SNMP) is not an optimal protocol for programmatic network device configuration?
SNMP is new protocol, and many Network Engineers have not worked with it.
SNMP is only used for network monitoring.
SNMP is not as reliable as other network configuration protocols.
Unlike other network automation protocols, SNMP offers no security.
Which two options are not a network API?
RESTCONF
YANG
NETCONF
RESTful
gRPC
Which is not a benefit of DevOps culture and mindset?
Improved speed and agility to deploy network configurations
Using tools that improve collaboration and communication.
Iterative and continual Improvement.
Using faster-converging routing protocols.
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?
VIRL
NSO
CML
pyATS
Which use case enables historical tracking of changes for compliance and audits?
Automated Backups
Zero-Touch Provisioning
Continuous Compliance
What is the name of the DevOps concept that uses chat clients that can receive notifications from automation tools?
ChatOps
DevOps
Automation
Notifications
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?
enterprise and data center
data center and security
data center and service provider
service provider and enterprise
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?
Collaboration
Enterprise
Data Center
Service Provider
What has Cisco implemented on platforms across various technology domains that enables multidomain automation?
Security
Smart Licensing
APIs
Guestshell
Which two options are the main data encoding formats?
NETCONF
HTTP
JSON
XML
gRPC
What is considered a disadvantage of Controller-Level management?
large scope of impact
small scope of impact
time-consuming to configure and manage
potential for configuration drift
What is one function of a controller on a network?
provide a layer of abstraction
make the network more complex for network engineers to manage
control the flow of data between different network devices
lower the licensing costs for organizations
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?
print(devices["hostname"])
print(devices[0]["hostname"])
print(devices(0))
print(devices[0][hostname])
Refer to the following Python script. Which message will be printed?
No Match Was Found!
models variable contains CATALYST
models variable contains NEXUS
models variable contains ASA
Which is the correct syntax to define a function?
function print_hostname():
define print_hostname():
type print_hostname():
def print_hostname():
What should a folder contain for Python to consider it as a package?
A init.py file, which can be empty.
A main.py file, which contains the package initializing code.
A name.py conditional statement in the program itself.
Nothing. Python will consider it as package as long as it contains a valid Python file.
What environmental value is a list of directories that the operating system uses to search for Python modules and packages?
PYTHONSTARTUP
PYTHONHOME
PYTHONPATH
PYTHONDEVMODE
If you are using the package installer for Python which command installs all Python packages with specified versions from a text file?
pip install -r requirements.txt
pip install requirements.txt
pip freeze > requirements.txt
pip install --no-cache-dir requirements.txt
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?
Use the pip install command with the --no-deps option.
Use the git clone command to obtain the software.
Use the npm command and the URL of the git repository of the Python software.
Use the git install command to download the software from a Git repository.
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?
Use the Netmiko establish_connection() method.
Use the Netmiko reconnect() method.
Use the Netmiko set_alive() method.
Use the ConnectHandler object to build a connection.
What is the relationship between Netmiko and Paramiko?
Netmiko is a more powerful alternative to Paramiko for SSH connections.
Paramiko is a wrapper for Netmiko that adds network intelligence for networking devices.
Netmiko is a wrapper for Paramiko with added network intelligence for networking devices
What a markup language like HTML used for storing, transmitting, and reconstructing arbitrary data?
JSON
XML
YAML
XPATH
Which data format heavily uses whitespace indentations to define data structure?
A) YAML
B) JSON
C) CSV
D) XML
Which of the following statements about data encoding formats is TRUE?
JSON is used mainly for machine-to-machine communication
Every JSON value should be enclosed by an opening and closing tag.
An XML compiler is used to read XML documents and provide access to their content and structure.
YAML is a digestible data serialization language used to create configuration files in any programming language.
Which option represents the default XML namespace syntax?
xmlns="https://www.cisco.com/ns/devices"
xmlns=https://www.cisco.com/ns/devices
xmlns "https://www.cisco.com/ns/devices"
xmlnsdefault=https://www.cisco.com/ns/devices
What is a reason to use XML namespaces?
to describe the element
to combine elements by their purpose
to easily identify a desired element
to avoid element name conflicts
What keyword argument may be used with the json.dumps() function to pretty print a JSON object when converted from a Python dictionary?
indent
space
pretty_print
deep
What is the purpose of the Python json module’s dumps() function?
It converts a Python dictionary containing key/value pairs that are strings to a JSON object.
It converts a JSON object to a Python dictionary.
It converts a Python dictionary or list to a JSON object.
It converts a Python list containing strings to a JSON object.
Which statement regarding XML data processing in Python is true?
Python natively understands XML data.
Python cannot use XML data.
Python can use XML data with imported modules.
XML data needs to be converted to the Python native data type before processing.
Which statement regarding the Python YAML module is true?
It is possible to convert a YAML file to the JSON data type using the safe_load method.
The YAML module needs to be installed with pip before using.
It is possible to convert a YAML file only to the Python dictionary data type using the safe_load method.
It is possible to convert a YAML file to the Python list and dictionary data type using the safe_load method.
To which JSON value would the following YAML data convert?
{100: [200, 300]}
[[100], [200], [300]]
[100, [200, 300]]
[100, 200, 300]
Which data formats are an ideal choice when consuming an API?
XML
JSON
Plain Text
YAML
Which feature of a RESTful API ensures that each HTTP request received by the server is independent of previous requests?
Scalability
Cacheable
Stateless
Simple
What are two primary attributes of next-generation programmatic interfaces?
They must support various types of transport: HTTPS, Telnet, and TCP.
They must be flexible and support various types of encoding formats such as XML and JSON.
They should support various types of transport: HTTP, SSH, and TLS.
They should support various types of encoding formats such as HTTP, SSH, and TLS.
They must be flexible and support various types of encoding formats such as Tcl and Python.
What protocol is used in RESTful APIs?
SOAP
HTTP
MQTT
FTP
Which HTTP method is used to modify but not completely update a resource?
MODIFY
TRACE
PUT
PATCH
RESTCONF is based on which data model?
Next-Gen
YANG
REST
HTTP
APIs that do not implement REST principles are called?
Non-RESTful APIs
REST-less APIs
Non-HTTP APIs
Anti-REST APIs
What is the difference between client-side rate limiting and payload limiting?
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
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
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
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.
What should a user receive when the API call limit for that user has been reached?
408 Request Timeout
429 Too Many Requests
503 Service Unavailable
Which of the following software can you use to test APIs?
cURL
Docker
Kibana
Postman
Python PIP
Which two statements about using Postman are true? (Choose two.)
A) You can only use XML as the content type for a request while using Postman.
B) Postman is an application that provides you with a very easy GUI to consume REST APIs.
C) Postman is the only tool available to consume REST APIs.
D) Postman can make GET, PUT, POST, and DELETE requests.
E) There is only basic authorization type.
What are two weaknesses of SNMP?
Incorrect data is returned.
SNMP is an ideal candidate for non-standard traps.
Data ordering is slow.
Data needs to be pushed.
Pulling data from various sources slows down the device.
Which two options can be used to view the JSON response from an API call?
A) dict(response.text)
B) json.dumps(response.text)
C) json.loads(response.text)
response.json()
response.text.json()
Which class is used to manage session-based authentication?
Cookies()
Session()
Request()
Connect()
Which object of the response variable contains a Boolean data type that indicates if the API call was successful?
reason
ok
status_code
text
How should the username and password be formatted before Base64 encoding?
"username:password"
"username_password"
"username+password"
"username;password"
Which HTTP method is used to obtain a token in token-based authentication?
GET
POST
HEAD
OPTIONS
Which API method is commonly used to obtain a token from the API server
GET
PATCH
PUT
POST
Which two examples are valid JSON formatted strings in Python? (Choose two.)
{"vlan_ids":[100,200,300]}
'{"vlan_ids":[100,200,300]}'
[["csr1kv1", "cisco"], ["csr1kv1", "cisco"]]
'[["csr1kv1", "cisco"], ["csr1kv1", "cisco"]]'
[{"hostname":"csr1kv", "uptime":"184 days"}]
