Refer to the exhibits.What is written to the records.csv file when the flow executes?
Answer(s): A
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?
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?
Answer(s): B
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 flow1) Request is received by HTTP listener2) Try scope gets executed3) 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?
Answer(s): C
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
Refer to the exhibit.What is the output payload in the On Complete phase
This is a trcik question. On complete phase pyalod consists of summary of records processed which gives insight on which records failed or passed. Hence option 4 is correct answer MuleSoft Documentation Reference : https://docs.mulesoft.com/mule-runtime/4.3/batch- processing-concept#on-complete
Refer to the exhibit.The main flow is configured with their error handlers. A web client submit a request to the HTTP Listener and the HTTP Request throws an HTTP:NOT_FOUND error.What response message is returned?''What response message is returned?
Correct answer is APP: API RESOURCE NOT FOUND-------------------------------------------------------------------------------------------------------------------------------------- -------------1) A web client submits the request to the HTTP Listener.2) The HTTP Request throws an "HTTP:NOT_FOUND" error, execution halts.3) The On Error Propagate error Handler handles the error. In this case ,HTTP:NOT_FOUND error is mapped to custom error APP:API_RESOURCE_NOT_FOUND. This error processor sets payload to APP:API_RESOURCE_NOT_FOUND.4) "APP:API_RESOURCE_NOT_FOUND. " is the error message returned to the requestor in the body of the HTTP request with HTTP Status Code: 500Reference Diagram:
What is the correct syntax for a Logger component to output a message with the contents of a 3SON Object payload?
Option 3 is the only corect answer as it concatenates payload with String.Below option wont work.#["The payload is " ++ payload]Concatenation function expects both arguments to be string. As the question says payload is json object , this will throw error while running it. You can try this in Anypoint Studio and you will get the same result which I mentioned.hence correct answer isThe payload is: #[payload]
Refer to the exhibit.What data is expected by the POST /accounts endpoint?A)B)C)D)
Share your comments for MuleSoft MCD - Level 1 exam with other users:
questions made studying easy and enjoyable, passed on the first try!
good explanation
i found some questions answers mismatch with explanation answers. please properly update
good need more
the correct answer to q8 is b. explanation since the mule app has a dependency, it is necessary to include project modules and dependencies to make sure the app will run successfully on the runtime on any other machine. source code of the component that the mule app is dependent of does not need to be included in the exported jar file, because the source code is not being used while executing an app. compiled code is being used instead.