- (Exam Topic 3)
Refer to the exhibit. An engineer is comparing two files by using the unified diff format. Which cade snippet belongs to the new.py file?
Correct Answer:
A
- (Exam Topic 3)
Refer to the exhibit. Which RESTCONF request results in this response?
Correct Answer:
D
- (Exam Topic 1)
How does requesting a synchronous API operation differ from requesting an asynchronous API operation?
Correct Answer:
C
- (Exam Topic 1)
Fill in the blanks to complete the statement.
Given a username of “devnet” And a password “Cisco123”, applications must create a base64 encoding of the string ” _______ ” when sanding HTTP requests to an API that uses ______ authentication.
Solution:
Solution as below
Does this meet the goal?
Correct Answer:
A
- (Exam Topic 3)
How are operations on REST APIs performed as compared to RPC APIs?
Correct Answer:
D
In a REST API, operations are performed on resources, which are accessed and manipulated using HTTP verbs such as GET, POST, PUT, and DELETE. These resources are identified by a URL and are defined within the API. For example, an API may define a resource called "customers", which can be accessed using the URL "http://api.example.com/customers". To retrieve a list of customers, the client could make a GET request to this URL. To create a new customer, the client could make a POST request to the same URL with the necessary data in the request body. In contrast, in an RPC API, operations are performed by making function calls. The client makes a request to the server, specifying the function to be called and any necessary parameters. The server then executes the function and returns the result to the client. RPC APIs are operation-oriented, meaning that the focus is on the function being called rather than the resource being accessed.