Mulesoft MCD-Level 1 MuleSoft Certified Developer – Level 1 (Mule 4) Online Training
Mulesoft MCD-Level 1 Online Training
The questions for MCD-Level 1 were last updated at Jan 28,2025.
- Exam Code: MCD-Level 1
- Exam Name: MuleSoft Certified Developer - Level 1 (Mule 4)
- Certification Provider: Mulesoft
- Latest update: Jan 28,2025
To avoid hard-coding values, a flow uses some property placeholders and the corresponding values are stored in a configuration file.
Where does the configuration file’s location need to be specified in the Mule application?
- A . The pom.xml file
- B . A global element
- C . The mule-art if act .json file
- D . a flow attribute
B
Explanation:
Correct answer is A global element
When we create a configuration file, that file needs to added as Global Configuration file in Global element. A global element is a reusable object containing parameters that any number of elements in a flow can share. You reference a global element from Anypoint Connectors or components in your Mule application
Refer to the exhibit.
What is the correct syntax to add an employee ID as a URI parameter in an HTTP Listener path?
- A . (employeelD)
- B . ${emp!oyeelD}
- C . {employeelD}
- D . # [employeelD]
C
Explanation:
Paths
The path of an HTTP listener can be static, which requires exact matches, or feature placeholders. Placeholders can be wildcards (*), which match against anything they are compared to, or parameters ({param}), which not only match against anything but also capture those values on a URI parameters map.
Take the following example paths for three listeners using a configuration that establishes api/v1 as the base path:
account/mulesoft/main-contact: only match the exact path request http://awesome-company.com/api/v1/account/mulesoft/main-contact account/{accountId}/main-contact: matches all path requests structured similarly, such as http://awesome-company.com/api/v1/account/salesforce/main-contact, and save salesforce as the value of accountId.
account/{accountId}/*: matches all path requests different from main-contact, such as http://awesome-company.com/api/v1/account/mulesoft/users, and save mulesoft as the value of accountId.
Mule Ref Doc: https://docs.mulesoft.com/http-connector/1.6/http-listener-ref#paths
An SLA based policy has been enabled in API Manager.
What is the next step to configure the API proxy to enforce the new SLA policy?
- A . Add new property placeholders and redeploy the API proxy
- B . Add new environment variables and restart the API proxy
- C . Restart the API proxy to clear the API policy cache
- D . Add required headers to the RAML specification and redeploy the new API proxy
D
Explanation:
Correct answer is Add required headers to RAML specification and redeploy new API proxy
MuleSoft Doc Ref: https://docs.mulesoft.com/api-manager/2.x/tutorial-manage-an-api
Steps are as below:
Add the Required RAML Snippet
SLA-based rate limiting requires adding a RAML or OAS snippet to your API. This procedure demonstrates adding a RAML snippet.
Specify the client ID and secret as query parameters.
Add a section called traits: at the RAML root level to define query parameters:
traits:
– client-id-required: queryParameters: client_id:
type: string client_secret: type: string
Add the client-id-required trait to every method that requires these query parameters: /users:
get:
is: [client-id-required]
description: Gets a list of JSONPlaceholder users.
Step 2: Add the SLA Tier in API Manager
Step 3: Apply the policy and redeploy
Reference: https://docs.mulesoft.com/api-manager/2.x/tutorial-manage-an-api
What payload is returned by a Database SELECT operation that does not match any rows in the database?
- A . false
- B . null
- C . Exception
- D . Empty Array
D
Explanation:
Empty array is returned when no rows are matched.
MuleSoft Doc Ref: https://docs.mulesoft.com/db-connector/1.9/database-connector-select
What is the correct syntax to define and call a function in Database?
A)
B)
C)
D)
- A . Option A
- B . Option B
- C . Option C
- D . Option D
A
Explanation:
Keyword to ad function in Dataweave transformation is fun. Hence option 2 and 4 are invalid. Also parameters needs to be passed exactly in same order as defined in function definition. Hence correct answer is’
fun addKV( object: Object, key: String, value: Any) =
object ++ {(key):(value)}
—
addKV ( {"hello’: "world"}, "hola", "mundo" )
MuleSoft Documentation
Reference: https://docs.mulesoft.com/mule-runtime/4.3/dataweave-functions
DataWeave Function Definition Syntax
To define a function in DataWeave use the following syntax: fun myFunction(param1, param2, …) = <code to execute> The fun keyword starts the definition of a function.
myFunction is the name you define for the function.
Function names must be valid identifiers.
(param1, param2, …, paramn) represents the parameters that your function accepts. You can specify from zero to any number of parameters, separated by commas (,) and enclosed in parentheses.
The = sign marks the beginning of the code block to execute when the function is called.
<code to execute> represents the actual code that you define for your function.
A Utility.dwl file is located in a Mule project at src/main/resources/modules. The Utility.dwl hie defines a function named pascalize that reformats strings to pascal case.
What is the correct DataWeave to call the pascalize function in a Transform Message component?
A)
B)
C)
D)
- A . Option A
- B . Option B
- C . Option C
- D . Option D
A RAML specification is defined to manage customers with a unique identifier for each customer record.
What URI does MuleSoft recommend to uniquely access the customer identified with the unique ID 1234?
- A . /customers?custid=true&custid=1234
- B . /customers/1234
- C . /customers/custid=1234
- D . /customers?operation=get&custid=1234
B
Explanation:
URI parameter (Path Param) is basically used to identify a specific resource or resources. For eg: the URL to get employee details on the basis of employeeID will be GET /employees/{employeeID} where employees is resource and {employeeID} is URI parameter. Hence option 1is the correct
answer
Refer to the exhibits.
The orders.csv file is read, then processed to look up the orders in a database. The Mule application is debugged in Any point Studio and stops at the breakpoint.
What is the payload shown in the debugger at this breakpoint?
- A . "none"
- B . The entire CSV file
- C . The database response
- D . 100
A Mule application contains a global error handler configured to catch any errors.
Where must the global error handler be specified so that the global error handler catches all errors from flows without their own error handlers?
- A . A configuration properties file
- B . Nowhere, the global error handler is automatically used
- C . A global element
- D . The pom.xml file
C
Explanation:
Correct answer is A global element
Global error handlers are to be created in global element.
Quick note to remember here is Global error handlers come in to picture only when there are no
error handlers specified as flow level.
Steps to create Global error handler
1) Click Global Elements to open Global Configuration Elements. Global Elements is located below the Studio canvas
2) In Global Configuration Elements, click Create to open the Choose Global Type dialog
3) From the dialog, select Global Configuration -→ Configuration, and then click OK to open the Configuration dialog.
4) From the select Configuration dialog, select allErrorHandler for the Default Error Handler field, and click OK.
Refer to the exhibit.
What can be added to the flow to persist data across different flow executions?
- A . Key/value pairs in the Object Store
- B . Properties of the Mule runtime flow object
- C . properties of the Mule runtime app object
- D . session variables
A
Explanation:
An object store is a facility for storing objects in or across Mule applications. Mule runtime engine (Mule) uses object stores to persist data for eventual retrieval. Internally, Mule uses object stores in various filters, routers, and other message processors that need to store states between messages.
Object stores are available in all deployment targets. If you deploy your application to CloudHub, you can also use Object Store V2. Correct answer is Key/value pair in Object store
MuleSoft Documentation reference: https://docs.mulesoft.com/mule-runtime/4.3/mule-object-stores#use-cases