exam questions

Exam 200-901 All Questions

View all questions & answers for the 200-901 exam

Exam 200-901 topic 1 question 340 discussion

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



Refer to the exhibit. Which code snippet represents the sequence.

  • A.
  • B.
  • C.
  • D.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
1493558
6 months, 1 week ago
Selected Answer: A
A as the correct order of operations and loops correctly to fit this flowchart
upvoted 1 times
...
kymoni
7 months ago
Selected Answer: A
Answer A. As already mentioned, the commands have following order: GET(messages), GET(team-memberships), POST(message). Option B is using "response.json()" before the "response" variable is set, which simply wouldn't work. Option A is using "repsonse.json()" after the variable is set. So Option A is correct.
upvoted 1 times
...
lmqnam
11 months, 2 weeks ago
Selected Answer: A
I choose A.
upvoted 2 times
...
Gizo329
1 year, 4 months ago
A is right. @rtg2123 summarized it nicely. I would only add that it can not be B) because you doing there if condition on response which is defined only in follow up line.
upvoted 3 times
...
apple12
1 year, 7 months ago
this is still a very confusing question,do we know which is one is ultimately the correct answer?
upvoted 1 times
...
cerifyme85
1 year, 9 months ago
Selected Answer: D
Starts with a POST operation!
upvoted 1 times
...
nospampls
1 year, 9 months ago
Selected Answer: B
i am not sure, but i think B is correct This code is from the client site. After receiving the POST from the server, an if is triggered by the "Alert". This triggers the GET Message_url and afterwards the GET Team_Membership_url. At the end we have the for loop using POST. i think its importent to have POST (from Server) -> GET -> GET -> POST also the position of "Alert" is importent. Hope anyone can confirm my thinking or correct me.
upvoted 2 times
cerifyme85
1 year, 9 months ago
The for loop has a post operation.. so I am going with D
upvoted 1 times
...
nospampls
1 year, 9 months ago
now i think its A because in B the response var get set via the "get message" and before anything is done with the response "get team" replaces the response of "get message". But i am sure C isn't correct because the last method in the script is GET but should be POST
upvoted 7 times
rtg2123
1 year, 8 months ago
Hi nospampls, I think your thinking is so correct. The code must be viewed from the client side. And only the messages sent from the client side should be present in the script. THE MESSAGES SHOULD PE GET(MESSAGE URL) GET(TEAM MEMBERSHIP URL) POST (MESSAGES URL) in this order. C is not correct because the last call is an get which doesn't respect the diagram D is not correct because the first call is to "TEAM_MEMBERSHIP_URL" which doesn't respect the diagram And for B i agree with your reason, because of the diagram where the arrow peak is full, this are syncronous meesages which needs to wait before they have an reply. So it doesn't make any sense to call request.get(MESSAGE_URL ..) and request.get(TEAM_MEMBERSHIP ..) without using something from the first response first. So i go with A.
upvoted 7 times
...
...
...
VictorBravo
1 year, 10 months ago
Selected Answer: C
Starts with a POST operation!
upvoted 1 times
cerifyme85
1 year, 9 months ago
U mean D?
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