Salesforce Certified MuleSoft Platform Integration Architect free question 2 / 10 · Domain 10: Applying DevOps practices and operating integration solutions
A team prepares the logging configuration of a high-volume production application and asks for the best practice. Which recommendation applies?
- Asynchronous logging with a minimum level of TRACE, so the logs describe every step
- Synchronous logging with a minimum level of ERROR, so messages are flushed at once
- Synchronous logging with a minimum level of DEBUG, so no message is lost at a crash of the runtime
- Asynchronous logging with a minimum level of WARN, and INFO only when troubleshooting needs it
Show the answer and explanation
Answer: D
Why this is correct
Mule 4 uses Log4j 2 asynchronous logging by default, so the logging operation happens in a separate thread and message processing continues without waiting. The guide explains the trade-off: some messages may be lost if Mule crashes before the logging buffers flush to disk, and a mixed configuration of asynchronous and synchronous loggers is possible. The best practice is asynchronous logging with a minimum level of WARN for a production application, and INFO only in cases such as confirming a successful policy installation or troubleshooting.
Why the other options are wrong
"Synchronous logging with a minimum level of DEBUG, so no message is lost at a crash of the runtime" … The guide recommends asynchronous logging with a minimum level of WARN. DEBUG in production adds load.
"Asynchronous logging with a minimum level of TRACE, so the logs describe every step" … A minimum level of WARN is recommended for production. TRACE would create very high volume.
"Synchronous logging with a minimum level of ERROR, so messages are flushed at once" … The guide prefers asynchronous logging, and it names INFO as an option for troubleshooting.
Key points
Production: asynchronous logging, minimum level WARN, INFO for targeted troubleshooting.