Automation Flashcards

1
Q

Which automation tool is one of the oldest and is Agent Based?

A

Puppet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which automation tool follows the same model as Puppet?

A

Chef

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which automation tool is written in Python and is a agentless?

A

Ansible

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which automation tool is an open-source, Python-based software for event-driven IT automation?

A

Salt (Saltstack)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which three tools manage systems in a declarative manner, so that once you define the state, the target system should be in effect so that you do not have to worry about how it happens?

A. Puppet
B. Chef
C. Ansible
D. VIRL
E. SSH
F. Telnet

A

A. Puppet
B. Chef
C. Ansible

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does SNMP use for a type of data model that defines a collection of information?

A

MIBs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does SNMP use to retrieve a MIB variable from the SNMP agent (a network device).

A

get-request

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does SNMP use to set variables that are stored in the MIB

A

set-request

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the core components of the complete device API?

A

Data Models: These are the foundation of the API, defining the syntax and semantics, including the constraints, of working with the API.

Transport: The model-driven APIs support one or more transport methods, including SSH, TLS, and HTTP or HTTPS.

Encoding: The model-driven APIs support the choice of encoding, including XML and JSON, but also custom encodings such as Google Protocol Buffers.

Protocols: The model-driven APIs also support multiple protocol options. The three core protocols are NETCONF, RESTCONF, and gRPC. Remember, they are the core protocols that work with model-driven APIs. REST is not explicitly listed because when REST is used in a modeled device, it becomes RESTCONF.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which three of the following are the key attributes of next-generation programmatic interfaces? (Choose three.)

A. They must support different types of transport: HTTP and HTTPS, SSH, TLS.

B. They must be flexible and support different types of encoding formats such as TCL and Python.

C. They must support different types of transport: HTTPS, Telnet, TCP.

D. They must be extensible and open APIs: REST, RESTCONF, NETCONF, gRPC.

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

F. There must be extensible and open APIs: HTTP, HTTPS, SSH, Telnet

A

A. They must support different types of transport: HTTP and HTTPS, SSH, TLS.

D. They must be extensible and open APIs: REST, RESTCONF, NETCONF, gRPC.

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

If you want to use an API to configure a Cisco router, what do you have to check that is supported on the API?

A

you have to check which data types are supported by that API

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are three common data types supported by APIs?

A

YAML Ain’t Markup Language (YAML)

JavaScript Object Notation (JSON)

eXtensible Markup Language (XML)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Which data-format is not as humanly readable as the other two formats

A

XML

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which data-format is mostly used to interexchange highly structured data between applications (machine-to-machine communication) and used.in Java programming?

A

XML

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Which data-format serves as an alternative to XML because it is often smaller and easier to read. It is mostly used for transmitting data between a server and a web page?

A

JSON

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

JSON is basically a subset of which data-format?

A

YAML

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Which data format is most beginner friendly?

A

YAML

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What is a way to represent a specific data format in textual form?

A

syntax

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Which data format is not a markup language is most humanly readable?

A

YAML

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What data format is this?

A

XML

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

What data format is this?

A

JSON

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

What data format is this?

A

YAML

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

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

A

YAML

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

What is a data modeling language that describes what can be configured and monitored on a device, and the administrative actions that can be executed on a device?

A

Yet Another Next Generation (YANG)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
What type of data was YANG specifically built for?
network data
26
YANG was initially designed for NETCONF but now is also used by?
RESTCONF
27
What is a next-generation network management protocol that is designed specifically for transactional-based network management and to improve upon the weaknesses of SNMP?
NETCONF
28
What two types of data can NETCONF distinguish and retrieve?
Configuration and state data
29
What are the four core layers to the NETCONF protocol stack?
Protocols, Messages, Operations, & Content
30
What are the three NETCONF configuration data stores?
running, candidate, & startup
31
What is an interpreted scripting language?
Python
32
What is meant that Python is a interpreted language?
means it executes instructions directly without the need to compile the program first.
33
Which Python version is currently supported by Cisco NX-OS, has extensive libraries, and is still supported by the Python community, though it is no longer in development?
Python 2.x
34
Which Python version is currently under active development and is easier to learn?
Python 3.x
35
What are the two main ways to execute Python code?
Using a Python dynamic interpreter (shell) or writing Python scripts
36
To open the Python shell, what command would you enter in either a Linux terminal or from the command line of a Cisco Nexus switch?
python
37
What command returns the python built-in documentation about the object?
help ()
38
What python command returns the attributes (and methods) of the object or module?
dir ()
39
What python command returns the type of the object?
type()
40
What are the common python data types?
Strings, Numbers, Lists, Dictionaries, Booleans, Files
41
Which two statements about Python are correct? (Choose two.) A. To open the Python shell, enter the shell command in either an IOS terminal or from the command line of a Cisco WLC. B. Python is considered a static, proprietary language. C. The Python shell is used to write and test code in real time without having to write a full program or script. D. Python is considered a dynamic language. E. To open the Python shell, enter the regedit command in either an IOS terminal or from the command line of a Cisco WLC.
C. The Python shell is used to write and test code in real time without having to write a full program or script. D. Python is considered a dynamic language.
42
What NETCONF operation retrieves running configuration and device state information?
get
43
What NETCONF retrieves all or part of a specified configuration datastore?
get-config
44
What NETCONF operation loads all or part of a specified configuration to the specified target configuration datastore?
edit-config
45
What NETCONF operation creates or replaces an entire configuration datastore with the contents of another complete configuration datastore. The target datastore is replaced, if it exists?
copy-config
46
What NETCONF operation deletes a configuration datastore?
delete-config
47
Which NETCONF configuration datastore holds the configuration loaded by the device when it boots?
Startup
48
Which NETCONF configuration datastore holds the complete current configuration on the device?
Running
49
Which NETCONF configuration datastore provides a temporary workspace in which a copy of the device’s running configuration is stored?
Candidate
50
What two commands enable the NETCONF interface?
netconf ssh netconf-yang
51
Which NETCONF operation loads all or part of a specified configuration to the specified target configuration datastore? A. get B. get-config C. edit-config D. copy-config
edit-config
52
True or false: The candidate configuration datastore provides a temporary workspace for storing a device’s running configuration.
True. The candidate configuration datastore provides a temporary workspace in which a copy of a device’s running configuration is stored.
53
What is a protocol that provides a programmatic interface based on standard mechanisms used for accessing configuration data, state data, data-model-specific RPC operations, and events, as defined in the YANG model?
RESTCONF
54
RESTCONF is a specification that is similar to the NETCONF-YANG interface model. Whereas NETCONF-YANG uses an SSH model, while RESTCONF is based on what?
JSON and HTTP
55
What is an internal web server that acts as a proxy web server?
NGINX. While the nginx process does not need to be in a running state for NETCONF to function properly, it is required for RESTCONF.
56
What are the HTTP methods (CRUD) of RESTCONF?
GET PATCH PUT POST DELETE HEAD
57
What command enables the RESTCONF interface?
restconf
58
True or false: When a NETCONF client establishes a connection to a NETCONF server, it establishes an SSH connection.
True
59
What command is used for verifying that the processes for NETCONF and RESTCONF are running after configuration?
show platform software yang-management process
60
True or false: NETCONF uses an RPC-based mechanism to facilitate client/server communication.
True. NETCONF uses a simple RPC-based mechanism to facilitate communication between a client (that is, a centralized management platform script or application) and a server (that is, a network device).
61
True or false: RESTCONF is based on JSON and SSH.
False
62
What is a XML-encoded protocol that provides the transport needed to communicate the YANG-formatted configuration or operational data request from an application that runs on a centralized management platform to a network device?
NETCONF
63
NETCONF uses what to facilitate communication between a client (centralized management platform script or application) and a server (network device)?
Remote Procedure Call (RPC) with SSH
64
True or false: The candidate configuration datastore provides a temporary workspace for storing a device’s running configuration.
True
65
Which of the following are not NETCONF operations? (Select 3) DELETE PUT
DELETE PUT
66
What is a Cisco-proprietary API?
OpenPK
67
Which API uses an imperative SDN model?
OpenFlow
68
Which API uses an delarative SDN model?
OpenFlex
69
What uses XML and and RPCs to configure network devices?
NETCONF
70
What does CRUD stand for? What does CRUD stand for? CREATE, RESTORE, UPDATE, DELETE CREATE, READ, UPDATE, DELETE CREATE, RETRIEVE, UPDATE, DELETE CREATE, RECEIVE, UPLOAD, DOWNLOAD CREATE, RECEIVE, UPLOAD, DELETE
CREATE, READ, UPDATE, DELETE
71
What is the HTTP status code for Unauthorized? 201 400 401 403 404
401
72
In Python, why would you use three quotation marks in a row? (Choose two.) To begin a multiple-line string To start a function To represent a logical OR To end a multiple-line string To call a reusable line of code
To begin a multiple-line string To end a multiple-line string
73
Which of the following are part of the YANG model? (Choose two.) Type Leaf Container String Method
Leaf Container
74
What is the HTTP status code for Bad Request?
400
75
What is the HTTP status code for Forbidden?
403
76
What is the HTTP status code for Not Found?
404
77
What is the HTTP status code for OK? (Using GET or POST to exchange data with an API)
200
78
What Python data type is defined as values and operators used in code? strings numbers lists dictionaries Booleans Files
Booleans
79
You have started a NETCONF SSH session from a client with an on-box NETCONF server. What is the next step after you see the initial hello message from the server? Re-establish the NETCONF SSH session. Say hello to the server and exchange the capabilities. Send RPCs to the NETCONF server. Discover the available schemas for the device.
Say hello to the server and exchange the capabilities.
80
What is the structure of YANG data modeling? network tree relational hierarchical
tree
81
Which orchestration tool was initially designed for divergent enterprise IT use cases, rather than automation for applications and cloud infrastructure? Puppet Chef Ansible Saltstack
Saltstack
82
How are new objects identified in JSON? They always begin and end with parentheses (). They always begin and end with square brackets []. They always begin and end with curly brackets {}. They always end with a comma.
They always begin and end with curly brackets {}.
83
Which two headers are located in the VXLAN overlay network segment? (Choose two.) UPD Outer IP Outer MAC Inner (Original) MAC Inner (Original) IP
Inner (Original) MAC and Inner (Original) IP. The Inner (Original) MAC and Inner (Original) IP Headers reside in the overlay network. The UPD, Outer IP, and Outer MAC Headers reside in the underlay network.
84
Sequences of character data are what type of Python data? Lists Numbers Files Booleans Strings Dictionaries
Strings
85
Which type of Python data are integers allowing for mathematical operation to be performed directly in code? Lists Numbers Files Booleans Strings Dictionaries
Numbers
86
Which type of Python data are containers used to store multiple data at the same time? Lists Numbers Files Booleans Strings Dictionaries
Lists
87
Which type of Python data use key value pairs to match keys to their value? Lists Numbers Files Booleans Strings Dictionaries
Dictionaries
88
Which type of Python data are values and operators used in code? Lists Numbers Files Booleans Strings Dictionaries
Booleans
89
What are objects used by Python? Lists Numbers Files Booleans Strings Dictionaries
Files
90
Which Ansible characteristic enables it to integrate and automate any device using any API? Agentless Agent-Based Both Agentless and Agent-Based Dynamic Agent-Based
Agentless
91
When using the Python Requests library, which two HTTP requests might result in overwriting interface attributes that are not defined in the message body? (Choose two.) APPEND GET PATCH POST PUT STORE
POST and PUT.
92
Which HTTP status code is returned as a result of sending a request in XML format to a server that only accepts JSON? 400 Bad Request 404 Not Found 415 Unsupported Media Type 501 Not Implemented
415 Unsupported Media Type
93
Which of these tools are agentless in operation? (Choose three.) Ansible Puppet Bolt SaltStack Chef Salt SSH
Ansible Puppet Bolt Salt SSH Puppet Bolt and Salt SSH are agentless versions of Puppet and SaltStack.
94
Which of the following are features of Ansible? (Choose two.) Manifests Modules Playbooks Tasks Recipes
Playbooks Tasks
95
Which of the following is a YAML example? { "user": "root", "user": "Jason", "user": "Jamie", "user": "Luke" } HR Employee record Employee1: Name: John Dough Title: Developer Nickname: Mr. DBug root Jason Jamie Luke [users[root|Jason|Jamie|Luke]]
HR Employee record Employee1: Name: John Dough Title: Developer Nickname: Mr. DBug
96
What is the proper command to execute a playbook using Ansible? ansible-playbook ConfigureInterface.yaml ansible ConfigureInterface.yaml play ansible-book ConfigureInterface.yaml play ansible-book ConfigureInterface.taml
ansible-playbook ConfigureInterface.yaml
97
What is the language associated with Chef? Python C++ Ruby Q-Basic Tcl
Ruby
98
When using the Cisco vManage Authentication API, what is the Headers Content-Type that is used? MD5 X-Auth-Token SSH x-www-form-urlencoded JSON
x-www-form-urlencoded
99
When using the Cisco DNA Center Token API, what authentication method is used? MD5 X-Auth-Token SSH Basic authentication JSON
Basic authentication
100
Which of the following are part of the YANG model? (Choose two.) Type Leaf Container String Method
Leaf Container