MCD - Level 1 Exam QuestionsBrowse all questions from this exam

MCD - Level 1 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?

Show Answer
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

11 comments
Sign in to comment
aiden_03Option: C
Mar 6, 2023

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
Mar 18, 2023

are you 100% sure

Rahul_16
Jun 3, 2023

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

[Removed]Option: B
May 22, 2023

B is correct

AntarJalilOption: C
Jan 9, 2024

"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 .

Abhay14Option: B
Apr 27, 2023

B- is the correct

Neo_0000Option: C
Sep 22, 2023

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

reklame_infoOption: C
Nov 13, 2023

C is correct.

ExamDevOption: C
Jan 23, 2024

I Agree with AntarJalil. C is correct.

ExamDevOption: C
Jan 25, 2024

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
Feb 8, 2024

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

samfloyd
Feb 14, 2024

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

marcop1Option: C
Jan 26, 2024

It's C

AlandtOption: C
Feb 5, 2024

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

samfloydOption: B
Feb 14, 2024

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