First, you’ll need to add an Environmental Variable that turns on extra settings for Teams. It need only be added once for a given course.
Next, you’ll use two Teams to handle the different settings that need to be applied.
That’s all it takes. The Override Settings that you configured on the special Team’s will override the regular settings in the exam itself.