Exam MCD - Level 1 All QuestionsBrowse all questions from this exam
Question 151

Refer to the exhibit. The Default scope in the Choice router recursively calls the color flow.

A web client sends a PUT request to the HTTP Listener with payload “Blue”.

What response is returned to the web client?

    Correct Answer: A

    Upon sending a PUT request to the HTTP Listener with the payload “Blue”, the flow proceeds to the 'Set Payload' component which initially sets the payload to 'Blue'. This payload is then evaluated in the Choice router. Since the Choice router only contains conditions for when the payload contains 'Red' or 'Blk', and neither condition is met (because the payload is 'Blue'), the flow defaults to the 'Default' route. This default route sets the payload to 'Red' and includes a Flow Reference that appears to recursively call the 'color' flow. This would again follow the same logic, eventually leading to the default case every time. The final response returned to the web client will be 'Red'.

Discussion
mike_0Option: C

C should be the answer. Its a recursive call, it will be infinitely

ExamDevOption: B

Same question Question #121 (With discussions) why B is correct!

ExamDevOption: B

Correct answer is B