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
Refer to the exhibit.
This RAML specification includes a resource and method to retrieve accounts by account_type and industry.
What is the correct URI to get all retail finance accounts?
- A . /accounts/retail/finance
- B . /accounts?account_type=retail&industry=finance
- C . /accounts/account_type=retail/industry=finance
- D . /accounts?account_type:retail&industry:finance
B
Explanation:
Correct answer is /accounts?account_type=retail&industry=finance
Query parameters are a defined set of parameters attached to the end of a url. They are extensions of the URL that are used to help define specific content or actions based on the data being passed. To append query params to the end of a URL, a ‘?’ Is added followed immediately by a query parameter. To add multiple parameters, an ‘&’ is added in between each.
A Mule application contains two HTTP Listeners, each configured for different API endpoints:
http://acme.com/apis/orders and http: //acme .com/a pis/customers.
What base path value should be set in an HTT? Listener config element so that it can be used to configure both HTTP Listeners?
- A . /apis/?
- B . /apis/
- C . /apis/orders|customers
- D . /apis/*
D
Explanation:
Option 2 is the correct answer as /api/* accespts everything starting with /api/
A web client submits a request to http://localhost:8081/books/0471767840. The value "0471767840" is captured by a Set Variable transformer to a variable named booklSBN.
What is the DataWeave expression to access booklSBN later in the flow?
- A . booklSBN
- B . attributes.booklSBN
- C . flowVars.booklSBN
- D . vars. booklSBN
Refer to the exhibits.
The Set Payload transformer’s value is set to {‘year’: ‘2020’}.
What message value should be added to the Logger component to output the message ‘The year is 2020’, without hardcoding 2020?
- A . ‘#[The year is $(pay load .year)]*
- B . The year is #[payload.year]’
- C . ‘#[The year is " + paytoad.year]’
- D . #["The year is "++ payload.year].
Refer to the exhibit.
A Mule event is composed of a hierarchy of objects.
Where in the hierarchy are variables stored?
- A . Mule event
- B . Mule message payload
- C . Mule message
- D . Mule message attributes
A
Explanation:
Variables are stored under Mule event. Please refer to below image for the hierarchy .
Refer to the exhibits.
In the request Flow an HTTP Request operation is configured to send an HTTP request with an XML
payload. The request is sent to the HTTP Listener in the transform Flow.
That flow transforms the incoming payload into JSON format and returns the response to the HTTP request. The response of the request is stored in a target variable named the Result.
What is the payload at the Logger component after the HTTP Request?
- A . A non-empty Java object
- B . The original XML payload
- C . null
- D . The returned JSON response
Refer to the exhibits.
A Mule application has an HTTP Request that is configured with hardcoded values. To change this, the Mule application is configured to use a properties file named config.yaml.
What valid expression can the HTTP Request host value be set to so that it is no longer hardcoded?
- A . ${training.host}
- B . ${training:host}
- C . #[training:host]
- D . #[training.host]
A
Explanation:
Correct answer is ${training.host}
————————————————————————————————————————-
How to Configure Properties to Mule 4.X Platform?
1) Go to /src/main/resources project directory.
2) Create a configuration file with the name configuration.yaml inside the newly created config folder.
3) Go To Project > Global Element > Create > General >select the configuration.yaml file create in step- 2)
4) To verify develop a simple flow with HTTP listener which has above entries. Put the logger that prints the values on console.
5) Additional info: Similarly, when you want to access this port in DataWeave you need to use p function
Refer to the exhibits.
The main flow contains an HTTP Request in the middle of the flow. The HTTP Listeners and HTTP Request use default configurations.
A web client submits a request to the main flow’s HTTP Listener that includes query parameters for the pedigree of the piano.
What values are accessible to the Logger component at the end of the main flow?
- A . payload
- B . payload
pedigree query params - C . payload producer var
- D . payload
pedigree query params producer var
C
Explanation:
In this case as outbound call is made using HTTP: POST /child, all attributes will be replaced by this invocation. Hence query parameter will not be accessible at logger. Hence correct answer is option 2
Refer to the exhibits.
The <when> expression for the Choice router needs to be written.
What is a valid <when> expression to route Mule events to the non-default flow?
- A . #[‘MuleSoft’ == paytoad.company]
- B . #[ company = "MuleSoft" ]
- C . #[ if( company = "MuleSoft") ]
- D . #[ if( ‘MuleSoff == payload.company) ]
Refer to the exhibits.
A Mule application contains a Choice router.
What is logged when the flow completes?
- A . EU
- B . US
- C . "REGION"
- D . ["US", "EU"]