Mulesoft Developer 1 ๐Ÿ†

Description

Quiz on Mulesoft Developer 1 ๐Ÿ†, created by jamal dt on 15/04/2024.
jamal dt
Quiz by jamal dt, updated 3 months ago
jamal dt
Created by jamal dt 3 months ago
153
0

Resource summary

Question 1

Question
What does the Mule runtime use to enforce policies and limit access to APIs?
Answer
  • API Manager
  • The proxy created by API Manager
  • The Mule runtime's embedded API Gateway
  • Anypoint Access Control

Question 2

Question
What statement is a part of MuleSoft's description of an application network?
Answer
  • Creates and manages high availability and fault tolerant services and infrastructure.
  • Creates reusable APIs and assets designed to be consumed by other business units.
  • Creates and manages a collection of JMS messaging services and infrastructure.
  • Leverages Central IT to deliver complete point-to-point solutions with master data management.

Question 3

Question
Why would you use SOAP instead of http?
Answer
  • If the architecture mandates.
  • It is up to the integration specialist.
  • Successful/retry logic for reliable messaging functionality.
  • It is part of agile methodology.

Question 4

Question
๐Ÿ† What DataWeave 2.0 type can be used as input to a map operation?
Answer
  • Array
  • Object
  • String
  • Map

Question 5

Question
What is the main purpose of flow designer in Design Center?
Answer
  • To design and develop fully functional Mule applications in a hosted development environment.
  • To design API RAML files in a graphical way.
  • To design and mock Mule application templates that must be implemented using Anypoint Studio.
  • To define API lifecycle management in a graphical way.

Question 6

Question
What is NOT part of a Mule 4 event?
Answer
  • attributes
  • payload
  • inboundProperties
  • message

Question 7

Question
What is the purpose of API autodiscovery?
Answer
  • Enables API Manager to discover the published API on Anypoint Exchange.
  • Allows a deployed Mule application to connect with API Manager to download policies and act as its own API proxy.
  • Enables an API to be directly managed in API Manager.
  • Allows the Mule application to be automatically discovered on Anypoint Exchange.

Question 8

Question
What is the trait name you would use for specifying client credentials in RAML?
Answer
  • headers
  • client-id
  • client-id-required
  • we do not specify in RAML

Question 9

Question
What is the DataWeave expression to log the Content-Type header using a Logger component?
Answer
  • #["Content-Type: " ++ attributes.headers.'content-type']
  • #["Content-Type: " ++ headers.'content-type']
  • #["Content-Type: " + headers.'content-type']
  • #["Content-Type: " + attributes.headers.'content-type']

Question 10

Question
What is the use of API Notebooks?
Answer
  • None of these
  • Test Policies
  • Test API functions
  • Test RAML

Question 11

Question
A flow has a JMS Publish consume operation followed by a JMS Publish operation. Both of these operations have the default configurations. Which operation is asynchronous and which one is synchronous?
Answer
  • Publish consume: Synchronous. Publish: Asynchronous.
  • Publish consume: Asynchronous. Publish: Synchronous.
  • Publish consume: Asynchronous. Publish: Asynchronous.
  • Publish consume: Synchronous. Publish: Synchronous.

Question 12

Question
What asset can NOT be created by using Design Center?
Answer
  • API
  • API Portals
  • Mule Apps
  • API Fragments

Question 13

Question
How are multiple conditions used in a Choice router to route events?
Answer
  • To route the same event to the matched route of EVERY true condition.
  • None of these.
  • To find the FIRST true condition, then distribute the event to the ONE matched route.
  • To find the FIRST true condition, then route the same event to the matched route and ALL FOLLOWING routes.

Question 14

Question
Which one of them is NOT a flow in Mule?
Answer
  • sync flow
  • subflow
  • async flow
  • async sub flow

Question 15

Question
๐Ÿ† According to MuleSoft, what is the Center for Enablement's role in the new IT operating model?
Answer
  • Implements line of business projects to enforce common security requirements.
  • Centrally manages partners and consultants to implement line of business projects.
  • Creates and manages discoverable assets to be consumed by line of business developers.

Question 16

Question
http://dev.acme.com/api/patients?year=2016 What should this endpoint return?
Answer
  • Patient with id 2016
  • All patients
  • No patients
  • Patients from year 2016

Question 17

Question
What are the latest specification of RAML available?
Answer
  • 0.8
  • 1
  • 2
  • 1.0

Question 18

Question
A Scatter-Gather processes a number of separate HTTP requests. Each request returns a Mule event with a JSON payload. What is the final output of the Scatter-Gather?
Answer
  • An Object containing all Mule event Objects.
  • An Array containing all Mule event Objects.
  • None of these.
  • The last Mule event object.

Question 19

Question
What is the use of DevKit in Mule 4?
Answer
  • Facilitates communication between third-party systems and Mule applications.
  • No use.
  • Offers connector end user support in a few aspects of Mule app design.
  • Enables the development of Anypoint Connectors.

Question 20

Question
According to Semantic Versioning, which version would you change for incompatible API changes?
Answer
  • MINOR
  • PATCH
  • MAJOR
  • No change

Question 21

Question
According to Mulesoft, how are Modern APIs treated as?
Answer
  • products
  • code
  • soap services
  • organizations

Question 22

Question
How is policy defined in terms of classloader of an API?
Answer
  • Classloader isolation does not exist between the application, the runtime and connectors, and policies.
  • Classloader isolation exists between the application, the runtime and connectors, and policies.
  • None of these.
  • Classloader isolation partially exists between the application, the runtime and connectors, and policies.

Question 23

Question
What is the correct way to format the decimal 200.1234 as a string to two decimal places?
Answer
  • 200.1234 as string {format: ".0#"}
  • 200.1234 as string as format: ".0#"
  • 200.1234 as String {format: ".0#"}
  • 200.1234 as String as format: ".0#"

Question 24

Question
An API has been created in Design Center. What is the next step to make the API discoverable?
Answer
  • Deploy the API to a Maven repository.
  • Publish the API from inside flow designer.
  • Publish the API to Anypoint Exchange.
  • Enable autodiscovery in API Manager.

Question 25

Question
In the Database On Table Row operation, what does the Watermark column enable the On Table Row operation to do?
Answer
  • To save the most recent records retrieved from a database to enable database caching.
  • To enable duplicate processing of records in a database.
  • To avoid duplicate processing of records in a database.
  • To delete the most recent records retrieved from a database to enable database caching.

Question 26

Question
DataWeave is tightly integrated with ____________.
Answer
  • Mule runtime
  • All APIs
  • Flow Designer
  • Exchange

Question 27

Question
How can you call a flow from Dataweave?
Answer
  • Not allowed
  • Include function
  • Look up function
  • Tag function

Question 28

Question
What is the object type returned by the File List operation?
Answer
  • Object of String file names
  • Array of String file names
  • Object of Mule event objects
  • Array of Mule event objects

Question 29

Question
What is the value of the stepVar variable after the processing of records in a Batch Job?
Answer
  • -1
  • 0
  • Null
  • Last value from flow

Question 30

Question
How to import Core (dw::Core) module into your DataWeave scripts?
Answer
  • import dw::core
  • Not needed
  • None of these
  • import core

Question 31

Question
What is not an asset?
Answer
  • Exchange
  • Template
  • Example
  • Connector

Question 32

Question
What is the difference between a subflow and a sync flow?
Answer
  • Sync flow has no error handling of its own and subflow does.
  • Subflow has no error handling of its own and sync flow does.
  • Subflow is synchronous and sync flow is asynchronous.
  • No difference.

Question 33

Question
๐Ÿ† The new RAML spec has been published to Anypoint Exchange with client credentials. What is the next step to gain access to the API?
Answer
  • Email the owners of the API.
  • Create a new client application.
  • No additional steps needed.
  • Request access to the API in Anypoint Exchange.

Question 34

Question
What does to the attributes of a Mule event happen in a flow after an outbound HTTP Request is made?
Answer
  • Attributes do not change.
  • Previous attributes are passed unchanged.
  • Attributes are replaced with new attributes from the HTTP Request response.
  • New attributes may be added from the HTTP response headers, but no headers are ever removed.

Question 35

Question
How would you debug Mule applications?
Answer
  • Using breakpoints
  • Checking RAML
  • By Deploying apps on production
  • Cannot do it

Question 36

Question
๐Ÿ† Refer to the exhibits. A web client sends a POST request to the HTTP Listener with the payload `Hello-`. What response is returned to the web client?
Answer
  • Hello-HTTP-JMS2-Three
  • HTTP-JMS2-Three
  • Hello-JMS1-HTTP-JMS2-Three
  • Hello-HTTP-Three

Question 37

Question
What execution model is used by For Each and Batch Job scopes?
Answer
  • Both are multi-threaded
  • Both are single-threaded
  • Batch Job is single-threaded and For Each is multi-threaded
  • For each is single-threaded and Batch Job is multi-threaded

Question 38

Question
Refer to the exhibits. A web client sends a POST request to the HTTP Listener and the Validation component in the Try scope throws an error. What response message is returned to the web client?
Answer
  • Validation Error
  • END
  • ERROR1
  • ERROR2

Question 39

Question
๐Ÿ† Refer to the exhibit. What is the correct syntax to add a customer ID as a URI parameter in an HTTP Listener path?
Answer
  • (customerID)
  • #[customerID]
  • {customerID}
  • ${customerID}

Question 40

Question
๐Ÿ† Where are values of query parameters stored in the Mule event by the HTTP Listener?
Answer
  • Payload
  • Attributes
  • Inbound Properties
  • Variables

Question 41

Question
Refer to the exhibits! The Set Payload transformer's value is set to {'year': '2020'}. What message value should be added to the Logger component to output the message 'The year is 2020', without hard-coding 2020?
Answer
  • The year is #[payload.year]
  • #[The year is $(payload.year)]
  • #["The year is ++ payload.year"]
  • #["The year is " + payload.year]

Question 42

Question
Refer to the exhibits. The Mule application has multiple HTTP Listeners contained in various configuration XML files. Each HTTP Listener is configured with the same host and with the port number, path, and operation shown in its display name. What is the minimum number of global elements that must be defined to support all these HTTP Listeners?
Answer
  • 1
  • 2
  • 3
  • 4

Question 43

Question
๐Ÿ† A web client sends a request to http://localhost:8081?dept=sales. What is the correct DataWeave expression to access the value of dept?
Answer
  • attributes.queryParams.dept
  • attributes.dept
  • message.queryParams.dept
  • vars.dept

Question 44

Question
Refer to the exhibit. In the execution of the Scatter-Gather, the "sleep 1 sec" Flow Reference takes about 1 second to complete, and the "sleep 5 secs" Flow Reference takes about 5 seconds to complete. About how many seconds does it take from the time the Scatter-Gather is called until the Set Payload transformer is called?
Answer
  • 0
  • 1
  • 5
  • 6

Question 45

Question
๐Ÿ† Refer to the exhibits. The main flow contains an HTTP Request. The HTTP Listeners and HTTP Request use default configurations. A web client sends a GET request to the main flow's HTTP Listener that includes a modelName query parameter. What values are accessible in the child flow?
Answer
  • payload
  • payload modelName query param
  • payload planeModel var
  • payload modelName query param planeModel var

Question 46

Question
A company has an API to manage purchase orders, with each record identified by a unique purchase order ID. The API was built with RAML according to MuleSoft best practices. What URI should a web client use to request order PO5555?
Answer
  • /orders/{PO5555}
  • /orders/order=PO5555
  • /orders?order=PO5555
  • /orders/PO5555

Question 47

Question
A Database On Table Row listener retrieves data from a CUSTOMER table that contains a primary key user_id column and an increasing login_date_time column. Neither column allows duplicate values. How should the listener be configured so it retrieves each row at most one time?
Answer
  • Set the watermark column to the login_date_time column
  • Set the target value to the last retrieved login_date_time value
  • Set the target value to the last retrieved user_id value
  • Set the watermark column to the user_id column

Question 48

Question
Refer to the exhibits. A web client sends a new order record {`oid`: `100`, `custId`: `annie@acme.com`, `status`: `NEW ORDER` } in the payload of a POST request to the Mule application. What value must be used in the Input Parameters field of the Database Insert operation to properly pass the order record values to the SQL statement?
Answer
  • "#[ { oid:payload.oid, custId:payload.custId, status:payload.status } ]"
  • "#[ { orderId:payload.oid, customerName:payload.custId, status:payload.status } ]"
  • "#[ inputParams:[ payload.oid, payload.custId, payload.status ] ]"
  • "#[ [ payload.oid, payload.custId, payload.status ] ]"

Question 49

Question
๐Ÿ† Refer to the exhibit. What can be added to the flow to persist data across different flow executions?
Answer
  • Properties of the Mule runtime app object
  • Key/value pairs in the ObjectStore
  • Session variables
  • Properties of the Mule runtime flow object

Question 50

Question
A function named newProdCode needs to be defined that accepts two input parameters, an integer value for ItemID and a string value for productCategory, and returns a new product code. What is the correct DataWeave code to define the newProdCode function?
Answer
  • fun newProdCode(itemID: Number, productCategory : String) = "PC?" ++ productCategory ++ (itemID as String)
  • var newProdCode(itemID: Number, productCategory : String) -> "PC-" ++ productCategory ++ (itemID as String)
  • fun newProdCode(itemID: Number, productCategory : String) -> "PC-" ++ productCategory ++ (itemID as String)
  • function newProdCode(itemID: Number, productCategory : String) = "PC-" ++ productCategory ++ (itemID as String)

Question 51

Question
๐Ÿ† Refer to the exhibits. In the request Flow an HTTP Request operation is configured to send an HTTP request with an XML payload. The request is sent to the HTTP Listener in the transformFlow. That flow transforms the incoming payload into JSON format and returns the response to the HTTP request. The response of the request is stored in a target variable named theResult. What is the payload at the Logger component after the HTTP Request?
Answer
  • A non-empty Java object
  • The original XML payload
  • The returned JSON response
  • null

Question 52

Question
๐Ÿ† Refer to the exhibit. 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
  • 20
  • 10
  • 0
  • 30

Question 53

Question
๐Ÿ† Refer to the exhibit. How should the WHERE clause be changed to set the city and state values from the configured input parameters?
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 54

Question
Which keyword do you use to create a new function in DataWeave?
Answer
  • function
  • fun
  • func
  • map

Question 55

Question
๐Ÿ† Refer to the exhibit. What DataWeave expression transforms the conductorlds array to the XML output?

Question 56

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 57

Question
Refer to the exhibit. All three of the condition for the Choice router are true. What log messages are written?
Answer
  • Route 1
  • Route1, Route2
  • Route2
  • Route1, Route2, Default

Question 58

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 59

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 60

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

Question 61

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 62

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 63

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

Question 64

Question
Refer to the exhibits. A web client submits a request to below flow. What is the output at the end of the flow?
Answer
  • String
  • Object
  • Java
  • XML

Question 65

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 66

Question
What 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 67

Question
Refer to the exhibits. A Mule application contains a Choice router. What is logged when the flow completes?
Answer
  • ["US", "EU"]
  • EU
  • US
  • "REGION"

Question 68

Question
๐Ÿ† Refer to the exhibits. A web client submits a request to http://localhQst:8081 /flights. What is the result at the end of the flow?
Answer
  • "string"
  • "XML"
  • "Java"
  • "object"

Question 69

Question
What should this endpoint return considering the API is build using standard practices? http://dev.acme.com/api/patients?year=2021
Answer
  • Patient with id 2021
  • Patients from year 2021
  • No patients
  • All patients

Question 70

Question
Refer to the exhibits. A web client sends sale data in a POST request to the Mule application. The Transform Message component then enrich the payload by prepending a vendor name to the sale data. What is written to the sales.csv file when the flow executes?
Answer
  • The enriched payload in JSON format
  • The enriched payload in XML format
  • The enriched payload in CSV format
  • An error message

Question 71

Question
๐Ÿ† Refer to the exhibits. A Mule application has an HTTP Request that is configured with hardcoded values. To change this, the Mule application is configured to use a properties file named config.yaml. what valid expression can the HTTP Request host value be set to so that it is no longer hardcoded?
Answer
  • ${training.host}
  • ${training:host}
  • #[training:host]
  • #[training.host]

Question 72

Question
Refer to the exhibit. What should be changed to fix the 415 error?
Answer
  • set the response Content-Type header to text/plain
  • set the response Content-Type header to application/json
  • Set the request Content-Type header to application/json
  • set the request Content-Type header to text/plain

Question 73

Question
๐Ÿ† Refer to the exhibits . The Mule application does NOT define any global error handlers. A web client sends a POST request to the Multi application with this input payload The File Write operation throws a FILECONNECTIVITY error What response message is returned to the web client?
Answer
  • "OTHER ERROR"
  • "File written"
  • "FILECONNECTIVITY"
  • "ORDER NOT_CREATED"

Question 74

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 75

Question
Refer to the exhibit. What is the response to a web client request to http://localhost:8081?
Answer
  • After
  • before
  • Validation Error
  • null

Question 76

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?
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 77

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โ€ port: โ€œ8081โ€ host: โ€œlocalhostโ€ }
  • http.port = 8081 http.host = โ€œlocalhostโ€
  • http: basePath: โ€œapiโ€ port: โ€œ8081โ€ host: โ€œlocalhost"
  • http: port = โ€œ8081โ€ host = โ€œlocalhostโ€

Question 78

Question
๐Ÿ† A web client sends one GET request to the test flow's HTTP Listener, which causes the test flow to call the updateTemp flow After the test flow returns a response, the web client then sends a different GET request to trie getTemp flow's HTTP Listener The test flow is not called a second time. What response is returned from the request to the getTemp flow's HTTP Listener?
Answer
  • { "temp": [70,65,100,60,85] }
  • { "temp" : "100" }
  • { "temp" : "85" }
  • { "temp":70, "temp":65, "temp":100, "temp":60, "temp":85 }

Question 79

Question
Refer to the exhibit. What Database expression transforms the input to the output?

Question 80

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
  • 1. {amount=140} 2. {amount=102} 3. {step2amount=100}
  • 1. {amount=140} 2. {amount=102} 3. {step2amount=100} 4. {step2amount=40}
  • 1. {amount=140} 2. {amount=102} 3. {step2amount=100} 4. {step2amount=140}
  • 1. {amount=140} 2. {amount=102} 3. {step2amount=100} 4. {step2amount=140} 5. {step2amount=102}

Question 81

Question
๐Ÿ† Refer to the exhibit. The Batch Job processes, filters and aggregates records, What is the expected output from the Logger component?
Answer
  • [10. 20, 30. 40, 50, 60]
  • [10. 20] [30, 40] [50, 60]
  • [20, 40, 60]
  • [20. 40] [60]

Question 82

Question
๐Ÿ† A company has defined two RAML fragments, Book Data Type and Book Example to be used in APIs. What would be valid RAML to use these fragments ?
Answer
  • 1. #%RAML 1.0 2. title: Books 3. types: 4. Book: ABC/Examples/bookDataType.raml 5. /books: 6. post: 7. body: 8. application/json: 9. type: Book 10. examples: 11. input: ABC/Examples/bookExample.raml 12. responses: 13. 201: 14. body: 15. application/json: 16. example: 17. message: Book added
  • 1. #%RAML 1.0 2. title: Books 3. Book: !include bookDataType.raml 4. /books: 5. post: 6. body: 7. application/json: 8. type: Book 9. examples: 10. input: !include bookExample.raml 11. responses: 12. 201: 13. body: 14. application/json: 15. example: 16. message: Book added
  • 1. #%RAML 1.0 2. title: Books 3. Book: bookDataType.raml 4. /books: 5. post: 6. body: 7. application/json: 8. type: Book 9. examples: 10. input: bookExample.raml 11. responses: 12. 201: 13. body: 14. application/json: 15. example: 16. message: Book added

Question 83

Question
๐Ÿ† Refer to the exhibit. This RAML specification includes a resource and method to retrieve accounts by account_type and industry. What is the correct URI to get all retail finance accounts?
Answer
  • /accounts/retail/finance
  • /accounts?account_type=retail&industry=finance
  • /accounts/account_type=retail/industry=finance
  • /accounts?account_type:retail&industry:finance

Question 84

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 85

Question
A web client submits a request to http://localhost:8081?flrstName=john. What is the correct DataWeave expression to access the firstName parameter?
Answer
  • #[message.queryParams.hrstName]
  • #[attributes.queryParams.firstName]
  • #[message.inboundProperties.'http.query.params'.firstName]
  • #[attributes.'http.query.params'.firstName]

Question 86

Question
๐Ÿ† Following Mulesoft's recommended API-led connectivity approach , an organization has created an application network. The organization now needs to create API's to transform , orchestrate and aggregate the data provided by the other API's in the application network. This API should be flexible enought ot handle the data from additional API's in future. According to Mulesoft's recommended API-led connectivity approach , what is the best layer for this new API?
Answer
  • Process layer
  • System layer
  • Experience layer
  • Data layer

Question 87

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 88

Question
Refer to the exhibit. What Database expression transforms the input to the output?

Question 89

Question
A function named toUpper needs to be defined that accepts a string named userName and returns the string in uppercase. What is the correct DataWeave code to define the toUpper function?
Answer
  • var toUpper(userName) -> upper(userName)
  • fun toUpper(userName) = upper(userName)
  • fun toUpper(userName) -> upper(userName)
  • var toUpper(userName) = upper(userName)

Question 90

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
  • Route1
  • Route2
  • Route1,Route2
  • Route1,Route2,Default

Question 91

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 preseive the current vCore usage, but still allow the Mule application to be managed by API Manager?
Answer
  • Register the same API implementation in Runtime Manager to connect to API Manager
  • Modify the API implementation to use auto-discovery to register with API Manager
  • Upload the Mule application's JAR file to the API instance in API Manager
  • Deploy the same API implementation behind a VPC and configure the VPC to connect to API Manager

Question 92

Question
๐Ÿ† A web client sends a request to http;//localhost:8081?dept=sales. What is the correct DataWeave expression to access the value of dept?
Answer
  • attributes.dept
  • message.queryParams.dept
  • vars.dept
  • attributes.queryParams.dept

Question 93

Question
๐Ÿ† Refer to the exhibits. The main flow contains an HTTP Request in the middle of the flow. The HTTP Listeners and HTTP Request use default configurations. A web client submits a request to the main flow's HTTP Listener that includes query parameters for the pedigree of the piano. What values are accessible to the Logger component at the end of the main flow?
Answer
  • payload
  • payload pedigree query params
  • payload producer var
  • payload pedigree query params producer var

Question 94

Question
๐Ÿ† What is the correct syntax to define and call a function in Database?
Answer
  • 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 } ------- addKV ({hello: "world"} , "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} ------- {hello: "world"} addKV ("hola","mundo")

Question 95

Question
๐Ÿ† Refer to the exhibits. Set paylaod transformer is set the firstName and lastName of the customer as shown in below images. What is the correct Dataweave expression which can be added in message attribute of a Logger activity to access firstName (which in this case is Madhav) from the incoming event?
Answer
  • firstName
  • customer.firstName
  • vars."customer.firstName"
  • vars."customer"."firstName"

Question 96

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 97

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

Question 98

Question
๐Ÿ† Refer to the exhibits. { "name" : "Rohan Kulkarni" "order" : [ {"product": "laptop", "amount":"25000","currency":"INR"} ] } 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.address" }
  • { orderkey: "attributes.shippingaddress.order", addresskey: "payload" }
  • { orderkey: "payload.order", addresskey: "address" }
  • { orderkey: "attributes.order", addresskey: "vars.address" }

Question 99

Question
Where is metadata stored in a Mule project
Answer
  • Config.yaml file
  • POM.xml file
  • application-types.xml
  • Global Element

Question 100

Question
๐Ÿ† What is output of Dataweave flatten function?
Answer
  • Object
  • Map
  • Array
  • LInkedHashMap

Question 101

Question
A web client submits a request to http://localhost:8081?accountType=personal. The query parameter is captured using a Set Variable transformer to a variable named accountType. What is the correct DataWeave expression to log accountType?
Answer
  • Account Type: #[flowVars.accountType]
  • Account Type: #[message.inboundProperties.accountType]
  • Account Type: # [attributes.accountType]
  • Account Type: #[vars.accountType]

Question 102

Question
๐Ÿ† A Mule project contains a DataWeave module like WebStore.dwl that defines a function named loginUser. 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 login "Todd.Pal@mulesoft.com"?
Answer
  • import libs.etl --- WebStore.loginUser("Todd.Pal@mulesoft.com")
  • import * from 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 103

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 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
  • Allows clients to VPN directly to the application at the Mule application's configured HTTP port

Question 104

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

Question 105

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

Question 106

Question
Refer to the exhibit. What is the output of logger component?
Answer
  • String
  • Object
  • Array
  • Map

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 Business (LoBs) onsumed each foundational asset

Question 108

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 109

Question
๐Ÿ† A Mule application contains an ActiveMQ JMS dependency. The Mule application was developed in Anypoint Studio and runs successfully in Anypoint Studio. The Mule application must now be exported from Anypoint Studio and shared with another developer. What export options create the smallest JAR file that can be imported into the other developer's Anypoint Studio and run successfully?

Question 110

Question
๐Ÿ† Refer to the exhibits. In the Choice router, the When expression for the domestic Shipping route is set to "#[payload = 'FR']". What is logged after the Choice router completes?
Answer
  • A DataVVeave syntax error
  • The result of the intemationalShipping flow
  • A string with value "FR"
  • The result of the domesticShipoing flow

Question 111

Question
๐Ÿ† Refer to the exhibits. Each route in the Scatter-Gather sets the payload to the number shown in the label. What response is returned to a web client request to the HTTP Listener?
Answer
  • [ { "attributes": ..., "payload" : "100" }, { "attributes": ..., "payload" : "200" } ]
  • { "0" : "100", "1" : "200" }
  • ["100","200"]
  • { "0":{ "attributes": ..., "payload" : "100" }, "1":{ "attributes": ..., "payload" : "200" } }

Question 112

Question
๐Ÿ† Refer to the exhibit. The main flow contains a Flow Reference for the child flow. What values are accessible in the child flow after a web client submits a request to http://localhost:8Q81/order? color=red?
Answer
  • payload
  • payload quantity var
  • payload color query param
  • payload quantity var color query param

Question 113

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 114

Question
Refer to the exhibits. The Validation component in the Try scope throws an error. What response message is returned to a client request to the main flow's HTTP Listener?
Answer
  • Success - main flow
  • Error - main flow
  • Error - Try scope
  • Validation Error

Question 115

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 116

Question
๐Ÿ† Refer to the exhibits. A web client sends a GET request to the HTTP Listener. What response message is returned to the web client?
Answer
  • ""
  • "End"
  • "Start"
  • "String is not blank"

Question 117

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

Question 118

Question
Where would you create SLA Tiers for an API?
Answer
  • Exchange
  • API Manager
  • Anypoint Studio
  • In RAML specifications

Question 119

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 120

Question
Refer to the exhibit. What payload is returned from a request to http//localhost.8081/ Refer to the exhibits, what payload is returned from a request to http://localhost;8081/?
Answer
  • 1
  • 2
  • 3
  • 4

Question 121

Question
A RAML example fragment named StudentExample.raml is placed in the examples folder in an API specification project. What is the correct syntax to reference the fragment?
Answer
  • examples: !include StudentExample.raml
  • examples: #import StudentExample.raml
  • examples: !include examples/StudentExample.raml
  • examples: #import examples/StudentExample.raml

Question 122

Question
๐Ÿ† What DataWeave expression transforms the example XML input to the CSV output?

Question 123

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?

Question 124

Question
๐Ÿ† Refer to the exhibits. The input array of strings is processed by the batch job that processes, fitters, and aggregates the values. What is the last message logged by the Logger component after the batch job completes processing?
Answer
  • [ { "attributes": ..., "payload" : "100" }, { "attributes": ..., "payload" : "200" } ]
  • { "0" : "100", "1" : "200" }
  • ["100","200"]
  • { "0":{ "attributes": ..., "payload" : "100" }, "1":{ "attributes": ..., "payload" : "200" } }

Question 125

Question
๐Ÿ† A shopping API contains a method to look up store details by department. To get information for a particular store, web clients will submit requests with a query parameter named department and a URI parameter named storeId. What is a valid RAML snippet that supports requests from web clients to get data for a specific storeId and department name?
Answer
  • /department: get: uriParameter: storeId:
  • get: uriParameter: {storeId}: queryParameters: department:
  • /{storedId}: get: queryParameters: department:
  • get: queryParameters: department: uriParameter: storeId:

Question 126

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
  • "Domestic"
  • "International"
  • "US"
  • A dataweave syntax error

Question 127

Question
๐Ÿ† A Mule applicationโ€™s HTTP Listener is configured with the HTTP protocol. The HTTP Listener's port attribute is configured with a property placeholder named http.port. The Mule application sets the http.port property placeholderโ€™s value to 9090. Tho Mule applicationโ€™s deployed to CloudHub without setting any properties in the Runtime Manager Properties tab, and a log message reports the status of the HTTP Listener after the Mule application deployment completes. After the Mule application is deployed, what information is reported in the worker logs related to the port on which the Mule applicationโ€™s HTTP Listener listens?
Answer
  • The HTTP Listener is listening on port 8081.
  • The HTTP Listener is listening on port 9090.
  • The HTTP Listener failed to bind to the port and is not listening for connections.
  • The HTTP Listener is listening on port 80.

Question 128

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

Question 129

Question
๐Ÿ† Refer to the exhibits. The mule application implements a REST API that accepts GET request from two URL's which are as follows 1) http://acme.com/order/status 2) http://acme.com/customer/status 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 130

Question
๐Ÿ† Refer to the exhibit. The Mule application's connectors are configured with property placeholders whose values are set in the config.yaml file What must be added to the Mule application to link the config.yaml file's values with the property placeholders?
Answer
  • A configuration-properties element in the acme-app xml file
  • A dependency element in the pom xml file
  • A file-config element in the acrne-app xml file
  • A propertiesFile key/value pair in the mule-artifact json file

Question 131

Question
๐Ÿ† Refer to the exhibits. The Set Variable transformer is set with value #[ [ first "Max" last "Mule"} ]. What is a valid DataWeave expression to set as the message attribute of the Logger to access the value "Max" from the Mule event?
Answer
  • vars "customer first"
  • "customer first"
  • customer first
  • vars "customer" "first"

Question 132

Question
๐Ÿ† Refer to the exhibits. The Batch Job scope contains two Batch Step scopes with different accept expressions. 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 components?
Answer
  • { "amount":500 } { "amount":101 } { "step2amount":1000 }
  • { "amount":500 } { "amount":601 } { "step2amount":1000 } { "step2amount":500 } { "step2amount":601 }
  • { "amount":500 } { "amount":101 } { "step2amount":1000 } { "step2amount":500 }
  • { "amount":500 } { "amount":101 } { "step2amount":1000 } { "step2amount":400 }

Question 133

Question
๐Ÿ† A Mule project contains a DataWeave module file WebStore dvA that defines a function named loginUser The module file is located in the projects src/main/resources/libs/dw folder. What is correct DataWeave code to import all of the WebStore.dwl file's functions and then call the loginUser function for the login "cindy.park@example.com"?
Answer
  • import libs.dw --- WebStore.loginUser("cindy.park@example.com")
  • import * from libs::dw --- WebStore::loginUser("cindy.park@example.com")
  • import libs.dw.WebStore --- loginUser("cindy.park@example.com")
  • import * from libs::dw::WebStore --- loginUser("cindy.park@example.com")

Question 134

Question
๐Ÿ† Refer to the exhibits. The main flow contains a Flow Reference component configured to call the child flow What part(s) of a Mule event passed to the Flow Reference component are available in the child flow?
Answer
  • The payload and all attributes
  • The payload and all variables
  • The entire Mule event
  • The payload

Question 135

Question
๐Ÿ† Refer to the exhibits. A Mule application is being developed to process web client POST requests with payloads containing order information including the user name and purchased items The Shipping connector returns a shipping address for the input payloads user name The Shipping connector's Shipping Address operation is configured with a target named shippingAddress. The Set Payload transformer needs to set an item key equal to the items value from the original received payload and a shippinglnfo key equal to the the ShippingAddress operation's response What is a straightforward way to property configure the Set Payload transformer with the required data?
Answer
  • { items: attributes.shippingAddress.items shippingInfo: payload }
  • { items: payload.items, shippingInfo: vars.shippingAddress }
  • { items: payload.items, shippingInfo: shippingAddress }
  • { items: vars.shippingAddress.items, shippingInfo: payload }

Question 136

Question
๐Ÿ† Refer to the exhibits. The my-app xml file contains an Error Handier scope named "global-error-handler" The Error Handler scope needs to be set to be the default error handler for every flow in the Mule application Where and how should the value "global-error-handler" be added in the Mule project so that the Error Handler scope is the default error handler of the Mule application?
Answer
  • In the mule-artifact json file, as the value of a key-value pair
  • In the Validation folder as the value of a global element in the error-handling yaml file
  • In the pom.xml file, as the value of a global element
  • In the my-app.xml file, as an attribute of a configuration element

Question 137

Question
๐Ÿ† Refer to the exhibits. The Mule application does NOT define any global error handlers. The Validation component in the private flow throws an error What response message is returned to a web client request to the main flow's HTTP Listener?
Answer
  • "Child error"
  • "Parent error"
  • "Validation Error"
  • "Parent completed"

Question 138

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 139

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 140

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 http://localhost:8081/internal and http://localhost:8081/external 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 141

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 142

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 143

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 144

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 145

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 146

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

Question 147

Question
๐Ÿ† Refer to the exhibit. The Database Select operation returns five rows from a database. What is logged by the Logger component?
Answer
  • "Array"
  • "Object"
  • "LinkedHashMap"
  • "CaseInsensitiveHashMap"

Question 148

Question
๐Ÿ† Refer to the exhibits. The main flow contains a Flow Reference to the child flow. A web client sends a GET request to the main flow's HTTP Listener that includes a make query parameter. What values are accessible in the child flow?
Answer
  • payload
  • payload make query param
  • payload model var
  • payload make query param model var

Question 149

Question
๐Ÿ† A company has defined this Book data type and Book example to be used in APIs. What is valid RAML for an API that uses this Book data type and Book example?

Question 150

Question
๐Ÿ† A company has an API to manage departments, with each department identified by a unique deptId. The API was built with RAML according to MuleSoft best practices. What is a valid RAML to specify a method to update the details for a specific department?
Answer
  • A
  • B
  • C
  • D

Question 151

Question
๐Ÿ† Refer to the exhibits. Mule application has an HTTP request configuration where host name is hardcoded. Organization is looking to move host and port values to configuration file. What valid expression can be used to so that HTTP configuration can pick the value from configuration file?
Answer
  • #[training.host]
  • ${http.host}
  • #{training.host}
  • ${training.host}

Question 152

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

Question 153

Question
๐Ÿ† Refer to the exhibit! 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: [StepTwo1, StepTwo2, StepTwo3]
  • The records processed by all batch steps: [StepTwostepOne1, stepTwostepOne2] [StepTwoStepOne3]
  • The original payload: [1,2,3]

Question 154

Question
๐Ÿ† Refer to the exhibits. The input array of strings is processed by the batch job that processes, fitters, and aggregates the values. What is the last message logged by the Logger component after the batch job completes processing?
Answer
  • [["A","C","D"],["E"]]
  • ["E"]
  • ["D","E"]
  • ["A","C","D","E"]

Question 155

Question
๐Ÿ† Refer to the exhibits. The Mule Application is being debugged in Anypoint Studio and stops at breakpoint. What is the value of payload displayed in debugger at this breakpoint?
Answer
  • Processing
  • Begin
  • Finished

Question 156

Question
๐Ÿ† Refer to the exhibits. What payload and quantity are togged at the end of the main flow?
Answer
  • [[order1, order2, order3, order4], 14]
  • [[1,2,3,4], 10]
  • [[1,2,3,4], 14]
  • [orderlorder2order3order4, 14]

Question 157

Question
๐Ÿ† Refer to the exhibits. The web client sends a POST request to the ACME Order API with an XML payload. An error is returned. What should be changed in the request so that a success response code is returned to the web client?
Answer
  • Set a request header with the name Content-Type to a value of application/octet-stream
  • Set a request header with the name Content-Type to a value of application/xml
  • Set a response header with the name Content-Type to a value of application/xml
  • Set a response header with the name Content-Type to a value of application/octet-stream

Question 158

Question
๐Ÿ† Refer to the exhibits. The main flow is configured with their error handlers. A web client submit a request to the HTTP Listener and the HTTP Request throws an HTTP: NOT_FOUND error . What response message is returned?โ€™
Answer
  • APP: API RESOURCE NOT FOUND
  • HTTP: NOT FOUND
  • other error
  • success - main flow

Question 159

Question
๐Ÿ† Refer to the exhibits. The Set Payload transformer in the addItem child flow uses DataWeave to create an order object. What is the correct DataWeave code for the Set Payload transformer in the createOrder flow to use the addItem child flow to add a router cal with the price of 100 to the order?
Answer
  • lookup( "addItem", { price: "100", item: "router", itemType: "cable" } )
  • addItem( { payload: { price: "100", item: "router". itemType: "cable" } } )
  • lookup( "addItem", { payload: { price: "100", item: "router", itemType: "cable" } } )
  • addItem( { price: "100", item: "router", itemType: "cable" } )

Question 160

Question
What is the face of CloudHub and integrates with Platform Services?
Answer
  • None of these
  • Runtime Manager Console
  • Integration Apps
  • CloudHub Workers

Question 161

Question
What is a core characteristic of the Modern API?
Answer
  • API is designed using an API specification for rapid feedback
  • API is rapidly prototyped following AGILE methodology
  • API follows the RESTFUL architecture
  • API has mechanism to accept feedback and suggestions for improvement

Question 162

Question
What MuleSoft product enables publishing, sharing, and searching of APIs?
Answer
  • Runtime Manager
  • Exchange
  • API Notebook
  • API Designer

Question 163

Question
What does the zip operator do in DataWeave?
Answer
  • Minifies the size of value using encoding.
  • None of these.
  • Merges elements of two objects into a single object.
  • Merges elements of two lists (arrays) into a single list.

Question 164

Question
What MuleSoft API-led connectivity layer is intended to expose part of a backend database without business logic?
Answer
  • Data
  • System
  • Process
  • Experience

Question 165

Question
How does Runtime Manager Console connect with App Data and Logs of a Mule app?
Answer
  • None of these
  • Integration Apps
  • CloudHub Workers
  • Rest API

Question 166

Question
Where does a deployed flow designer application run in Anypoint Platform?
Answer
  • CloudHub worker
  • API Manager
  • Design Center
  • Exchange

Question 167

Question
๐Ÿ† What is the minimum required configuration in a flow for a Mule application to compile?
Answer
  • An event source
  • RAML file
  • An event processor
  • Logger Component

Question 168

Question
๐Ÿ† A web client sends a GET request to the HTTP Listener and the HTTP Request throws an error. What payload and status code are returned to the web client.
Answer
  • Response body: "START" Default response status code: 200
  • ย Response body: "ERROR1" Default response status code: 200
  • ย Response body: "END" Default response status code: 200
  • ย Error response body: error.description Default error response status code: 500

Question 169

Question
๐Ÿ† How many private flows does APIkit generate from the RAML specification?
Answer
  • 1
  • 2
  • 3
  • 5

Question 170

Question
๐Ÿ† A Mule event is composed of a hierarchy of objects. Where in the hierarchy are variables stored?
Answer
  • ย Mule message attributes
  • ย Mule message
  • ย Mule message payload
  • ย Mule event

Question 171

Question
๐Ÿ† What valid RAML retrieves details on a specific order by its orderId as a URI parameter?
Answer
  • Option A
  • Option B
  • Option C
  • Option D

Question 172

Question
๐Ÿ† Refer to the exhibit. What data is expected by the POST /accounts endpoint?

Question 173

Question
๐Ÿ†ย Refer to the exhibits. What is written to the records.csv file when the flow executes?
Answer
  • The JSON payload
  • An error message
  • Nothing
  • The payload convert to CVS

Question 174

Question
๐Ÿ† Refer to the exhibits. A web client sends a POST request with the payload {"oid": "1000", "itemid": "AC200", "qty": "4" } to the Mule application. The File Write operation throws a FILE:CONNECTIVITY error. What response message is returned to the web client?
Answer
  • "FILE:CONNECTIVITY"
  • "ORDER:NOT_CREATED"
  • "OTHER ERROR"
  • "File written"

Question 175

Question
๐Ÿ† Anypoint MQ FIFO (non-FIFO) queues are limited to how many in-flight messages per queue?
Answer
  • 120000
  • 10 ย 
  • 100
  • ย 1000

Question 176

Question
๐Ÿ† The error occurs when a project is run in Anypoint Studio. The project, which has a dependency that is not in the MuleSoft Maven repository, was created and successfully run on a different computer. What is the next step to fix the error to get the project to run successfully?
Answer
  • ย Ass the dependency to the MULE_HOME/bin folder
  • ย Edit the dependency in the Mule projectโ€™s pom.xml file
  • ย Deploy the dependency to MuleSoftโ€™s Maven repository
  • ย Install the dependency to the computerโ€™s local Maven repository

Question 177

Question
๐Ÿ† To avoid hard-coding values, a flow uses some property placeholders and the corresponding values are stored in a configuration file. Where does the configuration fileโ€™s location need to be specified in the Mule application?
Answer
  • ย A global element
  • ย The mule-artifact.json file
  • ย A flow attribute
  • ย The pom.xml file

Question 178

Question
๐Ÿ† A web client sends a GET request that includes a destination query parameter to the flowโ€™s HTTP Listener. The Web Service Consumer throws a WSC:BAD_REQUEST error. What is the next step to fix this error?
Answer
  • Set a header in the Consume operation equal to the destination query parameter
  • ย Set a SOAP payload before the Consume operation that contains the destination query parameter
  • ย Set a property in the Consume operation equal to the destination query parameter
  • ย Set a JSON payload before the Consume operation that contains the destination query parameter

Question 179

Question
๐Ÿ† The Mule application is debugged in Anypoint Studio and stops at the breakpoint. What is the value of the payload displayed in the debugger at this breakpoint?
Answer
  • ย 0
  • ย "Processing"
  • ย "Start"
  • ย "Complete"

Question 180

Question
๐Ÿ† The input array of strings is passed to the batch job, which does NOT do any filtering or aggregating. What payload is logged by the Logger component?
Answer
  • ย Summary report of processed records
  • ย [ "Apple", "Banana" ]
  • ย [ "Apple12", "Banana12" ]
  • ย [ "Apple1", "Banana1", 2 ]

Question 181

Question
The Validation component in the private flow throws an error. What response message is returned to a web client request to the main flowโ€™s HTTP Listener?
Answer
  • Error โ€“ private flow
  • ย Validation Error
  • ย Error โ€“ main flow
  • ย Success โ€“ main flow

Question 182

Question
What is the correct syntax to reference a fragment in RAML?
Answer
  • ย examples: #include examples/BankAccountsExample.raml
  • ย examples: $include examples/BankAccountsExample.raml
  • ย examples: ?include examples/BankAccountsExample.raml
  • ย examples: !include examples/BankAccountsExample.raml

Question 183

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 and the port number, path, and operation values are shown in the 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 184

Question
An app team is developing a mobile banking app. It took them two months to create their own APIs to access transaction information from a central database. The app team later found out that another team had already built an API that accesses the transaction information they need. According to MuleSoft, what organization structure could have saved the app team two months of development time?
Answer
  • Center for Enablement
  • Center of Excellence
  • Central API Review Board
  • MuleSoft Support Center

Question 185

Question
A Mule project contains a DataWeave module called MyModule.dwl that defines a function named formatString. The module is located in the project's src/main/ resources/modules folder. What is the correct way in DataWeave code to import MyModule using a wildcard and then call the module's formatString function?

Question 186

Question
A Utility.dwl file is located in a Mule project at src/main/resources/modules. The Utility.dwl hie defines a function named pascalize that reformats strings to pascal case. What is the correct DataWeave to call the pascalize function in a Transform Message component?
Answer
  • %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")
  • %dw 2.0 output application/json import modules.Utility --- Utility.pascalize("max mule")
Show full summary Hide full summary

Similar

Spanish: Talking About Everyday Things
Niat Habtemariam
FCE Opposites Practice
miminoma
B3- Science. Cells, Genes and Enzymes.
MissChurro
Edexcel Biology chapter 1
Anna Bowring
Biological Definitions
Yamminnnn
Summary of AS Psychology Unit 1 Memory
Asterisked
Mind Maps with GoConqr
Elysa Din
Biology B1.1 - Genes
raffia.khalid99
Using GoConqr to study Maths
Sarah Egan
Principios de Vuelo
Adriana Forero
English spelling rules
Sarah Holmes