MuleSoft Certified Developer - Level 2 (Mule 4) Sample Questions:
1. Two APIs are deployed to a two-node on-prem cluster. Due to a requirements change, the two APIs must communicate to exchange data asynchronously.
A) It is not possible to use the VM Connector since the APIs are running in a cluster mode and each mode has it own set of VM Queues
B) The VM Connector is used to inter-application communication, so it is not possible to use the VM Connector
C) Instead of using the VM Connector use <flow-ref>directly
D) If the two APIs use the same domain, the VM Connector can be leveraged
2. 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?
A) Set a custom Anypoint MQ user property to propagate the order ID and set the correlation ID in the receiving applications.
B) Use the underlying HTTP request of Anypoint MQ to set the 'X-CORRELATION_ID' header to the order ID
C) Use the default correlation ID, Anypoint MQ will sutomatically propagate it.
D) Wrap all Anypoint MQ Publish operations within a With CorrelationID scope from the Tracing module, setting the correlation ID to the order ID
3. A Mule application includes a subflow containing a Scatter.Gather scope. Within each log of the Scatter.Gatter. an HTTP connector calls a PUT endpoint to modify records in different upstream system. The subflow is called inside an Unit successful scope to retry if a transitory exception is raised.
A technical spike is being performed to increase reliability of the Mule application.
Which steps should be performed within the Mule flow above the ensure idempontent behavior?
A) Ensure an error-handling flow performs corrective actions to roll back all changes if any leg of the Scatter-Gather fails
B) None, the flow already exhibits idempotent behavior
C) Remove the Put requests from the Scatter-Getter and perform them sequentially
D) Change the PUT requests inside the Scatter-Gather to POST requests
4. The Center for Enablement team published a common application as a reusable module to the central Nexus repository.
How can the common application be included in all API implementations?
A) Download the common application from Naxus and copy it to the src/main/resources folder in the API
B) Add a Maven dependency in the PCM file with multiple-plugin as <classifier>
C) Copy the common application's source XML file and out it in a new flow file in the src/main/mule folder
D) Add a Maven dependency in the POM file with jar as <classifier>
5. A Mule application deployed to a standardalone Mule runtime uses VM queues to publish messages to be consumed asynchronously by another flow.
In the case of a system failure, what will happen to in-flight messages in the VM queues that have been consumed?
A) For nay type of queue, the message will be processed after the system comes online
B) For persistent queues, the message will be processed after the system comes online
C) For transient queues, the message will be processed after the system comes online
D) For any type of queue, the message will be lost
Solutions:
| Question # 1 Answer: D | Question # 2 Answer: D | Question # 3 Answer: A | Question # 4 Answer: D | Question # 5 Answer: B |

We're so confident of our products that we provide no hassle product exchange.


By Yvette


