Question: what is the acceleration of the ball when it reaches maximum height?
Answer: At maximum height, the ball is momentarily at rest as it changes its direction of motion before accelerating towards the surface of earth. Hence at maximum height the magnitude of velocity is zero and acceleration is same as the acceleration due to gravity ie. 9.8 m/s^2.