ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 87 - Certified MuleSoft Platform Architect I discussion

Report
Export

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?

A.
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
Answers
A.
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
B.
In parallel, invoke the system API deployed to the primary environment and the system API deployed to the DR environment using a scatter-gather configured with a timeout, and then merge the responses
Answers
B.
In parallel, invoke the system API deployed to the primary environment and the system API deployed to the DR environment using a scatter-gather configured with a timeout, and then merge the responses
C.
Invoke the system API deployed to the primary environment, and if it fails, invoke the system API deployed to the DR environment
Answers
C.
Invoke the system API deployed to the primary environment, and if it fails, invoke the system API deployed to the DR environment
D.
Invoke ONLY the system API deployed to the primary environment, and add timeout and retry logic to avoid intermittent failures
Answers
D.
Invoke ONLY the system API deployed to the primary environment, and add timeout and retry logic to avoid intermittent failures
Suggested answer: A

Explanation:

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 requirementThe 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.

asked 23/09/2024
gdgd gdgd
25 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first