Explain how you would configure an AWS EC2 instance or containerized environment to handle variable traffic loads.