MuleSoft Certified Integration Architect – Level 1 — Question 76
To implement predictive maintenance on its machinery equipment, ACME Tractors has installed thousands of IoT sensors that will send data for each machinery asset as sequences of JMS messages, in near real-time, to a JMS queue named SENSOR_DATA on a JMS server. The Mule application contains a JMS Listener operation configured to receive incoming messages from the JMS servers SENSOR_DATA JMS queue. The Mule application persists each received JMS message, then sends a transformed version of the corresponding Mule event to the machinery equipment back-end systems.
The Mule application will be deployed to a multi-node, customer-hosted Mule runtime cluster. Under normal conditions, each JMS message should be processed exactly once.
How should the JMS Listener be configured to maximize performance and concurrent message processing of the JMS queue?
Answer options
- A. Set numberOfConsumers = 1 - Set primaryNodeOnly = false
- B. Set numberOfConsumers = 1 - Set primaryNodeOnly = true
- C. Set numberOfConsumers to a value greater than one Set primaryNodeOnly = true
- D. Set numberOfConsumers to a value greater than one Set primaryNodeOnly = false
Correct answer: C
Explanation
The correct answer is C because setting numberOfConsumers to a value greater than one allows for multiple concurrent message processing, improving performance in a multi-node environment. Setting primaryNodeOnly to true ensures that messages are processed by the primary node only, which helps maintain message order and consistency, while still allowing for parallel processing across consumers.