Exam MCIA - Level 1 All QuestionsBrowse all questions from this exam
Question 77

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?

    Correct Answer: C

    To address the requirements, the For Each scope is the most idiomatic choice for processing each record in the array individually while maintaining the order of records as received. The On Error Continue error handler in the child flow ensures that any validation or communication failures for one record do not prevent the processing of subsequent records, thus meeting the requirement to continue processing further records even if an error occurs.

Discussion
jmayOption: C

"sending it to a downstream system in the same order"

madgeezerOption: C

C. For Each scope in the parent flow On Error Continue error handler in the child flow