Automation helps manage and optimize cloud costs by automatically adjusting resource usage based on predefined policies and usage patterns. Examples include automated shutdown of unused resources, policy-based management, and automated scaling, all of which reduce manual intervention and improve efficiency.