Mulesoft MCD-LEVEL2 Online Practice
Questions and Exam Preparation
MCD-LEVEL2 Exam Details
Exam Code
:MCD-LEVEL2
Exam Name
:MuleSoft Certified Developer - Level 2 (Mule 4)
Certification
:Mulesoft Certifications
Vendor
:Mulesoft
Total Questions
:60 Q&As
Last Updated
:Jul 12, 2026
Mulesoft MCD-LEVEL2 Online Questions &
Answers
Question 11:
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. Copy the common application's source XML file and out it in a new flow file in the src/main/mule folder C. Add a Maven dependency in the PCM file with multiple-plugin as D. Add a Maven dependency in the POM file with jar as
D. Add a Maven dependency in the POM file with jar as
Explanation
To include a common application as a reusable module in all API implementations, the developer should add a Maven dependency in the POM file with jar as . This way, the developer can reuse Mule code from another application by packaging it as a JAR file and adding it as a dependency in the POM file of the API implementation. The classifier element specifies that it is a JAR file.
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 A'S Object Store?
A. Object Storev2 REST API B. CloudHub Connector C. Object Store Connector D. CloudHub REST API
A. Object Storev2 REST API
Explanation
To remove values from Mule application A's 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 DELETEmethod to remove values from Mule application A's Object Store v2 by specifying the object store ID and the key of the value to delete.
A healthcare portal needs to validate the token that it sends to a Mule API. The developer plans to implement a custom policy using the HTTP Policy Transform Extension to match the token received in the header from the heathcare portal.
Which files does the developer need to create in order to package the custom policy?
A. Deployable ZIP file, YAML configuration file B. JSON properties file, YAML configuration file C. JSON properties file, XML template file D. XML template file, YAML configuration file
D. XML template file, YAML configuration file
Explanation
To package a custom policy using the HTTP Policy Transform Extension, the developer needs to create an XML template file and a YAML configuration file. The XML template file defines the policy logic using Mule components and placeholders for user-defined properties. The YAML configuration file defines the metadata of the policy, such as its name, description, category, parameters, and dependencies.
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. Anyof the APIkit generate implement flows D. The name of the flow that has HTTP listener to receive all incoming RESTful operation requests
D. The name of the flow that has HTTP listener to receive all incoming RESTful operation requests
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.
A developer is working on a project that requires encrypting all data before sending it to a backend application. To accomplish this, the developer will use PGP encryption in the Mule 4 Cryptography module.
What is required to encrypt the data before sending it to the backend application?
A. The application needs to configure HTTPS TLS context information to encrypt the data B. The application needs to both the private and public keys to encrypt the data C. The application needs the public key from the backend service to encrypt the data D. The application needs the private key from the backend service to encrypt the data
C. The application needs the public key from the backend service to encrypt the data
Explanation
To encrypt the data before sending it to the backend application using PGP encryption, the application needs the public key from the backend service. PGP encryption uses a public-key cryptography system, which means that each party has a pair of keys: a public key and a private key. The public key is used to encrypt data, and the private key is used to decrypt data. Therefore, to encrypt data for a specific recipient (the backend service), the application needs to use the recipient's public key. The recipient can then use its own private key to decrypt the data.
Which command is used to convert a JKS keystore to PKCS12?
A. Keytool-importkeystore -srckeystore keystorep12-srcstoretype PKCS12 -destkeystore keystore.jks -deststoretype JKS B. Keytool-importkeystore -srckeystore keystore p12-srcstoretype JKS -destkeystore keystore.p12 -deststoretype PKCS12 C. Keytool-importkeystore -srckeystore keystore jks-srcstoretype JKS -destkeystore keystore.p13 -deststoretype PKCS12 D. Keytool-importkeystore -srckeystore keystore jks-srcstoretype PKCS12 -destkeystore keystore.p12 -deststoretype JKS
B. Keytool-importkeystore -srckeystore keystore p12-srcstoretype JKS -destkeystore keystore.p12 -deststoretype PKCS12
Explanation
To convert a JKS keystore to PKCS12, the developer needs to use the keytool-importkeystore command with the following options:-srckeystore keystore.jks-srcstoretype JKS-destkeystore keystore.p12-deststoretype PKCS12. This command imports all entries from a source JKS keystore (keystore.jks) into a destination PKCS12 keystore (keystore.p12).
A system API that communicates to an underlying MySQL database is deploying to CloudHub. The DevOps team requires a readiness endpoint to monitor all system APIs.
Which strategy should be used to implement this endpoint?
A. Create a dedicated endpoint that responds with the API status and reachability of the underlying systems B. Create a dedicated endpoint that responds with the API status and health of the server C. Use an existing resource endpoint of the API D. Create a dedicated endpoint that responds with the API status only
A. Create a dedicated endpoint that responds with the API status and reachability of the underlying systems
Explanation
To implement a readiness endpoint to monitor all system APIs, the developer should create a dedicated endpoint that responds with the API status and reachability of the underlying systems. This way, the DevOps team can check if the system API is ready to receive requests and if it can communicate with its backend systems without errors.
What action must be performed to log all the errors raised by the VM Connector?
A. Add B. Add C. Configure D. Nothing, as error-level events are automatically logged
B. Add
Explanation
To log all the errors raised by the VM Connector, the developer needs to add an async logger with the name `org.mule.extension.vm' and the level `ERROR' inside the appenders tag of the log4j2.xml file. This will enable logging all error-level events generated by the VM Connector to the console appender.
Based on the code snippet, schema,json file, and payload below, what is the outcome of the given code snippet when a request is sent with the payload?
A. The Mule flow will execute successfully with status code 200, and the response will be the JSON sent in request B. The Mule flow will execute successfully with status code 204 C. The Mule flow will throw the exception `JSON:SCHEMA_NOT_HONOURED D. The Mule flow will execute successfully with status code 200m andaresponse will display the message `' Age in years which must equal to or greater than zero.''
C. The Mule flow will throw the exception `JSON:SCHEMA_NOT_HONOURED
Explanation
Based on the code snippet, schema.json file, and payload below, the outcome of the given code snippet when a request is sent with the payload is that the Mule flow will throw the exception `JSON:SCHEMA_NOT_HONOURED'. This is because the payload does not conform to the schema.json file, which specifies that age must be a number greater than or equal to zero. The payload has age as a string with a negative value, which violates the schema. Therefore, the validate-schema operation throws an error with type `JSON:SCHEMA_NOT_HONOURED'.
A Mule application pom.xml configures the Maven Resources plugin to exclude parsing binary files in the project's src/main/resources/certs directory.
Which configuration of this plugin achieves a successful build?
A. Option A B. Option B C. Option C D. Option D
C. Option C
Explanation
To configure the Maven Resources plugin to exclude parsing binary files in the project's src/main/resources/certs directory, option C should be used. This option specifies that any files with .cer or .jks extensions under the certs directory should be excluded from filtering. Filtering is a process of replacing placeholders with actual values in resource files during the build process. Binary files should not be filtered because they may become corrupted or unusable.
Nowadays, the certification exams become more and more important and required by more and more
enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare
for the exam in a short time with less efforts? How to get a ideal result and how to find the
most reliable resources? Here on Vcedump.com, you will find all the answers.
Vcedump.com provide not only Mulesoft exam questions,
answers and explanations but also complete assistance on your exam preparation and certification
application. If you are confused on your MCD-LEVEL2 exam preparations
and Mulesoft certification application, do not hesitate to visit our
Vcedump.com to find your solutions here.