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

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: C

    When a web client sends a PUT request with the payload “Blue”, the flow follows these steps: First, the payload is set to “Blue”. Next, the Choice router evaluates the payload and goes to the Default scope since there are no branches for “Blue”. In the Default scope, the payload is changed to “Red” and the flow is recursively called. With the new payload “Red”, the Choice router matches the top branch, changing the payload to “Bik”. Therefore, the response returned to the web client is 'Bik'.

Discussion
aiden_03Option: C

C is correct - Payload is accessible to childflow (even if recursive), final choice sets payload to red which then sends it through top branch on second iteration.

mb72

are you 100% sure

Rahul_16

But this contains listener as a source. I think it will throw error.

AntarJalilOption: C

"C" is correct. I just recreated the scenario on Studio . At first, it went to the "Default" part of the choice . Then, on the "auto call" , it entered to the "payload contains Red" choice and payload "Blk" was the final response .

[Removed]Option: B

B is correct

samfloydOption: B

If the set payload defaulted to Blue is removed then only C , otherwise it will be in loop resulting in B

AlandtOption: C

I don't know why people vote B but the correct answer is C. "BIK"

marcop1Option: C

It's C

ExamDevOption: C

The correct answer is C. “Bik” Here is the explanation: 1. Client send "Blue" payload 2. Choice router matches the default route because we don't have a "Blue" case 3. Inside the default case we set the payload to "Red" and trigger the choice again with that payload 4. Now we have a "Red" case and inside we change the payload to "Blk" color.

Alandt

Exactly this. A timeout error would only occur when the flow turns into an infinite loop. But there is no loop here.

samfloyd

As per the image, a Set Payload defaulted to Blue is placed before the Choice router. That will call the default router path everytime.

ExamDevOption: C

I Agree with AntarJalil. C is correct.

reklame_infoOption: C

C is correct.

Neo_0000Option: C

C is correct, verified in studio as well. It doesn't throw any timeout error.

Abhay14Option: B

B- is the correct