The correct option is D All of the above
The ecosystem is a self-regulatory and self-sustaining structural and functional unit of the biosphere containing a community of living beings and the physical environment, both interacting and exchanging materials between them. In an ecosystem, energy flow is unidirectional. So, the correct option is "all of the above".