When the temperature in the ocean becomes too hot, the correct response is:
The algae become harmful to coral and are expelled.
This process is part of coral bleaching, where the stressed corals expel the symbiotic algae (zooxanthellae) living in their tissues, leading to a loss of color and a decrease in health for the coral.