350-901 Practice Test

350-901 Practice Test practice questions, page 10 of 25, with answer review and explanations.

Question 46

Refer to the exhibit. Which line of code must be added to this code snippet to allow an application to pull the next set of paginated items?

  1. requests.get(url, links=['next']['url'])
  2. requests.get(url, headers=links['next']['url'])
  3. requests.get(res.links['next']['url'], headers=headers)
  4. requests.get(res.headers.get('Link')['next']['url'], headers=headers)

Question 47

An ETag header is included in the HTTP response for an API resource. What are two benefits of using the value of the ETag for future interactions involving the same API resource? (Choose two.)

  1. caching and optimization of response payloads
  2. creating conditional requests
  3. categorizing and comparing this API resource with others
  4. checking the integrity of the resource
  5. requesting the list of operations authorized for this resource

Question 48

Refer to the exhibit. An application uses an API to periodically sync a large data set. Based on the HTTP message sequence provided, which statements are true about the caching behavior seen in the scenario? (Choose two.)

  1. The full dataset was transmitted to the client twice.
  2. The dataset changed sometime between message #4 and #5.
  3. A partial dataset was transmitted to the client in message #4.
  4. The dataset did not change during the scenario.
  5. Messages #3 and #5 are equivalent.

Question 49

Refer to the exhibit. Drag and drop the code snippets from the left onto the item numbers on the right that match the missing sections in the cURL exhibit to complete the cURL request to FirePower Device Manager API to create objects. Not all code snippets are used. Select and Place:

Question 50

Which RFC5988 (Web Linking) relation type is used in the Link header to control pagination in APIs?

  1. rel=ג€indexג€
  2. rel=ג€pageג€
  3. rel=ג€nextג€
  4. rel=ג€sectionג€