MCD-Level-1 Dumps 2022 - New MuleSoft MCD-Level-1 Exam Questions
Free MCD-Level-1 braindumps download (MCD-Level-1 exam dumps Free Updated)
NEW QUESTION 118
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?
- A. Validation Error
- B. Error - main flow
- C. Error - private flow
- D. Success - main flow
Answer: 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:
NEW QUESTION 119
Where are values of query parameters stored in the Mule event by the HTTP Listener?
- A. Variables
- B. Payload
- C. Inbound Properties
- D. Attributes
Answer: D
Explanation:
Correct answer is Attributes.
Query parameters , URI parameters and headers are some of examples which are part of attributes.
NEW QUESTION 120
Refer to the exhibits.
A Mule application has an HTTP Request that is configured with hardcoded values. To change this, the Mule application is configured to use a properties file named config.yaml.
what valid expression can the HTTP Request host value be set to so that it is no longer hardcoded?
- A. ${training:host}
- B. ${training.host}
- C. #[training.host]
- D. #[training:host]
Answer: B
Explanation:
Correct answer is ${training.host}
-------------------------------------------------------------------------------------------------------------------------------------------------- How to Configure Properties to Mule 4.X Platform?
1) Go to /src/main/resources project directory.
2) Create a configuration file with the name configuration.yaml inside the newly created config folder.
3) Go To Project > Global Element > Create > General >select the configuration.yaml file create in step- 2)
4) To verify develop a simple flow with HTTP listener which has above entries. Put the logger that prints the values on console.
5) Additional info: Similarly, when you want to access this port in DataWeave you need to use p function
NEW QUESTION 121
What is the correct way to format the decimal 200.1234 as a string to two decimal places?
- A. 200.1234 as string {format: ".0#"}
- B. 200.1234 as String {format: ".0#"}
- C. 200.1234 as String as format: ".0#"
- D. 200.1234 as string as format: ".0#"
Answer: B
Explanation:
Correct answer is 200.1234 as String {format: ".0#"} . Rest all options are not syntactically correct.
NEW QUESTION 122
Refer to the exhibit.


What payload is returned from a request to http//localhost.8081/
Refer
to the exhibits, what payload is returned from a request to http://localhost;8081/?
- A. 0
- B. 1
- C. 2
- D. 3
Answer: C
NEW QUESTION 123
Refer to the exhibits. What payload is logged at the end of the main flow?
- A. [1, 2, 3, 4]
- B. order4
- C. [order1, order2, order3, order4]
- D. order1order2order3order4
Answer: B
NEW QUESTION 124
Following Mulesoft's recommended API-led connectivity approach , an organization has created an application network. The organization now needs to create API's to transform , orchestrate and aggregate the data provided by the other API's in the application network. This API should be flexible enought ot handle the data from additional API's in future.
According to Mulesoft's recommended API-led connectivity approach , what is the best layer for this new API?
- A. Process layer
- B. Data layer
- C. Experience layer
- D. System layer
Answer: A
Explanation:
Correct answer is process layer as all the orchestration and transformation logic should be in process layer as per Mulesoft's recommended approach for API led connectivity.
NEW QUESTION 125
According to MuleSoft. what is the first step to create a Modern API?
- A. Gather a list of requirements to secure the API
- B. Performance tune and optimize the backend systems and network
- C. Create a prototype of the API implementation
- D. Create an API specification and get feedback from stakeholders
Answer: D
Explanation:
First step in creating Modern API is to create an API specification and get feedback from stakeholders so that any future issues can be identified at early stage thereby reducing overall delivery time
NEW QUESTION 126
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?
- A. success - main flow
- B. other error
- C. HTTP: NOT FOUND
- D. APP: API RESOURCE NOT FOUND
Answer: D
NEW QUESTION 127
A Mule application contains an ActiveMQ JMS dependency. The Mule application was developed in Anypoint Studio and runs successfully in Anypoint Studio.
The Mule application must now be exported from Anypoint Studio and shared with another developer.
What export options create the smallest JAR file that can be imported into the other developer's Anypoint Studio and run successfully?
- A. Option C
- B. Option B
- C. Option A
- D. Option D
Answer: D
NEW QUESTION 128
Refer to the exhibits.
The Mule Application is being debugged in Anypoint Studio and stops at breakpoint. What is the value of payload displayed in debugger at this breakpoint?
- A. Processing
- B. Begin
- C. Finished
Answer: B
NEW QUESTION 129
Explanation:
Correct answer is {customerID}.
- A. fun toUpper(userName) -> upper(userName)
- B. var toUpper(userName) = upper(userName)
- C. fun toUpper(userName) = upper(userName)
- D. var toUpper(userName) -> upper(userName)
Answer: C
Explanation:
Reference:
A function named toUpper needs to be defined that accepts a string named userName and returns the string in uppercase.
What is the correct DW code to define the toUpper function?
NEW QUESTION 130
Refer to the exhibits.
The orders.csv file is read, then processed to look up the orders in a database. The Mule application is debugged in Any point Studio and stops at the breakpoint.
What is the payload shown in the debugger at this breakpoint?
- A. 0
- B. "none"
- C. The database response
- D. The entire CSV file
Answer: A
NEW QUESTION 131
Refer to the exhibit.
What data is expected by the POST /accounts endpoint?
A)
B)
C)
D)
- A. Option C
- B. Option B
- C. Option A
- D. Option D
Answer: D
NEW QUESTION 132
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?
- A. Validation Error
- B. Error - main flow
- C. Success - main flow
- D. Error - private flow
Answer: C
NEW QUESTION 133
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?
- A. Add the dependency to the MULE_HOME/bin folder
- B. Deploy the dependency to MuleSoft's Maven repository
- C. Install the dependency to the computer's local Maven repository
- D. Edit the dependency in the Mule project's pom.xml file
Answer: C
NEW QUESTION 134
Refer to the exhibits.

A
web client submits a request to http://localhQst:8081. What is the structure of the payload at the end of the flow?
A)
B)
C)
D)
- A. Option C
- B. Option B
- C. Option A
- D. Option D
Answer: D
NEW QUESTION 135
Refer to the exhibits. The main flow contains an HTTP Request in the middle of the flow. The HTTP Listeners and HTTP Request use default configurations.
A web client submits a request to the main flow's HTTP Listener that includes query parameters for the pedigree of the piano.
What values are accessible to the Logger component at the end of the main flow?
- A. payload
pedigree query params - B. payload
pedigree query params producer var - C. payload
producer var - D. payload
Answer: C
NEW QUESTION 136
Refer to the exhibits.

The <when> expression for the Choice router needs to be written.
What is a valid <when> expression to route Mule events to the non-default flow?
- A. #['MuleSoft' == paytoad'company']
- B. #[ if( 'MuteSoff == paytoad.company) ]
- C. #[ if( company = "MuleSoft") ]
- D. #[ company = "MuleSoft" ]
Answer: B
NEW QUESTION 137
Refer to the exhibit.
What data is expected by the POST /accounts endpoint?
A)
B)
C)
D)
- A. Option C
- B. Option B
- C. Option A
- D. Option D
Answer: D
NEW QUESTION 138
Refer to the exhibits.
The input array of strings is processed by the batch job that processes, filters, and aggregates the values. What is the last message logged by the Logger component after the batch job completes processing?
- A. [ ["A", "C", "D" ], ["E"] ]
- B. [''D", "E"]
- C. [ "A", "C, "D", "E" ]
- D. [''E'']
Answer: D
Explanation:
Logs would look like:
INFO 2021-06-09 19:14:56,039 [[MuleRuntime].uber.06: [validationtest].batch-job-validationtestBatch_Job-work-manager @6de10f3e] [processor: validationtestFlow/processors/1/route/0/route/0/aggregator/processors/0; event: bfb751e1-9939-11eb-9f69-02053763653a] org.mule.runtime.core.internal.processor.LoggerMessageProcessor:
[
"\"A\"",
"\"C\"",
"\"D\""
]
--
INFO 2021-06-09 19:15:02,486 [[MuleRuntime].uber.06: [validationtest].batch-job-validationtestBatch_Job-work-manager @6de10f3e] [processor: validationtestFlow/processors/1/route/0/route/0/aggregator/processors/0; event: bfb751e1-9939-11eb-9f69-02053763653a] org.mule.runtime.core.internal.processor.LoggerMessageProcessor: [
"\"E\""
]
Batch aggregator value is 3. Hence in first time it will print ["A", "C", "D"] and in next iteration it will print [ "E" ]
-------------------------------------------------------------------------------------------------------------------------------------------------- Correct answer is [ "E" ]
NEW QUESTION 139
Refer to the exhibit.
The default scope in choice router recursively calls the color flow.
A web client sends a PUT request to the HTTP listener with payload Blue.
What response is returned to the web client?
- A. A timeout error
- B. "Green"
- C. ["Blue", "Red", "Blk"]
- D. "Blk"
Answer: D
Explanation:
Sequence can be described as follows.
* When web client sends the request , it sends payload as Blue (mentioned in question)
* In first iteration this will go to default choice , which sets payload to Red
* Via default route , flow will call itself with payload as Red
* In second iteration , as payload is Red , it will go to first route in choice router which will set payload to Blk and second iteration will end returning back payload as Blk to first iteration.
* This Blk will be again set to payload and first iteration will end returning back response as Blk
NEW QUESTION 140
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?
- A. Validation Error
- B. Error - main flow
- C. Error - Try scope
- D. Success - main flow
Answer: B
NEW QUESTION 141
Refer to the exhibits. The Set Payload transformer in the addltem child flow 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 child flow to add a router call with the price of 100 to the order?
- A. addltem( { price: "100", item: "router", itemType: "cable" } )
- B. addltem( { payload: { price: "100", item: "router", itemType: "cable" > } )
- C. lookup( "addltern", { price: "100", item: "router", itemType: "cable" } )
- D. lookup( "addltem", { payload: { price: "100", item: "router", itemType: "cable" } > )
Answer: D
NEW QUESTION 142
......
Verified MCD-Level-1 dumps Q&As - Pass Guarantee Exam Dumps Test Engine: https://troytec.examstorrent.com/MCD-Level-1-exam-dumps-torrent.html