Which of the following sequence is correct?

Which of the following sequence is correct?
A . API Client implementes logic to call an API >> API Consumer requests access to API >> API Implementation routes the request to >> API
B . API Consumer requests access to API >> API Client implementes logic to call an API >> API routes the request to >> API Implementation
C . API Consumer implementes logic to call an API >> API Client requests access to API >> API Implementation routes the request to >> API
D . API Client implementes logic to call an API >> API Consumer requests access to API >> API routes the request to >> API Implementation

Answer: B

Explanation:

Correct Answer. API Consumer requests access to API >> API Client implementes logic to call an API >> API routes the request to >> API Implementation

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

>> API consumer does not implement any logic to invoke APIs. It is just a role. So, the option stating "API Consumer implementes logic to call an API" is INVALID.

>> API Implementation does not route any requests. It is a final piece of logic where

functionality of target systems is exposed. So, the requests should be routed to the API implementation by some other entity. So, the options stating "API Implementation routes the request to >> API" is INVALID

>> The statements in one of the options are correct but sequence is wrong. The sequence is given as "API Client implementes logic to call an API >> API Consumer requests access to API >> API routes the request to >> API Implementation". Here, the statements in the options are VALID but sequence is WRONG.

>> Right option and sequence is the one where API consumer first requests access to API on Anypoint Exchange and obtains client credentials. API client then writes logic to call an API by using the access client credentials requested by API consumer and the requests will be routed to API implementation via the API which is managed by API Manager.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments