A mule application exposes and API forcreating payments. An Operations team wants to ensure that the Payment API is up and running at all times in production.
Which approach should be used to test that the payment API is working in production?
A.
Create a health check endpoint that listens ona separate port and uses a separate HTTP Listener configuration from the API
B.
Configure the application to send health data to an external system
C.
Create a health check endpoint that reuses the same port number and HTTP Listener configuration as the API itself
D.
Monitor the Payment API directly sending real customer payment data
To test that the payment API is working in production, the developer should create a health check endpoint that listens on a separate port and uses a separate HTTPListener configuration from the API. This way, the developer can isolate the health check endpoint from the API traffic and avoid affecting the performance or availability of the API. The health check endpoint should return a simple response thatindicatesthe status of the API, such as OK or ERROR. References:https://docs.mulesoft.com/api-functional-monitoring/afm-create-monitor#create-a-monitor
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit