MuleSoft Certified Developer - Level 1 (Mule 4) (Part 2)

Description

Digital Technologies Quiz on MuleSoft Certified Developer - Level 1 (Mule 4) (Part 2), created by Laura Sánchez on 13/12/2021.
Laura Sánchez
Quiz by Laura Sánchez, updated more than 1 year ago
Laura Sánchez
Created by Laura Sánchez over 2 years ago
405
0

Resource summary

Question 1

Question
Refer 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?
Answer
  • 0
  • 1
  • 2
  • 3

Question 2

Question
Refer 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?
Answer
  • 13
  • [11,12,13]
  • 33
  • 30
  • 10

Question 3

Question
Refer to the exhibit. What are the values of the counter and stepVar variables in the On Complete pase/after the Batch Job?
Answer
  • counter: 31, stepVar: 31
  • counter: 1, stepVar: 31
  • counter: 31, stepVar: null
  • counter: 1, stepVar: null

Question 4

Question
Refer to the exhibits. What is the output of the Logger component in the Batch Job?
Answer
  • [.333] [1]
  • [.333, 1]
  • [.333, .667, 1, 1.333]
  • [.333] [.667] [1] [1.333]

Question 5

Question
Refer 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?
Answer
  • Payload
  • Payload quantity var color query param
  • Payload quantity var
  • Payload color query param

Question 6

Question
Refer 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?
Answer
  • 100
  • The entire CSV file
  • An empty array
  • The database response

Question 7

Question
Refer 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?
Answer
  • For Each scope: 100, 200, 1000, 2000 Batch Step scope: 40, 300, 3000, 4000
  • For Each scope: 2000, 200, 1000, 100 Batch Step scope: 40, 300, 3000, 4000
  • For Each scope: 100, 200, 1000, 2000 Batch Step scope: 4000, 40, 3000, 300
  • For Each scope: 2000, 200, 1000, 100 Batch Step scope: 4000, 40, 3000, 300

Question 8

Question
Refer 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?
Answer
  • /accounts/ID
  • #[/accounts/ID]
  • /accounts/{ID}
  • /accounts/#[ID]

Question 9

Question
Refer 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?
Answer
  • A file named productUpdates.txt.bak containing the text “START”
  • A file named productUpdates.txt.bak containing the text “FINISHED”
  • A file named productUpdates.txt containing the text “START” A file named productUpdates.txt.bak containing the text “FINISHED”
  • A file named productUpdates.txt containing the text “START” A file named productUpdates.txt.bak containing the text “START”

Question 10

Question
Refer 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?
Answer
  • http://localhost:8081/api/users (POST username = max password = mule)
  • http://localhost:8081/api/users?username=max&password=mule (POST)
  • http://localhost:8081/api/users/max/mule (POST)
  • http://localhost:8081/api/users?username=headers&password=headers (POST username = username:max password = password:mule)

Question 11

Question
A 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?
Answer
  • %dw 2.0 output application/json import modules::Utility --- Utility:pascalize("max mule")
  • %dw 2.0 output application/json import modules::Utility --- pascalize("max mule")
  • %dw 2.0 output application/json import modules.Utility --- pascalize("max mule")
  • %dw 2.0 output application/json import modules.Utility --- Utility.pascalize("max mule")

Question 12

Question
Refer 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?
Answer
  • “Before”
  • Null
  • Validation Error
  • “After”

Question 13

Question
Refer 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?
Answer
  • { "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" }
  • "transaction_id", account_id, name, position "SS-4848-44KK-4YQ", "KA-382-SKD44", "Max Mule","sell"
  • "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"
  • { "transaction_id": "SS-4848-44KK-4YQ", "account_id": "KA-382-SKD44" "name": "Max Mule", "position": "sell", }

Question 14

Question
Refer 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?
Answer
  • “Other error”
  • “APP: API RESOURCE NOT FOUND”
  • “HTTP: NOT FOUND”
  • “Success – main flow”

Question 15

Question
Refer to the exhibit. How many private flows does APIkit generate from the RAML specification?
Answer
  • 1
  • 2
  • 3
  • 4

Question 16

Question
Refer to the exhibits. A web client submits a request to http://localhost:8081/flights What is the result at the end of the flow?
Answer
  • “String”
  • “Java”
  • “XML”
  • “Object”

Question 17

Question
Refer 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?
Answer
  • 1
  • 2
  • 3
  • 4

Question 18

Question
Refer 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?
Answer
  • “Error – main flow”
  • “Success – Begin main flow”
  • “Success – End main flow”
  • “Validate – Payload is an Integer”

Question 19

Question
Refer 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?
Answer
  • One file is written with an error message The response payload is the error message
  • Two 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.
  • Three files are created, one for each account object The response payload is a success message without any account objects
  • Two 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

Question 20

Question
Refer 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?
Answer
  • http: basepath: "api" host: "localhost" port: "8081"
  • http.host = localhost http.port = 8081
  • http: host = "localhost" port = "8081"
  • { http: basePath: "api", port: "8081", host: "localhost" }

Question 21

Question
A 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?
Answer
  • /{storeID}: get: queryParameter: department:
  • get: queryParameter: department: uriParameter: {storeID}:
  • get: uriParameter: {storeID}: queryParameter: department:
  • /department: get: uriParameter: storeID:

Question 22

Question
Refer 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?
Answer
  • "US"
  • "Domestic"
  • A Dataweave sintax error
  • "International"

Question 23

Question
Pick the component with which DataWeave is tightly integrated.
Answer
  • All APIs
  • Mule runtime
  • Exchange
  • Flow Designer

Question 24

Question
Refer 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?
Answer
  • *[order,customer]/status
  • ?[order,customer]/status
  • */status
  • *status

Question 25

Question
Refer 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:
Answer
  • 1
  • 2
  • 3
  • 5

Question 26

Question
What is output of Dataweave flatten function?
Answer
  • Object
  • Map
  • Array
  • LinkedHashMap

Question 27

Question
Refer to the exhibits. As a Mulesoft developer, what you would change in Database connector configuration to resolve this error?
Answer
  • Configure the correct host URL
  • Configure the correct database name
  • Configure the correct table name
  • Configure the correct JDBC driver

Question 28

Question
Refer 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?
Answer
  • white
  • red
  • blue
  • Error message

Question 29

Question
Refer to the exhibits. What payload and variable are logged at the end of the main flow?
Answer
  • [[5, 10, 15, 20], 1]
  • [[5, 10, 15, 20], 5]
  • [[Req5, Req10, Req15, Req20], 5]
  • [Req5Req10,Req15Req20, 5]

Question 30

Question
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 requests to the API proxy?
Answer
  • In the organization's public API portal in Anypoint Exchange, from an approved client application for the API proxy
  • In Anypoint Studio, from components generated by APIkit for the API specification
  • In Anypoint Studio, from components generated by Rest Connect for API specification
  • In Runtime Manager, from the properties tab of the deployed approved API proxy

Question 31

Question
Refer 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?
Answer
  • Change the method attribute value to '*'
  • Change the path attribute value to '/api/ship'
  • Change the allowed method attributes value to 'POST'
  • Change the protocol attribute value to 'HTTPS'

Question 32

Question
An 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?
Answer
  • The API interfaces are specified as macroservices with one API representing all the business logic of an existing and proven end to end solution
  • The API interfaces are specified at a granularity intended for developers to consume specific aspect of integration processes
  • The API implementation are built with standards using common lifecycle and centralized configuration management tools
  • The APIO implementations are monitored with common tools, centralized monitoring and security systems

Question 33

Question
Refer 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?
Answer
  • “HTTP:NOT_FOUND error”
  • “MAIN”
  • “Global Error Handler”
  • The MULE:EXPRESSION error’s message

Question 34

Question
Which of the below is not the mandatory configurations for HTTP Listener?
Answer
  • Path
  • Allowed methods
  • HTTP port in Connector Configuration
  • HTTP host in Connector Configuration

Question 35

Question
Refer to the exhibits. All three of the conditions for the Choice router are true. What messages are written in the application log?
Answer
  • Route 1
  • Route 2
  • Route1,Route 2
  • Route1,Route 2,Default

Question 36

Question
Refer 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?
Answer
  • Set the response Content-Type header to text/plain
  • Set the request Content-Type header to text/plain
  • Set the response Content-Type header to application/json
  • Set the request Content-Type header to application/json

Question 37

Question
Refer to the exhibits. What payload is logged at the end of the main flow?
Answer
  • order1order2order3order4
  • [1,2,3,4]
  • order4
  • [order1, order2, order3, order4]

Question 38

Question
Refer to the exhibits. The Batch Job processes, filters, and aggregates records. What is the outcome from the Logger component when the flow is executed?
Answer
  • [10,20] [30,40] [50,60]
  • [10,20,30,40,50,60]
  • [20,40] [60]
  • [20,40,60]

Question 39

Question
Refer to the exhibits. What is valid expression for the Choice router's When expression to route the events to the domesticShipping flow?
Answer
  • #[payload == 'US']
  • #[payload = 'US']
  • #[ if(payload == 'US')]
  • #[ if(payload = 'US')]

Question 40

Question
Refer to the exhibit . What is the correct syntax to add an employee ID as URI parameter in an HTTP Listener path?
Answer
  • ${employeeID}
  • {employeeID}
  • (employeeID)
  • #[employeeID]

Question 41

Question
Refer to exhibits. A web client submits a request to http://localhost:8081. What the structure of the payload at the end of the flow?
Answer
  • [ 'Banana', 'Apple']
  • { "0": "Banana", "1": "Apple" }
  • "attributes": ---, "payload": ['Banana', 'Apple'] }
  • { "0": { "attributes": ---, "payload": "Banana" } "1": { "attributes": ---, "payload": "Apple" } }

Question 42

Question
Refer 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?
Answer
  • 10
  • 50
  • 40
  • 20

Question 43

Question
A 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?
Answer
  • %dw 2.0 output application/json import modules::Utility --- Utility::encryptString("John Smith")
  • %dw 2.0 output application/json import modules::Utility --- encryptString("John Smith")
  • %dw 2.0 output application/json import modules.Utility --- encryptString("John Smith")
  • %dw 2.0 output application/json import modules.Utility --- Utility.encryptString("John Smith")

Question 44

Question
Refer 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?
Answer
  • 1
  • 2
  • 3
  • 4

Question 45

Question
A 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?
Answer
  • Select both the options 1) Attach project sources 2) Include project module and dependencies
  • No need to select any of the below options 1) Attach project sources 2) Include project module and dependencies
  • Select only below option 2) Include project module and dependencies
  • Select only below option 1) Attach project sources

Question 46

Question
What path setting is required for an HTTP Listener endpoint to route all requests to an APIKit router?
Answer
  • /*
  • /
  • /{}
  • /{*}

Question 47

Question
What should this endpoint return? http://dev.acme.com/api/patients?name=John&surname=Bell
Answer
  • Patient with name as John
  • Patient with surname as bell
  • Patients with either name as John or surname as Bell
  • Patients with name as John and surname as Bell

Question 48

Question
There 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?
Answer
  • Incoming array objects would be split into three and each part would be sent to one route each in sequential manner
  • Incoming array objects would be split into three and each part would be sent to one route each in parallel
  • Entire event would be sent to each route sequentially
  • Entire event would be sent to each route in parallel

Question 49

Question
What is the default port used by Mule application debugger configuration in Anypoint Studio?
Answer
  • 8082
  • 8080
  • 7777
  • 6666

Question 50

Question
As 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?
Answer
  • RAML file to define SOAP services
  • WSDL file
  • JSON file
  • plain text file documenting API's

Question 51

Question
What does C4E stands for in MuleSoft recommended IT operating model?
Answer
  • Centre for Empowerment
  • Centre for Engagement
  • Centre for Enablement
  • Centre for Excellence

Question 52

Question
What valid RAML retrieves details on a specific customer by its customerId as a URI parameter?
Answer
  • /customers: /get: /customerId:
  • /customers: /{customerId}: get:
  • /customers: /customerId: get:
  • /customers: get: /{customerId}:

Question 53

Question
Which of the below activity doesn't support parallel execution?
Answer
  • Scatter Gather Router
  • First Successful Router
  • Parallel For Each
  • Batch Job

Question 54

Question
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?
Answer
  • The HTTP Listener is listening on port 80
  • The HTTP Listener is listening on port 9090
  • The HTTP Listener is listening on port 8081
  • The HTTP Listener failed to bind to the port and is not listening for connections

Question 55

Question
What is correct syntax for a Logger component to output a message with the contents of a JSON Object payload?
Answer
  • #["The payload is " + payload]
  • #["The payload is " ++ payload]
  • The payload is: #[payload]
  • The payload is: $(payload)

Question 56

Question
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?
Answer
  • { port : p('db.port')}
  • { port : {db:port}}
  • { port : p['db.port']}
  • Application property cannot be accessed in Dataweave

Question 57

Question
What module and operation will throw an error if a Mule events payload is not number?
Answer
  • Filter modules Is Number operation
  • Validation modules Is Number operation
  • Validation modules Is not Number operation
  • None of these

Question 58

Question
A 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?
Answer
  • Account Type : #[message.inboundProperties.accountType]
  • Account Type : #[attributes.accountType]
  • Account Type : #[flowvars.accountType]
  • Account Type : #[vars.accountType]

Question 59

Question
Refer to the exhibits. Which of the Dataweave expression amongst the options transforms the input to the output?
Answer
  • payload.order.*item map {(value, index) -> { index: index, orderId: value.@orderId, itemName: value.item, lineItemPrice: (value.price as :number) * (value.quantity as :number) } }
  • payload.order.*item map {(value, index) -> { index: index, orderId: value.@orderId, itemName: value.item, lineItemPrice: (value.price as Number) * (value.quantity as Number) } }
  • payload.order.*item map {(value, index) -> { index: index, orderId: value.orderId, itemName: value.item, lineItemPrice: (value.price as :number) * (value.quantity as :number) } }
  • payload.order.*item map {(value, index) -> { index: index, orderId: value.orderId, itemName: value.item, lineItemPrice: (value.price as :number) * (value.quantity as Number) } }

Question 60

Question
The 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?
Answer
  • #%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
  • #%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
  • #%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
  • #%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

Question 61

Question
Refer to the exhibits. What is written to the records.csv when the flow executes?
Answer
  • Nothing
  • JSON payload
  • payload converted to csv
  • An error message

Question 62

Question
Refer to the exhibit. What is the output of Logger activity named payload in the On Complete phase?
Answer
  • The records are processed by all batch steps
  • The records are processed by last batch step
  • The original payload: [1,2,3]
  • Summary stadistics with No record data

Question 63

Question
What is the correct syntax to define and and call a function in Dataweave script?
Answer
  • fun addKV (object: Object, key: String, value: Any) = object ++ {(key):(value)} --- {hello: "world"} addKV ("hola, "mundo")
  • %function addKV (object: Object, key: String, value: Any) = object ++ {(key):(value)} --- ({"hello": "world"}, addKV "hola", "mundo")
  • %fun addKV (object: Object, key: String, value: Any) = object ++ {(key):(value)} --- addKV ({"hello": "world"}, "hola", "mundo")
  • %function addKV (object: Object, key: String, value: Any) = object ++ {(key):(value)} --- {"hello": "world"} addKV ("hola", "mundo")

Question 64

Question
What the correct RAML syntax which retrieves details on a specific order by its orderId as a URI parameter?
Answer
  • /orders: /{orderId}: get:
  • /orders: /get: /orderId
  • /orders: /orderId: get:
  • /orders: get: /{orderId}:

Question 65

Question
Refer 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?
Answer
  • #[db:username>
  • #[db.username]
  • ${db.username}
  • ${db:username}

Question 66

Question
Refer to the exhibits. What expression correctly specifies input parameters to pass the city and state values to SQL query?
Answer
  • #[inputParams: { city: "San Francisco", state: "CA" }]
  • #[inputParams: [ "San Francisco", "CA" ]]
  • #[[ "San Francisco", "CA" ]]
  • #[{ city: "San Francisco", state: "CA" }]

Question 67

Question
Refer 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?
Answer
  • lookup( "createCustomerObject", {first: "Alice, last: "Green"})
  • createCustomerObject({first: "Alice", last' "Green"})
  • createCustomerObject("Alice", "Green")
  • lookup( "createCustomerObject", ("Alice", "Green"))

Question 68

Question
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?
Answer
  • Select only Attach Project Sources only
  • Select both Attach Project Sources and Include project modules and dependencies
  • Select the Include project modules and dependencies option only
  • De-select both Attach Project Sources and Include project modules and dependencies

Question 69

Question
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)?
Answer
  • #["The city is" ++ payload.City]
  • The city is + #[payload.City]
  • The city is #[payload.City]
  • #[The city is ${payload.City}

Question 70

Question
What is minimal requirement in a flow for a Mule application to compile?
Answer
  • Event Source
  • Event Processors
  • Error handlers
  • Source and processors both

Question 71

Question
How can we scale deployed Mule application vertically on Cloudhub?
Answer
  • Changing worker size
  • Adding multiple workers
  • Mule applications can be scaled only horizontally
  • Option 1 and 2 both can be used

Question 72

Question
Which of the below is not the function of API Gateway?
Answer
  • Determine which traffic is authorized to pass through the API to backend services
  • Meter the traffic flowing through
  • Logs all transactions, collecting and tracking analytics data
  • Specify throttling, security and other policies

Question 73

Question
From which application Organization Administrators can approve/revoke/delete SLA tier access requests?
Answer
  • API Exchange
  • API Portal
  • API Gateway
  • API Manager

Question 74

Question
What is not true about application properties?
Answer
  • Application properties can be encrypted
  • Application properties can be overridden with system properties
  • Application properties can be defined in .yaml file only
  • Application properties provide easier way to manage configurable values

Question 75

Question
Which of the below is used by Mule application to manage dependencies which make sharing the projects lightweight and easier?
Answer
  • Configuration file
  • Global element
  • POM.xml
  • Cloudhub

Question 76

Question
In which of the below files, metadata stored in a Mule project?
Answer
  • Config.yaml file
  • POM.xml file
  • application-types.xml
  • Global Element

Question 77

Question
Which of the below is not a valid category for connector type?
Answer
  • Gold
  • Select
  • Premium
  • Community

Question 78

Question
Which file is used to define the interface contract to invoke a web service implemented as a SOAP service?
Answer
  • RAML
  • WSDL
  • JSON
  • OAS

Question 79

Question
Which of the following is invalid type of event processor which can be used as a router?
Answer
  • Choice
  • Round Robin
  • Pick First
  • First Successful

Question 80

Question
There 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?
Answer
  • Incoming array objects would be split into three and each part would be sent to one route each in parallel
  • Incoming array objects would be split into three and each part would be sent to one route each in sequential manner
  • Entire event would be sent to each route in parallel
  • Entire event would be sent to each route sequentially

Question 81

Question
What module and operation will throw an error if a Mule events payload is not null?
Answer
  • Filter module's Is Null operation
  • Validation module's Is Null operation
  • Validation module's Is not null operation
  • None of these

Question 82

Question
A 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?
Answer
  • All processing of the batch job stops
  • Event processing continues to the next batch step
  • Error is ignored
  • Batch is retried

Question 83

Question
Does a root element required when creating a XML response using Dataweave?
Answer
  • Depends on requirement
  • Not required
  • Always required
  • None of these

Question 84

Question
How would you debug Mule applications?
Answer
  • By deploying apps on production
  • Checking RAML specifications
  • Using debugger component
  • Use third party debugger application

Question 85

Question
What of the below is not a feature of API Notebooks?
Answer
  • API documentation
  • Creates a client for an API
  • Creates a mock service for an API
  • Performed authenticated live calls on a real server

Question 86

Question
Which of the module is imported automatically in Dataweave scripts?
Answer
  • dw::core
  • dw::System
  • dw::Runtime
  • dw::Crypto

Question 87

Question
A 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?
Answer
  • Set the Target value to the last retrived date_time value
  • Set the watermark column to the user_id column
  • Set the Target value to the last retrived user_id value
  • Set the watermark column to the date_time value

Question 88

Question
Refer 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?
Answer
  • { orderkey: "payload.order", addresskey: "vars.adress" }
  • { orderkey: "attributes.shippingaddress.order", addresskey: "payload" }
  • { orderkey: "payload.order", addresskey: "address" }
  • { orderkey: "attributes.order", addresskey: "vars.address" }

Question 89

Question
Refer 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?
Answer
  • Result INFOpayload
  • Result INFO{"student":{"name":"Anay","age":6}}
  • You called the function '++' with these arguments: 1: String ("INFO") 2: Object ({student: {name: "Anay" as String {class: "java.lang.String"},age: 6 as Numbe...)
  • Error: You evaluated inline expression # without ++

Question 90

Question
An API specification is designed using RAML . What is the next step to create a REST Connector from this API specification?
Answer
  • Add the specification to a Mule project's src/main/resources/api folder
  • Download the API specification and build the interface using APIkit
  • Implement the API specification using flow designer in Design Center
  • Publish the API specification to Anypoint Exchange

Question 91

Question
A Mule flow has three Set Variable transformers. What global data structure can be used to access the variables?
Answer
  • Mule event attributes
  • Mule application properties
  • Mule event message
  • Mule event

Question 92

Question
What is the minimum Cloudhub worker size that can be specified while deploying mule application?
Answer
  • 0.2 vCores
  • 0.5 vCores
  • 1.0 vCores
  • 0.1 vCores

Question 93

Question
Which Mule component provides a real-time, graphical representation of the APIs and mule applications that are running and discoverable?
Answer
  • API Notebook
  • Runtime Manager
  • Anypoint Visualizer
  • API Manager

Question 94

Question
What is the output of Dataweave Map operator?
Answer
  • Map
  • Object
  • String
  • Array

Question 95

Question
An 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?
Answer
  • Modify the API implementation to use auto-discovery to register with API Manager
  • Register the same API implementation in Runtime Manager to connect to API Manager
  • Deploy the same API implementation behind a VPC and configure the VPC to connect to API Manager
  • Upload the Mule application's JAR file to the API instance in API Manager

Question 96

Question
A 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?
Answer
  • Put the Database SELECT operation inside a cache scope
  • Put the Database SELECT operation inside a Message Enricher scope
  • Save the payload from the Database SELECT operation to a variable
  • Nothing as previous payloads are combined into the next payload

Question 97

Question
How can you call a subflow from Dataweave?
Answer
  • Not possible in Mule 4
  • Import function
  • Lookup function
  • Include function

Question 98

Question
Why would a Mule application use the ${http.port} property placeholder for its HTTP Listener port when it is deployed to CloudHub?
Answer
  • Allows clients to VPN directly to the application at the Mule application's configured HTTP port
  • Allows CloudHub to automatically change the HTTP port to allow external clients to connect to the HTTP Listener
  • Allows CloudHub to automatically register the application with API Manager
  • Allows MuleSoft Support to troubleshoot the application by connecting directly to the HTTP Listener

Question 99

Question
In 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?
Answer
  • The applications associated with the other APIs must be recoded
  • The other APIs must be updated to consume the updated product API
  • Nothing needs to be changed in the other APIs or their associated applications
  • The applications associated with the other APIs must be restarted

Question 100

Question
A 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?
Answer
  • Nowhere as global error handler is automatically used
  • The POM.xml file
  • A global element
  • A configuration properties file

Question 101

Question
What payload is returned by a Database SELECT operation that does not match any rows in database?
Answer
  • Exception
  • Empty array
  • FALSE
  • null

Question 102

Question
How can you call a flow from Dataweave?
Answer
  • include function
  • not allowed
  • tag function
  • lookup function

Question 103

Question
A Mule application configured with Autodiscovery implements an API. Where is governance enforced for policies defined for this Mule application?
Answer
  • In Runtime Manager
  • In API Exchange
  • In the Mule application
  • In API manager

Question 104

Question
A 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"
Answer
  • import libs.etl --- WebStore.loginUser("Todd.Pal@mulesoft.com")
  • import * libs::etl --- WebStore::loginUser("Todd.Pal@mulesoft.com")
  • import libs.etl.WebStore --- loginUser("Todd.Pal@mulesoft.com")
  • import * from libs::etl::WebStore --- loginUser("Todd.Pal@mulesoft.com")

Question 105

Question
In 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?
Answer
  • 8
  • 0
  • 2
  • 10

Question 106

Question
Refer 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?
Answer
  • The mule application fails to start There is URL path conflict because both HTTP Listeners are configured with same path
  • The mule application start successfully Web client requests can only be received at URI on port 2222 but not on port 3333
  • The mule application fails to start because of the port binding conflict as HTTP request also use same port i.e. 3333
  • The mule application start successfully Web client requests can be received at URI on port 2222 and on port 3333.

Question 107

Question
An 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?
Answer
  • Utilization counts of foundational assets in production applications
  • Correlation of each foundational asset with the counts of developers that download such asset
  • Correlation of key performance indicators (KPI) of production applications with foundational assets
  • Count how many Lines Of Busness (LoBs) onsumed each foundational asset

Question 108

Question
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?
Answer
  • "Blk"
  • "Green"
  • A timeout error
  • ["Blue", "Red", "Blk"]

Question 109

Question
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?
Answer
  • Total Records Processed: 3 Successful Records: 3 Failed Records: 0 payload: ["A","B","C"]
  • ["A","B","C"]
  • Total Records Processed: 3 Successful Records: 3 Failed Records: 0 payload: ["a","b","c"]
  • Total Records Processed: 3 Successful Records: 3 Failed Records: 0

Question 110

Question
Refer 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?
Answer
  • firstName
  • customer.firstName
  • vars."customer.firstName"
  • vars."customer"."firstName"

Question 111

Question
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?
Answer
  • A scope
  • A flow
  • An operation
  • An event source

Question 112

Question
Refer 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?
Answer
  • {amount=140} {amount=102} {step2amount=100}
  • {amount=140} {amount=102} {step2amount=100} {step2amount=40}
  • {amount=140} {amount=102} {step2amount=100} {step2amount=140}
  • {amount=140} {amount=102} {step2amount=100} {step2amount=140} {step2amount=102}

Question 113

Question
Refer 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
Answer
  • WHERE city := ${city} AND state := ${state}
  • WHERE city = attributes.city AND state = attributes.state
  • WHERE city = :city AND state = :state
  • WHERE city := city AND state := state

Question 114

Question
What DataWeave expression transforms the array a to the XML output?
Answer
  • trains: {( a map ((engId, index) -> train: { TrainNumber: engId } ) )}
  • trains: a map ((engId, index) -> train: { TrainNumber: engId } )
  • {( trains: a map ((engId, index) -> train: { TrainNumber: engId } ) )}
  • { trains: a map ((engId, index) -> train: { TrainNumber: engId } ) }

Question 115

Question
In 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?
Answer
  • 0
  • 20
  • 30
  • 10

Question 116

Question
What is the output payload in the On Complete phase
Answer
  • Summary statistics with NO record data
  • The records processed by the last batch step: [StepTwol, StepTwo2, StepTwo3]
  • The records processed by all batch steps: [StepTwostepOnel, stepTwostepOne2, StepTwoStepOne3]
  • The original payload: [1,2,31]
Show full summary Hide full summary

Similar

01 Types of Computers
mc_2871
Explore EV3
Rebbecca Stanley
RoboCup Challenge: Assessment
Rebbecca Stanley
Golf Putter
Ysabelle Glori
Untitled
lb_
Digital Technologies
lb_
To Kill A Mockingbird
tommarlin15
BIOLOGY B1 4
x_clairey_x
med chem 2
lola_smily
Health and Social Care
Kelsey Phillips
Truman Doctrine, Marshall Plan, Cominform and Comecon
Alina A