MuleSoft Certified Developer - Level 1 (Mule 4) MCD - Level 1 Exam Questions in PDF

Free MuleSoft MCD - Level 1 Dumps Questions (page: 5)

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?

  1. Put the Database SELECT operation inside a Cache scope
  2. Put the Database SELECT operation inside a Message Enricher scope
  3. Nothing, previous payloads are combined into the next payload
  4. Save the payload from the Database SELECT operation to a variable

Answer(s): D

Explanation:

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?

  1. Allows CloudHub to automatically change the HTTP port to allow external clients to connect to the HTTP Listener
  2. Allows CloudHub to automatically register the application with API Manager
  3. Allows MuleSoft Support to troubleshoot the application by connecting directly to the HTTP Listener
  4. Allows clients to VPN directly to the application at the Mule application's configured HTTP port

Answer(s): A

Explanation:

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


Reference:

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?

  1. Edit the dependency in the Mule project's pom.xml file
  2. Install the dependency to the computer's local Maven repository
  3. Deploy the dependency to MuleSoft's Maven repository
  4. Add the dependency to the MULE_HOME/bin folder

Answer(s): B

Explanation:

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?

  1. #[attributes.queryParams.firstName]
  2. #[message.queryParams.hrstName]
  3. #[message.inboundProperties.'http.query.params'.firstName]
  4. #[attributes.'http.query.params'.firstName]

Answer(s): A



By default, what happens to a file after it is read using an FTP connector Read operation?

  1. The file is deleted from the folder
  2. The file is moved to a different folder
  3. The file stays in the same folder unchanged
  4. The file is renamed in the same folder

Answer(s): C

Explanation:

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?

  1. Success - main flow
  2. Error - main flow
  3. Error - Try scope
  4. Validation Error

Answer(s): A

Explanation:

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 flow
1) HTTP listener received request
2) The Flow Reference calls the child flow
3) 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_NUMBER

4) 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: 200
As 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?

  1. 0#[ payload = 'US' ]
  2. #[ payload == 'US' J
  3. #[ if(payload = 'US') J
  4. #[ if(payload == "US") ]

Answer(s): B

Explanation:

Choice Router
The 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>
PropertyDescription
Expression (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:

L
Lily
4/24/2023 10:50:00 PM

questions made studying easy and enjoyable, passed on the first try!

R
Raja
6/20/2023 4:38:00 AM

good explanation

R
Raja
6/20/2023 5:30:00 AM

i found some questions answers mismatch with explanation answers. please properly update

N
nnn
7/9/2023 11:09:00 PM

good need more

A
Ashok Kumar
1/2/2024 6:53:00 AM

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.

AI Tutor 👋 I’m here to help!