MuleSoft Certified Integration Architect – Level 1 — Question 70
An integration Mule application consumes and processes a list of rows from a CSV file. Each row must be read from the CSV file, validated, and the row data sent to a JMS queue, in the exact order as in the CSV file.
If any processing step for a row fails, then a log entry must be written for that row, but processing of other rows must not be affected.
What combination of Mule components is most idiomatic (used according to their intended purpose) when implementing the above requirements?
Answer options
- A. Scatter-Gather component On Error Continue scope
- B. VM connector First Successful scope On Error Propagate scope
- C. Async scope On Error Propagate scope
- D. For Each scope On Error Continue scope
Correct answer: D
Explanation
The correct answer is D because the For Each scope allows for processing each row individually while the On Error Continue scope ensures that an error with one row does not halt the processing of subsequent rows. The other options either do not maintain the order of processing or do not provide the proper error handling needed for this scenario.