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 1 Question 81 Discussion

Actual exam question for MuleSoft's MCPA-Level-1 exam
Question #: 81
Topic #: 1
[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:

Lettie
5 months ago
That's a valid point, Kattie. Maybe a combination of options C and D could be the optimal solution - invoke primary first, fallback to DR with timeout and retry logic if needed.
upvoted 0 times
...
Kattie
5 months ago
But what if the primary environment goes down? Wouldn't it be better to have a fallback option in the DR environment, like option C suggests?
upvoted 0 times
...
Valentin
5 months ago
I agree with Lettie. Option D seems safer and less prone to errors. It's better to have a single point of invocation.
upvoted 0 times
...
Lettie
5 months ago
I disagree. I believe option D is better because relying only on the primary environment reduces complexity and adding timeout and retry logic improves reliability.
upvoted 0 times
...
Kattie
6 months ago
I think option B is the best choice. Invoking both APIs in parallel with a scatter-gather would provide the fastest response time.
upvoted 0 times
...

Save Cancel