Which of these best represents an ecosystem

A herd of deer grazing in a field
Mushrooms decomposing organic matter
A pitcher plant growing in nutrient-poor soil
Frogs and fish swimming in a pond in the forest

All of the options mentioned represent different components of an ecosystem. However, the one that best represents an ecosystem as a whole would be:

Frogs and fish swimming in a pond in the forest

This example includes multiple interacting organisms (frogs and fish) living in their natural habitat (the forest pond). An ecosystem is a community of living organisms (biotic components) interacting with their environment (abiotic components) in a specific area. The presence of different species and their interactions, along with the surrounding physical environment, makes this option the closest representation of an ecosystem.