If you're considering CDs vs bonds, here's a breakdown of how each works.