Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam MCPA - Level 1 All Questions

View all questions & answers for the MCPA - Level 1 exam

Exam MCPA - Level 1 topic 1 question 46 discussion

Actual exam question from Mulesoft's MCPA - Level 1
Question #: 46
Topic #: 1
[All MCPA - Level 1 Questions]

An Order API must be designed that contains significant amounts of integration logic and involves the invocation of the Product API.
The power relationship between Order API and Product API is one of `Customer/Supplier`, because the Product API is used heavily throughout the organization and is developed by a dedicated development team located in the office of the CTO.
What strategy should be used to deal with the API data model of the Product API within the Order API?

  • A. Convince the development team of the Product API to adopt the API data model of the Order API such that the integration logic of the Order API can work with one consistent internal data model.
  • B. Work with the API data types of the Product API directly when implementing the integration logic of the Order API such that the Order API uses the same (unchanged) data types as the Product API.
  • C. Implement an anti-corruption layer in the Order API that transforms the Product API data model into internal data types of the Order API.
  • D. Start an organization-wide data modeling initiative that will result in an Enterprise Data Model that will then be used in both the Product API and the Order API.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Freedox
1 year, 5 months ago
Selected Answer: C
Option C, implementing an anti-corruption layer, is the best solution as it allows for the integration logic of the Order API to work with its own internal data model while still being able to interact with the Product API. This layer would be responsible for transforming the data model of the Product API into the internal data types of the Order API, thus ensuring that the two APIs can communicate effectively without any issues caused by differences in data models.
upvoted 1 times
...
AniL1488
2 years, 1 month ago
Selected Answer: C
Implement an anti-corruption layer in the Order API that transforms the Product API data model into internal data types of the Order API.
upvoted 1 times
...
calazans
2 years, 5 months ago
Selected Answer: A
Convince the development team of the Product API to adopt the API data model of the Order API such that the integration logic of the Order API can work with one consistent internal data model
upvoted 1 times
...
jmay
2 years, 8 months ago
Selected Answer: C
"Product API is used heavily throughout the organization" - making changes to the API definition will likely to break a lit of existing application or at least cause a regression test havok. It is much practical to transform it on the fly to suit Order API's need.
upvoted 1 times
...
Outdoor25
2 years, 10 months ago
Selected Answer: A
Should be A. Key is the power relationship Consumer/Supplier. Since product api is supplier, and order is consumer, product api will have to accommodate orders requirements.
upvoted 1 times
...
AB317
3 years, 3 months ago
Answer: A
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...