Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam MCIA - Level 1 All Questions

View all questions & answers for the MCIA - Level 1 exam

Exam MCIA - Level 1 topic 1 question 81 discussion

Actual exam question from Mulesoft's MCIA - Level 1
Question #: 81
Topic #: 1
[All MCIA - Level 1 Questions]

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?

  • 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
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Alandt
5 months, 1 week ago
Selected Answer: C
ChatGPT: Based on the requirements and considerations discussed, Option C (Set numberOfConsumers to a value greater than one - Set primaryNodeOnly = true) is the definitive answer for configuring the JMS Listener in a multi-node Mule runtime cluster to maximize performance and ensure exactly-once message processing. This configuration strikes a balance between concurrency and reliability, ensuring efficient handling of messages while adhering to the requirement of exactly-once processing. Therefore, Option C is indeed the correct and definitive answer for this scenario.
upvoted 1 times
...
majda091983
1 year, 9 months ago
Selected Answer: C
the answer is C
upvoted 1 times
...
lzrvs
1 year, 10 months ago
Selected Answer: C
In order to avoid duplicate message processing while maximizing throughput, set consumers > 1 and primaryNodeOnly = true
upvoted 2 times
...
jmay
1 year, 11 months ago
Selected Answer: D
When consuming messages from a queue, the default connector behavior is to receive messages in all the cluster’s nodes, not just the primary node. JMS Connector enables you to configure the Primary node only field in the On New Message source. When the connector consumes from a queue in a cluster, ***do not select the Primary node only field***, which defaults to false. To improve the performance of your application, increase the number of consumers that receive messages from the same destination. When consuming messages from a topic (which is not the question's setup), the default connector behavior is to receive messages only in the primary node, which avoids processing the same message multiple times across the cluster. https://docs.mulesoft.com/jms-connector/1.8/jms-performance
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...