MuleSoft MCD-Level-1 Exam
1) What is the output type of the DataWeave map operator?
- A. Object
- B. Array
- C. Map
- D. String
A Mule application contains a global error handler configured to catch any errors.
Where must the global error handler be specified so that the global error handler catches all errors from flows without their own error handlers?
- A. A global element
- B. The pom.xml file
- C. Nowhere, the global error handler is automatically used
- D. A configuration properties file
3) Refer to the exhibits. The Validation component in the private flow throws an error
What response message is returned to a client request to the main flow’s HTTP Listener?
A . Error – private flow
B . Error – main flow
C . Success – main flow
D . Validation Error
Answer: C
Q1: What MuleSoft API-led connectivity layer is intended to expose part of a backend database without business logic?
- experience
- data
- system
- process
- security
- PATCH
- PUT
- POST
- GET
- Create reusable APIs and assets designed to be consumed by other business units
- Create and manage high availability and fault tolerent services and infrastructure
- Central IT delivers complete point-to-point solutions with master data management
- Create and manage a collection of JMS messaging services and infrastructure
- Creates and manages discoverable assets to be consumed by line of business developers
- Centrally manages partners and consultants to implement line of business projects
- Implements line of business projects to enforce common security requirements
- Produces & manages API policies for line of business deployments
- RAML
- JSON
- WSDL
- YAML
- Design API RAML files in a graphical way
- Develop fully functional Mule applications in a hosted development environment
- Define API lifecycle management in a graphical way
- Design and mock Mule application templates that must be implemented using Anypoint Studio
- 1
- 2
- 4
- 8
- API Designer
- API MUnit
- API Exchange
- API Notebook
- API Specifications
- Mule Applications
- API Fragments
- API Portals
- inbound properties
- variables
- attributes
- payload
- required: false
- optional: true
- provided: false
- mandatory: false
What is the correct URL to perform a GET request to /patients?
#%RAML 1.0
title: ACME Medical API
baseUri: http://dev.acme.com/api
/patients:
get:
queryParameters:
year:
type: integer
- http://dev.acme.com/patients?year=2016
- http://dev.acme.com/api/patients
- http://dev.acme.com/patients
- http://dev.acme.com/api/patients?year=2016
What is the correct syntax for to reference the fragment?
- example: !include BankAccountsExample.raml
- example: #import BankAccountsExample.raml
- example: !include examples/BankAccountsExample.raml
- example: #import examples/BankAccountsExample.raml
There is an error underneath the flight_id resources in the GET method. What needs to be done to fix the problem?
1 #%RAML 1.0
2 title: American Flights API
3 version: 1.0
4
5 /flights:
6 get:
7
8 /{flight_id}:
9
10 get:
11
- remove blank line on row 9
- enclose flight_id with parenthesis () instead of curly braces {}
- indent "get" method under {flight_id} resource one level down (to the right)
- outdent /flight_id
What is the syntax to define this datatype in RAML?
<?xml version="1.0" encoding="UTF-8"?>
<music>
<collection>Classic Rock</collection>
<artists>
<artist>Deep Purple</artist>
<artist>Rainbow</artist>
</artists>
</music>
A.
music:
collection: Classic Rock
artists:
- Deep Purple
- Rainbow
B.
music:
collection: Classic Rock
artists:
Deep Purple
Rainbow
C.
music:
collection: Classic Rock
artists: Deep Purple, Rainbow
D.
music:
collection: Classic Rock
artists:
artist: Deep Purple
artist: Rainbow
- Routes requests to API implementations, but does not validate them against RAML API specifications
- Routes responses to the caller, but does not validate them against RAML API specifications
- Validates requests against RAML API specifications and routes them to API implementations
- Validates responses returned from API requests and routes them to the caller
- payload
- inbound properties
- outbound properties
- variables
- attachments
- A message processor in the Process section of a flow
- A message processor in the Source section of a flow
- An empty flow
- A message processor in both the Source and Process sections of a flow
What is the format of results returned from the database query?
- Java
- JSON
- XML
- CSV
- Rate limiting
- Throttling
- Cross-origin resource sharing
- LDAP security manager
- In an attribute in the main mule element
- In a Property Placeholder element
- As a -M-D placeholder when starting the Mule runtime
- In an attribute in the HTTP Listener element
- ${ssl.port}
- ${ssl.listener.port}
- ${https.listener.port}
- ${https.port}
- 8081
- 81
- 80
- 8080
- Determine which request message is allowed to pass through to the API backend service
- Apply runtime policies to enforce governance
- Measure the traffic flowing through to the API backend service
- Determine which response message is allowed to pass back from the API backend service
- new outbound properties are added from the HTTP response headers
- previous outbound properties are passed through unchanged
- outbound properties are replaced with all the previous inbound properties
- all previous outbound properties are removed
- Variable
- Set Payload
- Property
- Record Variable
- Attachment
A web client makes a request to this API implementation at http://acme.com/customers/CA.
What is the correct MEL expression to retrieve the value CA?
- #[message.payload.inboundProperties.'http.query.params'.state]
- #[message.inboundProperties.'http.uri.params'.state]
- #[message.payload.inboundProperties.state]
- #[message.inboundProperties.state]
- Attachments
- Outbound properties
- Session variables
- Payload
- Inbound properties
- Flow variables
- The flow variable is accessible in childFlow but is immutable
- The flow variable is accessible in childFlow, can be changed, and changes are seen back in parentFlow
- The flow variable is NOT accessible in childFlow
- The flow variable is accessible in childFlow, can be changed, but changes are NOT seen back in parentFlow
- It can have its own exception strategy
- It is executed synchronously
- An external client can send messages directly to it
- It must be in the same configuration file as the parent flow
- Queued-asynchronous
- Synchronous
- Non-blocking
- Thread-per-processor
- Queued-thread-per-processor
- Put the Mule applications in the same Anypoint Platform environment
- Put the Mule applications in the same Anypoint Platform business group
- Put the Mule applications in the same non-default Mule domain
- Put the Mule applications in the same default Mule domain
- As headers
- As query parameters
- As URI parameters
- In the message payload
- As attachments
- As flow variables
How are fromCurrency and toCurrency set in the flow in order to call the conversionRate operation using a Web Service Consumer component?
- In two flow variables
- As outbound properties
- As inbound properties
- In the message payload
- As attachments
- RAML
- WSDL
- JSON
- OAS
- Set URI parameters in the HTTP Request component
- Set inbound properties before the HTTP Request component
- Set query parameters in the HTTP Request component
- Set outbound properties before the HTTP Request component
- To all exceptions whose conditions evaluate to true
- To the first exception strategy whose condition evaluates to true
- To the first exception strategy whose condition evaluates to true and to the default exception strategy
- To the first exception strategy whose condition evaluates to true and to the global exception strategy
- In a configuration global element in any Mule configuration XML file
- In the mule-app.properties file
- As an attribute of one or more flow configuration elements in one or more Mule configuration XML files
- As an attribute of a global exception strategy
- As a JVM system environment variable
- To find the first true condition, then routes the message to that and all subsequent target message processors.
- To select a set of target message processors to which to route the same message
- To find the first true condition, then routes the message to the matched Choice target message processor
- To select from the responses after routing the message to every Choice target message processor
- An array of JSON objects
- An array of array objects
- An object that contains JSON objects
- The last JSON object
- The entire message is sent to each route and processed sequentially
- The message is split and different pieces are routed and processed in parallel
- The message is split and different pieces are routed and processed sequentially
- The entire message is sent to each route and processed in parallel
- The Mule application stops
- The message is replayed from the start of the flow
- The message is passed to subsequent message processors
- All subsequent message processors are skipped
- Is Number validator
- Is Not Number validator
- Is Number filter
- Is Not Number filter
- Outbound property
- Inbound property
- Payload
- Attachment
- Flow variable
- Async scope
- Message source
- For Each scope
- Message Enricher scope
- In a session variable
- In an outbound property
- In an inbound property
- In a flow variable
- In a header
- The file is moved to /mule/output
- The file is deleted from the input directory, but is not moved anywhere
- The file is moved to /tmp
- The file stays in the input directory
- Input
- Load and Dispatch
- Process Records
- On Complete
- The payload is changed to the modified payload
- The modified payload is stored in a flow variable
- The modified payload is stored as an inbound property
- The payload returns to the original payload
- The modified payload is stored as an outbound property
- Continues to the third batch step
- Stops processing the entire batch job
- Retries the second batch step
- Retries the first batch step
- In a single batch step, but not in the other batch steps
- In all batch steps, but not in the On Complete phase
- In the message source, each batch step, and the On Complete phase
- In all batch steps, and the On Complete phase
Refer to the exhibit.

The default scope in choice router recursively calls the color flow.
A web client sends a PUT request to the HTTP listener with payload Blue.
What response is returned to the web client?
Refer to the exhibits.

The mule application is debugged in Anypoint Studio and stops at the breakpoint as shown in below exhibit.
What is the value of the payload displayed in the debugger at this breakpoint?
Refer to the exhibits.


The Batch job processes an array of strings.
What information is logged by the logger component after the batch job scope completes processing of the input payload?
Refer to the exhibits.


Set paylaod transformer is set the firstName and lastName of the customer as shown in below images.
What is the correct Dataweave expression which can be added in message attribute of a Logger activity to access firstName (which in this case is Madhav) from the incoming event?
A REST connect module is generated for a RAML specification. and then the rest connect module is imported in mule application in Anypoint Studio. For each method of the RAML specification , what does the REST connect module provide?




































Comments
Post a Comment