Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Certified MuleSoft Developer (Mule-Dev-201) Exam - Topic 1 Question 28 Discussion

Posted by Esteban on Apr 04, 2025 at 09:17 PM

Refer to the exhibits.

The Validation component in the Try scope throws an error.

What response message is returned to a client request to the main flow's HTTP Listener?

The Validation component in the Try scope throws an error. What response message is returned to a client request to the main flow's HTTP Listener?

Suggested Answer: A

Note that private flow has error scope defined as On Error Continue . So when error occurs in private flow , it is handled by this On Error Continue scope which sends success response back to main flow and does not throw back an error. So main continues normally and payload is set to Success - main flow.

Hence correct answer isSuccess - main flow

1) HTTP listener received request

2) The Flow Reference calls the child flow

3) The Is Number validator creates an Error Object because the payload isn't an integer. Child Flow execution stops

#[error.description] = ''payload is not a valid INTEGER value''

#[error.errorType] = VALIDATION:INVALID_NUMBER

4) The On Error Continue handles the errorThe payload is set to ''Error -- Sub Flow''

5) ''Error -- Sub Flow'' is returned to the main flow as if the child flow was a success. The Set Payload is executed. The payload is reset to ''Success -- Finished Main Flow''

6) ''Success -- Main Flow'' is returned to the requestor in the body of the HTTP request. HTTP Status Code: 200

As you can see, in the above example, because the error was caught by an On Error Continue scope in the child flow (RED in, GREEN out) when the Mule Message returns to the parent flow, the parent flow knows none-the-different that there was a failure because the on error continue returns a 200 success message. Note that because, to the mainFlow, the childFlow appeared to succeed, the processing of mainFlow resumed after the flow reference.


Get Premium Salesforce Certified MuleSoft Developer (Mule-Dev-201) Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
31 comments · newest first
JE
Jettie 10 months ago
I think it's C - Error - Try scope.
LU
Luther 11 months ago
Wait, is it really B? I thought it might be D.
EL
Elfrieda 11 months ago
Yeah, I agree with that!
TR
Truman 11 months ago
Definitely not A, that's for sure.
LO
Loren 11 months ago
I'm pretty sure it's B - Error - main flow.
EM
Emeline 11 months ago
I practiced a question like this, and I think the right answer is "Error - Try scope" because it directly relates to the Try block's failure.
DO
Dominque 12 months ago
I feel like it could be "Validation Error" since the Validation component is specifically mentioned. But I'm not confident.
GE
Gertude 12 months ago
I'm not entirely sure, but I remember a similar question where the error was propagated to the main flow. Maybe it's "Error - main flow"?
AL
Alease 1 year ago
I think the response should be "Error - main flow" since the Try scope is supposed to handle errors internally.
TR
Tricia 1 year ago
I feel pretty confident about this one. Based on the information provided, I think the correct answer is C - Error - Try scope. The question states the Validation component in the Try scope throws an error, so that should be the response message returned to the client.
LO
Loren 1 year ago
I'm a bit confused by this one. The flow seems straightforward, but the wording of the question is throwing me off. I'll need to read it a few times and really think through the error handling logic.
BR
Bronwyn 1 year ago
Okay, I've got a strategy here. I'll start by looking at the Try scope and see how errors are propagated back to the main flow. That should give me a good clue as to the response message.
DA
Daryl 1 year ago
Hmm, the question mentions the Validation component throwing an error, so I'm thinking the response message might be related to that. I'll have to analyze the flow to see how errors are handled.
RI
Ria 1 year ago
This looks like a tricky one. I'll need to carefully review the flow and error handling to determine the correct response message.
TU
Tula 1 year ago
Wait, so the Validation component is throwing an error, but the main flow's HTTP Listener is supposed to handle it? That's like trying to put out a fire with gasoline. I'm going with 'Error - Try scope' on this one.
WI
Willard 1 year ago
I don't know much about MuleSoft, but if I had to guess, I'd say the response message should be 'Error - Try scope'. Sounds like the main flow isn't catching the error.
CR
Cristen 1 year ago
Ah, the old 'throw an error and hope the main flow can handle it' strategy. Classic MuleSoft move right there.
AN
Annmarie 1 year ago
↳ replying to Cristen
C) Error - Try scope
MI
Mickie 1 year ago
↳ replying to Cristen
B) Error - main flow
JA
Jacqueline 1 year ago
↳ replying to Cristen
A) Success - main flow
MI
Michal 2 years ago
The Validation component throwing an error in the Try scope is not a good sign. I'm guessing the response message would be 'Error - Try scope' since the main flow is not handling the error properly.
AS
Ashlee 1 year ago
↳ replying to Michal
D) Validation Error
ST
Stephaine 1 year ago
↳ replying to Michal
C) Error - Try scope
AL
Alline 1 year ago
↳ replying to Michal
C) Error - Try scope
ES
Estrella 1 year ago
↳ replying to Michal
B) Error - main flow
HI
Hildegarde 1 year ago
↳ replying to Michal
A) Success - main flow
SH
Shelba 1 year ago
↳ replying to Michal
B) Error - main flow
JA
Jade 1 year ago
↳ replying to Michal
A) Success - main flow
GE
Gerald 2 years ago
I'm not sure, but I think it could also be D) Validation Error since the error is specifically related to validation.
MY
Myra 2 years ago
I agree with Emerson. The error is happening in the Try scope, so the response message should be related to that.
EM
Emerson 2 years ago
I think the answer is C) Error - Try scope because the Validation component is throwing an error in the Try scope.
0/2000 characters

Save Cancel