M4 REVIEW Flashcards
In which situation would a synchronous API be used?
when data is being retrieved from a database
A client is sending a REST API request to a web server. The request includes the need for data compression. Which three values are acceptable for the Accept-Encoding request header?
- br
gzip
What are two purposes for using rate limits on public and unrestricted APIs?
to avoid server overloading from too many requests at the same time
to provide better service and response time to all users
What is a reason that a network engineer would use APIs?
to automate configuration or data collection tasks
Which SOAP message root element defines the XML document as a SOAP message?
Envelope
Which type of credential information is used for the bearer authentication in REST APIs?
a string generated by an authentication server
Which API architectural style uses an XML-based messaging protocol to communicate between applications?
SOAP
What is REST?
It is an architecture style for designing web service applications.
Which characteristic of the SOAP architecture specifies communication between all similar and dissimilar application types?
independence
A network engineer is learning about REST APIs. When executing a particular API, the server responds with curl. How is this information useful?
Curl shows how to access the content displayed in the response body using curl.
As part of creating an API request using Python, the following commands are entered. What is the purpose of this step?
ipaddr = 10.1.50.1
interface = Ethernet1/1
hostname = R1
to create variables
Which type of encoding is used in basic authentication for REST APIs?
Base64
In the REST API request URI example http://example.com/update/person?id=42&email=person%40example.com , which term describes the component example.com ?
authority
What is a characteristic of a RESTful API?
It uses HTTP methods to gather and manipulate data.
What is an architectural constraint to which a true RESTful API web service must adhere?
it operates in a stateless way
it runs as client/server model
Which HTTP response status code indicates that the user is not authenticated to access the site?
401
What is a webhook for REST APIs?
It is an HTTP callback to a URL to notify the client application that an event has occurred.
How may elements does a SOAP message contain?
4
What is the meaning of the term flow as it relates to the OAuth 2.0 authorization framework?
It is a process for an API user to obtain an access token from the authorization server
A web service uses a rate limit algorithm that puts all incoming REST API requests into a queue in the order in which they arrive. The algorithm allows incoming requests to arrive at any rate, but the server processes the requests from the queue at a fixed rate. Which rate limit algorithm is used by the web service?
leaky bucket
What is an application requirement in order to receive a notification from a webhook provider?
The application must always be running to receive HTTP POST requests.
Which HTTP response status code indicates that the request to update the database is completed?
201