A web client sends a request to http;//localhost:8081?dept=sales. What is the correct DataWeave expression to access the value of dept?
A. attributes.queryParams.dept
B. attributes.dept
C. message.queryParams.dept
D. vars.dept
Refer to the exhibits.
The Set Payload transformer In the addltem subflow uses DataWeave to create an order object.
What is the correct DataWeave code for the Set Payload transformer in the createOrder flow to use the addltem subflow to add a router cable with the price of 100 to the order?
A. addltemf { payload: { price: "100", item: "router", itemType: "cable" } > )
B. lookupf "addltem", { payload: { price: "100", item: "router", itemType: "cable" } } )
C. addltemf { price: "100", item: "router", itemType: "cable" })
D. lookupf "addltem", { price: "100", item: "router", itemType: "cable" } )
Refer to the exhibit.
What should be changed to fix the 415 error?
A. set the response Content-Type header to text/plain
B. set the response Content-Type header to application/json
C. Set the request Content-Type header to application/] son
D. set the request Content-Type header to text/plain
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. In this case as per RAML specification data is expected in application/json and in request Content-Type is set as "text/plain" which is incorrect. Hence solution is set the request Content-Type header to application/json
Refer to the exhibit.
This RAML specification includes a resource and method to retrieve accounts by account_type and industry.
What is the correct URI to get all retail finance accounts?
A. /accounts/retail/finance
B. /accounts?account_type=retail&industry=finance
C. /accounts/account_type=retail/industry=finance
D. /accounts?account_type:retail&industry:finance
Explanation: Correct answer is /accounts?account_type=retail&industry=finance Query parameters are a defined set of parameters attached to the end of a url. They are extensions of the URL that are used to help define specific content or actions based on the data being passed. To append query params to the end of a URL, a ‘?’ Is added followed immediately by a query parameter. To add multiple parameters, an ‘&’ is added in between each.
Refer to the below exhibit.
A Mule application configures a property placeholder file named config.yaml to set some property placeholders for an HTTP connector.
What is the valid properties placeholder file to set these values?
A. 1. http:
2. host = "localhost"
3. port = "8081"
B. 1. http:
2. basepath: "api"
3. host : "localhost"
4. port : "8081"
C. 1. http.host = localhost
2. http.port = 8081
D. 1.{
2. http:
3. basePath: "api",
4. port: "8081",
5. host: " localhost"
Explanation:
Correct answer is as below as it follows the correct syntax. http:
basepath: "api" host : "localhost" port : "8081"
Page 11 out of 47 Pages |
Previous |