MSBA-308 · Lesson 9 of 12 · 20 min
Common mistakes
▶ Video coming soon A video version of this lesson is on the way.
By the start of the third week Lena's error log had 46 entries from the practice assessment, two rounds of domain questions and Priya's snippet exercises. On Monday they sorted it. "Individual mistakes are noise," Priya said. "Patterns are signal. If you can name the five ways you lose marks, you can watch for them on the day." This lesson looks at the mistakes candidates most often make on GH-200, grouped by cause, and at the habits that prevent them.
Sorting an error log
Lena gave each entry one of four causes. A knowledge gap is something she did not know. A detail gap is something she knew in general but got wrong in a detail, such as which permission or which default. A reading error is a question she could have answered but misread. A look-alike is a question where two options were both reasonable and she picked the wrong one because she did not know the difference precisely.
The result surprised her: only 6 of the 46 were true knowledge gaps. Seventeen were detail gaps, twelve were reading errors and eleven were look-alikes. Most candidates who have used Actions in practice find the same thing. Their remaining marks are not in new topics but in precision.
Look-alike features
The exam often offers two options that both sound right. The fix is a precise one-line distinction for each common pair. Lena built this table from her look-alike errors.
| Pair | The difference |
|---|---|
| Cache versus artifact | A cache speeds up future runs; an artifact keeps or shares files from this run |
| Starter workflow versus reusable workflow | Copied once and independent, versus called by ref every time |
| Reusable workflow versus composite action | Whole jobs with their own runners, versus steps inside the caller's job |
| Secret versus variable | Encrypted and masked, versus plain configuration in the vars context |
| pull_request versus pull_request_target | Runs in the fork's context without secrets, versus the base repository's context with them |
| GITHUB_TOKEN versus GitHub App token | One repository for one job, versus the repositories an app is installed on |
| Disable versus delete a workflow | Paused with file and history kept, versus file removed from the branch |
| continue-on-error versus if: always() | The step may fail without failing the job, versus the step runs even if earlier ones failed |
| fail-fast versus max-parallel | Cancel remaining matrix jobs on a failure, versus limit how many run at once |
| Required reviewers versus branch protection | Approval before a deployment job, versus rules on merging into a branch |
Two pairs on that list cost Lena the most. continue-on-error and if: always() both seem to mean "keep going", but they do different things: the first lets a step fail without failing the job; the second makes a step run even when an earlier one failed. A cleanup step wants if: always(). An optional lint step that should not break the build wants continue-on-error. Required reviewers and branch protection both involve approvals, but the first gates a deployment job through an environment and the second gates merging a pull request.
Detail gaps that recur
Detail gaps are best fixed with short lists of facts that exams like to test. These are the details that most often appeared in Lena's log.
| Detail | Fact |
|---|---|
| Schedule interval | Five minutes at shortest; UTC unless a timezone is set |
| workflow_dispatch inputs | Up to 25, typed |
| Matrix size | At most 256 jobs per run |
| Reusable workflow nesting | Up to ten levels, 50 workflows per run |
| Hosted job time limit | Six hours per job |
| Artifact and log retention default | 90 days |
| GITHUB_TOKEN lifetime | Until the job ends, 24 hours at most |
| Unlisted permissions in a permissions key | Set to none |
| Docker actions | Linux runners only |
| OIDC permission | id-token: write |
| Attestation permissions | id-token: write and attestations: write |
| Secret precedence | Environment over repository over organization |
Lena did not try to memorize these as a list. For each one she did the thing once more in a test repository and then wrote the fact in her own words. A detail she had seen happen was a detail she remembered.
Reading errors
Reading errors were Lena's second biggest group. Almost all came from four habits, each with a simple counter.
| Habit | Counter |
|---|---|
| Answering the question she expected rather than the one asked | Read the last sentence of the question first, then the scenario |
| Missing a limiting word such as least, first, most cost-effective or not | Underline the limiting word on the whiteboard before reading options |
| Ignoring a fact in the scenario, such as the plan, visibility or runner type | List the constraints in the scenario before choosing |
| Misreading which job, step or level a YAML key belongs to | Use the lesson 8 reading routine |
Constraints in the scenario are especially important on this exam, because the right answer often depends on them. The same need, a human approval before deploying, has a different answer for a public repository on Team, a private repository on Team, and a private repository on Enterprise. The same need, running an action on several operating systems, rules out Docker. The same need, sharing a workflow across organizations, depends on whether they are in one enterprise.
Worked problem
The constraint that decides it
"A company on GitHub Team wants a manual approval before deploying from a private repository. What is the least administrative effort way to require it?" Lena chose "Add required reviewers to the production environment". Why was that marked wrong?
Show solution
- The scenario says GitHub Team and a private repository.
- On Team, required reviewers for environments apply to public repositories; private repositories need Enterprise.
- So the option she chose was not available in this scenario.
- The correct option used a gate the plan does offer: deploying only from main, with a branch protection rule on main that requires an approving pull request review before anything merges.
Answer: The plan and visibility ruled out environment reviewers; she missed the constraint, not the concept.
Overthinking and changing answers
Two smaller patterns remained. Some questions Lena got wrong because she imagined unusual cases the question did not mention, such as a custom setup that would make a less common option correct. The exam describes ordinary situations; answer for the situation described, not for exceptions you can imagine. And several times she changed a correct first answer to a wrong one during review. Priya's rule: change an answer only if you can name the fact you misread or forgot the first time. A feeling is not a reason.
Security answers that are too strong
The last pattern is specific to Actions. When an option offers maximum security, it is tempting to pick it. But exam answers balance security with what the scenario asks. Disabling all actions is secure and useless. Requiring approval for every workflow run from every contributor is secure and stops the team working. The right answer is usually the narrowest control that meets the stated need: a specific permission rather than write-all, an allow list rather than a ban, OIDC rather than removing the deployment.
A worked review of one practice set
To show the method, Priya reviewed one of Lena's ten-question sets aloud. Lena had scored seven. The three misses were a look-alike between a reusable workflow and a composite action, a detail about the six-hour job limit, which she had remembered as the limit for a whole workflow run, and a reading error where the question asked for the first step and she chose the most important one. Each was logged with its cause and its counter: a one-line distinction, the corrected fact written after checking the documentation, and a reminder to mark limiting words. Then Priya asked Lena to explain two of her correct answers. One explanation was right. The other was a lucky guess between two options she could not tell apart, so it went into the log too, as a look-alike.
That last step is the one most candidates skip. A correct answer you cannot explain is a mark you might lose next time, and finding those is as valuable as finding the wrong answers.
Worked problem
Classifying a miss
Lena answered that GITHUB_TOKEN can push to another repository in the same organization if the workflow grants contents: write. The answer was wrong. Which cause should she log, and what is the counter?
Show solution
- She knows what GITHUB_TOKEN is and what permissions do, so it is not a knowledge gap.
- She missed one precise fact: the token is scoped to the repository that runs the workflow, whatever its permissions.
- That is a detail gap.
- The counter is the corrected fact in her own words, after trying it in the test organization, with a GitHub App token as the alternative for cross-repository work.
Answer: A detail gap; the counter is a tested, rewritten fact and the right alternative.
Mistakes with numbers
Numeric details deserve their own warning because they look alike. Six hours is the limit for a job on a hosted runner. Thirty-five days is the limit for a workflow run as a whole, including waiting time. Five minutes is the shortest schedule interval. Twenty-five is the number of dispatch inputs; ten is the depth of nested reusable workflows; 256 is the number of jobs a matrix can produce. Lena wrote these as pairs of a number and what it limits, then covered one side and recalled the other, which is the simplest way to stop two numbers from swapping places.
Choosing between two plausible answers
When two options both seem possible after reading carefully, three questions usually separate them. Which one meets every stated requirement, not just the main one? Which one needs less administrative effort, if the question asks for that? Which one is the current, supported way, rather than an older pattern? Lena found that the third question alone resolved several look-alikes, such as an option that used the set-output command against one that wrote to GITHUB_OUTPUT.
Keeping the log useful
An error log only helps if it stays short enough to review. Lena's rule was one line per entry with four fields: the question's topic, her wrong answer, the right answer and the cause. She did not copy whole questions, which also kept her log free of anything resembling real exam content. Once a week she grouped entries by cause and by domain, which is how she spotted that most of her detail gaps were in the enterprise domain and most of her reading errors were in troubleshooting questions with long log excerpts. Those two findings went straight into her study plan in lesson 11.
Priya also suggested one entry per surprise from the labs, not just from practice questions. A lab that behaved differently from her prediction was an error found cheaply, before it could cost a mark. By the end of the third week, a quarter of Lena's flash cards came from lab surprises rather than from wrong answers.
Mistakes under time pressure
Some mistakes only appear when the clock is running. In her timed sets Lena noticed that her reading errors clustered in the last fifteen minutes, when she started to hurry. The counter was not to read faster earlier but to pace better: if she reached the three-quarter checkpoint on time, the last quarter had the same time per question as the first. Flagging a hard question and coming back to it was also safer than spending five minutes on it in the middle, because the time lost there turned into rushed reading at the end.
Common mistakes
MistakeSpending extra study time on new topics when most errors are details and reading.
InsteadSort the error log by cause and spend time where the marks are.
MistakeMixing up continue-on-error and if: always().
Insteadcontinue-on-error tolerates a failure; if: always() runs regardless of earlier failures.
MistakeIgnoring the plan or visibility in a scenario.
InsteadList the constraints before choosing an answer.
MistakeChanging answers on a feeling during review.
InsteadChange only when you can name the fact you missed.
MistakeChoosing the most restrictive security option by reflex.
InsteadChoose the narrowest control that meets the stated need.
At the end of the session Lena turned her 46 errors into 18 flash cards: ten look-alike pairs, five details and three reading habits. She reviewed them each morning for the rest of the week.
Summary and key terms
- Sort missed questions by cause: knowledge gap, detail gap, reading error or look-alike.
- Experienced candidates usually lose more marks to details and reading than to missing knowledge.
- Learn a one-line difference for each look-alike pair.
- Fix detail gaps by doing the task once more, not by memorizing lists.
- Read the question's last sentence first, mark limiting words and list the scenario's constraints.
- Answer for the ordinary situation described, and change answers only for a named reason.
- Pick the narrowest security control that meets the need.
- Knowledge gap
- A topic you did not know.
- Detail gap
- A topic you knew in general but got wrong in a specific detail.
- Reading error
- A question you could answer but misread.
- Look-alike
- A question with two reasonable options that differ in one precise way.
- Limiting word
- A word such as least, first or not that changes what the question asks.
- Constraint
- A fact in the scenario, such as the plan or visibility, that rules options in or out.
Practice problems
Work each problem on paper first, then reveal the answer to check.
Which suits a cleanup step that must run after a failure: continue-on-error or if: always()?
Show answer
if: always().
What should you do before reading the options in a long scenario?
Show answer
Read the last sentence, mark limiting words and list the constraints.
When should you change an answer during review?
Show answer
Only when you can name the fact you misread or forgot.
Lesson quiz · 5 questions
Score 60% or more to complete this lesson.
Create a free account to save your progress, take quizzes and earn a certificate.