Which of the following is the preferred method of attaching a truss to wall?

Which of the following is the preferred method of attaching a truss to wall?