Plan out your degree in advance. Early on, make sure your credits and degree will transfer, to avoid having to retake classes.
Work toward a target school. If just starting at a 2-year institution, meet with an adviser at the 4-year institution to see what classes the four-year university requires and will accept.
Ensure your community or junior college is regionally accredited. Without regional accreditation, your credits may not be accepted or considered by your 4-year institution.
See if your state has any transfer policies. They may have prearranged deals where certain associate degrees transfer smoothly and evenly.
Choose associate degree programs and classes designed to transfer toward a bachelor's degree. Some of these programs and classes are labeled as college transfer or similar designation.