The independent (tested) variable in Farmer Brown's experiment is:
D. The amount of alfalfa sprouts the cattle are fed.
This is because the amount of alfalfa sprouts is what Farmer Brown is varying in the experiment to observe its effect on milk production.