How do you implement automated scaling and resource management in the cloud?