MuleSoft MuleSoft Certified Developer

MuleSoft MCD-Level-2 Exam Dumps

MuleSoft Certified Developer - Level 2 (Mule 4)

Exam code
MCD-Level-2
Questions
60
Updated
25 Nov 2026
  • Instant access from My Account after payment
  • 90 days of free updates
  • Money-back guarantee – see conditions
  • Help by live chat or email
Choose a format
Try free sample questions

Prices in USD. Downloads appear in My Account once your order is complete.

  • Instant access from My Account after payment
  • 90 days of free updates
  • Money-back guarantee – see conditions
  • Help by live chat or email
Free demo

MCD-Level-2 sample questions

Check the style and quality of the material before you buy.

Question 1

A developer has created the first version of an API designed for business partners to work commodity prices. What should developer do to allow more than one major version of the same API to be exposed by the implementation? 

  • A. In Design Center, open the RAML and modify each operation to include the major version number  
  • B. In Anypoint Studio, generate scaffolding from the RAML, and the modify the <http:listerner> in the generated flows to include a parameter to replace the version number 
  • C. In Design Center, open the RAML and modify baseUn to include a variable that indicates the version number
  • D. In Anypoint Studio, generate scaffolding from the RAML, and then modify the flow names generated by APIKit to include a variable with the major version number 

Answer: C

Explanation

To allow more than one major version of the same API to be exposed by the implementation, the developer should modify the baseUri property in the RAML file to include a variable that indicates the version number. The baseUri property defines the base URL of the API and can include variables that are replaced with actual values when mocking or deploying the API. By using a variable for the version number, the developer can expose different versions of the API using different base URLs and avoid conflicts or confusion. Reference: https://docs.mulesoft.com/api-designer/design-modifyraml-

specs#baseuri https://docs.mulesoft.com/api-manager.x/api-versioning

specs#baseuri https://docs.mulesoft.com/api-manager.x/api-versioning

Question 2

An API has been developed and deployed to CloudHub Among the policies applied to this API is an allowlist of IP addresses. A developer wants to run a test in Anypoint Studio and does not want any policies applied because their workstation is not included in the allowlist. What must the developer do in order to run this test locally without the policies applied? 

  • A. Create a properties file specifically for local development and set the API instance ID to a value that is not used in API Manager 
  • B. Pass in the runtime parameter ˜-Danpow.platform.gatekeeper=disabled  
  • C. Deactivate the API in API Manager so the Autodiscovery element will not find the application when it runs in Studio 
  • D. Run the test as-s, with no changes because the Studio runtime will not attempt to connect to API Manager

Answer: A

Explanation

To run a test locally without the policies applied, the developer should create a properties file specifically for local development and set the API instance ID to a value that is not used in API Manager. This way, the developer can use different configuration properties for different environments and avoid triggering API autodiscovery when running tests locally. API autodiscovery is a mechanism that associates an API implementation with its corresponding API specification and policies in API Manager based on its API instance ID. By setting this ID to a value that does not exist in API Manager, the developer can prevent API autodiscovery from finding and applying any policies to the local test. Reference: https://docs.mulesoft.com/api-manager.x/api-auto-discovery-newconcept # configuring-api-autodiscovery https://docs.mulesoft.com/mule-runtime.3/configuringproperties

Question 3

A Mule application for processing orders must log the order ID for every log message output. What is a best practice to enrich every log message with the order ID? 

  • A. Use flow variables within every logger processor to log the order ID 
  • B. Set a flow variable and edit the log4.xml file to output the variable as part of the message pattern 
  • C. Create a custom XML SDK component to wrap the logger processor and automatically add the order ID within the connector
  • D. Use the Tracing module to set logging variables with a Mapped Diagnostic Context 

Answer: D

Explanation

To enrich every log message with the order ID, the developer should use the Tracing module to set logging variables with a Mapped Diagnostic Context (MDC). The Tracing module allows adding custom key-value pairs to log messages using MDC variables. The developer can use Set Logging Variables operation to set the order ID as an MDC variable and then use it in any logger processor within the same thread or event. Reference: https://docs.mulesoft.com/tracing-module.0/tracingmodule-

reference#set-logging-variables

Question 4

Multiple individual Mute application need to use the Mule Maven plugin to deploy to CloudHub. The plugin configuration should .. reused where necessary and anything project, specific should be property-based. Where should the Mule Maven details be configured?

  • A. A parent pom.xml 
  • B. Settings, xml 
  • C. Pom, xml 
  • D. A Bill of Materials (BOM) parent pm

Answer: A

Explanation

To reuse Mule Maven plugin configuration across multiple individual Mule applications, the developer should use a parent pom.xml file. A parent pom.xml file defines common configuration for one or more child projects that inherit from it. The developer can specify common properties and dependencies for all child projects in the parent pom.xml file, such as Mule Maven plugin configuration, and then reference them in each child projects pom.xml file using placeholders.

Reference

Question 5

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. If the two APIs use the same domain, the VM Connector can be leveraged 
  • 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. 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 

Answer: A

Explanation

To communicate asynchronously between two APIs deployed to a two-node on-prem cluster, the developer can use the VM Connector if the two APIs use the same domain. The VM Connector allows passing messages between different Mule applications within a single Mule runtime instance or across different instances using shared memory or persistent storage. If two APIs are deployed under the same domain, they can share resources such as VM queues and communicate asynchronously using VM Connector operations. Reference: https://docs.mulesoft.com/mule-runtime.3/vmconnector

Question 6

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. Change the PUT requests inside the Scatter-Gather to POST requests 
  • B. Ensure an error-handling flow performs corrective actions to roll back all changes if any leg of the Scatter-Gather fails
  • C. Remove the Put requests from the Scatter-Getter and perform them sequentially 
  • D. None, the flow already exhibits idempotent behavior 

Answer: B

Explanation

To ensure idempotent behavior within a Mule flow that contains a subflow with a Scatter-Gather scope, the developer should ensure an error-handling flow performs corrective actions to roll back all changes if any leg of the Scatter-Gather fails. Idempotency means that multiple identical requests have the same effect as a single request. Therefore, if one of the HTTP requests inside the Scatter-Gather fails, the error-handling flow should undo any changes made by other successful requests to ensure consistency and avoid partial updates. Reference: https://docs.mulesoft.com/muleruntime/

4.3/scatter-gather-concept https://docs.mulesoft.com/mule-runtime.3/error-handling

Question 7

Mule application A is deployed to CloudHub and is using Object Store v2. Mute application B is also deployed to CloudHub. Which approach can Mule application B use to remove values from Mule application AS Object Store?

  • A. Object Store v2 REST API 
  • B. CloudHub Connector 
  • C. Object Store Connector 
  • D. CloudHub REST API 

Answer: A

Explanation

To remove values from Mule application As Object Store v2, Mule application B can use Object Store v2 REST API. This API allows performing operations on Object Store v2 resources using HTTP methods, such as GET, POST, PUT, and DELETE. Mule application B can use the DELETE method to remove values from Mule application As Object Store v2 by specifying the object store ID and the key of the value to delete. Reference: https://docs.mulesoft.com/object-store/osv2-apis

Question 8

A mule application exposes and API for creating payments. An Operations team wants to ensure that the Payment API is up and running at all times in production. Which approach should be used to test that the payment API is working in production? 

  • A. Create a health check endpoint that listens on a separate port and uses a separate HTTP Listener configuration from the API 
  • B. Configure the application to send health data to an external system 
  • C. Create a health check endpoint that reuses the same port number and HTTP Listener configuration as the API itself 
  • D. Monitor the Payment API directly sending real customer payment data

Answer: A

Explanation

To test that the payment API is working in production, the developer should create a health check endpoint that listens on a separate port and uses a separate HTTP Listener configuration from the API. This way, the developer can isolate the health check endpoint from the API traffic and avoid affecting the performance or availability of the API. The health check endpoint should return a simple response that indicates the status of the API, such as OK or ERROR. Reference:

Question 9

A Mule application uses API autodiscovery to access and enforce policies for a RESTful implementation. 

  • A. Northing because flowRef is an optional attribute which can be passed runtime 
  • B. The name of the flow that has APlkit Console to receive all incoming RESTful operation requests. 
  • C. Any of the APIkit generate implement flows 
  • D. The name of the flow that has HTTP listener to receive all incoming RESTful operation requests 

Answer: D

Explanation

To use API autodiscovery to access and enforce policies for a RESTful implementation, flowRef must be set to the name of the flow that has HTTP listener to receive all incoming RESTful operation requests. This way, API autodiscovery can identify the API implementation and associate it with the corresponding API specification and policies in API Manager. The flow that has HTTP listener is usually the main flow that contains the APIKit Router. Reference: https://docs.mulesoft.com/apimanager/

2.x/api-auto-discovery-new-concept#flowref

Question 10

A Flight Management System publishes gate change notification events whenever a flights arrival gate changes. Other systems, including Baggage Handler System. Inflight Catering System and Passenger Notifications System, must each asynchronously receive the same gate change notificationto process the event according. Which configuration is required in Anypoint MQ to achieve this publish/subscribe model? 

  • A. Publish each client subscribe directly to the exchange. Have each client subscribe directly to the queue. 
  • B. Publish the gate change notification to an Anypoint MC queue Have each client subscribe directly to the queue 
  • C. Publish the gate change notification to an Anypoint MQ queue. Create different anypoint MQ exchange meant for each of the other subscribing systems Bind the queue with each of the exchanges 
  • D. Publish the gate change notification to an Anypoint MQ exchanhe. Create different Anypoint MQ queues meant for each of the other subscribing systems. Bind the exchange with each of the queues. 

Answer: D

Explanation

To achieve a publish/subscribe model using Anypoint MQ, where each system receives the same gate change notification event, the developer should publish the gate change notification to an Anypoint MQ exchange, create different Anypoint MQ queues meant for each of the other subscribing systems, and bind the exchange with each of the queues. An exchange is a message routing agent that can send messages to different queues based on predefined criteria. By binding an exchange with multiple queues, each queue receives a copy of every message sent to that exchange. Therefore, each system can subscribe to its own queue and receive every gate change notification event. Reference: https://docs.mulesoft.com/anypoint-mq.x/anypoint-mq-exchanges

Why Dumpsforsure is the best choice for MuleSoft MCD-Level-2 exam preparation

Secure your position in a competitive IT industry

The MuleSoft MCD-Level-2 certification is a strong way to demonstrate your understanding and ability. Our MCD-Level-2 questions & answers help you prepare for it, so you can secure your current position and move your career forward.

Reviewed by IT professionals

We keep our MCD-Level-2 exam dumps up to date, with explanations. The questions and answers on Dumpsforsure are reviewed by people with professional experience of MuleSoft technologies.

One place to prepare

Dumpsforsure brings together the material you need for the MuleSoft MCD-Level-2 exam. Explanations are added to the questions to help you understand the logic behind them and prepare for other MuleSoft exams.

Updated MCD-Level-2 questions & answers

We update the exam files regularly to add new questions. The date of the latest update is shown at the top of this page.

Free MCD-Level-2 demo before you buy

You can view sample MCD-Level-2 questions on this page before buying, to see the format and pattern of the material.

90 days of free updates

You are eligible for 90 days of free updates after buying the MCD-Level-2 exam. If the file is updated in that time, you can download the latest version from your account.

Ready to prepare?

MuleSoft MCD-Level-2 · 60 questions

Choose a format