Your rank is assigned based on your actions within the community. You will gradually work up the rank ladder as you become more active in the community. You can find out more about the ranks in this doc.
Badges are earned as you complete different actions within the community. They are not tied to your rank, but as you earn more badges, you move up the rank ladder as they both equate to your actions in the community.
Finding your Badges and Ranks
Go to My Profile.
You will see your rank listed under your name.
For badges, you will see your earned badges to the right of your name.
Click on the View All Badges Earned, and you will see all the badges. Any grayed out badges have not been earned yet.
Click on any badge to learn what you did to earn it or need to do to earn it.