Quiz
MuleSoft Certified Developer - Level 1 (Mule 4) (Part 2)
This quiz has a time limit, so it opens in the usual player.
Questions in this quiz (116)
1Refer to the exhibits. The Set Payload component sets the payload to a Map object (not an Array). The File Write operation writes out files based on this Map object.
How many files are written to the file system when the flow executes?- A0
- B1
- C2
- D3
2Refer to the exhibit. The payload [1,2,3] is passed to the Batch Job scope. In Batch_Step_1, a variable named batchStepPayload is set to the current payload. What is the value of the last log message after one batch job completes?
- A13
- B[11,12,13]
- C33
- D30
- E10
3Refer to the exhibit. What are the values of the counter and stepVar variables in the On Complete pase/after the Batch Job?
- Acounter: 31, stepVar: 31
- Bcounter: 1, stepVar: 31
- Ccounter: 31, stepVar: null
- Dcounter: 1, stepVar: null
4Refer to the exhibits. What is the output of the Logger component in the Batch Job?
- A[.333]
[1] - B[.333, 1]
- C[.333, .667, 1, 1.333]
- D[.333]
[.667]
[1]
[1.333]
- A[.333]
5Refer to the exhibit. The main Flow contains a Flow Reference for the child Flow. After a web client submits a request to http://localhost:8081/order?color=red, what values are accesible in the child Flow?
- APayload
- BPayload quantity var color query param
- CPayload quantity var
- DPayload color query param
6Refer to the exhibits. The orders.csv file is read and then processed to look up the orders in a database. The Mule application is debugged in Anypoint Studio and stops at the breakpoint. What payload is shown in the debugger at this breakpoint?
- A100
- BThe entire CSV file
- CAn empty array
- DThe database response
7Refer to the exhibits. The Set Payload transformer in the For Each scope and the Set Payload transformer in the Batch Job scope’s Batch expresión to sleep (pause processing) for the number of milliseconds in the current payload. The Batch Job scope’s block size is set to.
In what order are the payloads logged in the For Each scope and in the Batch Step scope?- AFor Each scope: 100, 200, 1000, 2000
Batch Step scope: 40, 300, 3000, 4000 - BFor Each scope: 2000, 200, 1000, 100
Batch Step scope: 40, 300, 3000, 4000 - CFor Each scope: 100, 200, 1000, 2000
Batch Step scope: 4000, 40, 3000, 300 - DFor Each scope: 2000, 200, 1000, 100
Batch Step scope: 4000, 40, 3000, 300
- AFor Each scope: 100, 200, 1000, 2000
8Refer to the exhibit. An HTTP Listener is being configured to accept requests from web clients on URLs like htttp://localhost:8081/accounts/10, where the number 10 can change to other numbers.
In order to capture the number in a parameter named ID, to what must the path of the HTTP Listener component be set?- A/accounts/ID
- B#[/accounts/ID]
- C/accounts/{ID}
- D/accounts/#[ID]
9Refer to the exhibits. The /daily folder exists, is currently empty, and files can be read and written to this folder by Anypoint Studio.This Mule application is run in Anypoint Studio, and then a file named productUpdate.txt containing the text “START” is written to the /daily folder.
What is in the /daily folder after the readUpdates Flow completes for the first time?- AA file named productUpdates.txt.bak containing the text “START”
- BA file named productUpdates.txt.bak containing the text “FINISHED”
- CA file named productUpdates.txt containing the text “START”
A file named productUpdates.txt.bak containing the text “FINISHED” - DA file named productUpdates.txt containing the text “START”
A file named productUpdates.txt.bak containing the text “START”
10Refer to the exhibit. The RAML file defines a method to create users.
What is the correct way to create a user in a web client?- Ahttp://localhost:8081/api/users
(POST
username = max
password = mule) - Bhttp://localhost:8081/api/users?username=max&password=mule
(POST) - Chttp://localhost:8081/api/users/max/mule
(POST) - Dhttp://localhost:8081/api/users?username=headers&password=headers
(POST
username = username:max
password = password:mule)
- Ahttp://localhost:8081/api/users
11A Utility.dwl file is located in a Mule Project at src/main/resources/modules. The Utility.dwl file defines a function named pascalize that reformats strings to pascal case.
What is valid DataWeave code to call the pascalize function in a Transform Message component?- A%dw 2.0
output application/json
import modules::Utility
---
Utility:pascalize("max mule") - B%dw 2.0
output application/json
import modules::Utility
---
pascalize("max mule") - C%dw 2.0
output application/json
import modules.Utility
---
pascalize("max mule") - D%dw 2.0
output application/json
import modules.Utility
---
Utility.pascalize("max mule")
- A%dw 2.0
12Refer to the exhibits. The Mule application does NOT define any global error handler elements.
What is the response to a web client request to http://localhost:8081?- A“Before”
- BNull
- CValidation Error
- D“After”
13Refer to the exhibits. When the Flow executes, the now() function in the Transform Message component returns “2021-08-26T13:32:10.64-07:00”.
What is written to the records.csv file when the flow executes?- A{
"transaction_id": "SS-4848-44KK-4YQ",
"account_id": "KA-382-SKD44"
"name": "Max Mule",
"position": "sell",
"write_date": "2021-08-26T13:32:10.64-07:00"
} - B"transaction_id", account_id, name, position
"SS-4848-44KK-4YQ", "KA-382-SKD44", "Max Mule","sell" - C"transaction_id", account_id, name, position, write_date
"SS-4848-44KK-4YQ", "KA-382-SKD44", "Max Mule","sell", "2021-08-26T13:32:10.64-07:00" - D{
"transaction_id": "SS-4848-44KK-4YQ",
"account_id": "KA-382-SKD44"
"name": "Max Mule",
"position": "sell",
}
- A{
14Refer to the exhibits. The Mule application does NOT Define any global handlers. The main flow is configured with three error handlers. A web client submits a request to the HTTP listener and the HTTP request throws an HTTP:NOT_FOUND error.
What response is returned?- A“Other error”
- B“APP: API RESOURCE NOT FOUND”
- C“HTTP: NOT FOUND”
- D“Success – main flow”
15Refer to the exhibit. How many private flows does APIkit generate from the RAML specification?
- A1
- B2
- C3
- D4
16Refer to the exhibits. A web client submits a request to http://localhost:8081/flights
What is the result at the end of the flow?- A“String”
- B“Java”
- C“XML”
- D“Object”
17Refer to the exhibits. The main flow of this Mule application uses an HTTP connector operation and two JMS connector operations. The Mule application is run and stars succesfully, and then a web client send a request to http://localhost:8081.
What payload is then returned to the web client from the Mule application?- A1
- B2
- C3
- D4
18Refer to the exhibits. A web client makes an HTTP GET request to the flow’s HTTP Listener. The Validation component throws an error with message “Validate - Payload is an Integer”.
What response message is returned to the web client?- A“Error – main flow”
- B“Success – Begin main flow”
- C“Success – End main flow”
- D“Validate – Payload is an Integer”
19Refer to the exhibits. In this Mule application files are written from inside a For Each scope. What is written to the file system when the Flow executes, and what payload is returned in the response to the web client?
- AOne file is written with an error message
The response payload is the error message - BTwo files are created, each containing a different object of one or two account objects
The response payload is a JSON formatted of two objects, where each object is a duplicate copy of the object of account written to each file. - CThree files are created, one for each account object
The response payload is a success message without any account objects - DTwo files are created, each containing a differrent array of one or two account objects.
The response payload is a JSON formatted object of account objects that is created in the Set Payload transformer
- AOne file is written with an error message
20Refer to the below exhibit. A Mule application configures a property placeholder file named
config.yaml to set some property placeholders for an HTTP connector. What is the valid properties placeholder file to set these values?- Ahttp:
basepath: "api"
host: "localhost"
port: "8081" - Bhttp.host = localhost
http.port = 8081 - Chttp:
host = "localhost"
port = "8081" - D{
http:
basePath: "api",
port: "8081",
host: "localhost"
}
- Ahttp:
21A shopping API contains a method to look up store details by department.
To get the information for a particular store, web clients will submit requests with a query parameter named department and uri parameter named storeId What is valid RAML snippet that supports requests from a web client to get a data for a specific storeId and department name?- A/{storeID}:
get:
queryParameter:
department: - Bget:
queryParameter:
department:
uriParameter:
{storeID}: - Cget:
uriParameter:
{storeID}:
queryParameter:
department: - D/department:
get:
uriParameter:
storeID:
- A/{storeID}:
22Refer to the exhibits. In the choice router, the When expression for the domestic shipping route is set to
"#[payload= "FR"]". What is the output of logger after the execution of choice router is completed?- A"US"
- B"Domestic"
- CA Dataweave sintax error
- D"International"
23Pick the component with which DataWeave is tightly integrated.
- AAll APIs
- BMule runtime
- CExchange
- DFlow Designer
24Refer to the exhibits.
The mule application implements a REST API that accepts GET request from two URL's which are as follows.
What path value should be set in HTTP listener configuration so that requests can be accepted for both these URL's using a single HTTP listener event source?
- A*[order,customer]/status
- B?[order,customer]/status
- C*/status
- D*status
25Refer to the exhibits. APIKit router is used to generate the flow components for RAML specification.
The Mule application must be available to REST clients using the two URL's. How many APIKit Router components are generated to handle requests to every endpoint defined in RAML specification?
Library.raml
/books
get:
post:
/order
get:
patch:
/members
get:- A1
- B2
- C3
- D5
26What is output of Dataweave flatten function?
- AObject
- BMap
- CArray
- DLinkedHashMap
27Refer to the exhibits. As a Mulesoft developer, what you would change in Database connector configuration to resolve this error?
- AConfigure the correct host URL
- BConfigure the correct database name
- CConfigure the correct table name
- DConfigure the correct JDBC driver
28Refer to the exhibits. In the color flow, both the variable named color and payload are set to "red".
An HTTP POST request is then sent to the decideColor flow's HTTP Listener. What is the payload value at the Logger component after the HTTP Request completes?- Awhite
- Bred
- Cblue
- DError message
29Refer to the exhibits. What payload and variable are logged at the end of the main flow?
- A[[5, 10, 15, 20], 1]
- B[[5, 10, 15, 20], 5]
- C[[Req5, Req10, Req15, Req20], 5]
- D[Req5Req10,Req15Req20, 5]
30An 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?
- AIn the organization's public API portal in Anypoint Exchange, from an approved client application for the API proxy
- BIn Anypoint Studio, from components generated by APIkit for the API specification
- CIn Anypoint Studio, from components generated by Rest Connect for API specification
- DIn Runtime Manager, from the properties tab of the deployed approved API proxy
31Refer to the exhibits. Client sends the request to ClientRequestFlow which calls ShippingFlow using HTTP Request activity. During E2E testing it is found that that HTTP:METHOD_NOT_ALLOWED error is thrown whenever client sends request to this flow. What attribute you would change in ClientRequestFlow to make this implementation work successfully?
- AChange the method attribute value to '*'
- BChange the path attribute value to '/api/ship'
- CChange the allowed method attributes value to 'POST'
- DChange the protocol attribute value to 'HTTPS'
32An organization is beginning to follow Mulesoft's recommended API led connectivity approach to use modern API to support the development and lifecycle of the integration solutions and to close the IT delivery gap. What distinguishes between how modern API's are organized in a MuleSoft recommended API-led connectivity approach as compared to other common enterprise integration solutions?
- AThe API interfaces are specified as macroservices with one API representing all the business logic of an existing and proven end to end solution
- BThe API interfaces are specified at a granularity intended for developers to consume specific aspect of integration processes
- CThe API implementation are built with standards using common lifecycle and centralized configuration management tools
- DThe APIO implementations are monitored with common tools, centralized monitoring and security systems
33Refer to the exhibits. The main Flow has an On Error Continue scope with type set to HTTP:NOT_FOUND. The Mule application configures globalErrorHandler as it’s default error handler. A web client posts a request to the HTTP Listener. The Transform Message component then throws a MULE:EXPRESSION error trying to convert the payload to application/xml.
What response message is returned to the web client?- A“HTTP:NOT_FOUND error”
- B“MAIN”
- C“Global Error Handler”
- DThe MULE:EXPRESSION error’s message
34Which of the below is not the mandatory configurations for HTTP Listener?
- APath
- BAllowed methods
- CHTTP port in Connector Configuration
- DHTTP host in Connector Configuration
35Refer to the exhibits. All three of the conditions for the Choice router are true. What messages are written in the application log?

- ARoute 1
- BRoute 2
- CRoute1,Route 2
- DRoute1,Route 2,Default
36Refer to the exhibit. Client received HTTP 415 error while trying to invoke Mule API. What should be changed on the client side to fix the 415 error?

- ASet the response Content-Type header to text/plain
- BSet the request Content-Type header to text/plain
- CSet the response Content-Type header to application/json
- DSet the request Content-Type header to application/json
37Refer to the exhibits. What payload is logged at the end of the main flow?

- Aorder1order2order3order4
- B[1,2,3,4]
- Corder4
- D[order1, order2, order3, order4]
38Refer to the exhibits. The Batch Job processes, filters, and aggregates records. What is the outcome from the Logger component when the flow is executed?

- A[10,20] [30,40] [50,60]
- B[10,20,30,40,50,60]
- C[20,40] [60]
- D[20,40,60]
39Refer to the exhibits. What is valid expression for the Choice router's When expression to route the events to the domesticShipping flow?

- A#[payload == 'US']
- B#[payload = 'US']
- C#[ if(payload == 'US')]
- D#[ if(payload = 'US')]
40Refer to the exhibit . What is the correct syntax to add an employee ID as URI parameter in an HTTP Listener path?

- A${employeeID}
- B{employeeID}
- C(employeeID)
- D#[employeeID]
41Refer to exhibits. A web client submits a request to http://localhost:8081. What the structure of the payload at the end of the flow?

- A[ 'Banana', 'Apple']
- B{
"0": "Banana",
"1": "Apple"
} - C"attributes": ---,
"payload": ['Banana', 'Apple']
} - D{
"0": {
"attributes": ---,
"payload": "Banana"
}
"1": {
"attributes": ---,
"payload": "Apple"
}
}
42Refer to exhibits. In the execution of the Scatter-Gather, the flow route completes after 10 seconds and the flow2 route completes in 40 seconds. How many seconds does it take for the Scatter-Gather to complete?

- A10
- B50
- C40
- D20
43A Utility.dwl is located in a Mule project at src/main/resources/modules. The Utility.dwl file defines a function named encryptString that encrypts a String What is the correct DataWeave to call the encryptString function in a Transform Message component?
- A%dw 2.0
output application/json
import modules::Utility
---
Utility::encryptString("John Smith") - B%dw 2.0
output application/json
import modules::Utility
---
encryptString("John Smith") - C%dw 2.0
output application/json
import modules.Utility
---
encryptString("John Smith") - D%dw 2.0
output application/json
import modules.Utility
---
Utility.encryptString("John Smith")
- A%dw 2.0
44Refer to the exhibits. The two Mule configuration files belong to the same Mule project. Each HTTP Listener is configured with the same host string. Port number , path and operation values are shown in display names. What is the minimum number of global elements that must be defined to support all these HTTP Listeners?

- A1
- B2
- C3
- D4
45A mule project contains MySQL database dependency. The project is exported from Anypoint Studio so that it can be deployed to Cloudhub. What export options needs to be selected to create the smallest deployable archive that will successfully deploy to Cloudhub?
- ASelect both the options
1) Attach project sources
2) Include project module and dependencies - BNo need to select any of the below options
1) Attach project sources
2) Include project module and dependencies - CSelect only below option
2) Include project module and dependencies - DSelect only below option
1) Attach project sources
- ASelect both the options
46What path setting is required for an HTTP Listener endpoint to route all requests to an APIKit router?
- A/*
- B/
- C/{}
- D/{*}
47What should this endpoint return? http://dev.acme.com/api/patients?name=John&surname=Bell
- APatient with name as John
- BPatient with surname as bell
- CPatients with either name as John or surname as Bell
- DPatients with name as John and surname as Bell
48There are three routes configured for Scatter-Gather and incoming event has a payload is an Array of three objects. How routing will take place in this scenario?
- AIncoming array objects would be split into three and each part would be sent to one route each in sequential manner
- BIncoming array objects would be split into three and each part would be sent to one route each in parallel
- CEntire event would be sent to each route sequentially
- DEntire event would be sent to each route in parallel
49What is the default port used by Mule application debugger configuration in Anypoint Studio?
- A8082
- B8080
- C7777
- D6666
50As a part of project requirement, you want to build an API for a legacy client. Legacy client can only consume SOAP webservices. Which type the interface documentation can be prepared to meet the requirement?
- ARAML file to define SOAP services
- BWSDL file
- CJSON file
- Dplain text file documenting API's
51What does C4E stands for in MuleSoft recommended IT operating model?
- ACentre for Empowerment
- BCentre for Engagement
- CCentre for Enablement
- DCentre for Excellence
52What valid RAML retrieves details on a specific customer by its customerId as a URI parameter?
- A/customers:
/get:
/customerId: - B/customers:
/{customerId}:
get: - C/customers:
/customerId:
get: - D/customers:
get:
/{customerId}:
- A/customers:
53Which of the below activity doesn't support parallel execution?
- AScatter Gather Router
- BFirst Successful Router
- CParallel For Each
- DBatch Job
54A 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?- AThe HTTP Listener is listening on port 80
- BThe HTTP Listener is listening on port 9090
- CThe HTTP Listener is listening on port 8081
- DThe HTTP Listener failed to bind to the port and is not listening for connections
55What is correct syntax for a Logger component to output a message with the contents of a JSON Object payload?
- A#["The payload is " + payload]
- B#["The payload is " ++ payload]
- CThe payload is: #[payload]
- DThe payload is: $(payload)
56As 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')}
- B{ port : {db:port}}
- C{ port : p['db.port']}
- DApplication property cannot be accessed in Dataweave
57What module and operation will throw an error if a Mule events payload is not number?
- AFilter modules Is Number operation
- BValidation modules Is Number operation
- CValidation modules Is not Number operation
- DNone of these
58A web client submits a request to http://localhost:8081?accountType=personal.
The query parameter is captured using a Set Variable transformer and stored to a variable named accountType. What is the correct Dataweave expression to log accountType?- AAccount Type : #[message.inboundProperties.accountType]
- BAccount Type : #[attributes.accountType]
- CAccount Type : #[flowvars.accountType]
- DAccount Type : #[vars.accountType]
59Refer to the exhibits. Which of the Dataweave expression amongst the options transforms the input to the output?

- Apayload.order.*item map {(value, index) -> {
index: index,
orderId: value.@orderId,
itemName: value.item,
lineItemPrice: (value.price as :number) * (value.quantity as :number)
}
} - Bpayload.order.*item map {(value, index) -> {
index: index,
orderId: value.@orderId,
itemName: value.item,
lineItemPrice: (value.price as Number) * (value.quantity as Number)
}
} - Cpayload.order.*item map {(value, index) -> {
index: index,
orderId: value.orderId,
itemName: value.item,
lineItemPrice: (value.price as :number) * (value.quantity as :number)
}
} - Dpayload.order.*item map {(value, index) -> {
index: index,
orderId: value.orderId,
itemName: value.item,
lineItemPrice: (value.price as :number) * (value.quantity as Number)
}
}
- Apayload.order.*item map {(value, index) -> {
60The API needs to be updated using the company wide standard for the Plan data type. The Object data type has already been published to Anypoint Exchange with the global reference mentioned below. ACME/DataTypes/PlanData.raml
What is valid RAML specification that reuses the Plan Data type?- A#%RAML 1.0
title: ACME Telecom API
types:
Plan: !include ACME/DataTypes/PlanDataType.raml
/plans:
get:
responses:
200:
body:
application/json:
type:Plan[]
example: !include ACME/Examples/PlanExamples.raml - B#%RAML 1.0
title: ACME Telecom API
types:
Plan: !reference ACME/DataTypes/PlanDataType.raml
/plans:
get:
responses:
200:
body:
application/json:
type:Plan[]
example: !reference ACME/Examples/PlanExamples.raml - C#%RAML 1.0
title: ACME Telecom API
dataTypes:
Plan: !reference ACME/DataTypes/PlanDataType.raml
/plans:
get:
responses:
200:
body:
application/json:
type:Plan[]
example: !reference ACME/Examples/PlanExamples.raml - D#%RAML 1.0
title: ACME Telecom API
dataTypes:
Plan: !include ACME/DataTypes/PlanDataType.raml
/plans:
get:
responses:
200:
body:
application/json:
type:Plan[]
example: !include ACME/Examples/PlanExamples.raml
- A#%RAML 1.0
61Refer to the exhibits. What is written to the records.csv when the flow executes?

- ANothing
- BJSON payload
- Cpayload converted to csv
- DAn error message
62Refer to the exhibit. What is the output of Logger activity named payload in the On Complete phase?

- AThe records are processed by all batch steps
- BThe records are processed by last batch step
- CThe original payload: [1,2,3]
- DSummary stadistics with No record data
63What is the correct syntax to define and and call a function in Dataweave script?
- Afun addKV (object: Object, key: String, value: Any) =
object ++ {(key):(value)}
---
{hello: "world"} addKV ("hola, "mundo") - B%function addKV (object: Object, key: String, value: Any) =
object ++ {(key):(value)}
---
({"hello": "world"}, addKV "hola", "mundo") - C%fun addKV (object: Object, key: String, value: Any) =
object ++ {(key):(value)}
---
addKV ({"hello": "world"}, "hola", "mundo") - D%function addKV (object: Object, key: String, value: Any) =
object ++ {(key):(value)}
---
{"hello": "world"} addKV ("hola", "mundo")
- Afun addKV (object: Object, key: String, value: Any) =
64What the correct RAML syntax which retrieves details on a specific order by its orderId as a URI parameter?
- A/orders:
/{orderId}:
get: - B/orders:
/get:
/orderId - C/orders:
/orderId:
get: - D/orders:
get:
/{orderId}:
- A/orders:
65Refer to the exhibits. What is valid text to set the user field in the Database connector configuration to the username value specified in the config.yaml file?

- A#[db:username>
- B#[db.username]
- C${db.username}
- D${db:username}
66Refer to the exhibits. What expression correctly specifies input parameters to pass the city and state values to SQL query?

- A#[inputParams: {
city: "San Francisco",
state: "CA"
}] - B#[inputParams: [
"San Francisco",
"CA"
]] - C#[[
"San Francisco",
"CA"
]] - D#[{
city: "San Francisco",
state: "CA"
}]
- A#[inputParams: {
67Refer to the exhibit. What is the correct DataWeave expression for the Set Payload transformer to call the createCustomerObject flow with values for the first and last names of a new customer?

- Alookup( "createCustomerObject", {first: "Alice, last: "Green"})
- BcreateCustomerObject({first: "Alice", last' "Green"})
- CcreateCustomerObject("Alice", "Green")
- Dlookup( "createCustomerObject", ("Alice", "Green"))
68Mule 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?
- ASelect only Attach Project Sources only
- BSelect both Attach Project Sources and Include project modules and dependencies
- CSelect the Include project modules and dependencies option only
- DDe-select both Attach Project Sources and Include project modules and dependencies
69Refer 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]
- BThe city is + #[payload.City]
- CThe city is #[payload.City]
- D#[The city is ${payload.City}
70What is minimal requirement in a flow for a Mule application to compile?
- AEvent Source
- BEvent Processors
- CError handlers
- DSource and processors both
71How can we scale deployed Mule application vertically on Cloudhub?
- AChanging worker size
- BAdding multiple workers
- CMule applications can be scaled only horizontally
- DOption 1 and 2 both can be used
72Which of the below is not the function of API Gateway?
- ADetermine which traffic is authorized to pass through the API to backend services
- BMeter the traffic flowing through
- CLogs all transactions, collecting and tracking analytics data
- DSpecify throttling, security and other policies
73From which application Organization Administrators can approve/revoke/delete SLA tier access requests?
- AAPI Exchange
- BAPI Portal
- CAPI Gateway
- DAPI Manager
74What is not true about application properties?
- AApplication properties can be encrypted
- BApplication properties can be overridden with system properties
- CApplication properties can be defined in .yaml file only
- DApplication properties provide easier way to manage configurable values
75Which of the below is used by Mule application to manage dependencies which make sharing the projects lightweight and easier?
- AConfiguration file
- BGlobal element
- CPOM.xml
- DCloudhub
76In which of the below files, metadata stored in a Mule project?
- AConfig.yaml file
- BPOM.xml file
- Capplication-types.xml
- DGlobal Element
77Which of the below is not a valid category for connector type?
- AGold
- BSelect
- CPremium
- DCommunity
78Which file is used to define the interface contract to invoke a web service implemented as a SOAP service?
- ARAML
- BWSDL
- CJSON
- DOAS
79Which of the following is invalid type of event processor which can be used as a router?
- AChoice
- BRound Robin
- CPick First
- DFirst Successful
80There are three routs configured for Scatter-Gather and incoming event has a payload is an Array of three objects. How routing will take place in this scenario?
- AIncoming array objects would be split into three and each part would be sent to one route each in parallel
- BIncoming array objects would be split into three and each part would be sent to one route each in sequential manner
- CEntire event would be sent to each route in parallel
- DEntire event would be sent to each route sequentially
81What module and operation will throw an error if a Mule events payload is not null?
- AFilter module's Is Null operation
- BValidation module's Is Null operation
- CValidation module's Is not null operation
- DNone of these
82A Batch Job scope has five batch steps. An event processor throws an error in the second batch step because the input data is incomplete. What is the default behavior of the batch job after the error is thrown?
- AAll processing of the batch job stops
- BEvent processing continues to the next batch step
- CError is ignored
- DBatch is retried
83Does a root element required when creating a XML response using Dataweave?
- ADepends on requirement
- BNot required
- CAlways required
- DNone of these
84How would you debug Mule applications?
- ABy deploying apps on production
- BChecking RAML specifications
- CUsing debugger component
- DUse third party debugger application
85What of the below is not a feature of API Notebooks?
- AAPI documentation
- BCreates a client for an API
- CCreates a mock service for an API
- DPerformed authenticated live calls on a real server
86Which of the module is imported automatically in Dataweave scripts?
- Adw::core
- Bdw::System
- Cdw::Runtime
- Ddw::Crypto
87A Database On Table Row listener retrieves data from a CUSTOMER table that contains a primary key user_id column and an increasing time_stamp column . Neither column allows duplicate values.
How should the listener be configured so it retrieves each row at most one time?- ASet the Target value to the last retrived date_time value
- BSet the watermark column to the user_id column
- CSet the Target value to the last retrived user_id value
- DSet the watermark column to the date_time value
88Refer to the exhibits. A mule application is being developed which will process POST requests coming from clients containing the name and order information. Sample request is as below
This main mule application calls a separate flow called as ShippingAddress which returns the address corresponding to the name of the user sent to it as input. Output of this ShippingAddress is stored in a target variable named address.
Next set of requirement is to have a setPayload transformer which will set below two values
1) orderkey which needs to set to be equal to the order element received in the original request payload.
2) addressKey which needs to be set to be equal to the address received in response of ShippingAddress flow
What is the straightforward way to properly configure the Set Payload transformer with the required data?- A{
orderkey: "payload.order",
addresskey: "vars.adress"
} - B{
orderkey: "attributes.shippingaddress.order",
addresskey: "payload"
} - C{
orderkey: "payload.order",
addresskey: "address"
} - D{
orderkey: "attributes.order",
addresskey: "vars.address"
}
- A{
89Refer to the payload. The Set payload transformer sets the payload to an object. The logger component's message attribute is configured with the string "Result #["INFO"++ payload]"
What is the output of logger component when this flow executes?- AResult INFOpayload
- BResult INFO{"student":{"name":"Anay","age":6}}
- CYou called the function '++' with these arguments:
1: String ("INFO")
2: Object ({student: {name: "Anay" as String {class: "java.lang.String"},age: 6 as Numbe...) - DError: You evaluated inline expression # without ++
90An API specification is designed using RAML . What is the next step to create a REST Connector from this API specification?
- AAdd the specification to a Mule project's src/main/resources/api folder
- BDownload the API specification and build the interface using APIkit
- CImplement the API specification using flow designer in Design Center
- DPublish the API specification to Anypoint Exchange
91A Mule flow has three Set Variable transformers. What global data structure can be used to access the variables?
- AMule event attributes
- BMule application properties
- CMule event message
- DMule event
92What is the minimum Cloudhub worker size that can be specified while deploying mule application?
- A0.2 vCores
- B0.5 vCores
- C1.0 vCores
- D0.1 vCores
93Which Mule component provides a real-time, graphical representation of the APIs and mule applications that are running and discoverable?
- AAPI Notebook
- BRuntime Manager
- CAnypoint Visualizer
- DAPI Manager
94What is the output of Dataweave Map operator?
- AMap
- BObject
- CString
- DArray
95An API implementation has been deployed to CloudHub and now needs to be governed. IT will not allocate additional vCore for a new Mule application to act as an API proxy. What is the next step to preserve the current vCore usage, but still allow the Mule application to be managed by API Manager?
- AModify the API implementation to use auto-discovery to register with API Manager
- BRegister the same API implementation in Runtime Manager to connect to API Manager
- CDeploy the same API implementation behind a VPC and configure the VPC to connect to API Manager
- DUpload the Mule application's JAR file to the API instance in API Manager
96A flow needs to combine and return data from two different data sources. It contains a Database SELECT operation followed by an HTTP Request operation. What is the method to capture both payloads so the payload from second request does not overwrite that from the first?
- APut the Database SELECT operation inside a cache scope
- BPut the Database SELECT operation inside a Message Enricher scope
- CSave the payload from the Database SELECT operation to a variable
- DNothing as previous payloads are combined into the next payload
97How can you call a subflow from Dataweave?
- ANot possible in Mule 4
- BImport function
- CLookup function
- DInclude function
98Why would a Mule application use the ${http.port} property placeholder for its HTTP Listener port when it is deployed to CloudHub?
- AAllows clients to VPN directly to the application at the Mule application's configured HTTP port
- BAllows CloudHub to automatically change the HTTP port to allow external clients to connect to the HTTP Listener
- CAllows CloudHub to automatically register the application with API Manager
- DAllows MuleSoft Support to troubleshoot the application by connecting directly to the HTTP Listener
99In an application network. If the implementation but not the interface of a product API changes, what needs to be done to the other APIs that consume the product API?
- AThe applications associated with the other APIs must be recoded
- BThe other APIs must be updated to consume the updated product API
- CNothing needs to be changed in the other APIs or their associated applications
- DThe applications associated with the other APIs must be restarted
100A mule application contains a global error handler configured to catch any errors. Where must the global error handler be specified so that global error handler catches all errors from flows without their own error handlers?
- ANowhere as global error handler is automatically used
- BThe POM.xml file
- CA global element
- DA configuration properties file
101What payload is returned by a Database SELECT operation that does not match any rows in database?
- AException
- BEmpty array
- CFALSE
- Dnull
102How can you call a flow from Dataweave?
- Ainclude function
- Bnot allowed
- Ctag function
- Dlookup function
103A Mule application configured with Autodiscovery implements an API. Where is governance enforced for policies defined for this Mule application?
- AIn Runtime Manager
- BIn API Exchange
- CIn the Mule application
- DIn API manager
104A Mule project contains a DataWeave module like WebStore.dwl that defines a function named loginUser which accepts login id (String) as an argument. The module file is located in the project's src/main/resources/libs/etl folder.
What is correct DataWeave code to import all of the WebStore.dwl file's functions and then call the loginUser function for the purpose of login for the below user?
"Todd.Pal@mulesoft.com"- Aimport libs.etl
---
WebStore.loginUser("Todd.Pal@mulesoft.com") - Bimport * libs::etl
---
WebStore::loginUser("Todd.Pal@mulesoft.com") - Cimport libs.etl.WebStore
---
loginUser("Todd.Pal@mulesoft.com") - Dimport * from libs::etl::WebStore
---
loginUser("Todd.Pal@mulesoft.com")
- Aimport libs.etl
105In the execution of scatter gather, the "sleep 2 sec" Flow Reference takes about 2 sec to complete, and the "sleep 8 sec" Flow Reference takes about 8 sec to complete.
About how many sec does it take from the Scatter-Gather is called until the Set Payload transformer is called?- A8
- B0
- C2
- D10
106Refer to the exhibits. The Mule application configures and uses two HTTP Listener global configuration elements.
Mule application is run in Anypoint Studio.
If the mule application starts correctly, what URI and port numbers can receive web client requests?
If the mule applications fails to start , what is the reason for the failure?- AThe mule application fails to start
There is URL path conflict because both HTTP Listeners are configured with same path - BThe mule application start successfully
Web client requests can only be received at URI on port 2222 but not on port 3333 - CThe mule application fails to start because of the port binding conflict as HTTP request also use same port i.e. 3333
- DThe mule application start successfully
Web client requests can be received at URI on port 2222 and on port 3333.
- AThe mule application fails to start
107An organization's Center for enablement (C4E) has built foundational assets (API specifications and implementation templates, common frameworks, and best practices guides) and published them to Anypoint Exchange.
What is a metric related to these foundational assets that helps the organization measure the success of it's C4E efforts?- AUtilization counts of foundational assets in production applications
- BCorrelation of each foundational asset with the counts of developers that download such asset
- CCorrelation of key performance indicators (KPI) of production applications with foundational assets
- DCount how many Lines Of Busness (LoBs) onsumed each foundational asset
108Refer 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?- A"Blk"
- B"Green"
- CA timeout error
- D["Blue", "Red", "Blk"]
109Refer 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?- ATotal Records Processed: 3
Successful Records: 3
Failed Records: 0
payload: ["A","B","C"] - B["A","B","C"]
- CTotal Records Processed: 3
Successful Records: 3
Failed Records: 0
payload: ["a","b","c"] - DTotal Records Processed: 3
Successful Records: 3
Failed Records: 0
- ATotal Records Processed: 3
110Refer to the exhibits. Set Variable 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?- AfirstName
- Bcustomer.firstName
- Cvars."customer.firstName"
- Dvars."customer"."firstName"
111A 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?
- AA scope
- BA flow
- CAn operation
- DAn event source
112Refer to the exhibits. The Batch Job scope contains two Batch Steps scopes with different accept expression.
The input payload is passed to the Batch Job scope.
After the entire payload is processed by the batch job scope , what messages have been logged by the Logger component?- A{amount=140}
{amount=102}
{step2amount=100} - B{amount=140}
{amount=102}
{step2amount=100}
{step2amount=40} - C{amount=140}
{amount=102}
{step2amount=100}
{step2amount=140} - D{amount=140}
{amount=102}
{step2amount=100}
{step2amount=140}
{step2amount=102}
- A{amount=140}
113Refer to the exhibit. How should be the where clause written for the configured input parameters in such a way that it achieves below SQL query?
SELECT * from accounts WHERE city=attributes.queryParams.city and state=attributes.queryParams.state- AWHERE city := ${city} AND state := ${state}
- BWHERE city = attributes.city AND state = attributes.state
- CWHERE city = :city AND state = :state
- DWHERE city := city AND state := state
114What DataWeave expression transforms the array a to the XML output?
- Atrains:
{(
a map ((engId, index) ->
train: {
TrainNumber: engId
}
)
)} - Btrains:
a map ((engId, index) ->
train: {
TrainNumber: engId
}
) - C{(
trains:
a map ((engId, index) ->
train: {
TrainNumber: engId
}
)
)} - D{
trains:
a map ((engId, index) ->
train: {
TrainNumber: engId
}
)
}
- Atrains:
115In the execution of the Scatter_Gather, the flow1 route completes after 10 seconds and the flow2 route completes after 20 seconds.
How many seconds does it take for the Scatter_Gather to complete?- A0
- B20
- C30
- D10
116What is the output payload in the On Complete phase
- ASummary statistics with NO record data
- BThe records processed by the last batch step: [StepTwol, StepTwo2, StepTwo3]
- CThe records processed by all batch steps: [StepTwostepOnel, stepTwostepOne2, StepTwoStepOne3]
- DThe original payload: [1,2,31]
Information
- Description
- Digital Technologies Quiz on MuleSoft Certified Developer - Level 1 (Mule 4) (Part 2), created by Laura Sánchez on 13/12/2021.
- Author
- Laura Sánchez
- Language
- English
- Views
- 1,171
- History
- Created on 13 Dec 2021 · updated on 18 Apr 2022
- Tags
- Rating
- No ratings yet Rate this quiz