ExamGecko
Home Home / MuleSoft / MCD - Level 1

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

Question list
Search
Search

Related questions











An API instance of type API endpoint with API proxy is created in API manager using an API specification from Anypoint Exchange. The API instance is also configured with an API proxy that is deployed and running in CloudHub.

An SLA- based policy is enabled in API manager for this API instance.

Where can an external API consumer obtain a valid client ID and client secret to successfully send requests to the API proxy?

A.
In the organization's public API portal in Anypoint Exchange, from an approved client application for the API proxy
A.
In the organization's public API portal in Anypoint Exchange, from an approved client application for the API proxy
Answers
B.
In Anypoint Studio, from components generated by APIkit for the API specification
B.
In Anypoint Studio, from components generated by APIkit for the API specification
Answers
C.
In Anypoint Studio, from components generated by Rest Connect for API specification
C.
In Anypoint Studio, from components generated by Rest Connect for API specification
Answers
D.
In Runtime Manager, from the properties tab of the deployed approved API proxy
D.
In Runtime Manager, from the properties tab of the deployed approved API proxy
Answers
Suggested answer: A

Explanation:

* When a client application is registered in Anypoint Platform, a pair of credentials consisting of a client ID and client secret is generated.* When the client application requests access to an API, a contract is created between the application and that API.* An API that is protected with a Client ID Enforcement policy is accessible only to applications that have an approved contract.---------------------------------------------------------------------------------------------------------------------------------------------Answer:: In the organization's public API portal in Anypoint Exchange, from

What is the correct Syntax to add a customer ID as a URI parameter in the HTTP listener's path attribute?

A.
#[customerID]
A.
#[customerID]
Answers
B.
$[customerID]
B.
$[customerID]
Answers
C.
{customerID}
C.
{customerID}
Answers
D.
(customerID)
D.
(customerID)
Answers
Suggested answer: C

Explanation:

URL parameters are always accessed using { } like => {customerID}

What DataWeave expression transforms the array a to the XML output?

A.
1. 1. trains: 2. 2. {( 3. 3. a map ((engId, index) -> 4. 4. train: { 5. 5. TrainNumber: engId 6. 6. 7. 7. } 8. 8. ) 9. 9. )}
A.
1. 1. trains: 2. 2. {( 3. 3. a map ((engId, index) -> 4. 4. train: { 5. 5. TrainNumber: engId 6. 6. 7. 7. } 8. 8. ) 9. 9. )}
Answers
B.
1. 1. trains: 2. 2. a map ((engId, index) -> 3. 3. train: { 4. 4. TrainNumber: engId 5. 5. 6. 6. } 7. 7. )
B.
1. 1. trains: 2. 2. a map ((engId, index) -> 3. 3. train: { 4. 4. TrainNumber: engId 5. 5. 6. 6. } 7. 7. )
Answers
C.
1. 1. {( 2. 2. trains: 3. 3. a map ((engId, index) -> 4. 4. train: { 5. 5. TrainNumber: engId 6. 6. 7. 7. } 8. 8. ) 9. )}
C.
1. 1. {( 2. 2. trains: 3. 3. a map ((engId, index) -> 4. 4. train: { 5. 5. TrainNumber: engId 6. 6. 7. 7. } 8. 8. ) 9. )}
Answers
D.
1. 1. { 2. 2. trains: 3. 3. a map ((engId, index) -> 4. 4. train: { 5. 5. TrainNumber: engId 6. 6. 7. 7. } 8. 8. ) 9. }
D.
1. 1. { 2. 2. trains: 3. 3. a map ((engId, index) -> 4. 4. train: { 5. 5. TrainNumber: engId 6. 6. 7. 7. } 8. 8. ) 9. }
Answers
Suggested answer: A

Explanation:

For such questions always look for Syntax:

I call it 'Wrap the Map'

trains:

{(

When mapping array elements (JSON or JAVA) to XML, wrap the map operations in {(..)}

-{ } are defining the object

-( ) are transforming each element in the array as a key/value pair

A shopping API contains a method to look up store details by department

To get information for a particular store, web clients will submit requests with a query parameter named department and a URI parameter named storeld.

What is a valid RAML snippet that supports requests from web clients to get data for a specific storeld and department name?

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

Explanation:

Lets revise few concepts RAML which can help us to find the answer of this question.

URI Parameters

Lets have a look at below example.

/foos:

/{id}:

/name/{name}:

Here, the braces { } around property names define URI parameters. They represent placeholders in each URI and do not reference root-level RAML file properties as we saw above in thebaseUrideclaration. The added lines represent the resources/foos/{id}and/foos/name/{name}.

Query Parameters

Now we'll define a way to query thefooscollection using query parameters. Note that query parameters are defined using the same syntax that we used above for data types:

/foos:

get:

description: List all Foos matching query criteria, if provided;

otherwise list all Foos

queryParameters:

name?: string

ownerName?: string

Based on the above information , below is the only option which definesstoreidas uri parameter anddepartmentas query parameter.

/{storeId}:

get:

queryParameter:

department:

Refer to the exhibits The Mule application does NOT define any global error handlers.

A web client sends a POST request to the Multi application with this input payload The File Write operation throws a FILECONNECTIVITY error

What response message is returned to the web client?

A.
'ORDER NOT_CREATED'
A.
'ORDER NOT_CREATED'
Answers
B.
'OTHER ERROR'
B.
'OTHER ERROR'
Answers
C.
'File written'
C.
'File written'
Answers
D.
'FILECONNECTIVITY'
D.
'FILECONNECTIVITY'
Answers
Suggested answer: A
Total 235 questions
Go to page: of 24