Which BEST explains why rainbows only appear when there is rain and sun?

A:The rain needs to dim the light for them to appear.
B:The combination of light and water creates a prismatic effect.
C:The sun restricts the light rays that impact with the water.
D:Heavy rain and little sun produce the strongest rainbows.

B:The combination of light and water creates a prismatic effect.