ExamGecko
Home Home / MuleSoft / MCD - Level 1

MuleSoft MCD - Level 1 Practice Test - Questions Answers, Page 9

Question list
Search
Search

List of questions

Search

Related questions











Refer to the exhibits.

A web client sends a GET request to the HTTP Listener.

What response message is returned to the web client?

A.
''
A.
''
Answers
B.
'End'
B.
'End'
Answers
C.
'Start'
C.
'Start'
Answers
D.
'String is not blank'
D.
'String is not blank'
Answers
Suggested answer: B

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

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?

A.
''FILE:CONNECnvnY'
A.
''FILE:CONNECnvnY'
Answers
B.
'ORDER:NOT_CREATED'
B.
'ORDER:NOT_CREATED'
Answers
C.
'OTHER ERROR'
C.
'OTHER ERROR'
Answers
D.
'File written'
D.
'File written'
Answers
Suggested answer: B

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?

A.
lookup( 'addltern', { price: '100', item: 'router', itemType: 'cable' } )
A.
lookup( 'addltern', { price: '100', item: 'router', itemType: 'cable' } )
Answers
B.
addltem( { payload: { price: '100', item: 'router', itemType: 'cable' > } )
B.
addltem( { payload: { price: '100', item: 'router', itemType: 'cable' > } )
Answers
C.
lookup( 'addltem', { payload: { price: '100', item: 'router', itemType: 'cable' } > )
C.
lookup( 'addltem', { payload: { price: '100', item: 'router', itemType: 'cable' } > )
Answers
D.
addltem( { price: '100', item: 'router', itemType: 'cable' } )
D.
addltem( { price: '100', item: 'router', itemType: 'cable' } )
Answers
Suggested answer: C

Refer to the exhibits.

A JSON payload is set in the Set Payload transformer.

What is logged by the Logger?

A.
'String'
A.
'String'
Answers
B.
'Object'
B.
'Object'
Answers
C.
'Array'
C.
'Array'
Answers
D.
'JSON'
D.
'JSON'
Answers
Suggested answer: C

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?

A.
The enriched payload in JSON format
A.
The enriched payload in JSON format
Answers
B.
The enriched payload in XML format
B.
The enriched payload in XML format
Answers
C.
The enriched payload in CSV format
C.
The enriched payload in CSV format
Answers
D.
An error message
D.
An error message
Answers
Suggested answer: A

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?

A.
Option A
A.
Option A
Answers
B.
Option B
B.
Option B
Answers
C.
Option C
C.
Option C
Answers
D.
Option D
D.
Option D
Answers
Suggested answer: D

What DataWeave expression transforms the example XML input to the CSV output?

A)

B)

C)

D)

A.
Option A
A.
Option A
Answers
B.
Option B
B.
Option B
Answers
C.
Option C
C.
Option C
Answers
D.
Option D
D.
Option D
Answers
Suggested answer: A

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

} )

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?

A.
payload
A.
payload
Answers
B.
payload make query param
B.
payload make query param
Answers
C.
payload model var
C.
payload model var
Answers
D.
payload make query param model var
D.
payload make query param model var
Answers
Suggested answer: D

Refer to the exhibit.

The Database Select operation returns five rows from a database. What is logged by the Logger component?

A.
'Array'
A.
'Array'
Answers
B.
'Object'
B.
'Object'
Answers
C.
'LinkedHashMap'
C.
'LinkedHashMap'
Answers
D.
'CaselnsensitrveHashMap'
D.
'CaselnsensitrveHashMap'
Answers
Suggested answer: A

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)

A.
Option A
A.
Option A
Answers
B.
Option B
B.
Option B
Answers
C.
Option C
C.
Option C
Answers
D.
Option D
D.
Option D
Answers
Suggested answer: 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:

Total 235 questions
Go to page: of 24