Refer to the exhibit.
What is the correct syntax to add a customer ID as a URI parameter in an HTTP Listener's
path attribute?
A. (customerlD)
B. {customerlD}
C. #[customerlD]
D. ${ customerID}
A company has an API to manage departments, with each department identified by a unique deptld. The API was built with RAML according to MuleSoft best practices. What is valid RAML to specify a method to update the details for a specific department?
A. Option A
B. Option B
C. Option C
D. Option D
URI parameter is basically used to identify a specific resource or resources
* Here we want to update details about specific department, so question is asking 'How to
use URI parameter' in RAML
* Correct answer is
/departments:
/{deptId}:
patch:
Reference: https://docs.mulesoft.com/design-center/design-common-problems-raml-10
Refer to the exhibit.
What is the correct DataWeave expression for the Set Payload transformer to call the
createCustomerObject flow with values for the first and last names of a new customer?
A.
lookupC createCustomerObJect( "Alice", "Green- ) )
B.
createCustomerObject( { first: "Alice", last: "Green" > )
C.
lookupf "createCustomerObject", { first: "Alice", last: "Green" > )
D.
createCustomerObject( "Alice", "Green")
lookupf "createCustomerObject", { first: "Alice", last: "Green" > )
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
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.
Which file is used to define the interface contract to invoke a web service implemented as a SOAP service?
A. RAML
B. WSDL
C. JSON
D. OAS
WSDL is used to define the contract in case of SOAP . RAML/OAS is used to REST services.
An API specification is designed using RAML. What is the next step to create a REST
Connector from this API specification?
A.
Download the API specification and build the interface using APIkit
B.
Publish the API specification to Any pointExchange
C.
Implement the API specification using flow designer in Design Center
D.
Add the specification to a Mule project's src/main/resources/api folder
Publish the API specification to Any pointExchange
What valid RAML retrieves details on a specific customer by its customerId as a URI parameter?
A. 1. /customers:
2. /get:
3. /customerId:
B. 1. /customers:
2. /{customerId}:
3. get:
C. 1. /customers:
2. /customerId:
3. get:
D. 1. /customers:
2. get:
3. /{customerId}:
Correct answer is below as it follows the correct syntax.
/customers:
/{customerId}:
get:
Refer to the exhibit.
What is the response to a web client request tohttp://localhost:8081?
A.
After
B.
before
C.
Validation Error
D.
null
Validation Error
Page 7 out of 29 Pages |
Mulesoft MCD-Level-1 Exam Questions Home | Previous |