MCD – Level 1: MuleSoft Certified Developer – Level 1 (Mule 4) Topic 2
Question #: 133
Topic #: 1
Refer to the exhibit. The Mule application’s connectors are configured with property placeholders whose values are set in the config.yaml file.
What must be added to the Mule application to link the config.yaml file’s values with the property placeholders?
A. A dependency element in the pom.xml file
B. A file-config element in the acme-app.xml file
C. A propertiesFile key/value pair in the mule.artifact.json file
D. A configuration-properties element in the acme-app.xml file
Selected Answer: D
Question #: 153
Topic #: 1
Refer to the exhibits. Northern Trail Outfitters is developing a Mule application to process web client POST requests with payloads containing order information, including the user name and purchased items. The Shipping connector returns a shipping address for the input payload’s user name. The Shipping connector’s Shipping Address operation is configured with a target named shippingAddress.
The Set Payload transformer needs to set an item key equal to the items value from the original received payload and a shippinglnfo key equal to the Shipping Address operation’s response.
What is a straightforward way to properly configure the Set Payload transformer with the required data?
Input payload:
A.
B.
C.
D.
Selected Answer: B
Question #: 124
Topic #: 1
Refer to the exhibit. How should the WHERE clause be changed to set the city and state values from the configured input parameters?
A. WHERE city = :city AND state = :state
B. WHERE city = attributes.city AND state = attributes.state
C. WHERE city := ${city} AND state := ${state}
D. WHERE city = #[city] AND state = #[state]
Selected Answer: A
Question #: 120
Topic #: 1
Refer to the exhibits. The Mule application does NOT define any global error handlers.
The Validation component in the Try scope throws an error.
What response message is returned to a client request to the main flows HTTP Listener?
A. “Error –main flow”
B. “Error –Try scope”
C. “Success –main flow”
D. Validation Error
Selected Answer: C
Question #: 104
Topic #: 1
Refer to the exhibits.
The Set Payload transformer in the addItem child flow uses DataWeave to create an order object.
What is the correct DataWeave code for the Set Payload transformer in the createOrder flow to use the addItem child flow to add a router cal with the price of 100 to the order?
A. lookup( “addItem”, { price: “100”, item: “router”, itemType: “cable” } )
B. addItem( { payload: { price: “100”, item: “router”. itemType: “cable” } } )
C. lookup( “addItem”, { payload: { price: “100”, item: “router”, itemType: “cable” } } )
D. addItem( { price: “100”, item: “router”, itemType: “cable” } )
Selected Answer: A
Question #: 147
Topic #: 1
Refer to the exhibits. The my-app.xml file contains an Error Handler scope named “global-error-handler”.
The Error Handler scope needs to be set to be the default error handler for every flow in the Mule application.
Where and how should the value “global-error-handler” be added in the Mule project so that the Error Handler scope is the default error handler of the Mule application?
A. In the Validation folder, as the value of a global element in the error-handling.yaml file
B. In the my-app.xml file, as an attribute of a configuration element
C. In the pom.xml file, as the value of a global element
D. In the mule-artifact.json file, as the value of a key-value pair
Selected Answer: B
Question #: 132
Topic #: 1
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 request to the API proxy?
A. In Anypoint Studio, from components generated by APIkit for the API specification
B. In Anypoint Studio, from components generated by REST Connect for the API specification
C. In Runtime Manager, from the Properties tab of the deployed approved API proxy
D. In the organization’s pubic API portal in Anypoint Exchange, from an approved client application for the API proxy
Selected Answer: D
Question #: 155
Topic #: 1
Refer to the exhibit. This RAML fragment defines a Book data type that is used in a RAML API specification.
An API implementation is created for this RAML API specification.
What is valid JSON input for a request from a web client to an implementation of this RAML API specification?
A.
B.
C.
D.
Selected Answer: A
Question #: 150
Topic #: 1
Refer to the exhibits. The Mule application does NOT define any global error handlers.
The Validation component in the private flow throws an error.
What response message is returned to a web client request to the main flow’s HTTP Listener?
A. “Child error”
B. “Parent error”
C. “Validation Error”
D. “Parent completed”
Selected Answer: C
Question #: 144
Topic #: 1
A function named toUpper needs to be defined that accepts a string named userName and returns the string in uppercase.
What is the correct DataWeave code to define the toUpper function?
A. fun toUpper(username) = upper(userName)
B. var toUpper(username) = upper(userName)
C. fun toUpper(username) -> upper(userName)
D. var toUpper(username) -> upper(userName)
Selected Answer: A
Question #: 141
Topic #: 1
Refer to the exhibits. In the Choice router, the When expression for the domesticShipping route is set to “#[payload =’FR’]”
What is logged after the Choice router completes?
A. The result of the domesticShipping flow
B. A string with value “FR”
C. A DataWeaver syntax error
D. The result of the internationalShipping flow
Selected Answer: B
Question #: 139
Topic #: 1
Refer to the exhibits. The Set Variable transformer is set with value #[{ first: “Max”, last “Mule” }].
What is a valid DateWeave expression to set as the message attribute of the Logger to access the value “Max” from the Mule event?
A. vars.”customer”. “first”
B. customer.first
C. “customer.first”
D. vars.”customer.first”
Selected Answer: A
Question #: 135
Topic #: 1
What is the output type of the DataWeave flatten function?
A. Object
B. Array
C. Map
D. Java
Selected Answer: B
Question #: 134
Topic #: 1
A Mule project contains a DataWeave module file WebStore.dwl that defines a function named loginUser. The module file is located in the project’s src/main/resources/libs/dw folder.
What is correct DataWeave code to import all of the WebStore.dwl file’s functions and then call the loginUser function for the login “cindy.park@example.com”?
A. import libs.dw.WebStore
—
loginUser( “cindy.park@example.com” )
B. import * from libs::dw
—
WebStore::loginUser( “cindy.park@example.com” )
C. import * from libs::dw::WebStore
—
loginUser( “cindy.park@example.com” )
D. import libs.dw
—
WebStore.loginUser( “cindy.park@example.com” )
Selected Answer: C
Question #: 129
Topic #: 1
A REST Connect module is generated for a RAML specification, and then the REST Connect module is imported into a Mule application.
For each method of the RAML specification, what does the REST Connect module provide?
A. A flow
B. A scope
C. An event source
D. An operation
Selected Answer: D
Question #: 126
Topic #: 1
Following MuleSoft’s recommended API-led connectivity approach, an organization has created an application network. The organization now needs to create an API to transform, orchestrate, and aggregate data proved by other APIs in the application network. This API should be flexible enough to handle data from additional APIs in the future.
According to MuleSoft’s recommended API-led connectivity approach, what is the best layer for this new API?
A. Experience layer
B. Security layer
C. System layer
D. Process layer
Selected Answer: D
Question #: 110
Topic #: 1
Why would a Mule application use the ${http.port} property placeholder for its HTTP Listener port when it is deployed to CloudHub?
A. Allows CloudHub to automatically change the HTTP port to allow external clients to connect to the HTTP Listener
B. Allows clients to VPN directly to the application at the Mule application’s configured HTTP port
C. Allows MuleSoft Support to troubleshoot the application by connecting directly to the HTTP Listener
D. Allows CloudHub to automatically register the application with API Manager
Selected Answer: A
Question #: 109
Topic #: 1
An app team is developing a mobile banking app. It took them two months to create their own APIs to access transaction information from a central database. The app team later found out that another team had already built an API that accesses the transaction information they need.
According to MuleSoft, what organization structure could have saved the app team two months of development time?
A. Center for Enablement
B. Center of Excellence
C. Central API Review Board
D. MuleSoft Support Center
Selected Answer: A
Question #: 95
Topic #: 1
Refer to the exhibits.
A web client sends a GET request to the HTTP Listener.
What response message is returned to the web client?
A. “”
B. “End”
C. “Start”
D. “String is not blank”
Selected Answer: D
Question #: 89
Topic #: 1
By default, what happens to a file after it is read using an FTP connector Read operation?
A. The file is moved to a different folder
B. The file stays in the same folder unchanged
C. The file is renamed in the same folder
D. The file is deleted from the folder
Selected Answer: B
Question #: 81
Topic #: 1
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 application/octet-stream
B. Set a request header with the name Content-Type to a value of application/xml
C. Set a response header with the name Content-Type to a value of application/xml
D. Set a response header with the name Content-Type to a value of application/octet-stream
Selected Answer: B
Question #: 75
Topic #: 1
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?
A. Hello-HTTP-JMS2-Three
B. HTTP-JMS2-Three
C. Hello-JMS1-HTTP-JMS2-Three
D. Hello-HTTP-Three
Selected Answer: A
Question #: 18
Topic #: 1
What is the use of DevKit in Mule 4?
A. Facilitates communication between third-party systems and Mule applications.
B. No use.
C. Offers connector end user support in a few aspects of Mule app design.
D. Enables the development of Anypoint Connectors.
Selected Answer: B
Question #: 16
Topic #: 1
According to Mulesoft, how are Modern APIs treated as?
A. products
B. code
C. soap services
D. organizations
Selected Answer: D
Question #: 83
Topic #: 1
Refer to the exhibits.
The input array of strings is processed by the batch job that processes, filters, and aggregates the values.
What is the last message logged by the Logger component after the batch job completes processing?
A. [ [“A”, “C”, “D”], [“E”] ] B. [ “E” ] C. [ “D”, “E” ] D. [ “A”, “C”, “D”, “E” ]
Selected Answer: B
Question #: 31
Topic #: 1
What is NOT part of a Mule 4 event?
A. attributes
B. payload
C. inboundProperties
D. message
Selected Answer: C
Question #: 116
Topic #: 1
Refer to the exhibits.
The main flow contains a Flow Reference to the child flow.
A web client sends a GET request to the main flow’s HTTP Listener that includes a make query parameter.
What values are accessible in the child flow?
A. payload
B. payload make query param
C. payload model var
D. payload make query param model var
Selected Answer: D
Question #: 146
Topic #: 1
Refer to the exhibit. A Mule application configures a property placeholder file named config.yaml to set some property placeholders for an HTTP connector.
What is a valid properties placeholder file to set these values?
A. {
http:
basePath: “api”
port: “8081”
host: “localhost”
}
B. http.port = 8081
http.host = “localhost”
C. http:
basePath: “api”
port: “8081”
host: “localhost”
D. http:
port = “8081”
host = “localhost”
Selected Answer: C
Question #: 128
Topic #: 1
A Mule application’s HTTP Listener is configured with the HTTP protocol. The HTTP Listener’s port attribute is configured with a property placeholder named http.port. The Mule application sets the http.port property placeholder’s value to 9090.
Tho Mule application’s 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 application 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 8081.
B. The HTTP Listener is listening on port 9090.
C. The HTTP Listener failed to bind to the port and is not listening for connections.
D. The HTTP Listener is listening on port 80.
Selected Answer: A
Question #: 122
Topic #: 1
An organization is beginning to follow MuleSoft’s recommended API-led connectivity approach to use modern APIs to support the development and lifecycles of their integration solutions and to close the IT delivery gap.
What distinguishes between how modern APIs are organized in a MuleSoft-recommended API-led connectivity approach vs. other common enterprise integration solutions?
A. The API interfaces are specified as macroservices, with one API representing all the business logic of an existing and proven end-to-end integration solution.
B. The API implementations are monitored with common tools, centralized monitoring, and security systems.
C. The API interfaces are specified at a granularity intended for developers to consume specific aspects of integration processes.
D. The API implementations are built with standards using common lifecycle and centralized configuration management tools.
Selected Answer: C
Question #: 101
Topic #: 1
Refer to the exhibits.
What payload and quantity are logged at the end of the main flow?
A. [[order1, order2, order3, order4], 14] B. [[1,2,3,4], 10] C. [[1,2,3,4], 14] D. [order1order2order3order4, 14]
Selected Answer: C
Question #: 100
Topic #: 1
Refer to the exhibits.
The Validation component in the private flow throws an error.
What response message is returned to a web client request to the main flow’s HTTP Listener?
A. Error – private flow
B. Validation Error
C. Error – main flow
D. Success – main flow
Selected Answer: C
Question #: 97
Topic #: 1
Refer to the exhibits.
A web client sends a GET request to the HTTP Listener and the HTTP Request throws an error.
What payload and status code are returned to the web client.
A. Response body: “START” Default response status code: 200
B. Response body: “ERROR1” Default response status code: 200
C. Response body: “END” Default response status code: 200
D. Error response body: error.description Default error response status code: 500
Selected Answer: B