New Year Sale 2026! 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

Actual exam question for Salesforce's Salesforce Certified MuleSoft Developer (Mule-Dev-201) exam
Question #: 28
Topic #: 1
[All Salesforce Certified MuleSoft Developer (Mule-Dev-201) Questions]

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?

Show Suggested Answer Hide Answer
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.


Contribute your Thoughts:

0/2000 characters
Jettie
2 months ago
I think it's C - Error - Try scope.
upvoted 0 times
...
Luther
2 months ago
Wait, is it really B? I thought it might be D.
upvoted 0 times
...
Elfrieda
3 months ago
Yeah, I agree with that!
upvoted 0 times
...
Truman
3 months ago
Definitely not A, that's for sure.
upvoted 0 times
...
Loren
3 months ago
I'm pretty sure it's B - Error - main flow.
upvoted 0 times
...
Emeline
3 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.
upvoted 0 times
...
Dominque
3 months ago
I feel like it could be "Validation Error" since the Validation component is specifically mentioned. But I'm not confident.
upvoted 0 times
...
Gertude
4 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"?
upvoted 0 times
...
Alease
4 months ago
I think the response should be "Error - main flow" since the Try scope is supposed to handle errors internally.
upvoted 0 times
...
Tricia
4 months 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.
upvoted 0 times
...
Loren
4 months 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.
upvoted 0 times
...
Bronwyn
4 months 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.
upvoted 0 times
...
Daryl
5 months 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.
upvoted 0 times
...
Ria
5 months ago
This looks like a tricky one. I'll need to carefully review the flow and error handling to determine the correct response message.
upvoted 0 times
...
Tula
9 months 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.
upvoted 0 times
...
Willard
9 months 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.
upvoted 0 times
...
Cristen
9 months ago
Ah, the old 'throw an error and hope the main flow can handle it' strategy. Classic MuleSoft move right there.
upvoted 0 times
Annmarie
8 months ago
C) Error - Try scope
upvoted 0 times
...
Mickie
8 months ago
B) Error - main flow
upvoted 0 times
...
Jacqueline
9 months ago
A) Success - main flow
upvoted 0 times
...
...
Michal
10 months 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.
upvoted 0 times
Ashlee
8 months ago
D) Validation Error
upvoted 0 times
...
Stephaine
9 months ago
C) Error - Try scope
upvoted 0 times
...
Alline
9 months ago
C) Error - Try scope
upvoted 0 times
...
Estrella
9 months ago
B) Error - main flow
upvoted 0 times
...
Hildegarde
9 months ago
A) Success - main flow
upvoted 0 times
...
Shelba
9 months ago
B) Error - main flow
upvoted 0 times
...
Jade
9 months ago
A) Success - main flow
upvoted 0 times
...
...
Gerald
10 months ago
I'm not sure, but I think it could also be D) Validation Error since the error is specifically related to validation.
upvoted 0 times
...
Myra
11 months ago
I agree with Emerson. The error is happening in the Try scope, so the response message should be related to that.
upvoted 0 times
...
Emerson
11 months ago
I think the answer is C) Error - Try scope because the Validation component is throwing an error in the Try scope.
upvoted 0 times
...

Save Cancel