New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Certified MuleSoft Developer II (Mule-Dev-301) Exam - Topic 2 Question 2 Discussion

Actual exam question for Salesforce's Salesforce Certified MuleSoft Developer II (Mule-Dev-301) exam
Question #: 2
Topic #: 2
[All Salesforce Certified MuleSoft Developer II (Mule-Dev-301) Questions]

An order processing system is composed of multiple Mule application responsible for warehouse, sales and shipping. Each application communication using Anypoint MQ. Each message must be correlated against the original order ID for observability and tracing.

How should a developer propagate the order ID as the correlation ID across each message?

Show Suggested Answer Hide Answer
Suggested Answer: D

To propagate the order ID as the correlation ID across each message using Anypoint MQ, the developer should wrap all Anypoint MQ Publish operations within a With CorrelationID scope from the Tracing module, setting the correlation ID to the order ID. The With CorrelationID scope allows setting a custom correlation ID for any event that occurs within it. The Tracing module also enables distributed tracing across different Mule applications and services using Anypoint Monitoring. Reference: https://docs.mulesoft.com/tracing-module/1.0/tracing-module-reference#with-correlation-id-scope https://docs.mulesoft.com/tracing-module/1.0/tracing-module-concepts


Contribute your Thoughts:

0/2000 characters
Francine
3 months ago
D seems a bit overkill for just propagating an ID, right?
upvoted 0 times
...
Anjelica
3 months ago
A is a solid choice too, headers are straightforward.
upvoted 0 times
...
Rasheeda
3 months ago
Wait, does Anypoint MQ really auto-propagate the correlation ID? Sounds too easy.
upvoted 0 times
...
Irving
4 months ago
Definitely agree with B, it gives more control!
upvoted 0 times
...
Olen
4 months ago
I think option B is the way to go for custom properties.
upvoted 0 times
...
Kirk
4 months ago
I think wrapping the publish operations in a With CorrelationID scope from the Tracing module, as in option D, is a solid method. It aligns with what we practiced about ensuring traceability.
upvoted 0 times
...
Heike
4 months ago
I recall a similar question where we had to set headers for observability. Using the 'X-CORRELATION_ID' header in option A could work, but I'm not confident it's the best approach.
upvoted 0 times
...
Rodolfo
4 months ago
I'm not entirely sure, but I think the default correlation ID might not be sufficient for our needs. Option C feels a bit too simplistic for this scenario.
upvoted 0 times
...
Bobbye
5 months ago
I remember we discussed using custom properties in Anypoint MQ during our practice sessions. Option B seems like a good choice for propagating the order ID.
upvoted 0 times
...
Tony
5 months ago
I'm leaning towards option A. Setting the 'X-CORRELATION_ID' header on the underlying HTTP request seems like a straightforward way to propagate the order ID. As long as the receiving applications are looking for that header, it should work well.
upvoted 0 times
...
Gabriele
5 months ago
Option D seems like the most robust solution to me. Using the Tracing module to wrap the Anypoint MQ Publish operations and set the correlation ID to the order ID should ensure consistent tracing across the system.
upvoted 0 times
...
Lindsey
5 months ago
This looks like a pretty straightforward question. I think I'll go with option B - setting a custom Anypoint MQ user property to propagate the order ID and set the correlation ID in the receiving applications.
upvoted 0 times
...
Cheryll
5 months ago
Hmm, I'm a bit unsure about this one. I'm not super familiar with Anypoint MQ, so I'll need to think through the different options carefully. Maybe I'll start by reviewing the documentation on correlation IDs and message propagation.
upvoted 0 times
...
Cherri
5 months ago
This looks like a tricky question. I'll need to think through the different options carefully.
upvoted 0 times
...
Mari
5 months ago
Hmm, I'm a bit confused about the difference between the services that are installed on the Backup Exec server and the ones available on the remote computer. I'll need to carefully read through the options to figure this out.
upvoted 0 times
...
Aleta
5 months ago
Okay, let me think this through. A digital certificate is used to verify the identity of the person or entity you're communicating with, so it must be verifying the public key. I'll go with option A.
upvoted 0 times
...
Micheline
2 years ago
Option D is the way to go, it's like having a personal assistant for your correlation ID. Why make your life harder when there's a module for that?
upvoted 0 times
...
Gearldine
2 years ago
Option A looks good, using the HTTP header is a classic move. But wait, do we even have HTTP requests in Anypoint MQ? Better stick with option B to be safe.
upvoted 0 times
...
Peggie
2 years ago
Option C is tempting, but come on, we need to have better control over the correlation ID. I'm going with option B, it's the most straightforward approach.
upvoted 0 times
Sharmaine
2 years ago
Yeah, option B definitely gives us the control we need over the correlation ID. It's the most straightforward approach.
upvoted 0 times
...
Glennis
2 years ago
I think option B is the way to go as well, it provides a clear and direct method for propagating the order ID.
upvoted 0 times
...
Francesco
2 years ago
I agree, option B seems like the best choice for maintaining control over the correlation ID.
upvoted 0 times
...
...
Gearldine
2 years ago
I'd go with option D, the Tracing module makes it so easy to manage the correlation ID. Plus, it's probably the most robust solution.
upvoted 0 times
Alaine
2 years ago
Option A might be a bit risky, relying on the underlying HTTP request of Anypoint MQ for the correlation ID.
upvoted 0 times
...
Luisa
2 years ago
I think option B could also work well, setting a custom Anypoint MQ user property for the order ID.
upvoted 0 times
...
Tanja
2 years ago
I agree, option D seems like the most reliable choice for propagating the order ID as the correlation ID.
upvoted 0 times
...
...
Eric
2 years ago
Option B seems like the way to go, keep it simple and custom. Why overcomplicate things when Anypoint MQ has built-in user properties?
upvoted 0 times
William
2 years ago
I agree, using custom Anypoint MQ user properties for propagating the order ID is a straightforward approach.
upvoted 0 times
...
Ling
2 years ago
Option B seems like the way to go, keep it simple and custom. Why overcomplicate things when Anypoint MQ has built-in user properties?
upvoted 0 times
...
...

Save Cancel