Undercut welding is a type of defect that occurs when welds have an undercut in the base metal. These grooves…