exam questions

Exam 200-901 All Questions

View all questions & answers for the 200-901 exam

Exam 200-901 topic 1 question 49 discussion

Actual exam question from Cisco's 200-901
Question #: 49
Topic #: 1
[All 200-901 Questions]

A developer is writing an application that uses a REST API and the application requires a valid response from the API. Which element of the response is used in the conditional check?

  • A. body
  • B. headers
  • C. link
  • D. URL
  • E. status code
Show Suggested Answer Hide Answer
Suggested Answer: E 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Requium
Highly Voted 4 years, 5 months ago
d, status code can use as a conditional check
upvoted 23 times
ionycash
3 years, 4 months ago
Status code is option "E"
upvoted 9 times
...
...
CiscoRider
Highly Voted 4 years, 3 months ago
The answer is status_code. The question asks about which element of the response is used, yeah the header is used but not as a whole, it uses the status_code which is inside of the header.
upvoted 19 times
...
kymoni
Most Recent 7 months ago
Selected Answer: E
E. status code
upvoted 2 times
...
herrmann69
9 months, 1 week ago
Selected Answer: E
E - status code Don't overthink it, the examples in the book also checked status code.
upvoted 2 times
...
working_on_hcip
1 year, 1 month ago
Selected Answer: B
my application accept xml format, If I got a response in json format, that wouldn´t be a valid response, my app couldn´t process the response
upvoted 1 times
...
r3mo
1 year, 9 months ago
Status Code
upvoted 1 times
...
nebtashi
3 years, 6 months ago
This one is tricky, if you think about it, by checking the response code you can know whether the request was successful or not. But in theory, all responses are valid, they're just a consequence of what you sent in the request. But not all responses are successful responses, that's different. On the other side, if your application is expecting a response to a GET request where data MUST be encoded in JSON but our server sends XML, then this response is not VALID for our application, because we don't support it. Again, it is tricky but if we strictly follow the wording in this question, B makes more sense because we could check the content-type header and determine whether we accept or not this response.
upvoted 1 times
...
Medra76
3 years, 8 months ago
B IS INCORRECT. D (Status Code) is correct because it refers to the first line of the response, where you can check the principal response of the CRUD operation. https://developer.cisco.com/learning/lab/what-are-rest-apis/step/1
upvoted 1 times
...
geex
3 years, 9 months ago
E. status code
upvoted 5 times
...
uerdemk
3 years, 11 months ago
Status code is the correct one
upvoted 3 times
...
CiscoTech
4 years, 2 months ago
Status Code I would believe... Responses consist of the following elements: The version of the HTTP protocol they follow. A status code, indicating if the request was successful, or not, and why. A status message, a non-authoritative short description of the status code. HTTP headers, like those for requests. https://developer.mozilla.org/en-US/docs/Web/HTTP/Overview
upvoted 4 times
...
pengyou
4 years, 4 months ago
Suppose, status_code is right. I thought, maybe this question is about HTTP conditional request, but I then decided that it could not be so overcomplicating
upvoted 2 times
...
FireTv
4 years, 4 months ago
I am not sure, but seems B is correct. Because they are asking " element of the response"; i guess response header is an element (which will contain status code, and few other infos as well). Again, not sure though ....
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago