Excess aminoacids are converted into urea in the liver, which is then transported to the kidneys and filtered out of the blood and excreted from the body in urine
Ions such as sodium are taken into the body in food, and then absorbed into the blood. The right balance of ions must be maintained by the kidneys, with the right amount reabsorbed into the blood and the rest removed in urine
The body has to constantly balance the water coming in against the water going out (through sweat, breathing, and urine). The kidneys regulate the amount of water in the body