Mcd - Assoc Free Sample Questions

20 free sample questions230 in the full practice test

Try simulator

MCD-ASSOC Sample Questions

  1. Question 1

    An integration architect is designing a solution to synchronize customer data between Salesforce and an on-premises legacy database. The legacy database is only accessible via a JDBC connection from within the company's private network. The Mule application will be deployed to CloudHub. Which Anypoint Platform component is required to establish a secure and reliable connection between the CloudHub-deployed application and the on-premises database?

    Answer and explanation

    Correct answer: C

    To connect a Mule application running in the public CloudHub to a private, on-premises resource like a database, a secure network extension is required. Anypoint VPN provides a secure IPsec tunnel between the Anypoint VPC and the private network. VPC Peering is an alternative for connecting to resources in another AWS VPC. Anypoint MQ is for messaging, and Object Store is for key-value storage; neither provides network connectivity.

  2. Question 2

    A Mule application processes incoming JSON orders. The application contains a Batch Job to process each order line item. Inside a batch step, a flow variable named transactionId is set for each record. In the On Complete phase of the Batch Job, a Logger component attempts to log the value of vars.transactionId. What is the result of this logging attempt?

    Answer and explanation

    Correct answer: C

    Variables created or modified within a batch step are local to that specific record's processing thread and are discarded once the record moves to the next step or finishes processing. They are not accessible in the On Complete phase. The On Complete phase only has access to the original payload that initiated the batch job and the final summary object.

  3. Question 3

    A flow is designed to handle API requests. If any processing error occurs, the flow must return an HTTP 500 status code with a generic JSON error message { "error": "An internal error occurred" }. However, the original error must also be logged for troubleshooting purposes without stopping the error handling process. Which error handling configuration achieves this?

    Answer and explanation

    Correct answer: B

    The On Error Continue scope is designed to handle an error and then allow the flow to continue as if it were successful. By placing a Logger inside this scope, the original error (error object) can be logged. Following the Logger, a Set Payload component can create the generic JSON error message. The flow then concludes successfully from the perspective of the HTTP Listener, which returns a 200 OK status by default. To return a 500, a Set Variable component should be used to set an 'httpStatus' variable to 500 within the error scope, which the HTTP Listener will then use.

  4. Question 4

    A RAML 1.0 specification defines a resource /users/{userId}. The userId is expected to be a positive integer. Which RAML snippet correctly defines this URI parameter with the specified data type constraint?

    Answer and explanation

    Correct answer: C

    In RAML, URI parameters are defined at the resource level where they appear. The correct syntax is to define the resource /users/{userId} and then, at the same indentation level, use the uriParameters facet. Inside this facet, you define the parameter userId and apply constraints like type: integer and minimum: 1.

  5. Question 5

    A developer needs to store a session token received from an OAuth 2.0 provider and use it for subsequent calls to a secured API within the same flow. The token must not be exposed in logs if the entire Mule event is logged, and it should not overwrite the main payload. What is the most appropriate way to store this token?

    Answer and explanation

    Correct answer: C

    Flow variables are the standard mechanism for storing transient data within a flow. They are part of the Mule event but separate from the payload, allowing the main data to be processed independently. Unlike attributes, they are user-defined and mutable. Outbound properties are a deprecated concept from Mule 3.

  6. Question 6

    Multiple answers

    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)

    Answer and 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.

  7. Question 7

    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?

    Answer and 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.

  8. Question 8

    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?

    Answer and explanation

    Correct answer: B

    The most idiomatic and efficient approach in DataWeave is to first reduce the dataset using the filter function based on the condition (item.inStock == true). Then, the map function is used on the smaller, filtered array to perform the structural transformation to XML. This avoids iterating over items that will be discarded.

  9. Question 9

    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?

    Answer and 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.

  10. Question 10

    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.

    Answer and 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.

Register free to unlock 10 more sample questions

Lifetime One

Own this practice test forever.

$79.99
$75.99
one-time
  • Full access to 230 questions
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • Brainy AI Assistant
  • Lifetime updates

Two

Any 2 exams per month.

$20.00/exam
$39.99
/month
  • 2 active exam slots
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • 1,000 Brainy AI Credits
  • Cancel anytime

Premium Twelve

Any 12 exams over 3 months.

$15.00/exam
$179.99
/3 months
  • 4 active exam slots
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • 15,000 Brainy AI Credits
  • Dedicated support
  • Friend seat included — full access

Trusted by professionals at

NvidiaSupabaseGitHubOpenAITursoClerkClaude AIAmazon