wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

DevNet Associate (Version 1.0) – Module 4 Exam Answers

Total questions: 19

Worksheet time: 10mins

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.

Match the RESTful API method to CRUD function.

READ

a)

GET

b)

POST

c)

DELETE

d)

PUT/PATCH

3.

Match the RESTful API method to CRUD function.

CREATE

a)

POST

b)

GET

c)

DELETE

d)

PUT/PATCH

4.

Match the RESTful API method to CRUD function.

DELETE

a)

DELETE

b)

POST

c)

GET

d)

PUT/PATCH

5.

Match the RESTful API method to CRUD function.

UPDATE

a)

PUT/PATCH

b)

DELETE

c)

GET

d)

POST

6.

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

a)

It operates in a stateless way.

b)

It uses HTTPS to transport data.

c)

It must operate along with a DNS server.

d)

It operates as a cloud service.

7.

Refer to the exhibit. 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.

8.

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)

*

b)

br

c)

gzip

d)

xz

e)

zip

9.

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.

b)

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

c)

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

d)

It is the number of requests contained in the token bucket.

10.

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.

11.

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

a)

independence

b)

interface uniformity

c)

neutrality

d)

extensibility

12.

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)

authority

c)

scheme

d)

path

13.

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

a)

Envelope

b)

Header

c)

Body

d)

Meta tag

14.

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

a)

a string generated by an authentication server

b)

an MD5 hash string generated by the client application

c)

a password encoded using Base64

d)

a username and password set by the client

15.

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 provide better service and response time to all users

c)

to limit the number of authorization requests per API call

d)

to ensure a client uses a multifactor authentication mechanism

e)

to limit the number of passwords that a client can have in making API requests

16.

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

a)

401

b)

201

c)

400

d)

403

e)

404

17.

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

a)

SOAP

b)

REST

c)

NFS

d)

XML-RPC

18.

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.

b)

Curl shows the retrieved information in JSON format.

c)

Curl shows the information the API returned from the server.

d)

Curl shows the URL used in the API request.

19.

In which situation would a synchronous API be used?

a)

when data is being retrieved from a database

b)

when the client is not required to take action

c)

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

d)

when a server is not part of the process