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

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

Add to Whishlist

List of questions

Question 31

Report Export Collapse

Refer to the exhibits.

MuleSoft MCD - Level 1 image Question 31 52586 09182024213609000000

In the requestFlow 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 non-empty Java object
A non-empty Java object
The original XML payload
The original XML payload
null
null
The returned JSON response
The returned JSON response
Suggested answer: B
asked 18/09/2024
Jarrad Payne
43 questions

Question 32

Report Export Collapse

Refer to the exhibits.

MuleSoft MCD - Level 1 image Question 32 52587 09182024213609000000

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?

${training.host}
${training.host}
${training:host}
${training:host}
#[training:host]
#[training:host]
#[training.host]
#[training.host]
Suggested answer: A
Explanation:

Correct answer is ${training.host}

--------------------------------------------------------------------------------------------------------------------------------------------------

How to Configure Properties to Mule 4.X Platform?

1)Go to/src/main/resourcesproject directory.

2)Create a configuration file with the name configuration.yaml inside the newly created config folder.

MuleSoft MCD - Level 1 image Question 32 explanation 52587 09182024213609000000

3)Go To Project >Global Element> Create > General >select the configuration.yaml file create in step-2)

MuleSoft MCD - Level 1 image Question 32 explanation 52587 09182024213609000000

4)To verify develop a simple flow with HTTP listener which has above entries. Put the logger that prints the values on console.

MuleSoft MCD - Level 1 image Question 32 explanation 52587 09182024213609000000

5)Additional info:Similarly, when you want to access this port in DataWeave you need to use p function

MuleSoft MCD - Level 1 image Question 32 explanation 52587 09182024213609000000

asked 18/09/2024
MARIO CRUZ
44 questions

Question 33

Report Export Collapse

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?

MuleSoft MCD - Level 1 image Question 33 52588 09182024213609000000

payload
payload
payload pedigree query params
payload pedigree query params
payload producer var
payload producer var
payload pedigree query params producer var
payload pedigree query params producer var
Suggested answer: 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

asked 18/09/2024
OLUSEGUN IJAOLA
37 questions

Question 34

Report Export Collapse

Refer to the exhibits.

MuleSoft MCD - Level 1 image Question 34 52589 09182024213609000000

MuleSoft MCD - Level 1 image Question 34 52589 09182024213609000000

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?

#['MuleSoft' == paytoad.company]
#['MuleSoft' == paytoad.company]
#[ company = 'MuleSoft' ]
#[ company = 'MuleSoft' ]
#[ if( company = 'MuleSoft') ]
#[ if( company = 'MuleSoft') ]
#[ if( 'MuleSoff == payload.company) ]
#[ if( 'MuleSoff == payload.company) ]
Suggested answer: A
asked 18/09/2024
Carol Phelps
44 questions

Question 35

Report Export Collapse

Refer to the exhibits.

MuleSoft MCD - Level 1 image Question 35 52590 09182024213609000000

MuleSoft MCD - Level 1 image Question 35 52590 09182024213609000000

A web client sends a POST request to the HTTP Listener with the payload 'Hello-'. What response is returned to the web client?

What response is returned to the web client?

Hello- HTTP-] MS2-Three
Hello- HTTP-] MS2-Three
HTTP-JMS2-Three
HTTP-JMS2-Three
Helb-JMS1-HTTP-JMS2 -Three
Helb-JMS1-HTTP-JMS2 -Three
Hello-HTTP-Three
Hello-HTTP-Three
Suggested answer: A
asked 18/09/2024
Jason Content
28 questions

Question 36

Report Export Collapse

Refer to the exhibits.

MuleSoft MCD - Level 1 image Question 36 52591 09182024213609000000

The web client sends a POST request to the ACME Order API with an XML payload. An error is returned.

What should be changed in the request so that a success response code is returned to the web client?

Set a request header with the name Content-Type to a value of applicatron/octet-stream
Set a request header with the name Content-Type to a value of applicatron/octet-stream
Set a request header with the name Content-Type to a value of application/xml
Set a request header with the name Content-Type to a value of application/xml
Set a response header with the name Content-Type to a value of applkation/xml
Set a response header with the name Content-Type to a value of applkation/xml
Set a response header with the name Content-Type to a value of application/octet-stream
Set a response header with the name Content-Type to a value of application/octet-stream
Suggested answer: B
Explanation:

The HTTP 415 Unsupported Media Type client error response code indicates that the server refuses to accept the request because the payload format is in an unsupported format. The format problem might be due to the request's indicated Content-Type or Content-Encoding , or as a result of inspecting the data directly. As per RAML input is expected in application/xml.

Hence correct answer is Set a request header with the name Content-Type to a

asked 18/09/2024
Styliani Simoiridou
47 questions

Question 37

Report Export Collapse

Refer to the exhibits.

MuleSoft MCD - Level 1 image Question 37 52592 09182024213609000000

Each route in the Scatter-Gather sets the payload to the number shown in the label. What response is returned to a web client request to the HTTP Listener?

A)

MuleSoft MCD - Level 1 image Question 37 52592 09182024213609000000

B)

MuleSoft MCD - Level 1 image Question 37 52592 09182024213609000000

C)

MuleSoft MCD - Level 1 image Question 37 52592 09182024213609000000

D)

MuleSoft MCD - Level 1 image Question 37 52592 09182024213609000000

Option A
Option A
Option B
Option B
Option C
Option C
Option D
Option D
Suggested answer: D
Explanation:

Correct answer is as below. After all processing routes have finished execution, the Scatter-Gather component creates a new Mule event that combines all resulting Mule events from each route, and then passes the new Mule event to the next component in the flow.

{

'0': {

'attributes': ...,

'payload': '100'

},

'1': {

'attributes': ...,

'payload': '200'

}

}

Bottom of Form

asked 18/09/2024
Franco Santos
47 questions

Question 38

Report Export Collapse

A Utility.dwl file is located in a Mule project at src/main/resources/modules. The Utility.dwl hie defines a function named pascalize that reformats strings to pascal case.

What is the correct DataWeave to call the pascalize function in a Transform Message component?

A)

MuleSoft MCD - Level 1 image Question 38 52593 09182024213609000000

B)

MuleSoft MCD - Level 1 image Question 38 52593 09182024213609000000

C)

MuleSoft MCD - Level 1 image Question 38 52593 09182024213609000000

D)

MuleSoft MCD - Level 1 image Question 38 52593 09182024213609000000

Option A
Option A
Option B
Option B
Option C
Option C
Option D
Option D
Suggested answer: B
asked 18/09/2024
Chan Man Wong
49 questions

Question 39

Report Export Collapse

A RAML specification is defined to manage customers with a unique identifier for each customer record. What URI does MuleSoft recommend to uniquely access the customer identified with the unique ID 1234?

/customers?custid=true&custid=1234
/customers?custid=true&custid=1234
/customers/1234
/customers/1234
/customers/custid=1234
/customers/custid=1234
/customers?operation=get&custid=1234
/customers?operation=get&custid=1234
Suggested answer: B
Explanation:

URI parameter (Path Param) is basically used to identify a specific resource or resources . For eg : the URL to get employee details on the basis of employeeID will be GET /employees/{employeeID} where employees is resource and {employeeID} is URI parameter. Hence option 1is the correct answer

asked 18/09/2024
Djordje Novakovic
44 questions

Question 40

Report Export Collapse

Refer to the exhibits.

MuleSoft MCD - Level 1 image Question 40 52595 09182024213609000000

The orders.csv file is read, then processed to look up the orders in a database. The Mule application is debugged in Any point Studio and stops at the breakpoint.

What is the payload shown in the debugger at this breakpoint?

'none'
'none'
The entire CSV file
The entire CSV file
The database response
The database response
100
100
Suggested answer: D
asked 18/09/2024
Ryan John Ricafranca
54 questions
Total 235 questions
Go to page: of 24
Search

Related questions