MCIA - Level 1 Exam QuestionsBrowse all questions from this exam

MCIA - Level 1 Exam - Question 70


In a Mule application, a flow contains two (2) JMS Consume operations that are used to connect to a JMS broker and consume messages from two (2) JMS destinations. The Mule application then joins the two consumed JMS messages together.

The JMS broker does NOT implement high availability (HA) and periodically experiences scheduled outages of up to 10 minutes for routine maintenance.

What is the most idiomatic (used for its intended purpose) way to build the Mule flow so it can best recover from the expected outages?

Show Answer
Correct Answer: D

In a Mule application, when dealing with JMS operations and a broker that periodically experiences outages, the most idiomatic approach to ensure the application recovers from expected outages is to configure a reconnection strategy for the JMS connector. A reconnection strategy will allow the Mule application to automatically attempt to reconnect to the JMS broker after it becomes available again, ensuring continuity and recovery without manual intervention. Other options, such as using a Try scope or an Until Successful scope, may address transient issues but do not provide a focused mechanism for handling expected reconnection scenarios. Configuring a transaction does not inherently address the issue of reconnecting after broker outages.

Discussion

6 comments
Sign in to comment
Ricky9Option: D
Oct 2, 2021

D is correct

madgeezerOption: D
Aug 5, 2022

D. Configure a reconnection strategy for the JMS connector

Alandt
Jun 20, 2024

Correct

Viv2005Option: D
Nov 17, 2022

If a JMS broker is not available the JMS consume operation of JMS connector will throw connection error. With option A, when consume fails the control goes to on error continue and go to subsequent step which will again fail. In case of option B, the connector will keep failing and filling up the logs until the operation is successful. This will work but not an effective solution. There is no point of creating a transaction and rollback on failure because both the destinations are on same broker. Also, it will rollback and will not reconnect. Reconnection strategy, however, will try to reconnect after a regular interval and the consume will not poll for a message till the connection is established. This surely is a more elegant way to handle the error and establish the connection again.

Outdoor25Option: D
Dec 27, 2021

Should be D. Reconnect setting will allow mule to reconnect after JMS broker outage. Cannot be A, B or C because in all of those scenarios, mule flow will throw an error and fail rather than recover.

AlandtOption: A
Jun 18, 2024

A is correct according to official practice exam

Alandt
Jun 21, 2024

I mean D. configure a new reconnection strategy.

AlandtOption: D
Jun 21, 2024

D is correct. Ignore my other comment.