A firm's primary objective is to maximize profits; however, there are always two constraints:

Acost and benefit.
Bsupply and demand.
Cprice and opportunity cost.
Dthe cost of production and consumer demand.

Verified Answer :

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.