MongoDB Interview Question

How would you evaluate whether to buy a solution vs. develop it in-house?