first thing make sure there are proper flashings around roof areas, like kick out flashings, window flashings and or sill flashings on windows. The proper caulking is a urethane based caulking by Tremco. Either a dymonic or dymeric caulking should be used. Both are urethane based for stucco.