Cisco 350-901 Practice Test - Questions Answers, Page 9
List of questions
Related questions
A developer has completed the implementation of a REST API, but when it is executed, it returns a 401 error message. What must be done on the API to resolve the issue?
Access permission to the resource must be granted, before the request.
Configure new valid credentials.
The requested API endpoint does not exist, and the request URL must be changed.
Additional permission must be granted before the request can submitted.
Refer to the exhibit.
Many faults have occurred in the ACI environment and a sample of them needs to be examined.
Which API call retrieves faults 30 through 45?
GET https://apic-ip-address/api/class/faultInfo.json?orderby=faultinst.severity|desc&page=1&page- size=15
GET https://apic-ip-address/api/class/faultInfo.json?orderby=faultinst.severity|desc&page=2&page- size=15
GET https://apic-ip-address/api/class/faultInfo.json?order-by=faultinst.severity|desc&page=30
GET https://apic-ip-address/api/class/faultInfo.json?orderby=faultinst.severity|desc&page=2&page- size=30
Refer to the exhibit.
The cURL POST request creates an OAuth access token for authentication with FDM API requests.
What is the purpose of the file "@token_data" that cURL is handling?
This file is a container to log possible error responses in the request.
This file is given as input to store the access token received from FDM.
This file is used to send authentication related headers.
This file contains raw data that is needed for token authentication.
User report that they can no longer process transactions with the online ordering application, and the logging dashboard is displaying these messages.
Fri Jan 10 19:37:31.123 EST 2020 [FRONTEND] INFO: Incoming request to add item to cart from user 45834534858 Fri Jan 10 19:37:31 247 EST 2020 [BACKEND] INFO: Attempting to add item to cart Fri Jan 10 19:37:31 250 EST 2020
[BACKEND] ERROR: Failed to add item: MYSQLDB ERROR:
Connection refused
What is causing the problem seen in these log messages?
The database server container has crashed.
The backend process is overwhelmed with too many transactions.
The backend is not authorized to commit to the database.
The user is not authorized to add the item to their cart.
Refer to the exhibit.
An Intersight API is being used to query RackUnit resources that have a tag keyword set to "Site".
What is the expected output of this command?
list of all resources that have a tag with the keyword "Site"
error message because the Value field was not specified
error message because the tag filter should be lowercase
list of all sites that contain RackUnit tagged compute resources
A user is receiving a 429 Too Many Requests error. Which scheme is the server employing that causes this error?
rate limiting
time outs
caching
redirection
Meraki Dashboard API Response
Response Status Code 200
Response Link Header
<https://n6.meraki.com/api/vO/organizations/681155/devices ?perPage-3&startingAfter-0000-0000-0000>; rel-first,
<https://n6.meraki .com/api/v0/organizations/681155/devices?perPage -3&startingAfter-Q2EK-3UBE-RRUY>; rel-next,
<https://n6.meraki.com/api/vO/organizations/681155/devices?endingBefore -zzzz-zzzzzzzz&perPage-3>; rel-last Response Body
{' name": \\II '
"serial": "Q2CV-V49B -RCMZ",
"mac": ''0c:8d:db:95:aa:39",
"networkid": "L-566327653141846927",
"model11 : "MV71",
"address": "430 E Cactus Ave .\nLas Vegas, NV 89183",
"lat": 36.00017,
"lng": -115.15302,
"notes": ''",
"tagsn: '",,
"lanip: "192.168.0.25",
' configurationUpdatedAt": "2019-08-08T02:15:36Z", ' firmware11 : "ca.rnera-3-3011
},
{
"ncune": "Alex's MR84 - 1"1
"serial": "Q2EK-2LYB-PCZP",
"mac": 'eO: 55:3d:10:56:8a", "networkid": "L 566327653141846927",
"model": "MR84",
"address": ''11 ,
"lat": 39.9482993357826,
"lng": -82.9895675461739,
"notes": "",
"tags": ' ",
"lanip: null,
"configurationVpdatedAt": "2018-02-03Tll:02:37Z",
"firmware11 : "Not running configured version''
},
{
"na.rne11 : "Vegas Living Room MR84 11 ,
"serial": "Q2EK-3UBE-RRUY",
"mac": "e0:55:3d:10:5a:ca", "networkid": "L_566327653141846927" 1
"model": "MR84",
"address": "430 E Cactus Ave.\nLas vegas, NV 89183", "lat": 36.00015,
"lng": -115.15308,
"notes": ' ",
"tags": "11
1" lanip: "
192.168.0 .20",
"configurationVpdatedAt": "2018-09-29Tl2:23:21Z",
' firmware": "Not running configured version"
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?
requests.get(url, links=['next']['url'])
requests.get(url, headers=links['next']['url'])
requests.get(res.links['next']['url'], headers=headers)
requests.get(res.headers.get('Link")['next']['url'], headers=headers)
An Etag header is included in the HTTP response for an API resource. What are two benefits of usingthe value of the Etag for future interactions involving the same API resource? (Choose two.)
caching and optimization of response payloads
creating conditional requests
categorizing and comparing this API resource with others
checking the integrity of the resource
requesting the list of operations authorized for this resource
Refer to the exhibit.
An application uses an API to periodically sync a large data set. Based on the HTTP messagesequence provided, which statements are true about the caching behavior seen in the scenario?
(Choose two.)
The full dataset was transmitted to the client twice.
The dataset changed sometime between message #4 and #5.
A partial dataset was transmitted to the client in message #4.
The dataset did not change during the scenario.
Messages #3 and #5 are equivalent.
Which RFC5988 (Web Linking) relation type is used in the Link header to control pagination in APIs?
rel="index"
rel="page"
rel="next"
rel="section"
Question