The best way is to make sure that the posts are connected to the footings, the beams are connected to the posts, the joist are connected to the leger board and the ledger board is connected to the house framing and/or foundation. Also, brace the posts to resist movement. Good examples of how to accomplish this can be found in the City's Typical Deck Plans. For ledger board attachment, see page12 (figures 5, 6 and 7).
For lateral load connection of deck joists to floor joists, see page13 (figure 6a).
Attachment of the ledger board is the most important (even to ensure the ledger won’t dislodge during normal use from people standing, sitting and walking on the deck). It is very important to make sure to add lag screws or bolts to the connection if it has only been attached with nails.
For cross bracing of posts, see page 17.
For connections of joist, beams and posts, see pages 18-20.
Home improvement stores usually carry an assortment of metal straps, ties, hangers, ties, bolts and lag screws referenced in the document.