during the CWI exam, the question will tell u straightly... what is the direction of principle stress (transverse or parallel to the weld).
during the actual situation, u can either by visual if u are experience or knowledgable or from the design analysis.
Best Regards,
Noel Tan