Free Salesforce-MuleSoft-Developer-I Exam Braindumps (page: 15)

Page 14 of 59

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?

  1. Add new property placeholders and redeploy the API proxy
  2. Add new environment variables and restart the API proxy
  3. Restart the API proxy to clear the API policy cache
  4. Add required headers to the RAML specification and redeploy the new API proxy

Answer(s): D

Explanation:

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 Snippet

SLA-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: string
Add 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 Manager
Step 3 : Apply the policy and redeploy


Reference:

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?

  1. false
  2. null
  3. Exception
  4. Empty Array

Answer(s): D

Explanation:

Empty array is returned when no rows are matched.


Reference:

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)

  1. Option A
  2. Option B
  3. Option C
  4. Option D

Answer(s): A

Explanation:

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- functions

DataWeave Function Definition Syntax
To 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.



A Utility.dwl file is located in a Mule project at src/main/resources/modules. The Utility.dwl hie defines a function named pascalize that reformats strings to pascal case.
What is the correct DataWeave to call the pascalize function in a Transform Message component? A)



B)



C)



D)

  1. Option A
  2. Option B
  3. Option C
  4. Option D

Answer(s): B






Post your Comments and Discuss Salesforce Salesforce-MuleSoft-Developer-I exam with other Community members:

Salesforce-MuleSoft-Developer-I Exam Discussions & Posts