Salesforce-MuleSoft-Developer-I Exam Questions

Total 234 Questions

Last Updated Exam : 22-Nov-2024

Which of the below activity doesn't support parallel execution?


A. Scatter-Gather Router


B. First Successful Router


C. Parallel For Each


D. Batch job





C.
  Parallel For Each

Explanation:
The First Successful router iterates through a list of configured processing routes until one of the routes executes successfully. This is sequential execution. In all other options mentioned in the question ,we can achieve parallel execution.

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 storeld.
What is a valid RAML snippet that supports requests from web clients to get data for a specific storeld and department name?


A. Option A


B. Option B


C. Option C


D. Option D





C.
  Option C

Explanation:
Lets revise few concepts RAML which can help us to find the answer of this question.
URI Parameters
Lets have a look at below example.
/foos:
/{id}:
/name/{name}:
Here, the braces { } around property names define URI parameters. They represent placeholders in each URI and do not reference root-level RAML file properties as we saw above in the base Uri declaration. The added lines represent the resources /foos/{id} and /foos/name/{name}.
Query Parameters
Now we'll define a way to query the foos collection using query parameters. Note that query parameters are defined using the same syntax that we used above for data types:
/foos:
get:
description: List all Foos matching query criteria, if provided; otherwise list all Foos queryParameters:
name?: string ownerName?: string
Based on the above information , below is the only option which defines storeid as uri parameter and department as query parameter.
/{storeId}:
get:
queryParameter:
department:

A Mule project contains a MySQL Database dependency. The project is exported from Anypoint Studio so it can be deployed to CloudHub.
What export options create the smallest deployable archive that will successfully deploy to CloudHub?
What export option create their smallest deployable archive that will successfully deploy to CloudHub?


A. Option A


B. Option B


C. Option C


D. Option D





B.
  Option B

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?


A. lookupC createCustomerObJect( "Alice", "Green- ) )


B. createCustomerObject( { first: "Alice", last: "Green" > )


C. lookupf "createCustomerObject", { first: "Alice", last: "Green" > )


D. createCustomerObject( "Alice", "Green")





C.
  lookupf "createCustomerObject", { first: "Alice", last: "Green" > )

Explanation:
lookup(String, Any, Number)
This function enables you to execute a flow within a Mule app and retrieve the resulting payload. It works in Mule apps that are running on Mule Runtime version 4.1.4 and later.
Similar to the Flow Reference component (recommended), the lookup function enables you to execute another flow within your app and to retrieve the resulting payload. It takes the flow’s name and an input payload as parameters. For example, lookup("anotherFlow", payload) executes a flow named anotherFlow.
Correct answer is
lookup( "createCustomerObject", {first: "Aice, last: "Green"})

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?


A. 1


B. 2


C. 3


D. 4





C.
  3

Explanation:
In this case three configurations will be required each for port 8000, 6000 and 7000. There would be three global elements defined for HTTP connections.
Each HTTP connection will have host and port.
To use an HTTP listener, you need to declare a configuration with a corresponding connection. This declaration establishes the HTTP server that will listen to requests. Additionally, you can configure a base path that applies to all listeners using the configuration.


What is the minimum Cloudhub worker size that can be specified while deploying mule application?


A. 0.2 vCores


B. 0.5 vCores


C. 1.0 vCores


D. 0.1 vCores





D.
  0.1 vCores

Explanation:
Correct answer is 0.1 vCores
CloudHub Workers
Workers are dedicated instances of Mule runtime engine that run your integration applications on CloudHub. The memory capacity and processing power of a worker depends on how you configure it at the application level.
Worker sizes have different compute, memory, and storage capacities. You can scale workers vertically by selecting one of the available worker sizes:

A company has an API to manage departments, with each department identified by a unique deptld. The API was built with RAML according to MuleSoft best practices.
What is valid RAML to specify a method to update the details for a specific department?


A. Option A


B. Option B


C. Option C


D. Option D





D.
  Option D

Refer to the exhibit. APIkit is used to generate flow components for the RAML specification.
How many apikit:router XML elements are generated to handle requests to every endpoint defined in the RAML specification


A. 3


B. 5


C. 2


D. 1





D.
  1

What is the object type returned by the File List operation?


A. Object of String file names


B. Array of String file names


C. Object of Mule event objects


D. Array of Mule event objects





D.
  Array of Mule event objects

Explanation: The List operation returns an array of messages in which: Each message holds the file’s content in its payload. The file’s attributes section carries the file’s metadata (such as name, creation time, and size). The payload is empty if the element is a folder.

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"


E. Validation Error


F. "END"


G. "ERROR1"


H. ''ERROR2"





D.
  ''ERROR2"


Page 12 out of 24 Pages
Previous