BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

MuleSoft Exam MCPA-Level-1 Topic 9 Question 83 Discussion

Actual exam question for MuleSoft's MCPA-Level-1 exam
Question #: 83
Topic #: 9
[All MCPA-Level-1 Questions]

A system API has a guaranteed SLA of 100 ms per request. The system API is deployed to a primary environment as well as to a disaster recovery (DR) environment, with different DNS names in each environment. An upstream process API invokes the system API and the main goal of this process API is to respond to client requests in the least possible time. In what order should the system APIs be invoked, and what changes should be made in order to speed up the response time for requests from the process API?

Show Suggested Answer Hide Answer
Suggested Answer: A

Correct Answer: In parallel, invoke the system API deployed to the primary environment and the system API deployed to the DR environment, and ONLY use the first response.

*****************************************

>> The API requirement in the given scenario is to respond in least possible time.

>> The option that is suggesting to first try the API in primary environment and then fallback to API in DR environment would result in successful response but NOT in least possible time. So, this is NOT a right choice of implementation for given requirement.

>> Another option that is suggesting to ONLY invoke API in primary environment and to add timeout and retries may also result in successful response upon retries but NOT in least possible time. So, this is also NOT a right choice of implementation for given requirement.

>> One more option that is suggesting to invoke API in primary environment and API in DR environment in parallel using Scatter-Gather would result in wrong API response as it would return merged results and moreover, Scatter-Gather does things in parallel which is true but still completes its scope only on finishing all routes inside it. So again, NOT a right choice of implementation for given requirement

The Correct choice is to invoke the API in primary environment and the API in DR environment parallelly, and using ONLY the first response received from one of them.


Contribute your Thoughts:

Hassie
6 months ago
I see both points, but I think option C is a good compromise in case the primary environment fails, we can fall back to the DR environment.
upvoted 0 times
...
Jacquelyne
6 months ago
I disagree, I believe option D is better because we should prioritize the primary environment and add retry logic for reliability.
upvoted 0 times
...
Lisbeth
6 months ago
I think option B is the best approach because we can get responses from both environments simultaneously and merge them.
upvoted 0 times
...
Olive
7 months ago
I would go with option D, adding timeout and retry logic seems like a good idea.
upvoted 0 times
...
Marylin
7 months ago
I disagree, I believe option B is more reliable.
upvoted 0 times
...
Tawny
7 months ago
I think option A is the best approach.
upvoted 0 times
...

Save Cancel