During a carotid endarterectomy, the surgeon may need to temporarily clamp the common carotid artery and/or internal carotid artery to stop blood flow and safely remove plaque buildup.