Correct option is A
Fruit fly larvae feed inside fruits. After maturity, larvae come out of fruits.
They pupate in the soil near host plants. Soil provides protection during pupal stage.
This is a key point in pest management. Hence soil is the correct answer.