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 stressed corals expel the symbiotic algae (zooxanthellae) that live within their tissues, leading to a loss of color and vital energy sources.