The correct answer is: D. Water vapor and carbon dioxide.
Water vapor and carbon dioxide are the main greenhouse gases in the Earth’s atmosphere. They trap heat from the sun, which helps to keep the planet warm. However, too much greenhouse gas can cause the planet to warm too much, which can lead to climate change.
Oxygen and nitrogen are the two most abundant gases in the Earth’s atmosphere. However, they are not greenhouse gases. They do not trap heat from the sun.
Ozone is a gas that is found in the Earth’s stratosphere. It helps to protect the planet from harmful ultraviolet radiation from the sun. However, ozone is not a greenhouse gas. It does not trap heat from the sun.
Therefore, the correct answer is: D. Water vapor and carbon dioxide.