An Alabama resident has been sentenced to eight years in state prison for sexual exploitation and trafficking of a minor.