Auto scaling uses predefined rules and algorithms to monitor key performance indicators like CPU usage, memory, and network traffic. When the metrics reach a certain threshold, the system automatically scales up by adding more resources. Conversely, when the demand decreases, it scales down to save costs. This dynamic adjustment ensures optimal performance and cost-efficiency.