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 Platform Integration Architect (Mule-Arch-202) Exam - Topic 5 Question 25 Discussion

Actual exam question for Salesforce's Salesforce Certified MuleSoft Platform Integration Architect (Mule-Arch-202) exam
Question #: 25
Topic #: 5
[All Salesforce Certified MuleSoft Platform Integration Architect (Mule-Arch-202) Questions]

A large life sciences customer plans to use the Mule Tracing module with the Mapped Diagnostic Context (MDC) logging operations to enrich logging in its Mule application and to improve tracking by providing more context in the Mule application logs. The customer also wants to improve throughput and lower the message processing latency in its Mule application flows.

After installing the Mule Tracing module in the Mule application, how should logging be performed in flows in Mule applications, and what should be changed In the log4j2.xml files?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Tuyet
3 months ago
I didn't know about wrapping Logger components in Async scopes!
upvoted 0 times
...
Georgiana
3 months ago
B sounds good, but I think A is more straightforward.
upvoted 0 times
...
Jaime
3 months ago
Wait, are we sure AsyncLogger is the way to go?
upvoted 0 times
...
Vi
4 months ago
Totally agree, %MDC is essential for context!
upvoted 0 times
...
Malcolm
4 months ago
A is the correct approach for using Mule Tracing with MDC.
upvoted 0 times
...
Florinda
4 months ago
I definitely remember that wrapping Logger components in Async scopes was part of our practice, but I can't recall the exact changes needed in the log4j2.xml file.
upvoted 0 times
...
Kanisha
4 months ago
I'm a bit confused about whether we should assign the appender to a Logger or an AsyncLogger element. I feel like both options were mentioned in our study sessions.
upvoted 0 times
...
Yoko
4 months ago
I think we practiced a question similar to this, and I recall that we need to use %MDC in the appender's pattern layout.
upvoted 0 times
...
Salome
5 months ago
I remember we discussed adding the Mule Tracing module's Set logging variable operations before the Core Logger components, but I'm not sure about the log4j2.xml changes.
upvoted 0 times
...
Tora
5 months ago
Okay, let me recap what I need to do: In the flows, add the Mule Tracing module Set logging variable operations before the Core Logger components. Then in the log4j2.xml, update the appender's pattern layout to use %MDC and assign it to a Logger or Root element. I think I've got a good handle on this.
upvoted 0 times
...
Reena
5 months ago
This seems straightforward enough. The key is to use the Mule Tracing module to enrich the logging, and then configure the log4j2.xml file to leverage the MDC information. I'm pretty confident I can tackle this question.
upvoted 0 times
...
Shenika
5 months ago
I'm a bit confused about the part with the AsyncLogger element in the log4j2.xml file. I'll need to double-check the documentation to make sure I understand the difference between a regular Logger and an AsyncLogger and which one is the right choice here.
upvoted 0 times
...
Jacklyn
5 months ago
Okay, let me think this through step-by-step. I know I need to add the Mule Tracing module Set logging variable operations before the Core Logger components in the flows. Then in the log4j2.xml, I need to update the appender's pattern layout to use the %MDC placeholder and assign it to the appropriate element.
upvoted 0 times
...
Milly
5 months ago
Hmm, this looks like a tricky one. I'll need to carefully read through the question and options to make sure I understand the requirements around the Mule Tracing module and log4j2.xml configuration.
upvoted 0 times
...
Nan
12 months ago
Hmm, I don't know about that AsyncLogger business. Seems a bit overkill for a simple logging setup. But hey, what do I know? I'm just here for the free snacks.
upvoted 0 times
Dorian
11 months ago
User 2: Yeah, I agree. Let's keep it simple and add the Mule Tracing module Set logging variable operations before the Core Logger components.
upvoted 0 times
...
Olga
12 months ago
User 1: I think we should go with option A. It seems like the most straightforward approach.
upvoted 0 times
...
...
Devorah
1 year ago
Hmm, that makes sense too. I guess we need to carefully read the question and options before selecting the answer.
upvoted 0 times
...
Hester
1 year ago
I disagree, I believe the correct answer is B as it mentions using %MDC placeholder with AsyncLogger element.
upvoted 0 times
...
Janey
1 year ago
Hold up, did you say AsyncLogger? That's a bold move, Cotton. I hope it pays off for them.
upvoted 0 times
Gregg
12 months ago
B) Yeah, using AsyncLogger can definitely help with improving throughput and lowering message processing latency. It's a smart choice.
upvoted 0 times
...
Marylyn
12 months ago
A) In the flows, add Mule Tracing module Set logging variable operations before any Core Logger components. In log4j2.xml files, change the appender's pattern layout to use %MDC and then assign the appender to a Logger or Root element.
upvoted 0 times
...
...
Devorah
1 year ago
I think the answer is A because it mentions using %MDC in the pattern layout.
upvoted 0 times
...
Lashawna
1 year ago
I agree with Ona. Using the Mule Tracing module and the %MDC placeholder in the log4j2.xml file is the way to go. Seems straightforward enough.
upvoted 0 times
Maryanne
12 months ago
B) Agreed, using the %MDC placeholder seems like the right approach for better tracking.
upvoted 0 times
...
Casandra
12 months ago
A) That makes sense, it's important to set the logging variables correctly.
upvoted 0 times
...
Halina
12 months ago
B) In the flows, add Mule Tracing module Set logging variable operations before any Core Logger components. In log4j2.xmI files, change the appender's pattern layout to use the %MDC placeholder and then assign the appender to an AsyncLogger element.
upvoted 0 times
...
Tamera
1 year ago
A) In the flows, add Mule Tracing module Set logging variable operations before any Core Logger components. In log4j2.xml files, change the appender's pattern layout to use %MDC and then assign the appender to a Logger or Root element.
upvoted 0 times
...
...
Ona
1 year ago
The correct answer is B. The Mule Tracing module should be used to set logging variables, and the log4j2.xml file should use the %MDC placeholder in the appender's pattern layout, which is then assigned to an AsyncLogger element.
upvoted 0 times
Therese
1 year ago
Yes, you're right. The Mule Tracing module should be used to set logging variables.
upvoted 0 times
...
Therese
1 year ago
I think the correct answer is B.
upvoted 0 times
...
...

Save Cancel