CBT Nuggets Flashcards

1
Q

Is the HTTP structure always the same?

A

True

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

How does a HTTP communication takes place?

A

Client <-> Server

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

Which structure is used with HTTP

A

Request and Response

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

Which language is a HTTP/1.1 request and response

A

Plain-Text

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

Which structured is used in a http request and respone

A
  1. Start line
  2. Header (Key Value Pairs - strings)
  3. Blank line
  4. Body
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a HTTP request method

A

The HTTP request method is a single word ‘token’ that loosely describes the desired action being performed.

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

What are the request methods

A
  • Get
  • Head
  • Post
  • Put
  • Delete
  • Connect
  • Options
  • Trace
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which HTTP request methods are needed for DEVASC and you see a lot

A
  • Get
  • Head
  • Post
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Where is the http request (verb) method placed

A

In the start line

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

Which http request do you use when you want to retrieve information

A

HTTP GET

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

Which http request do you use when you want to send information

A

HTTP POST

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

What is a verb

A

HTTP verbs tell the server what to do with the data identified by the URL.

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

What is a HTTP response code

A

Every HTTP response has a 3-digit numeric doe indicating the type of response

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

Where is the http response method placed

A

In the start line

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

What are http codes?

A

1XX (100-199) Information Response
2XX (200-299) Successful Response
3XX (300-399) Redirects
4XX (400-499) Client errors (401 - Unauthorized, 403 - foridden, 404 - not found)
5XX (500-599) Server errors

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

API authentication takes place in which part of the HTTP request

A

Header

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

Can you create a parent authentication for several URLs in postman

A

Yes you can, you do that in the parent folder under authentication

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

Where do you set the API key in postman

A

In the authentication field in the folder or per url

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

Which environment runs postman for script execution?

A

Javascript

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

Postman environments are used for?

A

Groups of variables, key value pairs

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

Where are postman environments used for?

A

Test, Acceptance, Development, Production

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

Which notation do you use for variables

A

{{ variable }}

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

The power of environments is to create variables you can use in the entire postman environment. So when you change the variable, it is replaced on all needed places.

A

As question

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

What are examples of variables used in postman

A

Domain, username, password, et cetera

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Why should you use automation?
You get things done quicker, its increases efficiency and speed
26
Why network automation
1. Faster 2. Standardization 3. Known outcomes (what will happen, and what is the result) 4. Monitoring
27
What is the best automation headline
When you can't automated it, it doesn't exist.
28
What is very powerful of automation
You can use other data platform to import data or export data, like send a notification in a slack or teams platform.
29
how do we call network development
NetDevOps
30
Why is network automation strong in monitoring
Because you can request specific data instead of all data like a show run on Cisco device
31
What can you automate?
1. Monitoring 2. Provisioning (Generate template with jinja and yaml) 3. Migration 4. Configuration management (config device, managing state of configuration) 5. Troubleshooting
32
What can you do with automation and configuration management
Create a desired state, and when it drifts you can create an alert or change it directly. You can create a policy where you provide information what may or may not be configured before it is executed based on organization or team policy.
33
What is very strong with network automation and outages
You can create tons of troubleshooting scripts which will be executed based on an event!
34
What kind of automation was used in the past?
SNMP. Collect data, is not dynamic, not secure, udp based
35
What is NETCONF?
Is for NETwork CONFiguration and uses SSH protocol to send configuration
36
Which language is very often used with NETCONF and integrates very good
YANG
37
Network automation uses a client <-> server relationship. Which is the client, and which is the server
Server = Network device Client = Software which is used to create automation scripts
38
Which language is used between the client <-> server in automation?
XML
39
Is netconf object oriented?
Yes, it uses TCP
40
What is the best API method?
RESTCONF
41
Which data format you receive from a RESTCONF call?
JSON
42
What is Ansible kind of tool?
Network automation and orchestration. It is not network programmability
43
What is network programability
Based on Python!
44
How you can best describe automation and orchestration?
Automation = What will happen Orchestration = When will it happen
45
What is strong from ansible
It check first first if it needs to run before the process will actually be executed. When it is already there, it skips it and goes to another task
46
In which language is ansible written?
Python
47
What is a very big benefit of ansible
It is agent less!
48
In which language is the Ansible playbook written?
YAML
49
What is NETCONF kind of protocol?
Transport protocol. The data itself must be standardised via YANG
50
What is netconf
Netconf is the protocol which sends data between a network device and a server/computer
51
What kind of protocol is NETCONF using?
SSH. The most benefits are: - TCP - Connection oriented - Authentcation - Encryptie - Default port: 830
52
What is the most benefit of NETCONF instead of normal SSH?
1. GET - Operational state information 2. GET - Configuration state 3. EDIT - Configuration
53
Which data structure is used in NETCONF?
XML
54
Which payload structure is used in NETCONF
YANG
55
What goes hand in hand in NETCONF
NETCONF and YANG
56
How is the NETCONF protocol stack build?
1. SSH 2. 3. 4. < DATA in YANG>
57
Can you retreive data from several data stores in the network device
Yes, it is possible to get the data from running-config, startup-config or candidate-config
58
How do we enable netconf on Cisco device
Netconf ssh
59
How do you enable netconf with network driven programability
Netconf-yang
60
What is ncclient doing
It handles all the connection information of netconf like the rpc, payload etc
61
What is the standard API?
HTTP-API
62
What is the big benefit of RESTCONF instead of SNMP
SNMP is not good in structured data or automation
63
What is the disadvantage of NETCONF
XML, its not human readable
64
Why is REST-API more powerful then NETCONF
1. Simple architecture 2. JSON 3. Understanding HTTP
65
What is great of NETCONF
1. Structured data 2. RPCs 3. Capability handshake These doesnt exist in RESTCONF
66
What is not used in RESTCONF instead of NETCONF
The RPC’s, like GET, EDIT-CONFIG, GET-CONFIG. In RESTCONF you can leverage the HTTP protocol
67
Which HTTP request are there for RESTCONF?
1. HTTP GET 2. HTTP POST - Create config 3. HTTP PUT - Updates data 4. HTTP PATCH - Replaces data 5. HTTP DELETE - Delete data
68
What language is used in the RESTCONF Payload?
YANG
69
How it the HTTP url build?
1. IP-Address / 2. Protocol (API/RESTCONF) 3. Data store(Running config, startup config etc) 4. YANG module 5. YANG container 6. Specific data url
70
If you use HTTP POST do you use the same HTTP url as with HTTP GET
Yes! You only add data to the data store in JSON format
71
When you work with python in restconf which imports do you need to do?
Import request Import json
72
When you are working with RESTCONF in python what kind of information do you need to set as header?
Python dictionary: “application/yang-data+json
73
How does a header look like in a restconf .py file?
Headers = {“Accept”: “application/yang-data+json”, “Content”: “application/yang-data+json”}
74
To convert a JSON response in a Python dictionary, which method can you use?
.json()
75
Which modes does NX-OS has for programmability?
- Direct NX-OS mode - ACI mode