The correct option is D Decomposer
Ecosystem is a functional unit of nature, where living organisms interact among themselves and also with their physical environment.
Ecosystem has structure and function. The structural components include the abiotic and biotic components.
The abiotic components include non-living components such as temperature, light, water and soil. These abiotic factors play a vital role in the functioning of the ecosystem.
Biotic components are living organisms. They include producers (autotrophs), consumers (heterotrophs) and decomposers (saprotrophs).
Producers are autotrophic organisms which are able to synthesise food from inorganic raw materials. Sunlight is the major source of energy for the producers. Examples include green plants.
Consumers/heterotrophs cannot synthesise their food, rather depend on other organisms for nourishment.
Decomposers obtain their nourishment from dead bodies and waste materials of producers and consumers. Examples include bacteria and fungi.