Exam MCIA - Level 1 All QuestionsBrowse all questions from this 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?

    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
Viv2005Option: D

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.

madgeezerOption: D

D. Configure a reconnection strategy for the JMS connector

Alandt

Correct

Ricky9Option: D

D is correct

AlandtOption: D

D is correct. Ignore my other comment.

AlandtOption: A

A is correct according to official practice exam

Alandt

I mean D. configure a new reconnection strategy.

Outdoor25Option: D

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.