The second is the usual way of tagging a question. It shows that the speaker thinks the preceding statement is correct.
The first is less usual. Said in a certain tone of voice, it may be heard as a challenge to the truth of the preceding statement as if the speaker had a reason to disbelieve it. Or, said a little differently, it can show doubt about the statement and act as a request