Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

DevNet M4

Total questions: 26

Worksheet time: 13mins

Name
Class
Date
1.

Refer to the exhibit. A network administrator is using a Python script to test a REST API request. The traceback message indicates that there is an error in the URI. What is a possible issue?

a)

The protocol is wrong.

b)

The query component is missing.

c)

The destination host address is wrong.

d)

The SSL certificate is invalid.

2.

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

a)

A) It operates in a stateless way.

b)

B) It uses HTTPS to transport data.

c)

C) It must operate along with a DNS server.

d)

D) It operates as a cloud service.

3.

A network administrator is using a Python script to send a REST API request. What is the purpose of the line of code resp = requests.get(url, verify = False) ?

a)
  • It bypasses the certificate validation check.

b)
  • It tests the function of the Python requests library

c)
  • It omits the sending URL in the response.

d)

It skips the URL verification step and tests the resource path

4.

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? (Choose three.)

a)

gzip

b)

*

c)

br

d)

tar

e)

zip

5.

The term 'flow' in the OAuth 2.0 authorization framework refers to which of the following?

a)

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

b)

It is the number of requests contained in the token bucket

c)

It is a process for an API request to send authentication credentials to a web service

d)

It is the sequence of data exchanged between a REST API request and a response

6.

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

a)

independence

b)

interface uniformity

c)

neutrality

d)

extensibility

7.

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)

query

b)

path

c)

scheme

d)

authority

8.

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

a)

Meta tag

b)

Body

c)

Envelope

d)

Header

9.

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

a)

a username and password set by the client

b)

a password encoded using Base64

c)

an MD5 hash string generated by the client application

d)

a string generated by an authentication server

10.

What are two purposes for using rate limits on public and unrestricted APIs? (Choose two.)

a)

to avoid a server overloading from too many requests at the same time

b)

to limit the number of authorization requests per API call

c)

to provide better service and response time to all users

d)

to ensure a client uses a multifactor authentication mechanism

11.

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

a)

201

b)

400

c)

401

d)

403

12.

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

a)

SOAP

b)

REST

c)

NFS

d)

XML-RPC

13.

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 the retrieved information in JSON format.

b)

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

c)

Curl shows the information the API returned from the server.

d)

Curl shows the URL used in the API request.

14.

In which situation would a synchronous API be used?

a)

when a server is not part of the process

b)

when the original API request or data from the request is delayed

c)

when data is being retrieved from a database

d)

when the client is not required to take action

15.

What is a characteristic of a RESTful API?

a)
  • It uses HTTP methods to gather and manipulate data.

b)
  • It is a southbound API.

c)
  • It facilitates the configuration changes from a network controller to end devices.

d)
  • It supports a secure data transmission between a remote user and an enterprise network.

16.

What is REST?

a)
  • It is a protocol that allows administrators to manage nodes on an IP network.

b)
  • It is a way to store and interchange data in a structured format.

c)
  • It is a human readable data structure that is used by applications for storing, transforming, and reading data.

d)
  • It is an architecture style for designing web service applications.

17.

How many elements does a SOAP message contain?

a)

5

b)

3

c)

2

d)

4

e)

100

18.

Refer to the exhibit. A network administrator is using a Python script to test a REST API request. The traceback message indicates there is an error in the URI. What is the error?

(ANS: The protocol is missing)

a)
  • The query component is missing.

b)
  • The destination web host address is invalid.

c)
  • The protocol is missing.

d)
  • The path in the URI is invalid.

19.

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

a)

Base64

b)
  • UTF-8

c)
  • UTF-16

d)
  • Base32

20.

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

a)
  • It must support the XML data format.

b)
  • It uses HTTPS to transport data.

c)
  • It operates as a cloud service.

d)
  • It runs as client/server model.

21.

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

a)
  • to automate configuration or data collection tasks

b)
  • to provide a more robust security architecture

c)
  • to facilitate features across network devices that operate at different layers

d)
  • to provide upper management with information about network performance

22.

What is a webhook for REST APIs?

a)
  • It is an HTTP redirect to forward the API request to another web service.

b)
  • It is an HTTP PUT message to update information on a website.

c)
  • It is an HTTP UPDATE message to notify the user that an API request is successfully completed.

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

23.

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 import Python modules

b)
  • to request JSON data

c)
  • to create functions to test the code

d)
  • to create variables

24.

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)
  • token bucket

b)
  • fixed window counter

c)
  • sliding window counter

d)
  • leaky bucket

25.

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

a)
  • The application must provide a syslog service.

b)
  • The application must accept HTTP UPDATE messages from the webhook provider.

c)
  • The application must register a unique domain name from a certificate authority.

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

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

a)

update

b)

patch

c)

read

d)

post