MCD - Level 1 Exam QuestionsBrowse all questions from this exam

MCD - Level 1 Exam - Question 68


Refer to the exhibit.

In the execution of the Scatter-Gather, the `sleep 1 sec` Flow Reference takes about 1 second to complete, and the `sleep 5 secs` Flow Reference takes about 5 seconds to complete.

About how many seconds does it take from the time the Scatter-Gather is called until Set Payload transformer is called?

Show Answer
Correct Answer: C

The Scatter-Gather component in MuleSoft executes multiple processing routes concurrently and waits for all routes to complete before continuing to the next component. In this case, one route has a 1-second delay and the other has a 5-second delay. Since these routes are executed in parallel, the overall time taken will be determined by the longest running route, which is 5 seconds. Therefore, it takes approximately 5 seconds from the time the Scatter-Gather is called until the Set Payload transformer is called.

Discussion

17 comments
Sign in to comment
almoraimaOption: C
Mar 22, 2021

Wrong response. Gatter and setter run in parallel the execution of flows. 5 is the right answerd

Kundan177
Jun 13, 2021

most of the answers are incorrect here..

senthil_Kumar_MuruganOption: C
Dec 8, 2021

5 SEC IS THE CORRECT ANSWER SINCE ITS A ASYNC THGE MAX TIME TAKES TO COMPLETES THE FLOW

RenatoJrOption: C
Sep 12, 2021

C is correct. https://docs.mulesoft.com/mule-runtime/4.3/scatter-gather-concept

aho213Option: C
Aug 15, 2021

5 is correct

tesfOption: C
Aug 24, 2021

"c" is correct

Gauravsh66Option: C
Dec 14, 2021

5 is correct

Sesha25Option: C
Dec 18, 2021

5 is right option in this scenario of scatter gather

mohammad_janiOption: C
Feb 9, 2022

5 is the correct answer

frediepulgosoOption: C
Mar 7, 2022

5 is correct

b_muleyOption: C
May 4, 2022

They run in parallel, once the sleep 5 secs is done the Set Payload is called, so 5 seconds is correct (C).

MaxroyoOption: C
Aug 26, 2022

runs in parallel so its C

ReccoOption: C
Dec 23, 2022

Its run max delay, here is 5sec

AnkurAgarawalOption: C
Jun 29, 2023

5 seconds

HypaxOption: C
Oct 5, 2023

Scatter Gather every path runs in parallel. The result will only appear when all paths are completed, therefor the slowest determines the duration. 5 seconds is correct.

jayesh_sOption: C
Jan 19, 2024

5 seconds

ExamDevOption: C
Jan 22, 2024

Scatter-Gather runs in parallel, but awaits all results and provides object of objects with responses from all requests. So the correct answer is C (5 seconds)