MCD-ASSOC Sample Questions & Answers
Accessing Mule events, structuring applications, using connectors and processing records tie for the top weight, alongside application networks built on API-led connectivity, RAML design, transforming data, routing events, error handling, debugging, and deployment.
Launch the full MCD-ASSOC simulator →Showing 10 of 20 free samples.
- Question 1IntermediateSelect 2
Using Connectors · HTTP Request Configuration
An organization has a strict policy that all external HTTP requests must have a maximum response timeout of 5 seconds and must not hold connections open indefinitely. A developer is configuring an HTTP Request connector. Which TWO configuration settings are essential to meet these requirements? (Select TWO)
Show answer & explanation
Correct answers: A, B
The Response Timeout setting dictates the maximum time (in milliseconds) the connector will wait for a response after sending the request. This directly addresses the 5-second maximum response time requirement.
The Connection Idle Timeout setting specifies the maximum time a connection can remain idle in the connection pool before being closed. This prevents connections from being held open indefinitely, satisfying the second requirement.
- Question 2Intermediate
Structuring Mule Applications · Flow vs Subflow Error Handling
What is the primary difference in behavior between a subflow and a private flow when an error occurs within them and there is no internal error handler?
Show answer & explanation
Correct answer: C
Subflows do not have their own error handling scope. Any error occurring in a subflow is immediately passed to the error handler of the flow that called it. Private flows, like main flows, have their own processing strategy and error handling scope. If an error occurs and is not handled within the private flow, it is then re-thrown and can be caught by the calling flow.
- Question 3Beginner
Transforming Data · DataWeave Filtering and Mapping
A Mule application consumes a REST API that returns a JSON array of products. The developer needs to transform this array into XML format, but only including products where the 'inStock' field is true. What is the most efficient way to achieve this using DataWeave 2.0?
Show answer & explanation
Correct answer: B
The most idiomatic and efficient approach in DataWeave is to first reduce the dataset using the
filterfunction based on the condition (item.inStock == true). Then, themapfunction is used on the smaller, filtered array to perform the structural transformation to XML. This avoids iterating over items that will be discarded. - Question 4Advanced
Routing Events · Scatter-Gather Configuration
A developer is using the Scatter-Gather router to call three different backend services in parallel. The second service is known to be slow and sometimes fails. The requirement is that the flow should proceed if at least two of the three services respond successfully, and it should not wait longer than 8 seconds for all responses. Which configuration would achieve this?
Show answer & explanation
Correct answer: A
Setting the Scatter-Gather's timeout to 8000ms ensures the router does not wait longer than 8 seconds. Wrapping each route in a Try scope with an On Error Continue handler allows a failing route to complete 'successfully' from the Scatter-Gather's perspective, returning an error object instead of failing the entire component. This allows the aggregation phase to proceed as long as the timeout is not reached, and the developer can then inspect the results to see which routes succeeded or failed.
- Question 5Intermediate
Deploying and Managing APIs and Integrations · Scheduler Behavior in CloudHub
True or False: When a Mule application is deployed to a single CloudHub worker, a scheduler endpoint configured to run every 10 seconds is guaranteed to execute exactly 6 times per minute.
Show answer & explanation
Correct answer: B
The scheduler's execution is not guaranteed to be perfectly timed. Factors such as worker resource availability, thread contention, and the duration of the flow's execution can cause slight delays or 'jitter'. Furthermore, if the flow execution takes longer than the scheduled interval (e.g., 12 seconds), the next scheduled run might be skipped or delayed depending on the configured scheduling strategy. Therefore, it is not guaranteed to run exactly 6 times.
- Question 6Intermediate
Building API Implementation Interfaces · APIkit Validation
A developer is building an API implementation from a RAML specification using APIkit. The RAML defines a
POST /usersendpoint that expects a JSON body conforming to a specific schema. If a consumer sends a request with a malformed JSON body, what is the default behavior of the APIkit Router?Show answer & explanation
Correct answer: B
APIkit automatically validates incoming requests against the defined RAML specification, including schema validation for request bodies. If the payload does not conform to the schema (e.g., is malformed or has incorrect data types), APIkit will stop processing and automatically generate an HTTP
400 Bad Requestresponse without the request ever reaching the implementation flow. - Question 7Beginner
Debugging and Troubleshooting Mule Applications · Anypoint Studio Debugger Features
During a debugging session in Anypoint Studio, a developer wants to modify the value of a flow variable mid-flight to test a different conditional path in a Choice router. Which view in the Debug perspective allows for this action?
Show answer & explanation
Correct answer: B
The Mule Debugger view is the primary interface for inspecting the Mule event during a debug session. It displays the payload, attributes, and variables. By right-clicking on a variable in this view, the developer can choose to change its value, allowing them to dynamically alter the event's state and test different execution paths.
- Question 8Beginner
Using Connectors · SOAP Message Source
A Mule application needs to expose a SOAP web service. Which component acts as the message source to trigger a flow when a SOAP request is received?
Show answer & explanation
Correct answer: C
When exposing a SOAP web service from a WSDL, the APIkit for SOAP module is used. The 'APIkit SOAP Router' component acts as the message source for the flow. Internally, it uses an HTTP Listener to receive the raw HTTP request, but the router itself is the component that understands the SOAP protocol and routes the request to the correct operation flow.
- Question 9Intermediate
Structuring Mule Applications · Flow Reference Target Variable
What is the purpose of setting a
targetvariable on a Flow Reference component?Show answer & explanation
Correct answer: C
By default, when a Flow Reference calls another flow, the payload of the calling flow is replaced by the payload returned from the referenced flow. Setting the
targetproperty to a variable name (e.g.,myFlowResult) causes the referenced flow's return payload to be stored invars.myFlowResultinstead, leaving the original payload of the calling flow untouched. - Question 10Intermediate
Deploying and Managing APIs and Integrations · API Policies for Security
A financial services company is building a Process API to orchestrate calls to several System APIs. This Process API must not expose any of the backend System API endpoints to the client. This is a core tenet of API-led connectivity. Which API policy should be applied to the System APIs to ensure they can only be called from within the organization's Anypoint Platform ecosystem, specifically by the Process API?
Show answer & explanation
Correct answer: D
The Client ID Enforcement policy requires any calling application to present a valid client ID and client secret. To secure the System APIs, they can be configured with this policy in API Manager. Then, a contract is created that grants access to the Process API's specific client ID. This ensures that only registered and approved applications (like the Process API) can invoke the System API, preventing direct external access.
Ready for the real thing?
The full MCD-ASSOC simulator has every exam-style question, timed mode, and instant scoring.