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
Q

What type of data was YANG specifically built for?

A

network data

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

YANG was initially designed for NETCONF but now is also used by?

A

RESTCONF

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

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?

A

NETCONF

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

What two types of data can NETCONF distinguish and retrieve?

A

Configuration and state data

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

What are the four core layers to the NETCONF protocol stack?

A

Protocols, Messages, Operations, & Content

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

What are the three NETCONF configuration data stores?

A

running, candidate, & startup

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

What is an interpreted scripting language?

A

Python

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

What is meant that Python is a interpreted language?

A

means it executes instructions directly without the need to compile the program first.

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

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?

A

Python 2.x

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

Which Python version is currently under active development and is easier to learn?

A

Python 3.x

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

What are the two main ways to execute Python code?

A

Using a Python dynamic interpreter (shell) or writing Python scripts

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

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?

A

python

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

What command returns the python built-in documentation about the object?

A

help ()

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

What python command returns the attributes (and methods) of the object or module?

A

dir ()

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

What python command returns the type of the object?

A

type()

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

What are the common python data types?

A

Strings, Numbers, Lists, Dictionaries, Booleans, Files

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

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.

A

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
Q

What NETCONF operation retrieves running configuration and device state information?

A

get

43
Q

What NETCONF retrieves all or part of a specified configuration datastore?

A

get-config

44
Q

What NETCONF operation loads all or part of a specified configuration to the specified target configuration datastore?

A

edit-config

45
Q

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?

A

copy-config

46
Q

What NETCONF operation deletes a configuration datastore?

A

delete-config

47
Q

Which NETCONF configuration datastore holds the configuration loaded by the device when it boots?

A

Startup

48
Q

Which NETCONF configuration datastore holds the complete current configuration on the device?

A

Running

49
Q

Which NETCONF configuration datastore provides a temporary workspace in which a copy of the device’s running configuration is stored?

A

Candidate

50
Q

What two commands enable the NETCONF interface?

A

netconf ssh
netconf-yang

51
Q

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

A

edit-config

52
Q

True or false: The candidate configuration datastore provides a temporary workspace for storing a device’s running configuration.

A

True. The candidate configuration datastore provides a temporary workspace in which a copy of a device’s running configuration is stored.

53
Q

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?

A

RESTCONF

54
Q

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?

A

JSON and HTTP

55
Q

What is an internal web server that acts as a proxy web server?

A

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
Q

What are the HTTP methods (CRUD) of RESTCONF?

A

GET
PATCH
PUT
POST
DELETE
HEAD

57
Q

What command enables the RESTCONF interface?

A

restconf

58
Q

True or false: When a NETCONF client establishes a connection to a NETCONF server, it establishes an SSH connection.

A

True

59
Q

What command is used for verifying that the processes for NETCONF and RESTCONF are running after configuration?

A

show platform software yang-management process

60
Q

True or false: NETCONF uses an RPC-based mechanism to facilitate client/server communication.

A

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
Q

True or false: RESTCONF is based on JSON and SSH.

A

False

62
Q

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?

A

NETCONF

63
Q

NETCONF uses what to facilitate communication between a client (centralized management platform script or application) and a server (network device)?

A

Remote Procedure Call (RPC) with SSH

64
Q

True or false: The candidate configuration datastore provides a temporary workspace for storing a device’s running configuration.

A

True

65
Q

Which of the following are not NETCONF operations? (Select 3)

<put-config>
<edit-config>
DELETE
<get>
PUT
</get></edit-config></put-config>

A

<put-config>
DELETE
PUT
</put-config>

66
Q

What is a Cisco-proprietary API?

A

OpenPK

67
Q

Which API uses an imperative SDN model?

A

OpenFlow

68
Q

Which API uses an delarative SDN model?

A

OpenFlex

69
Q

What uses XML and and RPCs to configure network devices?

A

NETCONF

70
Q

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

A

CREATE, READ, UPDATE, DELETE

71
Q

What is the HTTP status code for Unauthorized?

201

400

401

403

404

A

401

72
Q

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

A

To begin a multiple-line string
To end a multiple-line string

73
Q

Which of the following are part of the YANG model? (Choose two.)

Type

Leaf

Container

String

Method

A

Leaf
Container

74
Q

What is the HTTP status code for Bad Request?

A

400

75
Q

What is the HTTP status code for Forbidden?

A

403

76
Q

What is the HTTP status code for Not Found?

A

404

77
Q

What is the HTTP status code for OK? (Using GET or POST to exchange data with an API)

A

200

78
Q

What Python data type is defined as values and operators used in code?

strings

numbers

lists

dictionaries

Booleans

Files

A

Booleans

79
Q

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.

A

Say hello to the server and exchange the capabilities.

80
Q

What is the structure of YANG data modeling?

network
tree
relational
hierarchical

A

tree

81
Q

Which orchestration tool was initially designed for divergent enterprise IT use cases, rather than automation for applications and cloud infrastructure?

Puppet
Chef
Ansible
Saltstack

A

Saltstack

82
Q

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.

A

They always begin and end with curly brackets {}.

83
Q

Which two headers are located in the VXLAN overlay network segment? (Choose two.)

UPD
Outer IP
Outer MAC
Inner (Original) MAC
Inner (Original) IP

A

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
Q

Sequences of character data are what type of Python data?

Lists
Numbers
Files
Booleans
Strings
Dictionaries

A

Strings

85
Q

Which type of Python data are integers allowing for mathematical operation to be performed directly in code?

Lists
Numbers
Files
Booleans
Strings
Dictionaries

A

Numbers

86
Q

Which type of Python data are containers used to store multiple data at the same time?

Lists
Numbers
Files
Booleans
Strings
Dictionaries

A

Lists

87
Q

Which type of Python data use key value pairs to match keys to their value?

Lists
Numbers
Files
Booleans
Strings
Dictionaries

A

Dictionaries

88
Q

Which type of Python data are values and operators used in code?

Lists
Numbers
Files
Booleans
Strings
Dictionaries

A

Booleans

89
Q

What are objects used by Python?

Lists
Numbers
Files
Booleans
Strings
Dictionaries

A

Files

90
Q

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

A

Agentless

91
Q

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

A

POST and PUT.

92
Q

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

A

415 Unsupported Media Type

93
Q

Which of these tools are agentless in operation? (Choose three.)

Ansible

Puppet Bolt

SaltStack

Chef

Salt SSH

A

Ansible
Puppet Bolt
Salt SSH

Puppet Bolt and Salt SSH are agentless versions of Puppet and SaltStack.

94
Q

Which of the following are features of Ansible? (Choose two.)

Manifests

Modules

Playbooks

Tasks

Recipes

A

Playbooks

Tasks

95
Q

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]]

A

HR Employee record
Employee1:
Name: John Dough
Title: Developer
Nickname: Mr. DBug

96
Q

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

A

ansible-playbook ConfigureInterface.yaml

97
Q

What is the language associated with Chef?

Python

C++

Ruby

Q-Basic

Tcl

A

Ruby

98
Q

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

A

x-www-form-urlencoded

99
Q

When using the Cisco DNA Center Token API, what authentication method is used?

MD5

X-Auth-Token

SSH

Basic authentication

JSON

A

Basic authentication

100
Q

Which of the following are part of the YANG model? (Choose two.)

Type

Leaf

Container

String

Method

A

Leaf

Container