M4 REVIEW Flashcards

1
Q

In which situation would a synchronous API be used?

A

when data is being retrieved from a database

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

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?

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

What are two purposes for using rate limits on public and unrestricted APIs?

A

to avoid server overloading from too many requests at the same time
to provide better service and response time to all users

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

What is a reason that a network engineer would use APIs?

A

to automate configuration or data collection tasks

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

Which SOAP message root element defines the XML document as a SOAP message?

A

Envelope

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

Which type of credential information is used for the bearer authentication in REST APIs?

A

a string generated by an authentication server

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

Which API architectural style uses an XML-based messaging protocol to communicate between applications?

A

SOAP

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

What is REST?

A

It is an architecture style for designing web service applications.

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

Which characteristic of the SOAP architecture specifies communication between all similar and dissimilar application types?

A

independence

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

A network engineer is learning about REST APIs. When executing a particular API, the server responds with curl. How is this information useful?

A

Curl shows how to access the content displayed in the response body using curl.

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

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

A

to create variables

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

Which type of encoding is used in basic authentication for REST APIs?

A

Base64

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

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 ?

A

authority

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

What is a characteristic of a RESTful API?

A

It uses HTTP methods to gather and manipulate data.

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

What is an architectural constraint to which a true RESTful API web service must adhere?

A

it operates in a stateless way
it runs as client/server model

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

Which HTTP response status code indicates that the user is not authenticated to access the site?

17
Q

What is a webhook for REST APIs?

A

It is an HTTP callback to a URL to notify the client application that an event has occurred.

18
Q

How may elements does a SOAP message contain?

19
Q

What is the meaning of the term flow as it relates to the OAuth 2.0 authorization framework?

A

It is a process for an API user to obtain an access token from the authorization server

20
Q

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?

A

leaky bucket

21
Q

What is an application requirement in order to receive a notification from a webhook provider?

A

The application must always be running to receive HTTP POST requests.

22
Q

Which HTTP response status code indicates that the request to update the database is completed?