Concept:
Milk and dairy products contain various pigments that contribute to their visual appearance.
• Fat-soluble pigments: Stay with the cream and butter.
• Water-soluble pigments: Stay with the whey after processing.
Step 1: Identifying the yellow pigment.
Carotene (specifically $\beta$-carotene) is a fat-soluble pigment.
It is obtained by the animal from green fodder.
Step 2: Distribution in dairy.
Because it is fat-soluble, it concentrates in the fat globules.
This is why cream, butter, and ghee appear yellow.
Step 3: Distinguishing from Riboflavin.
Riboflavin is water-soluble and provides a greenish-yellow tint to liquid whey.
Therefore, Carotene is the correct answer for solid dairy products.
Final Answer: (B)