A flow needs to combine and return data from two different data sources. It contains a Database SELECT operation followed by an HTTP Request operation. What is the method to capture both payloads so the payload from the second request does not overwrite that from the first?
Answer(s): D
Correct answer is Save the payload from the Database SELECT operation to a variable Response from HTTP request will override the payload and hence response of database SELECT can be lost. Best way to preserve is to assign payload of first operation to variable using TransformMessage.
A Mule project contains a MySQL Database dependency. The project is exported from Anypoint Studio so it can be deployed to CloudHub.What export options create the smallest deployable archive that will successfully deploy to CloudHub?What export option create their smallest deployable archive that will successfully deploy to CloudHub?
Answer(s): B
Why would a Mule application use the ${http.port} property placeholder for its HTTP Listener port when it is deployed to CloudHub?
Answer(s): A
This helps CloudHub to dynamically allocates a port at deployment time. MuleSoft Doc Ref : https://docs.mulesoft.com/mule-runtime/4.3/deploy-to-cloudhub#prerequisites
https://docs.mulesoft.com/runtime-manager/developing-applications-for-cloudhub
Refer to the exhibit.The error occurs when a project is run in Anypoint Studio. The project, which has a dependency that is not in the MuleSoft Maven repository, was created and successfully run on a different computer. What is the next step to fix the error to get the project to run successfully?
As dependency is not present in Mulesoft Maven repository, we need to install the dependency on computer's local Maven repository.https://docs.mulesoft.com/mule-runtime/4.3/maven-reference
A web client submits a request to http://localhost:8081?flrstName=john. What is the correct DataWeave expression to access the firstName parameter?
By default, what happens to a file after it is read using an FTP connector Read operation?
Answer(s): C
File is not updated when FTP read operations is performed. MuleSoft Doc Ref : https://docs.mulesoft.com/file-connector/1.3/file-read
Refer to the exhibits.The Validation component in the Try scope throws an error. What response message is returned to a client request to the main flow's HTTP Listener? The Validation component in the Try scope throws an error. What response message is returned to a client request to the main flow's HTTP Listener?
Note that private flow has error scope defined as On Error Continue . So when error occurs in private flow , it is handled by this On Error Continue scope which sends success response back to main flow and does not throw back an error. So main continues normally and payload is set to Success - main flow.Hence correct answer is Success - main flow1) HTTP listener received request2) The Flow Reference calls the child flow3) The Is Number validator creates an Error Object because the payload isn't an integer. Child Flow execution stops#[error.description] = "payload is not a valid INTEGER value" #[error.errorType] = VALIDATION:INVALID_NUMBER4) The On Error Continue handles the errorThe payload is set to "Error Sub Flow"5) "Error Sub Flow" is returned to the main flow as if the child flow was a success. The Set Payload is executed. The payload is reset to "Success Finished Main Flow"6) "Success Main Flow" is returned to the requestor in the body of the HTTP request. HTTP Status Code: 200As you can see, in the above example, because the error was caught by an On Error Continue scope in the child flow (RED in, GREEN out) when the Mule Message returns to the parent flow, the parent flow knows none-the-different that there was a failure because the on error continue returns a 200 success message. Note that because, to the mainFlow, the childFlow appeared to succeed, the processing of mainFlow resumed after the flow reference.
Refer to the exhibit.What is a valid expression for the Choice router's when expression to route events to the documenticShipping flow?
Choice RouterThe Choice router dynamically routes messages through a flow according to a set of DataWeave expressions that evaluate message content. Each expression is associated with a different routing option. The effect is to add conditional processing to a flow, similar to an if/then/else code block in most programming languages.Only one of the routes in the Choice router executes, meaning that the first expression that evaluates to true triggers that route's execution and the others are not checked. If none of the expressions are true, then the default route executes.Properties of <when>PropertyDescriptionExpression (expression)Expression in DataWeave language to evaluate input.If the expression evaluates to true, this routing option is used:<when expression="#[vars.language == 'Spanish']" >Mulesoft Doc Ref : https://docs.mulesoft.com/mule-runtime/4.3/choice-router-concept With respect to above information ,Option 1 is the correct syntax as others are incorrect because of below reasons* Single = is not the correct syntax to validate the condition. It should be ==* If keyword is not required in when condition.
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.