ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 52 - MCD - Level 2 discussion

Report
Export

A Mule implementation uses a HTTP Request within an Unit Successful scope to connect to an API.

How should a permanent error response like HTTP:UNAUTHORIZED be handle inside Until Successful to reduce latency?

A.
Configure retrying until a MULERETRY_EXHAUSTED error is raised or the API responds back with a successful response.
Answers
A.
Configure retrying until a MULERETRY_EXHAUSTED error is raised or the API responds back with a successful response.
B.
In Until Successful configuration, set the retry count to 1 for error type HTTP: UNAUTHORIZED.
Answers
B.
In Until Successful configuration, set the retry count to 1 for error type HTTP: UNAUTHORIZED.
C.
Put the HTTP Request inside a try scope in Unit Successful. In the error handler, use On Error Continue to catch permanent errors like HTTP UNAUTHORIZED.
Answers
C.
Put the HTTP Request inside a try scope in Unit Successful. In the error handler, use On Error Continue to catch permanent errors like HTTP UNAUTHORIZED.
D.
Put the HTTP Request inside a try scope in Unit Successful. In the error handler, use On Error Propagate to catch permanent errors like HTTP UNAUTHORIZED.
Answers
D.
Put the HTTP Request inside a try scope in Unit Successful. In the error handler, use On Error Propagate to catch permanent errors like HTTP UNAUTHORIZED.
Suggested answer: C

Explanation:

To handle a permanent error response like HTTP:UNAUTHORIZED inside Until Successful, the developer should put the HTTP Request inside a try scope in Unit Successful, and use On Error Continue to catch permanent errors like HTTP UNAUTHORIZED in the error handler. This way, the developer can avoid retrying requests that will always fail due to a permanent error, and reduce latency. On Error Continue allows the flow to continue processing after handling the error.

Reference: https://docs.mulesoft.com/mule-runtime/4.3/until-successful-scope https://docs.mulesoft.com/mule-runtime/4.3/on-error-continue-concept

asked 18/09/2024
mohamad rachwani
29 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first