ExamGecko
Home Home / MuleSoft / MCD - Level 1

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

Question list
Search
Search

Related questions











Refer to the exhibits.

<a target='_blank' href='http://localhost:8081/'>What is the response when a client submits a request to http://localhost:8081?</a>

A.
After
A.
After
Answers
B.
null
B.
null
Answers
C.
Before
C.
Before
Answers
D.
Validation error
D.
Validation error
Answers
Suggested answer: D

Explanation:

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

Here's specifically what is happening here:

1) Payload is successfully set to ''Before''

2) Is null validation is used which will pass the message only if payload is null. In this case as payload is not null, it creates an Error Object. Flow execution stops

#[error.description] = ''Validation error''

3) Because no error handler is defined, the Mule default error handler handles the error

4) ''Validation error'' is the error message returned to the requestor in the body of the HTTP request with HTTP Status Code: 500

Reference diagram:

Refer to the exhibits.

How many private flows does APIKIt generate from RAML specification?

A.
1
A.
1
Answers
B.
2
B.
2
Answers
C.
3
C.
3
Answers
D.
4
D.
4
Answers
Suggested answer: D

Explanation:

APIKIt Creates a separate flow for each HTTP method. Hence 4 private flows would be generated.

MuleSoft Documentation Referrence : https://docs.mulesoft.com/mule-runtime/4.3/build-application-from-api

Refer to the exhibits.

Mule application has an HTTP request configuration where host name is hardcoded. Organization is looking to move host and port values to configuration file. What valid expression can be used to so that HTTP configuration can pick the value from configuration file?

A.
#[training.host]
A.
#[training.host]
Answers
B.
${http.host}
B.
${http.host}
Answers
C.
#{training.host}
C.
#{training.host}
Answers
D.
${training.host}
D.
${training.host}
Answers
Suggested answer: D

Explanation:

Correct answer is ${training.host}

Mule application contains ActiveMQ JMS dependency. Mule application was compiled and run successfully in Anypoint Studio. The mule application must now be exported from Anypoint Studio and shared with other developer. What export options should be selected to create the smallest JAR file that can be imported into other developer's Anypoint Studio and run successfully?

A.
Select only Attach Project Sources only
A.
Select only Attach Project Sources only
Answers
B.
Select both Attach Project Sources and Include project modules and dependencies option
B.
Select both Attach Project Sources and Include project modules and dependencies option
Answers
C.
Select the Include project modules and dependencies option only
C.
Select the Include project modules and dependencies option only
Answers
D.
De-select both Attach Project Sources and Include project modules and dependencies option
D.
De-select both Attach Project Sources and Include project modules and dependencies option
Answers
Suggested answer: A

Explanation:

Correct answer is Select only Attach Project Sources only

You must keep the Attach Project Sources option selected to be able to import the packaged JAR file back into a Studio workspace.

Deselect the Include project modules and dependencies option.

This option skips bundling the actual modules and external dependencies required to run the Mule application in a Mule runtime engine, creating a lightweight JAR file package that does not include any dependencies specified in the Mule application's pom.xml file.

The generated JAR file is not a functional deployable archive and cannot be deployed to a Mule runtime engine, but instead offers a way to archive only the source files that make up the Mule application. This is the same as using the -lightWeightPackage flag when packaging using the Mule Maven Plugin and is useful if you want to distribute your project to other Studio installations because it only keeps a reference to all its dependencies. When you import a lightweight package into Studio, all your dependencies are automatically downloaded

MuleSoft Doc Ref : https://docs.mulesoft.com/studio/7.8/import-export-packages

Refer to exhibits.

What message should be added to Logger component so that logger prints 'The city is Pune' (Double quote should not be part of logged message)?

A.
#['The city is' ++ payload.City]
A.
#['The city is' ++ payload.City]
Answers
B.
The city is + #[payload.City]
B.
The city is + #[payload.City]
Answers
C.
The city is #[payload.City]
C.
The city is #[payload.City]
Answers
D.
#[The city is ${payload.City}
D.
#[The city is ${payload.City}
Answers
Suggested answer: C

Explanation:

Correct answer is The city is #[payload.City]

Answer can get confused with the option #['The city is' ++ payload.City] But note that this option will not print the space between is and city name. This will print The city isPune

Refer to the exhibits.

A web client submits the request to the HTTP Listener. What response message would be returned to web client?

A.
End
A.
End
Answers
B.
String is not blank
B.
String is not blank
Answers
C.
No response would be sent back to client and request will get errored out in Mule
C.
No response would be sent back to client and request will get errored out in Mule
Answers
D.
Start
D.
Start
Answers
Suggested answer: B

Explanation:

Correct answer is String is not blank.

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

Here's specifically what is happening here:

1) Payload is successfully set to ''Start''

2) The Is Blank String validator creates an Error Object because the payload is string 'Start'. Execution stops

#[error.description] = ''String is not blank''

3) Because no error handler is defined, the Mule default error handler handles the error. Remember, at its heart, the Mule Default Error handler is an error handling scope with just an on error propagate

4) ''String is not blank'' is the error message returned to the requestor in the body of the HTTP requestHTTP Status Code: 500

Reference Diagram:

What is minimal requirement in a flow for a Mule application to compile?

A.
Event Source
A.
Event Source
Answers
B.
Event Processors
B.
Event Processors
Answers
C.
Error handlers
C.
Error handlers
Answers
D.
Source and processors both
D.
Source and processors both
Answers
Suggested answer: B

Explanation:

Process section is must to get compiles. Process section must have one or more processors

What is the purpose of the api:router element in APIkit?

A.
Creates native connectors using a 3rd party Java library
A.
Creates native connectors using a 3rd party Java library
Answers
B.
Serves as an API implementation
B.
Serves as an API implementation
Answers
C.
Validates requests against RAML API specifications and routes them to API implementations
C.
Validates requests against RAML API specifications and routes them to API implementations
Answers
D.
Validates responses returned from API requests and routes them back to the caller
D.
Validates responses returned from API requests and routes them back to the caller
Answers
Suggested answer: C

Explanation:

The APIkit Router is a key message processor that validates requests against the provided definition, enriches messages (for example by adding default values to the messages) and routes requests to a particular flow. Also, the Router raises errors messages if errors occurs while routing, validating or processing the user request.

How we can scale deployed Mule application vertically on cloudhub?

A.
Changing worker size
A.
Changing worker size
Answers
B.
Adding multiple workers
B.
Adding multiple workers
Answers
C.
Mule applications can be scaled only horizontally
C.
Mule applications can be scaled only horizontally
Answers
D.
Option 1 and 2 both can be used
D.
Option 1 and 2 both can be used
Answers
Suggested answer: A

Explanation:

Mule applications can be scaled vertically by changing worker size. Mule applications can be scaled horizontally by adding more workers.

What is not the function of API Gateway ?

A.
Determine which traffic is authorized to pass through the API to backend services
A.
Determine which traffic is authorized to pass through the API to backend services
Answers
B.
Meter the traffic flowing through
B.
Meter the traffic flowing through
Answers
C.
Logs all transactions , collecting and tracking analytics data
C.
Logs all transactions , collecting and tracking analytics data
Answers
D.
Specify throttling , security and other policies
D.
Specify throttling , security and other policies
Answers
Suggested answer: D

Explanation:

Correct answer is Specify throttling , security and other policies

MuleSoft Doc Ref : https://docs.mulesoft.com/api-manager/2.x/api-gateway-capabilities-mule4

API Gateway is responsible for below functions.

1) Determine which traffic is authorized

2) Meter the traffic

3) Logs transaction

4) Apply throttling and other policies (Not specifying. These are specified in API Manager)

Total 235 questions
Go to page: of 24