Alphabet rallies on ad growth, Microsoft on cloud boom