When / how do I "choose a state" for CPA ?

Hi Guys, I'm wondering at what point in my quest to become a CPA do I have to choose/declare which state I want to be licensed in? Do I do this before I take the CPA Exams? In other words, when I sign up with Prometric to take the exam, am I signing up for a particular state's exam? Or can I write the CPA exams first, and then choose the state later? (The exams are "Uniform", so I guess that means that they're identical regardless of which state you're pursuing licensure for?)