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(s): B
Correct answer is A global elementWhen we create a configuration file , that file needs to added as Global Configuration file in Global element. A global element is a reusable object containing parameters that any number of elements in a flow can share. You reference a global element from Anypoint Connectors or components in your Mule application
Refer to the exhibit.What is the correct syntax to add an employee ID as a URI parameter in an HTTP Listener path?
Answer(s): C
PathsThe 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.
https://docs.mulesoft.com/http-connector/1.6/http-listener-ref#paths
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?
Answer(s): D
Correct answer is Add required headers to RAML specification and redeploy new API proxy Reference:https://docs.mulesoft.com/api-manager/2.x/tutorial-manage-an-api Steps are as below :Add the Required RAML SnippetSLA-based rate limiting requires adding a RAML or OAS snippet to your API. This procedure demonstrates adding a RAML snippet.Specify the client ID and secret as query parameters.Add a section called traits: at the RAML root level to define query parameters:traits:- client-id-required:queryParameters:client_id:type: string client_secret:type: stringAdd the client-id-required trait to every method that requires these query parameters:/users:get:is: [client-id-required]description: Gets a list of JSONPlaceholder users.Step 2 : Add the SLA Tier in API ManagerStep 3 : Apply the policy and redeploy
https://docs.mulesoft.com/api-manager/2.x/tutorial-manage-an-api
What payload is returned by a Database SELECT operation that does not match any rows in the database?
Empty array is returned when no rows are matched.
https://docs.mulesoft.com/db-connector/1.9/database-connector-select
What is the correct syntax to define and call a function in Database? A)B)C)D)
Answer(s): A
Keyword to ad function in Dataweave transformation is fun. Hence option 2 and 4 are invalid. Also parameters needs to be passed exactly in same order as defined in function definition. Hence correct answer is'fun addKV( object: Object, key: String, value: Any) =object ++ {(key):(value)}---addKV ( {"hello': "world"}, "hola", "mundo" )MuleSoft Documentation Reference : https://docs.mulesoft.com/mule-runtime/4.3/dataweave- functionsDataWeave Function Definition SyntaxTo define a function in DataWeave use the following syntax:fun myFunction(param1, param2, ...) = <code to execute> The fun keyword starts the definition of a function.myFunction is the name you define for the function.Function names must be valid identifiers.(param1, param2, ... , paramn) represents the parameters that your function accepts. You can specify from zero to any number of parameters, separated by commas (,) and enclosed in parentheses.The = sign marks the beginning of the code block to execute when the function is called. <code to execute> represents the actual code that you define for your function.
Post your Comments and Discuss Salesforce Certified MuleSoft Developer I exam prep with other Community members:
Our website is free, but we have to fight against AI bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the Certified MuleSoft Developer I content, but please register or login to continue.