Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Certified MuleSoft Platform Architect (Mule-Arch-201) Exam - Topic 8 Question 44 Discussion

Posted by Audria on May 31, 2026 at 07:52 AM

An Order API triggers a sequence of other API calls to look up details of an order's items in a back-end inventory database. The Order API calls the OrderItems process API, which calls the Inventory system API. The Inventory system API performs database operations in the back-end inventory database.

The network connection between the Inventory system API and the database is known to be unreliable and hang at unpredictable times.

Where should a two-second timeout be configured in the API processing sequence so that the Order API never waits more than two seconds for a response from the Orderltems process API?

Suggested Answer: A

Understanding the API Flow and Timeout Requirement:

The Order API initiates a call to the OrderItems process API, which in turn calls the Inventory system API to fetch details from the inventory database.

The requirement specifies that the Order API should not wait more than two seconds for a response from the OrderItems process API, even if there are delays further down the chain (between Inventory system API and the database).

Choosing the Appropriate Timeout Location:

Setting the timeout at the OrderItems process API level ensures that if the Inventory system API takes longer than two seconds to respond, the OrderItems process API will terminate the request and send a timeout response back to the Order API. This prevents the Order API from waiting indefinitely due to the unreliable connection to the database.

If the timeout were set in the Inventory system API or database, it would not help the Order API directly, as the OrderItems process API would still be waiting for a response.

Detailed Analysis of Each Option:

Option A (Correct Answer): Setting the timeout in the OrderItems process API allows it to control how long it waits for a response from the Inventory system API. If the Inventory system API does not respond within two seconds, the OrderItems process API can terminate the call and return a timeout response to the Order API, meeting the requirement.

Option B: Setting the timeout in the Order API would not limit the wait time at the OrderItems process API level, meaning the OrderItems process API could still wait indefinitely for the Inventory system API, leading to a longer delay.

Option C: Setting the timeout in the Inventory system API only affects the connection to the database and does not influence how long the OrderItems process API waits for the Inventory system API's response.

Option D: Setting a timeout in the database is not feasible in this context since database timeouts are typically configured for database operations and would not directly control the API response times in the overall API chain.

Conclusion:

Option A is the best choice, as it ensures that the OrderItems process API does not hold the Order API longer than the required two seconds, even if the downstream connection to the database hangs. This configuration aligns with MuleSoft best practices for setting timeouts in API orchestration to manage dependencies and prevent delays across a chain of API calls.

For additional information on timeout settings, refer to MuleSoft documentation on handling timeouts and API orchestration best practices.


Get Premium Salesforce Certified MuleSoft Platform Architect (Mule-Arch-201) Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
17 comments · newest first
OD
Odette 1 month ago
Maybe a timeout in both the Order API and Inventory system API would be best.
BO
Bobbie 1 month ago
Still, if the Inventory system hangs, it could affect everything.
LA
Lai 1 month ago
Exactly! It prevents waiting too long for any response.
CA
Carmen 2 months ago
True, but if the Order API has the timeout, it can handle it better.
OD
Odette 2 months ago
I feel like the Inventory system API is the right place. It’s where the delay happens.
BO
Bobbie 2 months ago
But what about the OrderItems process API? It might need a timeout too.
LA
Lai 2 months ago
I agree, that way it controls the overall response time.
CA
Carmen 2 months ago
I think the timeout should be in the Order API implementation.
DO
Dorothea 2 months ago
Isn't two seconds too short for a database call?
RO
Rory 3 months ago
I think it should be in the Inventory system API instead.
TA
Tamar 3 months ago
Wait, why not just set it in the Order API?
CE
Cecilia 3 months ago
Totally agree, that makes the most sense!
LE
Leatha 3 months ago
Timeout should be in the OrderItems process API.
KE
Kenneth 3 months ago
I recall a practice question where we had to manage timeouts, and it seemed like the best approach was to handle it at the API level that directly interacts with the unreliable service.
DI
Dino 4 months ago
I feel like the Inventory system API could be a good option too, but it seems like that would just delay the response to the Order API instead of helping it.
ED
Edna 4 months ago
I'm not entirely sure, but I remember something about setting timeouts in the calling API, which might mean the Order API is the right place.
JI
Jimmie 4 months ago
I think the timeout should be configured in the OrderItems process API implementation, since that's where the Order API is waiting for a response.
0/2000 characters

Save Cancel