MuleSoft Certified Integration Architect – Level 1 — Question 74

An external REST client periodically sends an array of records in a single POST request to a Mule application's API endpoint.
The Mule application must validate each record of the request against a JSON schema before sending it to a downstream system in the same order that it was received in the array.
Record processing will take place inside a router or scope that calls a child flow. The child flow has its own error handling defined. Any validation or communication failures should not prevent further processing of the remaining records.
To best address these requirements, what is the most idiomatic (used for its intended purpose) router or scope to use in the parent flow, and what type of error handler should be used in the child flow?

Answer options

Correct answer: C

Explanation

The For Each scope in the parent flow allows for processing each record sequentially while maintaining the order, which is crucial for this scenario. The On Error Continue error handler in the child flow ensures that any errors encountered while processing a record do not halt the overall process, allowing the remaining records to be processed correctly. Other options either disrupt the order or do not handle errors appropriately.