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
Q

Why should you use automation?

A

You get things done quicker, its increases efficiency and speed

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

Why network automation

A
  1. Faster
  2. Standardization
  3. Known outcomes (what will happen, and what is the result)
  4. Monitoring
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

What is the best automation headline

A

When you can’t automated it, it doesn’t exist.

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

What is very powerful of automation

A

You can use other data platform to import data or export data, like send a notification in a slack or teams platform.

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

how do we call network development

A

NetDevOps

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

Why is network automation strong in monitoring

A

Because you can request specific data instead of all data like a show run on Cisco device

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

What can you automate?

A
  1. Monitoring
  2. Provisioning (Generate template with jinja and yaml)
  3. Migration
  4. Configuration management (config device, managing state of configuration)
  5. Troubleshooting
32
Q

What can you do with automation and configuration management

A

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
Q

What is very strong with network automation and outages

A

You can create tons of troubleshooting scripts which will be executed based on an event!

34
Q

What kind of automation was used in the past?

A

SNMP. Collect data, is not dynamic, not secure, udp based

35
Q

What is NETCONF?

A

Is for NETwork CONFiguration and uses SSH protocol to send configuration

36
Q

Which language is very often used with NETCONF and integrates very good

A

YANG

37
Q

Network automation uses a client <-> server relationship. Which is the client, and which is the server

A

Server = Network device
Client = Software which is used to create automation scripts

38
Q

Which language is used between the client <-> server in automation?

A

XML

39
Q

Is netconf object oriented?

A

Yes, it uses TCP

40
Q

What is the best API method?

A

RESTCONF

41
Q

Which data format you receive from a RESTCONF call?

A

JSON

42
Q

What is Ansible kind of tool?

A

Network automation and orchestration. It is not network programmability

43
Q

What is network programability

A

Based on Python!

44
Q

How you can best describe automation and orchestration?

A

Automation = What will happen
Orchestration = When will it happen

45
Q

What is strong from ansible

A

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
Q

In which language is ansible written?

A

Python

47
Q

What is a very big benefit of ansible

A

It is agent less!

48
Q

In which language is the Ansible playbook written?

A

YAML

49
Q

What is NETCONF kind of protocol?

A

Transport protocol. The data itself must be standardised via YANG

50
Q

What is netconf

A

Netconf is the protocol which sends data between a network device and a server/computer

51
Q

What kind of protocol is NETCONF using?

A

SSH. The most benefits are:
- TCP - Connection oriented
- Authentcation
- Encryptie
- Default port: 830

52
Q

What is the most benefit of NETCONF instead of normal SSH?

A
  1. GET - Operational state information
  2. GET - Configuration state
  3. EDIT - Configuration
53
Q

Which data structure is used in NETCONF?

A

XML

54
Q

Which payload structure is used in NETCONF

A

YANG

55
Q

What goes hand in hand in NETCONF

A

NETCONF and YANG

56
Q

How is the NETCONF protocol stack build?

A
  1. SSH
  2. <RPC>
    </RPC>
  3. <GET, GET-CONFIG, EDIT-CONFIG etc.>
  4. < DATA in YANG>
57
Q

Can you retreive data from several data stores in the network device

A

Yes, it is possible to get the data from running-config, startup-config or candidate-config

58
Q

How do we enable netconf on Cisco device

A

Netconf ssh

59
Q

How do you enable netconf with network driven programability

A

Netconf-yang

60
Q

What is ncclient doing

A

It handles all the connection information of netconf like the rpc, payload etc

61
Q

What is the standard API?

A

HTTP-API

62
Q

What is the big benefit of RESTCONF instead of SNMP

A

SNMP is not good in structured data or automation

63
Q

What is the disadvantage of NETCONF

A

XML, its not human readable

64
Q

Why is REST-API more powerful then NETCONF

A
  1. Simple architecture
  2. JSON
  3. Understanding HTTP
65
Q

What is great of NETCONF

A
  1. Structured data
  2. RPCs
  3. Capability handshake

These doesnt exist in RESTCONF

66
Q

What is not used in RESTCONF instead of NETCONF

A

The RPC’s, like GET, EDIT-CONFIG, GET-CONFIG. In RESTCONF you can leverage the HTTP protocol

67
Q

Which HTTP request are there for RESTCONF?

A
  1. HTTP GET
  2. HTTP POST - Create config
  3. HTTP PUT - Updates data
  4. HTTP PATCH - Replaces data
  5. HTTP DELETE - Delete data
68
Q

What language is used in the RESTCONF Payload?

A

YANG

69
Q

How it the HTTP url build?

A
  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
Q

If you use HTTP POST do you use the same HTTP url as with HTTP GET

A

Yes! You only add data to the data store in JSON format

71
Q

When you work with python in restconf which imports do you need to do?

A

Import request
Import json

72
Q

When you are working with RESTCONF in python what kind of information do you need to set as header?

A

Python dictionary: “application/yang-data+json

73
Q

How does a header look like in a restconf .py file?

A

Headers = {“Accept”: “application/yang-data+json”,
“Content”: “application/yang-data+json”}

74
Q

To convert a JSON response in a Python dictionary, which method can you use?

A

.json()

75
Q

Which modes does NX-OS has for programmability?

A
  • Direct NX-OS mode
  • ACI mode