385
65. C. When you process the POST to obtain the X-Auth-Token from the Cisco DNA
Center, you will pass the username and password encoded in Base 64 encoding. Although
you will request the X-Auth-Token over Secure Sockets Layer (SSL), it is an encryption
protocol and not an encoding method. Authentication, authorization, and accounting
(AAA) services are a means for authentication and often used with 802.1X; AAA is not
an encoding method. When you request an X-Auth-Token, you will request it via basic
authentication; this is a HyperText Transfer Protocol (HTTP) method of submitting the
username and password and not an encoding method.
66. B. You will perform this task using the RESTCONF protocol. RESTCONF will
encapsulate the YANG data model containing the configuration in a RESTCONF
transport protocol. OpenFlow is used with the OpenDayLight Protocol and not commonly
used with Cisco switches. The Simple Network Management Protocol (SNMP) does not
support the YANG data model. A REST-based API is another API style that switches do
not support directly, but Cisco DNA Center does.
67. A. When a request is made with RESTCONF, the data is sent via the HyperText Transfer
Protocol (HTTP) using the Multipurpose Internet Mail Extensions (MIME) content type
of application/yang-data+json. This MIME type is used because the request is interfacing
with an application and the data is encapsulated inside of the Yet Another Next
Generation (YANG) data model in the form of JavaScript Object Notation (JSON).
68. D. The most likely course of action is to restart the REST-based service, since a 500 status
code means that there is an internal server error. If a 400 status code was returned, it
would most likely be the formatting of your request. If a 403 status code was returned,
it would suggest that you have not authenticated to the software-defined network (SDN)
controller or you are not authorized to access the API. A 200 status code means that
everything was successful and the request is OK.
69. D. RESTCONF requests are used outbound to network devices on the southbound
interface (SBI) of Cisco DNA Center. REST-based APIs are accessible via the northbound
interface (NBI) of the Cisco DNA Center so that programmability can be achieved.
The eastbound interface is used for events and notification on the Cisco DNA Center
controller. The westbound interface is used for integration with third-party management
products.
70. A. The status code is passed back to the client via the HyperText Transfer Protocol
(HTTP) header. Web-based browsers do not show HTTP headers, and this is why using
a tool such as Postman is recommended. The HTTP body is where the returned data of
the request can be found. Script variables are used internally by the script so that data can
be loaded into the variable and passed to other procedures within the script. Script data
objects are also used internally by the script to load and pass complex data structures
called objects.
71. A. A status code of 201 means that the item has been created; normally only a POST
command can create a data item. A GET HyperText Transfer Protocol (HTTP) verb will
read an item and return a 200 status code. A PATCH HTTP verb will update an existing
item and return a 200 status code. A DELETE HTTP verb will delete an item and return a
200 status code.
Do'stlaringiz bilan baham: |