Sales VS. Direct Financing Lease

Under US GAAP lessor accounting, how do you distinguish a sales type lease from direct financing lease. I guess we need to distinguish the two in order to know how much gain to recognize. Do exam questions usually tell us directly which one it is? PS. I understand that at a minimum level, we need to distinguish operating lease from sales type(financing lease).