C. is correct. Access token has validity of only 12 hours. I tried using an expired token and got 401.
{
"errors": [
{
"description": "The request requires a valid access token set in the Authorization request header."
}
],
"message": "The request requires a valid access token set in the Authorization request header.",
"trackingId": "ROUTER_6011BD76-C99C-01BB-5AFD-AC12F8F25AFD"
}
401
First off, this is a junk question filled with "gotchas". Yes, they're doing a POST when the API docs say it should be a get. If that was really the problem, we'd be getting a 400 Bad Request.
When an API is designed properly to require authentication/authorization, a 401 takes precedence over a 400. You don't want randos bombing your API with bad requests looking for weaknesses. Auth/auth happens first.
Both A and C would produce a 401, as demonstrated by others.
In the absence of information suggesting otherwise, that leaves A as the most plausible since we know it produces a 401, and there's no indication that enough time has passed for the token to be expired.
A is correct. I had this exact problem when I was doing the Webex labs in the devnet course. I left "Bearer: " out of the token string and it returned a 401 error. When I added that to the token string, it worked.
Clearly A. Header is malformed since it's missing the "Bearer" keyword.
Not B because you would get a 400 error.
Not C since the token in the page showed is always valid for 12h since last page refresh (so showing the page somehow implies the usage of a valid token).
Not D since that would produce another type of error about insufficient priviledges for that user (but authorization to use the API would occur correctly), like a 403 forbidden or something similar.
The answer is C, search on this page “if you allow the access token to expire”
https://developer.webex.com/blog/real-world-walkthrough-of-building-an-oauth-webex-integration
Why do so many people think this should be a GET request when you can clearly see in the POST data that the user is sending text to a specific chat room (\"text\": \"test2\"), not asking for a list of them.
As someone else mentioned... the goal of the API above the curl statement was to get a list of messages, not POST to the message room. Even if the Bearer was in the header, the user would have been denied access. We aren't trying to post a message, we want to get the messages. Everything about the API docs is to "LIST" messages and not POST. In order to do that, we need to "GET". The curl statement is essentially doing the wrong thing. D is the answer.
I think this question have to be remake. The Method used was POST and not GET as in the API description, but then the option D doesn't fit what we are trying to do
This section is not available anymore. Please use the main Exam Page.200-901 Exam Questions
Log in to ExamTopics
Sign in:
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.
jonasff
Highly Voted 3 years, 5 months agoJowy
3 years, 3 months agovdwins
3 years agoJimGrayham
Highly Voted 2 years, 10 months agoAvinash7
2 years, 2 months agothrowaway_account
Most Recent 6 months, 1 week agonunyabeez
10 months agor3mo
10 months, 2 weeks agomellohello
1 year agoaplicacion101
1 year, 1 month agoToxkalcan
1 year, 6 months agoanagy11
1 year, 8 months agoDASBOL
1 year, 10 months agoIamrandom
2 years agogablooge
2 years, 1 month agorichard2865
2 years, 1 month agojinck
2 years, 1 month agoRam0n_Aya1a
2 years, 2 months agofaceoff2004
2 years, 4 months agokoptos
2 years, 6 months ago