MuleSoft Developer Free Sample Questions

12 free sample questions150 in the full practice test Other version: certified-mulesoft-developer-i(73)

Try simulator

Mule-Dev-201 Sample Questions

  1. Question 1

    Beginner

    Creating Application Networks · API-led Connectivity

    A strategic consulting firm is designing an integration architecture for a large retail client. The goal is to decouple the backend systems (ERP, CRM) from the frontend channels (Mobile, Web) to enable faster innovation. Which layer of the API-led connectivity architecture should be focused on exposing data in a format that is specifically consumed by the mobile application, without exposing the complexity of the underlying systems?

    Answer and explanation

    Correct answer: B

    The Experience API layer is designed to expose data in a way that is easily consumable by specific end-user channels (like mobile apps or web portals), insulating them from changes in the underlying Process or System APIs. System APIs access core systems, while Process APIs orchestrate data.

  2. Question 2

    Beginner

    Designing APIs · RAML Syntax

    A developer is defining a RAML specification for a new Orders API. The API needs to retrieve a specific order based on its unique ID. Which syntax correctly defines a resource with a URI parameter for the order ID?

    Answer and explanation

    Correct answer: B

    In RAML, URI parameters are defined by enclosing the parameter name in curly braces, such as /{orderId}. This denotes that orderId is a variable part of the URI path used to identify a specific resource.

  3. Question 3

    Intermediate

    Structuring Mule Applications · Flows and Subflows

    A Mule application contains a flow with a Set Variable transformer followed by a Flow Reference to a Subflow. If the variable is set to 'High' in the main flow, what is the scope of this variable when the Subflow executes?

    Answer and explanation

    Correct answer: D

    Variables in Mule 4 are scoped to the Mule Event. Since a Subflow processes the same Mule Event as the calling flow (it runs in the same thread and context), any variables set in the calling flow are fully accessible and modifiable within the Subflow.

  4. Question 4

    Intermediate

    Transforming Data with DataWeave · Data Transformation

    An integration developer needs to transform an XML payload containing customer data into a JSON format. The source XML has a root element containing multiple records. Which DataWeave script correctly maps the list of customers to a JSON array?

    Answer and explanation

    Correct answer: A

    The multi-value selector .*Customer retrieves all Customer elements as an array. The map function then iterates over this array to transform each item into the target JSON structure. This is the correct way to handle repeated XML elements in DataWeave 2.0.

  5. Question 5

    Advanced

    Routing Events · Scatter-Gather

    A financial application uses a Scatter-Gather router to send a loan application to three different banks simultaneously. If the second route fails with an error while the first and third routes succeed, what happens to the execution of the flow immediately after the Scatter-Gather scope?

    Answer and explanation

    Correct answer: C

    In a Scatter-Gather router, if any route fails, the router catches the exception and, after all routes complete (or timeout), throws a MULE:COMPOSITE_ROUTING error. The flow processing stops and transfers to the error handler, where the composite error object contains results from successful routes and exceptions from failed ones.

  6. Question 6

    Intermediate

    Using Connectors · HTTP Connector

    You are developing a Mule application that consumes a third-party REST API. You need to configure the HTTP Request connector to include a dynamic 'Authorization' header in every call, where the value comes from a variable named authToken. How should you configure this in the HTTP Request operation?

    Answer and explanation

    Correct answer: B

    The Headers section of the HTTP Request configuration allows DataWeave expressions. Using #[vars.authToken] dynamically retrieves the value from the Mule variable and assigns it to the Authorization header key.

Register free for 6 more questions

Or unlock all 150 Mule-Dev-201 questions with explanations, timed mode and flashcards.