MuleSoft MCD - Level 1 Practice Test - Questions Answers, Page 9
List of questions
Related questions
Question 81
Refer to the exhibits.
A web client sends a GET request to the HTTP Listener.
What response message is returned to the web client?
Explanation:
1. Set Payload ''Start''
2. 'Is Balnk String' Creates an Error object with #[error.description] =''String is not blank''
3. Default Error Handler catches and Propagates error
4. 'On Error Propogate' is 'RED IN RED OUT'. It Returns Status Code : 500 & #[error.description]
--------------------------------------------------------------------------------------------------------------------------
Correct answer isString is not blank.Because validation component will throw an error as payload is not blank.
Bottom of Form
Top of Form
Question 82
Refer to the exhibits.
A web client sends a POST request with the payload {'oid': '1000', 'itemid': 'AC200', 'qty': '4' } to the Mule application. The File Write operation throws a FILE:CONNECTIVITY error.
What response message is returned to the web client?
Question 83
Refer to the exhibits. The Set Payload transformer in the addltem child flow uses DataWeave to create an order object.
What is the correct DataWeave code for the Set Payload transformer in the createOrder flow to use the addltem child flow to add a router call with the price of 100 to the order?
Question 84
Refer to the exhibits.
A JSON payload is set in the Set Payload transformer.
What is logged by the Logger?
Question 85
Refer to the exhibits.
A web client sends sale data in a POST request to the Mule application. The Transform Message component then enrich the payload by prepending a vendor name to the sale data.
What is written to the sales.csv file when the flow executes?
Question 86
A Mule application contains an ActiveMQ JMS dependency. The Mule application was developed in Anypoint Studio and runs successfully in Anypoint Studio.
The Mule application must now be exported from Anypoint Studio and shared with another developer.
What export options create the smallest JAR file that can be imported into the other developer's Anypoint Studio and run successfully?
Question 87
What DataWeave expression transforms the example XML input to the CSV output?
A)
B)
C)
D)
Explanation:
Correct answer is as below. Attributes in the incoming xml payload are always accessed using @.Similarly *item is required as we have multiple items in the request
%dw 2.0
output application/csv
---
payload.sale.*item map ((value, index) -> {
index: index,
sale: value.@saleId,
itemName: value.desc,
itemPrice: (value.quantity) * (value.price),
item: value.@itemId
} )
Question 88
Refer to the exhibits.
The main flow contains a Flow Reference to the child flow.
A web client sends a GET request to the main flow's HTTP Listener that includes a make query parameter.
What values are accessible in the child flow?
Question 89
Refer to the exhibit.
The Database Select operation returns five rows from a database. What is logged by the Logger component?
Question 90
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)
B)
C)
D)
Explanation:
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:
Question