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

Descrição

Digital Technologies Quiz sobre MuleSoft Certified Developer - Level 1 (Mule 4) (Part 2), criado por Laura Sánchez em 13-12-2021.
Laura Sánchez
Quiz por Laura Sánchez, atualizado more than 1 year ago
Laura Sánchez
Criado por Laura Sánchez quase 3 anos atrás
691
0

Resumo de Recurso

Questão 1

Questão
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?
Responda
  • 0
  • 1
  • 2
  • 3

Questão 2

Questão
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?
Responda
  • 13
  • [11,12,13]
  • 33
  • 30
  • 10

Questão 3

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

Questão 4

Questão
Refer to the exhibits. What is the output of the Logger component in the Batch Job?
Responda
  • [.333] [1]
  • [.333, 1]
  • [.333, .667, 1, 1.333]
  • [.333] [.667] [1] [1.333]

Questão 5

Questão
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?
Responda
  • Payload
  • Payload quantity var color query param
  • Payload quantity var
  • Payload color query param

Questão 6

Questão
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?
Responda
  • 100
  • The entire CSV file
  • An empty array
  • The database response

Questão 7

Questão
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?
Responda
  • 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

Questão 8

Questão
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?
Responda
  • /accounts/ID
  • #[/accounts/ID]
  • /accounts/{ID}
  • /accounts/#[ID]

Questão 9

Questão
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?
Responda
  • 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”

Questão 10

Questão
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?
Responda
  • 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)

Questão 11

Questão
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?
Responda
  • %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")

Questão 12

Questão
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?
Responda
  • “Before”
  • Null
  • Validation Error
  • “After”

Questão 13

Questão
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?
Responda
  • { "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", }

Questão 14

Questão
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?
Responda
  • “Other error”
  • “APP: API RESOURCE NOT FOUND”
  • “HTTP: NOT FOUND”
  • “Success – main flow”

Questão 15

Questão
Refer to the exhibit. How many private flows does APIkit generate from the RAML specification?
Responda
  • 1
  • 2
  • 3
  • 4

Questão 16

Questão
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?
Responda
  • “String”
  • “Java”
  • “XML”
  • “Object”

Questão 17

Questão
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?
Responda
  • 1
  • 2
  • 3
  • 4

Questão 18

Questão
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?
Responda
  • “Error – main flow”
  • “Success – Begin main flow”
  • “Success – End main flow”
  • “Validate – Payload is an Integer”

Questão 19

Questão
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?
Responda
  • 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

Questão 20

Questão
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?
Responda
  • 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" }

Questão 21

Questão
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?
Responda
  • /{storeID}: get: queryParameter: department:
  • get: queryParameter: department: uriParameter: {storeID}:
  • get: uriParameter: {storeID}: queryParameter: department:
  • /department: get: uriParameter: storeID:

Questão 22

Questão
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?
Responda
  • "US"
  • "Domestic"
  • A Dataweave sintax error
  • "International"

Questão 23

Questão
Pick the component with which DataWeave is tightly integrated.
Responda
  • All APIs
  • Mule runtime
  • Exchange
  • Flow Designer

Questão 24

Questão
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?
Responda
  • *[order,customer]/status
  • ?[order,customer]/status
  • */status
  • *status

Questão 25

Questão
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:
Responda
  • 1
  • 2
  • 3
  • 5

Questão 26

Questão
What is output of Dataweave flatten function?
Responda
  • Object
  • Map
  • Array
  • LinkedHashMap

Questão 27

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

Questão 28

Questão
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?
Responda
  • white
  • red
  • blue
  • Error message

Questão 29

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

Questão 30

Questão
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?
Responda
  • 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

Questão 31

Questão
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?
Responda
  • 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'

Questão 32

Questão
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?
Responda
  • 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

Questão 33

Questão
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?
Responda
  • “HTTP:NOT_FOUND error”
  • “MAIN”
  • “Global Error Handler”
  • The MULE:EXPRESSION error’s message

Questão 34

Questão
Which of the below is not the mandatory configurations for HTTP Listener?
Responda
  • Path
  • Allowed methods
  • HTTP port in Connector Configuration
  • HTTP host in Connector Configuration

Questão 35

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

Questão 36

Questão
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?
Responda
  • 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

Questão 37

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

Questão 38

Questão
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?
Responda
  • [10,20] [30,40] [50,60]
  • [10,20,30,40,50,60]
  • [20,40] [60]
  • [20,40,60]

Questão 39

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

Questão 40

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

Questão 41

Questão
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?
Responda
  • [ 'Banana', 'Apple']
  • { "0": "Banana", "1": "Apple" }
  • "attributes": ---, "payload": ['Banana', 'Apple'] }
  • { "0": { "attributes": ---, "payload": "Banana" } "1": { "attributes": ---, "payload": "Apple" } }

Questão 42

Questão
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?
Responda
  • 10
  • 50
  • 40
  • 20

Questão 43

Questão
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?
Responda
  • %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")

Questão 44

Questão
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?
Responda
  • 1
  • 2
  • 3
  • 4

Questão 45

Questão
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?
Responda
  • 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

Questão 46

Questão
What path setting is required for an HTTP Listener endpoint to route all requests to an APIKit router?
Responda
  • /*
  • /
  • /{}
  • /{*}

Questão 47

Questão
What should this endpoint return? http://dev.acme.com/api/patients?name=John&surname=Bell
Responda
  • 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

Questão 48

Questão
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?
Responda
  • 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

Questão 49

Questão
What is the default port used by Mule application debugger configuration in Anypoint Studio?
Responda
  • 8082
  • 8080
  • 7777
  • 6666

Questão 50

Questão
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?
Responda
  • RAML file to define SOAP services
  • WSDL file
  • JSON file
  • plain text file documenting API's

Questão 51

Questão
What does C4E stands for in MuleSoft recommended IT operating model?
Responda
  • Centre for Empowerment
  • Centre for Engagement
  • Centre for Enablement
  • Centre for Excellence

Questão 52

Questão
What valid RAML retrieves details on a specific customer by its customerId as a URI parameter?
Responda
  • /customers: /get: /customerId:
  • /customers: /{customerId}: get:
  • /customers: /customerId: get:
  • /customers: get: /{customerId}:

Questão 53

Questão
Which of the below activity doesn't support parallel execution?
Responda
  • Scatter Gather Router
  • First Successful Router
  • Parallel For Each
  • Batch Job

Questão 54

Questão
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?
Responda
  • 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

Questão 55

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

Questão 56

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

Questão 57

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

Questão 58

Questão
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?
Responda
  • Account Type : #[message.inboundProperties.accountType]
  • Account Type : #[attributes.accountType]
  • Account Type : #[flowvars.accountType]
  • Account Type : #[vars.accountType]

Questão 59

Questão
Refer to the exhibits. Which of the Dataweave expression amongst the options transforms the input to the output?
Responda
  • 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) } }

Questão 60

Questão
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?
Responda
  • #%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

Questão 61

Questão
Refer to the exhibits. What is written to the records.csv when the flow executes?
Responda
  • Nothing
  • JSON payload
  • payload converted to csv
  • An error message

Questão 62

Questão
Refer to the exhibit. What is the output of Logger activity named payload in the On Complete phase?
Responda
  • 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

Questão 63

Questão
What is the correct syntax to define and and call a function in Dataweave script?
Responda
  • 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")

Questão 64

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

Questão 65

Questão
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?
Responda
  • #[db:username>
  • #[db.username]
  • ${db.username}
  • ${db:username}

Questão 66

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

Questão 67

Questão
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?
Responda
  • lookup( "createCustomerObject", {first: "Alice, last: "Green"})
  • createCustomerObject({first: "Alice", last' "Green"})
  • createCustomerObject("Alice", "Green")
  • lookup( "createCustomerObject", ("Alice", "Green"))

Questão 68

Questão
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?
Responda
  • 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

Questão 69

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

Questão 70

Questão
What is minimal requirement in a flow for a Mule application to compile?
Responda
  • Event Source
  • Event Processors
  • Error handlers
  • Source and processors both

Questão 71

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

Questão 72

Questão
Which of the below is not the function of API Gateway?
Responda
  • 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

Questão 73

Questão
From which application Organization Administrators can approve/revoke/delete SLA tier access requests?
Responda
  • API Exchange
  • API Portal
  • API Gateway
  • API Manager

Questão 74

Questão
What is not true about application properties?
Responda
  • 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

Questão 75

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

Questão 76

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

Questão 77

Questão
Which of the below is not a valid category for connector type?
Responda
  • Gold
  • Select
  • Premium
  • Community

Questão 78

Questão
Which file is used to define the interface contract to invoke a web service implemented as a SOAP service?
Responda
  • RAML
  • WSDL
  • JSON
  • OAS

Questão 79

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

Questão 80

Questão
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?
Responda
  • 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

Questão 81

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

Questão 82

Questão
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?
Responda
  • All processing of the batch job stops
  • Event processing continues to the next batch step
  • Error is ignored
  • Batch is retried

Questão 83

Questão
Does a root element required when creating a XML response using Dataweave?
Responda
  • Depends on requirement
  • Not required
  • Always required
  • None of these

Questão 84

Questão
How would you debug Mule applications?
Responda
  • By deploying apps on production
  • Checking RAML specifications
  • Using debugger component
  • Use third party debugger application

Questão 85

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

Questão 86

Questão
Which of the module is imported automatically in Dataweave scripts?
Responda
  • dw::core
  • dw::System
  • dw::Runtime
  • dw::Crypto

Questão 87

Questão
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?
Responda
  • 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

Questão 88

Questão
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?
Responda
  • { orderkey: "payload.order", addresskey: "vars.adress" }
  • { orderkey: "attributes.shippingaddress.order", addresskey: "payload" }
  • { orderkey: "payload.order", addresskey: "address" }
  • { orderkey: "attributes.order", addresskey: "vars.address" }

Questão 89

Questão
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?
Responda
  • 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 ++

Questão 90

Questão
An API specification is designed using RAML . What is the next step to create a REST Connector from this API specification?
Responda
  • 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

Questão 91

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

Questão 92

Questão
What is the minimum Cloudhub worker size that can be specified while deploying mule application?
Responda
  • 0.2 vCores
  • 0.5 vCores
  • 1.0 vCores
  • 0.1 vCores

Questão 93

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

Questão 94

Questão
What is the output of Dataweave Map operator?
Responda
  • Map
  • Object
  • String
  • Array

Questão 95

Questão
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?
Responda
  • 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

Questão 96

Questão
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?
Responda
  • 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

Questão 97

Questão
How can you call a subflow from Dataweave?
Responda
  • Not possible in Mule 4
  • Import function
  • Lookup function
  • Include function

Questão 98

Questão
Why would a Mule application use the ${http.port} property placeholder for its HTTP Listener port when it is deployed to CloudHub?
Responda
  • 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

Questão 99

Questão
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?
Responda
  • 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

Questão 100

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

Questão 101

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

Questão 102

Questão
How can you call a flow from Dataweave?
Responda
  • include function
  • not allowed
  • tag function
  • lookup function

Questão 103

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

Questão 104

Questão
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"
Responda
  • 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")

Questão 105

Questão
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?
Responda
  • 8
  • 0
  • 2
  • 10

Questão 106

Questão
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?
Responda
  • 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.

Questão 107

Questão
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?
Responda
  • 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

Questão 108

Questão
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?
Responda
  • "Blk"
  • "Green"
  • A timeout error
  • ["Blue", "Red", "Blk"]

Questão 109

Questão
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?
Responda
  • 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

Questão 110

Questão
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?
Responda
  • firstName
  • customer.firstName
  • vars."customer.firstName"
  • vars."customer"."firstName"

Questão 111

Questão
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?
Responda
  • A scope
  • A flow
  • An operation
  • An event source

Questão 112

Questão
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?
Responda
  • {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}

Questão 113

Questão
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
Responda
  • 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

Questão 114

Questão
What DataWeave expression transforms the array a to the XML output?
Responda
  • 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 } ) }

Questão 115

Questão
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?
Responda
  • 0
  • 20
  • 30
  • 10

Questão 116

Questão
What is the output payload in the On Complete phase
Responda
  • 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]

Semelhante

01 Types of Computers
mc_2871
Explore EV3
Rebbecca Stanley
RoboCup Challenge: Assessment
Rebbecca Stanley
Golf Putter
Ysabelle Glori
Untitled
lb_
Digital Technologies
lb_
Como criar um Mapa Mental
Alessandra S.
ESTILOS DE LIDERANÇA
willian reis
Roma Antiga
Ighor Ferreira
Liderança e Gestão de Equipes
Pierre Curi
10 dicas para você lidar melhor com o seu tempo
vivi sousa