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

Page 3 of 59

Refer to the exhibits.



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

  1. The JSON payload
  2. An error message
  3. Nothing
  4. The payload convert to CVS

Answer(s): A

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 exhibit.



How many private flows does APIKIT generate from the RAML specification?

  1. 1
  2. 2
  3. 3
  4. 4

Answer(s): D



Refer to the exhibits.





The Validation component in the private flow throws an error.
What response message is returned to a client request to the main flow's HTTP Listener?

  1. Error - private flow
  2. Error - main flow
  3. Success - main flow
  4. Validation Error

Answer(s): B

Explanation:

Error in validation component will get processed by Processer level On Error Propagate block and then error will be rethrown which will get processed by flow level error handler which will set payload to "Error- main flow". Hence correct answer is Error - main flow

1) Request is received by HTTP listener
2) Try scope gets executed
3) The validator component in the Try scope creates an Error Object because the payload is not null.
4) The On Error Propagate handles the error. The payload is set to "Error ­ Try scope"
6) "Error ­ Try scope" is returned to the 'On Error Continue' block. Main flow execution stops.
Payload is set to "Error - main flow"
7) "Error - main flow" is returned to the requestor in the body of the HTTP request. HTTP Status Code: 200
-------------------------------------------------------------------------------------------------------------------------------------- ----
Reference Diagram though not exactly same, conditions are similar. They will help you answer any new question on error handling in real exam:



https://docs.mulesoft.com/mule-runtime/4.3/on-error-scope-concept#on-error-continue



Refer to the exhibit.



What should be changed to fix the 415 error?

  1. set the response Content-Type header to text/plain
  2. set the response Content-Type header to application/json
  3. Set the request Content-Type header to application/] son
  4. set the request Content-Type header to text/plain

Answer(s): C

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 https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/415






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

Salesforce-MuleSoft-Developer-I Exam Discussions & Posts