Available in 1, 3, 6 and 12 Months Free Updates Plans
PDF: $15 $60

Test Engine: $20 $80

PDF + Engine: $25 $99

Salesforce-MuleSoft-Developer-I Practice Test


Page 4 out of 47 Pages

Refer to the exhibit.



What is the correct syntax to add an employee ID as a URI parameter in an HTTP Listener path?


A. (employeelD)


B. ${emp!oyeelD}


C. {employeelD}


D. # [employeelD]





C.
  {employeelD}

Explanation:
Paths
The path of an HTTP listener can be static, which requires exact matches, or feature placeholders. Placeholders can be wildcards (*), which match against anything they are compared to, or parameters ({param}), which not only match against anything but also capture those values on a URI parameters map.
Take the following example paths for three listeners using a configuration that establishes api/v1 as the base path:
account/mulesoft/main-contact: only match the exact path request http://awesome- company.com/api/v1/account/mulesoft/main-contact
account/{accountId}/main-contact: matches all path requests structured similarly, such as http://awesome-company.com/api/v1/account/salesforce/main-contact, and save salesforce as the value of accountId.
account/{accountId}/*: matches all path requests different from main-contact, such as http://awesome-company.com/api/v1/account/mulesoft/users, and save mulesoft as the value of accountId.

Which keyword do you use to create a new function in DataWeave?


A. function


B. fun


C. func


D. map





B.
  fun

Explanation:
You can define your own DataWeave functions using the fun declaration in the header of a DataWeave script. Sample is as below. ---------------------------------------- %dw 2.0
output application/json
fun toUpper(aString) = upper(aString) --- toUpper("hello")

A Mule flow has three Set Variable transformers. What global data structure can be used to access the variables?


A. Mule event attributes


B. Mule event message


C. Mule application properties


D. Mule event





D.
  Mule event

Explanation: Mule event is correct answer. Mule event has two parts which are as follows
1) Message (which contains payload and attributes like headers and query/uri parameters
2) Variables

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?


A. In the organization's public API portal in Anypoint Exchange, from an approved client application for the API proxy


B. In Anypoint Studio, from components generated by APIkit for the API specification


C. In Anypoint Studio, from components generated by Rest Connect for API specification


D. In Runtime Manager, from the properties tab of the deployed approved API proxy





A.
  In the organization's public API portal in Anypoint Exchange, from an approved client application for the API proxy

Explanation:
* When a client application is registered in Anypoint Platform, a pair of credentials consisting of a client ID and client secret is generated.
* When the client application requests access to an API, a contract is created between the application and that API.
* An API that is protected with a Client ID Enforcement policy is accessible only to applications that have an approved contract.

------------------------------------------------------------------------------------
Correct Answer: In the organization's public API portal in Anypoint Exchange, from an approved client application for the API proxy

Refer to the exhibit. The main flow contains an HTTP Request in the middle of the flow. The HTTP Listeners and HTTP request use default configurations.

What values are accessible to the Logger at the end of the flow after a web client submit request to http://local:801/order?color=red?


A. payload


B. payload quantity var


C. payload color query param


D. payload quantity var color query param





B.
  payload quantity var

Explanation: In this case as outbound call is made using HTTP: POST /child , all attributes will be replaced by this invocation. Hence query parameter will not be accessible at logger.


Page 4 out of 47 Pages
Previous