ExamGecko
Home / MuleSoft / MCD - Level 1 / List of questions
Ask Question

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

List of questions

Question 81

Report
Export
Collapse

Refer to the exhibits.

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

What response message is returned to the web client?

MuleSoft MCD - Level 1 image Question 81 52636 09182024213609000000

''
''
'End'
'End'
'Start'
'Start'
'String is not blank'
'String is not blank'
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.

MuleSoft MCD - Level 1 image Question 81 explanation 52636 09182024213609000000

Bottom of Form

Top of Form

asked 18/09/2024
Sjoerd Kruit
32 questions

Question 82

Report
Export
Collapse

Refer to the exhibits.

MuleSoft MCD - Level 1 image Question 82 52637 09182024213609000000

MuleSoft MCD - Level 1 image Question 82 52637 09182024213609000000

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?

''FILE:CONNECnvnY'
''FILE:CONNECnvnY'
'ORDER:NOT_CREATED'
'ORDER:NOT_CREATED'
'OTHER ERROR'
'OTHER ERROR'
'File written'
'File written'
Suggested answer: B
asked 18/09/2024
Joost Huggers
34 questions

Question 83

Report
Export
Collapse

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?

MuleSoft MCD - Level 1 image Question 83 52638 09182024213609000000

lookup( 'addltern', { price: '100', item: 'router', itemType: 'cable' } )
lookup( 'addltern', { price: '100', item: 'router', itemType: 'cable' } )
addltem( { payload: { price: '100', item: 'router', itemType: 'cable' > } )
addltem( { payload: { price: '100', item: 'router', itemType: 'cable' > } )
lookup( 'addltem', { payload: { price: '100', item: 'router', itemType: 'cable' } > )
lookup( 'addltem', { payload: { price: '100', item: 'router', itemType: 'cable' } > )
addltem( { price: '100', item: 'router', itemType: 'cable' } )
addltem( { price: '100', item: 'router', itemType: 'cable' } )
Suggested answer: C
asked 18/09/2024
niels valk
41 questions

Question 84

Report
Export
Collapse

Refer to the exhibits.

MuleSoft MCD - Level 1 image Question 84 52639 09182024213609000000

MuleSoft MCD - Level 1 image Question 84 52639 09182024213609000000

A JSON payload is set in the Set Payload transformer.

What is logged by the Logger?

'String'
'String'
'Object'
'Object'
'Array'
'Array'
'JSON'
'JSON'
Suggested answer: C
asked 18/09/2024
Stefano Humphries
40 questions

Question 85

Report
Export
Collapse

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?

MuleSoft MCD - Level 1 image Question 85 52640 09182024213609000000

The enriched payload in JSON format
The enriched payload in JSON format
The enriched payload in XML format
The enriched payload in XML format
The enriched payload in CSV format
The enriched payload in CSV format
An error message
An error message
Suggested answer: A
asked 18/09/2024
Istvan Flach
30 questions

Question 86

Report
Export
Collapse

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?

MuleSoft MCD - Level 1 image Question 86 52641 09182024213609000000

Option A
Option A
Option B
Option B
Option C
Option C
Option D
Option D
Suggested answer: D
asked 18/09/2024
Ankitkumar Pandya
34 questions

Question 87

Report
Export
Collapse

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

MuleSoft MCD - Level 1 image Question 87 52642 09182024213609000000

A)

MuleSoft MCD - Level 1 image Question 87 52642 09182024213609000000

B)

MuleSoft MCD - Level 1 image Question 87 52642 09182024213609000000

C)

MuleSoft MCD - Level 1 image Question 87 52642 09182024213609000000

D)

MuleSoft MCD - Level 1 image Question 87 52642 09182024213609000000

Option A
Option A
Option B
Option B
Option C
Option C
Option D
Option D
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

} )

asked 18/09/2024
michiel van de belt
39 questions

Question 88

Report
Export
Collapse

Refer to the exhibits.

MuleSoft MCD - Level 1 image Question 88 52643 09182024213609000000

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?

payload
payload
payload make query param
payload make query param
payload model var
payload model var
payload make query param model var
payload make query param model var
Suggested answer: D
asked 18/09/2024
Adlian Akbar
36 questions

Question 89

Report
Export
Collapse

Refer to the exhibit.

MuleSoft MCD - Level 1 image Question 89 52644 09182024213609000000

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

'Array'
'Array'
'Object'
'Object'
'LinkedHashMap'
'LinkedHashMap'
'CaselnsensitrveHashMap'
'CaselnsensitrveHashMap'
Suggested answer: A
asked 18/09/2024
Tiziano Riezzo
47 questions

Question 90

Report
Export
Collapse

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)

MuleSoft MCD - Level 1 image Question 90 52645 09182024213609000000

B)

MuleSoft MCD - Level 1 image Question 90 52645 09182024213609000000

C)

MuleSoft MCD - Level 1 image Question 90 52645 09182024213609000000

D)

MuleSoft MCD - Level 1 image Question 90 52645 09182024213609000000

Option A
Option A
Option B
Option B
Option C
Option C
Option D
Option D
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:

asked 18/09/2024
Jose M Rivera Vega
34 questions
Total 235 questions
Go to page: of 24
Search

Related questions