Last Updated on June 14, 2021 by InfraExam
DevNet Associate (Version 1.0) – DevNet Associate Module 4 Exam Answers
-
In which situation would a synchronous API be used?
- when the client is not required to take action
- when the original API request or data from the request is delayed
- when data is being retrieved from a database
- when a server is not part of the process
-
Which API architectural style uses an XML-based messaging protocol to communicate between applications?
- SOAP
- XML-RPC
- REST
- NFS
-
Which SOAP message root element defines the XML document as a SOAP message?
- Header
- Meta tag
- Body
- Envelope
-
What is the meaning of the term flow as it relates to the OAuth 2.0 authorization framework?
- It is the number of requests contained in the token bucket.
- It is the sequence of data exchanged between a REST API request and a response.
- It is a process for an API request to send authentication credentials to a web service.
- It is a process for an API user to obtain an access token from the authorization server.
-
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?
DevNet Associate (Version 1.0) – DevNet Associate Module 4 Exam Answers 01 - The SSL certificate is invalid.
- The protocol is wrong.
- The destination host address is wrong.
- The query component is missing.
-
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 the URL used in the API request.
- Curl shows how to access the content displayed in the response body using curl.
- Curl shows the information the API returned from the server.
- Curl shows the retrieved information in JSON format.
-
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.)
- xz
- zip
- br
- *
- gzip
- tar
-
Which characteristic of the SOAP architecture specifies communication between all similar and dissimilar application types?
- interface uniformity
- neutrality
- independence
- extensibility
-
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) ?
DevNet Associate (Version 1.0) – DevNet Associate Module 4 Exam Answers 02 - It bypasses the certificate validation check.
- It skips the URL verification step and tests the resource path.
- It tests the function of the Python requests library.
- It omits the sending URL in the response.
-
What is an architectural constraint to which a true RESTful API web service must adhere?
- It uses HTTPS to transport data.
- It operates in a stateless way.
- It operates as a cloud service.
- It must operate along with a DNS server.
-
What is a characteristic of a RESTful API?
- It supports a secure data transmission between a remote user and an enterprise network.
- It uses HTTP methods to gather and manipulate data.
- It facilitates the configuration changes from a network controller to end devices.
- It is a southbound API.
-
Match the RESTful API method to CRUD function.
DevNet Associate (Version 1.0) – DevNet Associate Module 4 Exam Answers 001 -
What are two purposes for using rate limits on public and unrestricted APIs? (Choose two.)
- to avoid a server overloading from too many requests at the same time
- to limit the number of authorization requests per API call
- to limit the number of passwords that a client can have in making API requests
- to ensure a client uses a multifactor authentication mechanism
- to provide better service and response time to all users
Answers Explanation & Hints: Using an API rate limit is a way for a web service to control the number of requests a user or application can make per defined unit of time and it is considered a best practice for public and unrestricted APIs. Some benefits of using rate limits include the following:
- Avoid a server overload from too many requests at once.
- Provide better service and response time to all users.
- Protect against a denial of service (DoS) attack.
-
Which HTTP response status code indicates that the user is not authenticated to access the site?
- 201
- 400
- 401
- 403
- 404
-
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 ?
- path
- authority
- scheme
- query
-
Which type of credential information is used for the bearer authentication in REST APIs?
- a username and password set by the client
- an MD5 hash string generated by the client application
- a password encoded using Base64
- a string generated by an authentication server
Subscribe
0 Comments