ExamGecko
Home Home / MuleSoft / MCD - Level 1

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

Question list
Search
Search

List of questions

Search

Related questions











Refer to the exhibits.

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.
A non-empty Java object
A.
A non-empty Java object
Answers
B.
The original XML payload
B.
The original XML payload
Answers
C.
null
C.
null
Answers
D.
The returned JSON response
D.
The returned JSON response
Answers
Suggested answer: B

Refer to the exhibits.

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?

A.
${training.host}
A.
${training.host}
Answers
B.
${training:host}
B.
${training:host}
Answers
C.
#[training:host]
C.
#[training:host]
Answers
D.
#[training.host]
D.
#[training.host]
Answers
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.

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

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

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

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
A.
payload
Answers
B.
payload pedigree query params
B.
payload pedigree query params
Answers
C.
payload producer var
C.
payload producer var
Answers
D.
payload pedigree query params producer var
D.
payload pedigree query params producer var
Answers
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

Refer to the exhibits.

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?

A.
#['MuleSoft' == paytoad.company]
A.
#['MuleSoft' == paytoad.company]
Answers
B.
#[ company = 'MuleSoft' ]
B.
#[ company = 'MuleSoft' ]
Answers
C.
#[ if( company = 'MuleSoft') ]
C.
#[ if( company = 'MuleSoft') ]
Answers
D.
#[ if( 'MuleSoff == payload.company) ]
D.
#[ if( 'MuleSoff == payload.company) ]
Answers
Suggested answer: A

Refer to the exhibits.

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?

A.
Hello- HTTP-] MS2-Three
A.
Hello- HTTP-] MS2-Three
Answers
B.
HTTP-JMS2-Three
B.
HTTP-JMS2-Three
Answers
C.
Helb-JMS1-HTTP-JMS2 -Three
C.
Helb-JMS1-HTTP-JMS2 -Three
Answers
D.
Hello-HTTP-Three
D.
Hello-HTTP-Three
Answers
Suggested answer: A

Refer to the exhibits.

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?

A.
Set a request header with the name Content-Type to a value of applicatron/octet-stream
A.
Set a request header with the name Content-Type to a value of applicatron/octet-stream
Answers
B.
Set a request header with the name Content-Type to a value of application/xml
B.
Set a request header with the name Content-Type to a value of application/xml
Answers
C.
Set a response header with the name Content-Type to a value of applkation/xml
C.
Set a response header with the name Content-Type to a value of applkation/xml
Answers
D.
Set a response header with the name Content-Type to a value of application/octet-stream
D.
Set a response header with the name Content-Type to a value of application/octet-stream
Answers
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

Refer to the exhibits.

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)

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:

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

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)

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: B

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?

A.
/customers?custid=true&custid=1234
A.
/customers?custid=true&custid=1234
Answers
B.
/customers/1234
B.
/customers/1234
Answers
C.
/customers/custid=1234
C.
/customers/custid=1234
Answers
D.
/customers?operation=get&custid=1234
D.
/customers?operation=get&custid=1234
Answers
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

Refer to the exhibits.

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?

A.
'none'
A.
'none'
Answers
B.
The entire CSV file
B.
The entire CSV file
Answers
C.
The database response
C.
The database response
Answers
D.
100
D.
100
Answers
Suggested answer: D
Total 235 questions
Go to page: of 24