MuleSoft certification · Exam MCD-Level-2

MCD-Level-2 Mock Exam Page 2

MuleSoft Certified Developer - Level 2 (Mule 4)

Free MCD-Level-2 mock exam questions 11–14, each with the answer and an explanation.

14 questions · 23 minutes · free, no sign-up

Free MCD-Level-2 questions

11–14 of 14 free
Question 11 Choose 1

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?

Show answerHide answer

Correct answer: D

Expose an HTTP callback API in Mule and register it with the external system

Explanation

Explanation:
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. 

References:
https://docs.mulesoft.com/mule-runtime/4.3/http-listener-ref#callback

Question 12 Choose 1

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?

Show answerHide answer

Correct answer: A

A parent pom.xml

Explanation

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 project’s pom.xml file using placeholders. 

References:
https://docs.mulesoft.com/mule-runtime/4.3/mmp-concept#parent-pom
https://maven.apache.org/guides/introduction/introduction-to-the-pom.html#Project_Inheritance

Question 13 Choose 1

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?

Show answerHide answer

Correct answer: B

Ensure an error-handling flow performs corrective actions to roll back all changes if any leg of the Scatter-Gather fails

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.

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

Question 14 Choose 1

A Mule API receives a JSON payload and updates the target system with the payload. The developer uses JSON schemas to ensure the data is valid.
How can the data be validation before posting to the target system?

Show answerHide answer

Correct answer: D

Add the JSON module dependency and add the validate-schema operation in the flow, configured to reference the schema

Explanation

To validate the data before posting to the target system, the developer should add the JSON module dependency and add the validate-schema operation in the flow, configured to reference the schema. The JSON module provides a validate-schema operation that validates a JSON payload against a JSON schema and throws an error if the payload is invalid. 

References:
https://docs.mulesoft.com/json-module/1.1/json-validate-schema

That's the last free question

You've seen the free 30% (14 of 47 questions). Full access unlocks every question and full-length MCD-Level-2 mock exams (65 questions, 105 minutes), a different mock on every attempt.

Unlock full mock exam
Full mock exam

Sit the MCD-Level-2 exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real MCD-Level-2 exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.

Get full MCD-Level-2 mock exam
  • 65questions per mock
  • 105 mintime limit
  • 47questions in the bank
  • Newmock on every attempt