ExamGecko
Home Home / MuleSoft / MCD - Level 1

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

Question list
Search
Search

Related questions











Refer to the exhibits.

A web client submits a request to below flow. What is the output at the end of the flow?

A.
String
A.
String
Answers
B.
Object
B.
Object
Answers
C.
Java
C.
Java
Answers
D.
XML
D.
XML
Answers
Suggested answer: A

Explanation:

String is the correct answer as XML is of an Object type String

What valid RAML retrieves details on a specific customer by its customerId as a URI parameter?

A.
1. /customers: 2. /get: 3. /customerId:
A.
1. /customers: 2. /get: 3. /customerId:
Answers
B.
1. /customers: 2. /{customerId}: 3. get:
B.
1. /customers: 2. /{customerId}: 3. get:
Answers
C.
1. /customers: 2. /customerId: 3. get:
C.
1. /customers: 2. /customerId: 3. get:
Answers
D.
1. /customers: 2. get: 3. /{customerId}:
D.
1. /customers: 2. get: 3. /{customerId}:
Answers
Suggested answer: B

Explanation:

Correct answer is below as it follows the correct syntax.

/customers:

/{customerId}:

get:

Refer to the exhibits.

The Mule Application is being debugged in Anypoint Studio and stops at breakpoint. What is the value of payload displayed in debugger at this breakpoint?

A.
Processing
A.
Processing
Answers
B.
Begin
B.
Begin
Answers
C.
Finished
C.
Finished
Answers
Suggested answer: B

Which of the below is not the mandatory configurations for HTTP Listener?

A.
Path
A.
Path
Answers
B.
Allowed methods
B.
Allowed methods
Answers
C.
HTTP port in Connector Configuration
C.
HTTP port in Connector Configuration
Answers
D.
HTTP host in Connector Configuration
D.
HTTP host in Connector Configuration
Answers
Suggested answer: B

Explanation:

Allowed methods is an optional configuration. If nothing is specified then all HTTP methods are supported.

Rest all are mandatory.

Which of the below activity doesn't support parallel execution?

A.
Scatter-Gather Router
A.
Scatter-Gather Router
Answers
B.
First Successful Router
B.
First Successful Router
Answers
C.
Parallel For Each
C.
Parallel For Each
Answers
D.
Batch job
D.
Batch job
Answers
Suggested answer: C

Explanation:

The First Successful router iterates through a list of configured processing routes until one of the routes executes successfully. This is sequential execution. In all other options mentioned in the question ,we can achieve parallel execution.

A Mule application's HTTP Listener is configured with the HTTP protocol. The HTTP listeners port attribute is configured with a property placeholder named http.port. The mule application sets the http.port property placeholder's value to 9090

The Mule application is deployed to CloudHub without setting any properties in the Runtime manager Properties tab and a log message reports the status of the HTTP listener after the Mule application deployment completes.

After the mule applications is deployed, what information is reported in the worker logs related to the port on which the Mule application's HTTP Listener listens?

A.
The HTTP Listener is listening on port 80
A.
The HTTP Listener is listening on port 80
Answers
B.
The HTTP Listener is listening on port 9090
B.
The HTTP Listener is listening on port 9090
Answers
C.
The HTTP Listener is listening on port 8081
C.
The HTTP Listener is listening on port 8081
Answers
D.
The HTTP Listener failed to bind to the port and is not listening for connections
D.
The HTTP Listener failed to bind to the port and is not listening for connections
Answers
Suggested answer: C

Explanation:

Cloudhub expose services on port 8081 and override value in http.port with this one .

Sample log in Runtime Manager is below

21:15:53.148 08/08/2021 Worker-0 ArtifactDeployer.start.01 INFO

Listening for connections on 'http://0.0.0.0:8081'

A flow contains an HTTP Listener as the event source. What is the DataWeave expression to log the Content-Type header using a Logger component?

A.
#['Content-Type: ' ++ attributes.headers.'content-type']
A.
#['Content-Type: ' ++ attributes.headers.'content-type']
Answers
B.
#['Content-Type: ' + headers.'content-type']
B.
#['Content-Type: ' + headers.'content-type']
Answers
C.
#['Content-Type: ' + attributes.headers.'content-type']
C.
#['Content-Type: ' + attributes.headers.'content-type']
Answers
D.
#['Content-Type: ' ++ headers.'content-type']
D.
#['Content-Type: ' ++ headers.'content-type']
Answers
Suggested answer: A

Explanation:

Option 1 is the only correct choice due to two reasons. 1) Concatenation is always with ++ sign and not with + sign which makes option 2 and 3 wrong 2) hearders can be accessed with attributes. headers and not with only headers which makes option 4 incorrect

A RAML example fragment named StudentExample.raml is placed in the examples folder in an API specification project. What is the correct syntax to reference the fragment?

A.
examples: !include StudentExample.raml
A.
examples: !include StudentExample.raml
Answers
B.
examples: #import StudentExample.raml
B.
examples: #import StudentExample.raml
Answers
C.
examples: !include examples/StudentExample.raml
C.
examples: !include examples/StudentExample.raml
Answers
D.
examples: #import examples/StudentExample.raml
D.
examples: #import examples/StudentExample.raml
Answers
Suggested answer: C

Explanation:

To include property. To keep the API definition concise, you can include external content, such as documentation, schemas, and frequently used patterns outside the definition itself. The parser interprets !include as if the content of the externally-hosted file or a URL were declared in-line.

To use the fragments in RAML you have to include the exact path(copy the path) of that fragment you want to use as shown below

Option 3 is the correct as correct syntax is

examples: !include examples/StudentExample.raml

As a part of requirement , application property defined below needs to be accessed as dataweave expression. What is the correct expression to map it to port value?

A.
{ port : p('db.port')}
A.
{ port : p('db.port')}
Answers
B.
{ port : {db:port}}
B.
{ port : {db:port}}
Answers
C.
{ port : p['db.port']}
C.
{ port : p['db.port']}
Answers
D.
Application property cannot be accessed in Dataweave
D.
Application property cannot be accessed in Dataweave
Answers
Suggested answer: A

Explanation:

Option 1 is the correct syntax

What module and operation will throw an error if a Mule events payload is not number ?

A.
Filter modules Is Number operation
A.
Filter modules Is Number operation
Answers
B.
Validation modules Is Number operation
B.
Validation modules Is Number operation
Answers
C.
Validation modules Is not Number operation
C.
Validation modules Is not Number operation
Answers
D.
None of these
D.
None of these
Answers
Suggested answer: B

Explanation:

Correct answer is Validation modules Is Number operation.

Mule 4 does not use filters anymore. The functionality provided by filters in Mule 3 can be achieved by using the Validation Module.

Total 235 questions
Go to page: of 24