Ethics Exams

Hello Fellow Members, When do I need to take the AICPA Ethics Exam? Can I take it after I apply for the License in the state of Colorado ? I am trying to find out the validity of the exam. For how many years is it valid? Best Jui Buch