In a Mule project, Flow-1 contains a flow-ref to Flow-2 depends on data from Flow-1 to execute successfully.Which action ensures the test suites and test cases written for Flow-1 and Flow-2 will execute successfully?
Answer(s): B
To ensure the test suites and test cases written for Flow-1 and Flow-2 will execute successfully, the developer should use a Set Event processor to pass the input that is needed by Flow-2, and keep the test cases for Flow-1 and Flow-2 independent. This way, the developer can isolate the testing of each flow and avoid coupling them together.
https://docs.mulesoft.com/munit/2.3/munit-test- flow
A Mule application need to invoice an API hosted by an external system to initiate a process. The external API takes anywhere between one minute and 24 hours to compute its process. Which implementation should be used to get response data from the external API after it completes processing?
Answer(s): D
To get response data from the external API after it completes processing, the developer should expose an HTTP callback API in Mule and register it with the external system. This way, the external API can invoke the callback API with the response data when it is ready, instead of making the Mule application wait for a long time or poll for a response repeatedly.
https://docs.mulesoft.com/mule-runtime/4.3/http-listener-ref#callback
Refer to the exhibit.A Mute Object Store is configured with an entry TTL of one second and an expiration interval of 30 seconds.What is the result of the flow if processing between os'store and os:retrieve takes 10 seconds?
Answer(s): A
The result of the flow is nullPayload if processing between os:store and os:retrieve takes 10 seconds. This is because the entry TTL of the object store is one second, which means that any stored value expires after one second and is removed from the object store. The expiration interval of 30 seconds only determines how often the object store checks for expired values, but it does not affect the TTL. Therefore, when os:retrieve tries to get the value after 10 seconds, it returns nullPayload because the value has already expired and been removed.
https://docs.mulesoft.com/object- store/osv2-faq#how-does-the-time-to-live-work
Which plugin or dependency is required to unit test modules created with XML SDK?
Answer(s): C
To unit test modules created with XML SDK, the developer needs to use the MUnit Extensions Maven plugin. This plugin allows testing XML SDK modules using MUnit by adding a dependency to the module under test and using a custom processor tag to invoke it.
https://docs.mulesoft.com/mule-sdk/1.1/xml-sdk#testing
Which statement is true when working with correlation IDS?
When working with correlation IDs, the HTTP Listener generates correlation IDs unless a correlation ID is received in the HTTP request. In that case, it propagates the received correlation ID throughout the flow execution. Correlation IDs are used to track events across different flows or applications.
https://docs.mulesoft.com/mule-runtime/4.3/about-mule-message#message-attributes
Post your Comments and Discuss Salesforce Salesforce-MuleSoft-Developer-II exam prep with other Community members:
Our website is free, but we have to fight against AI bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the Salesforce-MuleSoft-Developer-II content, but please register or login to continue.