MCD – Level 1: MuleSoft Certified Developer – Level 1 (Mule 4) Topic 3
Question #: 91
Topic #: 1
Refer to the exhibit.
A Mule event is composed of a hierarchy of objects.
Where in the hierarchy are variables stored?
A. Mule message attributes
B. Mule message
C. Mule message payload
D. Mule event
Selected Answer: D
Question #: 88
Topic #: 1
Refer to the exhibits.
The
What is a valid
A. #[ ‘MuleSoft’ == payload.’company’ ] B. #[ if ( ‘MuleSoft’ == payload.company ) ] C. #[ company = “MuleSoft” ] D. #[ if( company = “MuleSoft” ) ]
Selected Answer: A
Question #: 87
Topic #: 1
Refer to the exhibit.
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?
A. Summary report of processed records
B. [ “Apple”, “Banana” ]
C. [ “Apple12”, “Banana12” ]
D. [ “Apple1”, “Banana1”, 2 ]
Selected Answer: A
Question #: 79
Topic #: 1
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?
A. A global element
B. The mule-artifact.json file
C. A flow attribute
D. The pom.xml file
Selected Answer: A
Question #: 78
Topic #: 1
Refer to the exhibits.
This 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?
A. ${training:host}
B. #[training.host]
C. ${training.host}
D. #[training.host]
Selected Answer: C
Question #: 77
Topic #: 1
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?
A. /accounts?account_type:retail&industry:finance
B. /accounts/retail/finance
C. /accounts/account_type=retail/industry=finance
D. /accounts?account_type=retail&industry=finance
Selected Answer: D
Question #: 76
Topic #: 1
An API implementation has been deployed to CloudHub and now needs to be governed. IT will not allocate additional vCores 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?
A. Modify the API implementation to use auto-discovery to register with API Manager
B. Deploy the same API implementation behind a VPC and configure the VPC to connect to API Manager
C. Upload the Mule application’s JAR file to the API instance in API Manager
D. Register the same API implementation in Runtime Manager to connect to API Manager
Selected Answer: A
Question #: 56
Topic #: 1
What does the zip operator do in DataWeave?
A. Minifies the size of value using encoding.
B. None of these.
C. Merges elements of two objects into a single object.
D. Merges elements of two lists (arrays) into a single list.
Selected Answer: D
Question #: 154
Topic #: 1
Refer to the exhibits. The webClient flow sends requests to the mockServer flow’s HTTP Listener.
An HTTP:METHOD_NOT_ALLOWED error is thrown each time the webClient flow executes.
What attribute value must be changed in the webClient flow’s HTTP Request operation to prevent this error from being thrown?
A. Change the protocol attribute’s value to “HTTPS”
B. Change the method attribute’s value to
C. Change the path attribute’s value to “/api/partners/fastShipping”
D. Change the method attribute’s value to “POST”
Selected Answer: D
Question #: 145
Topic #: 1
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?
A. /department:
get:
uriParameter:
storeId:
B. get:
uriParameter:
{storeId}:
queryParameters:
department:
C. /{storedId}:
get:
queryParameters:
department:
D. get:
queryParameters:
department:
uriParameter:
storeId:
Selected Answer: C
Question #: 136
Topic #: 1
Refer to the exhibits. The main flow contains a Flow Reference component configured to call the child flow.
A. The payload and all attributes
B. The payload and all variables
C. The entire Mule event
D. The payload
Selected Answer: C
Question #: 125
Topic #: 1
Refer to the exhibits. 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 logged when the flow executes?
A. ERROR … “You called the function ‘++’ with these arguments:
1: String (“INFO”)
2: Object ({one: (child1: “Name1” as String {class: “java.lang.String”},child2: “Name2” …)
…
B. ERROR: You evaluated an inline expression ‘#’ without ++
C. Result: INFO { \”one\”: { \”child1\”: \”Name1\”, \”child2\”: \”Name2\” }
D. Result: INFOpayload
Selected Answer: A
Question #: 123
Topic #: 1
Refer to the exhibits. A Mule application polls a database table.
This error is logged when the Mule application is run.
What should be changed in the Database connector configuration to resolve this error?
A. Configure the correct JDBC driver
B. Configure the correct table name
C. Configure the correct host URL
D. Configure the correct database name
Selected Answer: A
Question #: 117
Topic #: 1
Refer to the exhibit.
The Database Select operation returns five rows from a database.
What is logged by the Logger component?
A. “Array”
B. “Object”
C. “LinkedHashMap”
D. “CaseInsensitiveHashMap”
Selected Answer: A
Question #: 115
Topic #: 1
A web client submits a request to http://localhost:8081/books/0471767840. The value `0471767840` is captured by a Set Variable transformer to a variable named bookISBN.
What is the DataWeave expression to access bookISBN later in the flow?
A. attributes.bookISBN
B. flowVars.bookISBN
C. vars.bookISBN
D. bookISBN
Selected Answer: C
Question #: 112
Topic #: 1
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?
A. The applications associated with the other APIs must be restarted
B. The other APIs must be updated to consume the updated product API
C. Nothing needs to be changed in the other APIs or their associated applications
D. The applications associated with the other APIs must be recoded
Selected Answer: C
Question #: 108
Topic #: 1
According to MuleSoft, what is the first step to create a Modern API?
A. Performance tune and optimize the backend systems and network
B. Create an API specification and get feedback from stakeholders
C. Create a prototype of the API implementation
D. Gather a list of requirements to secure the API
Selected Answer: B
Question #: 106
Topic #: 1
An SLA based policy has been enabled in API Manager.
What is the next step to configure the API proxy to enforce the new SLA policy?
A. Restart the API proxy to clear the API policy cache
B. Add new property placeholders and redeploy the API proxy
C. Add required headers to the RAML specification and redeploy the new API proxy
D. Add new environment variables and restart the API proxy
Selected Answer: C
Question #: 98
Topic #: 1
What is the output type of the DataWeave map operator?
A. Object
B. Array
C. Map
D. String
Selected Answer: B
Question #: 96
Topic #: 1
Refer to the exhibit.
How many private flows does APIkit generate from the RAML specification?
A. 1
B. 2
C. 3
D. 5
Selected Answer: C
Question #: 93
Topic #: 1
A Mule application contains a global error handler configured to catch any errors.
Where must the global error handler be specified so that the global error handler catches all errors from flows without their own error handlers?
A. A global element
B. The pom.xml file
C. Nowhere, the global error handler is automatically used
D. A configuration properties file
Selected Answer: A
Question #: 92
Topic #: 1
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 the second request does not overwrite that from the first?
A. Save the payload from the Database SELECT operation to a variable.
B. Put the Database SELECT operation inside a Cache scope
C. Put the Database SELECT operation inside a Message Enricher scope
D. Nothing, previous payloads are combined into the next payload
Selected Answer: A
Question #: 90
Topic #: 1
An API specification is designed using RAML. What is the next step to create a REST Connector from this API specification?
A. Add the specification to a Mule project’s src/main/resources/api folder
B. Implement the API specification using flow designer in Design Center
C. Download the API specification and build the interface using APIkit
D. Publish the API specification to Anypoint Exchange
Selected Answer: D
Question #: 85
Topic #: 1
Refer to the exhibits.
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?
A. Set a header in the Consume operation equal to the destination query parameter
B. Set a SOAP payload before the Consume operation that contains the destination query parameter
C. Set a property in the Consume operation equal to the destination query parameter
D. Set a JSON payload before the Consume operation that contains the destination query parameter
Selected Answer: B
Question #: 84
Topic #: 1
Refer to the exhibit.
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?
A. 0
B. “Processing”
C. “Start”
D. “Complete”
Selected Answer: C
Question #: 74
Topic #: 1
What execution model is used by For Each and Batch Job scopes?
A. Both are multi-threaded
B. Both are single-threaded
C. Batch Job is single-threaded and For Each is multi-threaded
D. For each is single-threaded and Batch Job is multi-threaded
Selected Answer: D
Question #: 71
Topic #: 1
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 hardcoding 2020?
A. ‘The year is #[payload.year]’
B. ‘#[The year is $(payload.year)]’
C. ‘#[“The year is ++ payload.year”]’
D. ‘#[“The year is ” + payload.year]’
Selected Answer: A
Question #: 68
Topic #: 1
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 Set Payload transformer is called?
A. 0
B. 1
C. 5
D. 6
Selected Answer: C
Question #: 66
Topic #: 1
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?
A. /orders/{PO5555}
B. /orders/order=PO5555
C. /orders?order=PO5555
D. /orders/PO5555
Selected Answer: D
Question #: 60
Topic #: 1
Refer to the exhibit.
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?
A. Ass the dependency to the MULE_HOME/bin folder
B. Edit the dependency in the Mule project’s pom.xml file
C. Deploy the dependency to MuleSoft’s Maven repository
D. Install the dependency to the computer’s local Maven repository
Selected Answer: D
Question #: 52
Topic #: 1
What is the minimum required configuration in a flow for a Mule application to compile?
A. An event source
B. RAML file
C. An event processor
D. Logger Component
Selected Answer: C
Question #: 51
Topic #: 1
Where does a deployed flow designer application run in Anypoint Platform?
A. CloudHub worker
B. API Manager
C. Design Center
D. Exchange
Selected Answer: A
Question #: 49
Topic #: 1
What MuleSoft API-led connectivity layer is intended to expose part of a backend database without business logic?
A. Data
B. System
C. Process
D. Experience
Selected Answer: B
Question #: 45
Topic #: 1
A Set Variable component saves the current payload to a variable.
What is the DataWeave parent expression to access the variable?
A. #[value] B. #[vars] C. #[var] D. #[values]
Selected Answer: B
Question #: 42
Topic #: 1
What is the purpose of the api:router element in APIkit?
A. Serves as an API implementation.
B. Validates requests against RAML API specifications and routes them to API implementations.
C. Creates native connectors using a 3rd party Java library.
D. Validates responses returned from API requests and routes them back to the caller.
Selected Answer: B
Question #: 39
Topic #: 1
What are the features of CloudHub Fabric?
A. Non-persistent queue
B. Horizontal Scaling
C. VPN Mock Services
D. None of these
Selected Answer: B
Question #: 25
Topic #: 1
What asset can NOT be created by using Design Center?
A. API
B. API Portals
C. Mule Apps
D. API Fragments
Selected Answer: B
Question #: 73
Topic #: 1
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?
A. Validation Error
B. “END”
C. “ERROR1”
D. “ERROR2”
Selected Answer: D
Question #: 9
Topic #: 1
Where are values of query parameters stored in the Mule event by the HTTP Listener?
A. Payload
B. Attributes
C. Inbound Properties
D. Variables
Selected Answer: B
Question #: 58
Topic #: 1
What is a core characteristic of the Modern API?
A. API is rapidly prototyped following AGILE methodology.
B. API follows the RESTful architecture.
C. API is designed first using an API specification for rapid feedback.
D. API has a mechanism to accept feedback and suggestions for improvement.
Selected Answer: C
Question #: 6
Topic #: 1
How to import Core (dw::Core) module into your DataWeave scripts?
A. import dw::core
B. Not needed
C. None of these
D. import core
Selected Answer: B
Question #: 69
Topic #: 1
A web client sends a request to http://localhost:8081?dept=sales.
What is the correct DataWeave expression to access the value of dept?
A. attributes.queryParams.dept
B. attributes.dept
C. message.queryParams.dept
D. vars.dept
Selected Answer: A
Question #: 33
Topic #: 1
What DataWeave 2.0 type can be used as input to a mapObject operation?
A. Array
B. Object
C. String
D. Map
Selected Answer: B
Question #: 2
Topic #: 1
What does to the attributes of a Mule event happen in a flow after an outbound HTTP Request is made?
A. Attributes do not change.
B. Previous attributes are passed unchanged.
C. Attributes are replaced with new attributes from the HTTP Request response.
D. New attributes may be added from the HTTP response headers, but no headers are ever removed.
Selected Answer: C
Question #: 10
Topic #: 1
How can you call a flow from Dataweave?
A. Not allowed
B. Include function
C. Look up function
D. Tag function
Selected Answer: C
Question #: 3
Topic #: 1
The new RAML spec has been published to Anypoint Exchange with client credentials.
What is the next step to gain access to the API?
A. Email the owners of the API.
B. Create a new client application.
C. No additional steps needed.
D. Request access to the API in Anypoint Exchange.
Selected Answer: D
Question #: 13
Topic #: 1
An API has been created in Design Center.
What is the next step to make the API discoverable?
A. Deploy the API to a Maven repository.
B. Publish the API from inside flow designer.
C. Publish the API to Anypoint Exchange.
D. Enable autodiscovery in API Manager.
Selected Answer: C
Question #: 1
Topic #: 1
How would you debug Mule applications?
A. Using breakpoints
B. Checking RAML
C. By Deploying apps on production
D. Cannot do it
Selected Answer: A
Question #: 57
Topic #: 1
What is the face of CloudHub and integrates with Platform Services?
A. None of these
B. Runtime Manager Console
C. Integration Apps
D. CloudHub Workers
Selected Answer: A
Question #: 53
Topic #: 1
Where would you create SLA Tiers for an API?
A. Exchange
B. API Manager
C. Anypoint MQ
D. Within the API
Selected Answer: B
Question #: 50
Topic #: 1
How does Runtime Manager Console connect with App Data and Logs of a Mule app?
A. None of these
B. Integration Apps
C. CloudHub Workers
D. Rest API
Selected Answer: A
Question #: 36
Topic #: 1
What does the Mule runtime use to enforce policies and limit access to APIs?
A. API Manager
B. The proxy created by API Manager
C. The Mule runtime’s embedded API Gateway
D. Anypoint Access Control
Selected Answer: C
Question #: 35
Topic #: 1
What statement is a part of MuleSoft’s description of an application network?
A. Creates and manages high availability and fault tolerant services and infrastructure.
B. Creates reusable APIs and assets designed to be consumed by other business units.
C. Creates and manages a collection of JMS messaging services and infrastructure.
D. Leverages Central IT to deliver complete point-to-point solutions with master data management.
Selected Answer: B
Question #: 30
Topic #: 1
What is the purpose of API autodiscovery?
A. Enables API Manager to discover the published API on Anypoint Exchange.
B. Allows a deployed Mule application to connect with API Manager to download policies and act as its own API proxy.
C. Enables an API to be directly managed in API Manager.
D. Allows the Mule application to be automatically discovered on Anypoint Exchange.
Selected Answer: B
Question #: 15
Topic #: 1
How is policy defined in terms of classloader of an API?
A. Classloader isolation does not exist between the application, the runtime and connectors, and policies.
B. Classloader isolation exists between the application, the runtime and connectors, and policies.
C. None of these.
D. Classloader isolation partially exists between the application, the runtime and connectors, and policies.
Selected Answer: B
Question #: 5
Topic #: 1
What is not an asset?
A. Exchange
B. Template
C. Example
D. Connector
Selected Answer: A
Question #: 24
Topic #: 1
How are multiple conditions used in a Choice router to route events?
A. To route the same event to the matched route of EVERY true condition.
B. None of these.
C. To find the FIRST true condition, then distribute the event to the ONE matched route.
D. To find the FIRST true condition, then route the same event to the matched route and ALL FOLLOWING routes.
Selected Answer: C
Question #: 72
Topic #: 1
Refer to the exhibit.
What is the correct syntax to add a customer ID as a URI parameter in an HTTP Listener path?
A. (customerID)
B. #[customerID]
C. {customerID}
D. ${customerID}
Selected Answer: C
Question #: 67
Topic #: 1
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?
A. payload
B. payload modelName query param
C. payload planeModel var
D. payload modelName query param planeModel var
Selected Answer: A
Question #: 12
Topic #: 1
In the Database On Table Row operation, what does the Watermark column enable the On Table Row operation to do?
A. To save the most recent records retrieved from a database to enable database caching.
B. To enable duplicate processing of records in a database.
C. To avoid duplicate processing of records in a database.
D. To delete the most recent records retrieved from a database to enable database caching.
Selected Answer: C