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.
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.
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.
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
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.
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.
1493558
6 months, 1 week agokymoni
7 months agolmqnam
11 months, 2 weeks agoGizo329
1 year, 4 months agoapple12
1 year, 7 months agocerifyme85
1 year, 9 months agonospampls
1 year, 9 months agocerifyme85
1 year, 9 months agonospampls
1 year, 9 months agortg2123
1 year, 8 months agoVictorBravo
1 year, 10 months agocerifyme85
1 year, 9 months ago