Two constraints to maximizing profit are cost of production and consumer demand.
Consumer demand is essential for revenue. Competition and budget can affect demand and put constraints to profit maximization. Cost of production can constraint profits maximization too because the higher the cost of raw material, the higher the cost of production will be, which in turn will affect the price of the product. This increase in price can also affect the demand.
The answer is then D.