You can set the mastery score for your course by clicking on the three dots at the top right corner of your course editor and selecting Settings > Scoring.
Note: If a course contains only non-scorable questions and Score Content Pages is turned off, the course will not have scorable content. In which case, no mastery score is generated.
For SCORM and xAPI exports, the mastery score and final score are returned as Null. To ensure correct reporting, the mastery score must be set to 0 for the course to return only Passed and Completed statuses.
Mastery score for the overall course
The overall score is calculated by adding the score reached for each scorable content/ question page in the course and dividing it by the total number of scorable content/ question pages in the course.
For example, let's imagine that the mastery score for the overall course is 80%. Even if a learner gets less than 80% for any section(s), but reaches 80% or more in total, the course will be passed successfully.
Mastery score for each section
To successfully pass the course, learners have to achieve a mastery score for each section, which is calculated in the same way, but counting only the scorable content/ question pages inside each section. For example, let's imagine that the mastery score per section is 80%. If a learner gets less than 80% for at least one section, the course will be failed.
Keep in mind that, in the case of a no-sections structure, each page counts as a section. That's why it is recommended to use the overall course option with a no-sections course structure.

