Salesforce-MuleSoft-Developer-I Exam Questions

Total 234 Questions

Last Updated Exam : 22-Oct-2024

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?


A. Set a request header with the name Content-Type to a value of applicatron/octet-stream


B. Set a request header with the name Content-Type to a value of application/xml


C. Set a response header with the name Content-Type to a value of applkation/xml


D. Set a response header with the name Content-Type to a value of application/octet- stream





B.
  Set a request header with the name Content-Type to a value of application/xml

Explanation: The HTTP 415 Unsupported Media Type client error response code indicates that the server refuses to accept the request because the payload format is in an unsupported format. The format problem might be due to the request's indicated Content-Type or Content-Encoding , or as a result of inspecting the data directly. As per RAML input is expected in application/xml.

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


A. 1. 1. import libs.etl 2. 2. --- 3. 3. WebStore.loginUser("Todd.Pal@mulesoft.com")


B. 1. 1. import * from libs::etl 2. 2. --- 3. 3. WebStore::loginUser("Todd.Pal@mulesoft.com")


C. 1. 1. import libs.etl.WebStore 2. 2. --- 3. 3. loginUser("Todd.Pal@mulesoft.com")


D. 1. 1. import * from libs::etl::WebStore 2. 2. --- 3. 3. loginUser("Todd.Pal@mulesoft.com")





D.
  1. 1. import * from libs::etl::WebStore 2. 2. --- 3. 3. loginUser("Todd.Pal@mulesoft.com")

Explanation:
* To use custom modules, you need to import the module or functions you want to use by adding the import directive to the head of your DataWeave script, for example:
1) Does not identify any functions to import from the String module: import dw::core::Strings 2) To identify a specific function to import from the String module: import camelize, capitalize from dw::core::Strings
3) To import all functions from the String module:
import * from dw::core::Strings
The way you import a module impacts the way you need to call its functions from a DataWeave script. If the directive does not list specific functions to import or use * from to import all functions from a function module, you need to specify the module when you call the function from your script.

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?


A. { port : p('db.port')}


B. { port : {db:port}}


C. { port : p['db.port']}


D. Application property cannot be accessed in Dataweave





A.
  { port : p('db.port')}

Refer to the exhibit.



How should the WHERE clause be changed to set the city and state values from the configured input parameters?


A. Option A


B. Option B


C. Option C


D. Option D





A.
  Option A

How are query parameters dynamically passed to an outbound REST request using an HTTP Request operation?


A. As query parameters in the HTTP Request operation


B. As URI parameters in the HTTP Request operation


C. In the Mule event's payload


D. As flow variables





A.
  As query parameters in the HTTP Request operation

Explanation: In General > Request > Query Parameters, click the plus icon (+) to add a parameter to a request. Type a name and value for the parameter or use a DataWeave expression to

What path setting is required for an HTTP Listener endpoint to route all requests to an APIkit router?


A. /(*)


B. /


C. /()


D. “/*”





D.
  “/*”

Explanation: Option1 is correct syntax to configure HTTP Listener endpoint

What is the trait name you would use for specifying client credentials in RAML?


A. headers


B. client-id


C. client-id-required


D. cannot be specified in RAML





C.
  client-id-required

Explanation: client-id-required enforces clients to add client_id and client_secret. Please refer to below steps. Add a section called traits: at the root level to define query parameters:
• traits:
- client-id-required:
queryParameters:
client_id:
type: string client_secret:
type: string
2) Reference the trait in each of the methods to specify that each of the methods require these query parameters. After each method in the RAML file, add is: [client-id-required]. For example:
/users:
get:
is: [client-id-required]
description: Gets a list of JSONPlaceholder users.

Refer to the exhibits.



What is written to the records.csv file when the flow executes?


A. The JSON payload


B. An error message


C. Nothing


D. The payload convert to CVS





A.
  The JSON payload

Explanation: Transform Message Add write_date is coverting payload in JSON format and same JSON payload is avaialble to file write processor. However, if the payload is a different format (for example, not CSV) , you can place the transformation inside the Write operation to generate content that will be written without producing a side effect on the message in transit. This is not done in this case. By default, the connector writes whatever is in the message payload. Hence JSON payload will be written to file.

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?


A. Option A


B. Option B


C. Option C


D. Option D





B.
  Option B

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?


A. Option A


B. Option B


C. Option C


D. Option D





D.
  Option D


Page 13 out of 24 Pages
Previous