The correct option is D Whole ecosystem will be affected.
In an ecosystem, all the biotic and abiotic components are mutually dependent. This means that even if one component is disturbed, the whole ecosystem will be affected. Hence if the soil gets polluted in a forest, biotic factors like plants and animals and other abiotic factors like air and water will also get polluted.