ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 7 - Certified MuleSoft Developer II discussion

Report
Export

Refer to the exhibit.

What required changes can be made to give a partial successful response in case the United Airlines API returns with a timeout?

A.
Add a Scatter-gather component inside a Try scope. Set the payload to a default value 'Error' inside the error handler using the On Error Propagate scope.
Answers
A.
Add a Scatter-gather component inside a Try scope. Set the payload to a default value 'Error' inside the error handler using the On Error Propagate scope.
B.
Add Flow Reference components inside a Try scope. Set the payload to a default value'' insider the error handler using the ON Error Continue scope
Answers
B.
Add Flow Reference components inside a Try scope. Set the payload to a default value'' insider the error handler using the ON Error Continue scope
C.
Add Flow Reference components inside a Try scope Set the payload to a default value '' inside the error handler using the On Error Propagate scope
Answers
C.
Add Flow Reference components inside a Try scope Set the payload to a default value '' inside the error handler using the On Error Propagate scope
D.
Add a Scatter-Gather component inside a Try scope. Set the payload to a default value 'Error'' inside the error handler using the On Error Continue scope.
Answers
D.
Add a Scatter-Gather component inside a Try scope. Set the payload to a default value 'Error'' inside the error handler using the On Error Continue scope.
Suggested answer: D

Explanation:

To give a partial successful response in case the United Airlines API returns with a timeout, the developer should add a Scatter-Gather component inside a Try scope, and set the payload to a default value 'Error' inside the error handler using the On Error Continue scope. A Scatter-Gather component allows sending multiple requests concurrently and aggregating the responses into an array. A Try scope allows handling errors that occur within it using an error handler. An On Error Continue scope allows continuing the flow execution after handling an error. Therefore, by using these components, the developer can send requests to both APIs in parallel, handle any timeout errors from United Airlines API, and return a partial response with a default value for that API.

Reference: https://docs.mulesoft.com/mule-runtime/4.3/scatter-gather-concept https://docs.mulesoft.com/mule-runtime/4.3/try-scope-concept https://docs.mulesoft.com/mule-runtime/4.3/on-error-continue-concept

asked 23/09/2024
Julius Nammeh
28 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first