GH-200 practice question 8 of 15
Disabling a workflow allows you to stop a workflow from being triggered without having to delete the file from the repo. In which scenarios would temporarily disabling a workflow be most useful? (Choose two.)
Full set: 100 questionsDisabling a workflow is a temporary measure to stop its execution without deleting the workflow file. This is ideal for situations where the workflow is causing issues or cannot run successfully due to external factors. If a dependent service is down, disabling the workflow prevents repeated failures. Similarly, if a bug in the workflow is causing harmful requests (e.g., excessive API calls), disabling it immediately mitigates the impact while a fix is developed.
C. The type of runner used is irrelevant to the decision to disable a workflow; workflows on any runner type might need to be disabled for valid reasons.
D. Changing a trigger type is a code modification to the workflow's YAML file, not a reason for temporarily disabling it.
E. Enabling diagnostic logging is a debugging action for a specific run, not a reason to stop all future triggers of the workflow.
- GitHub Docs. (2024). "Disabling and enabling a workflow." In Managing workflow runs. Retrieved from https://docs.github.com/en/actions/managing-workflow-runs/disabling-and-enabling-a-workflow. The documentation states, "You might want to temporarily disable a workflow... For example... A workflow is triggering too often and creating too many requests... A workflow is sending requests to an external service that is down."
Keep practicing
Take the free GH-200 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other GH-200 practice questions
- Question 1Which action type should be used to bundle a series of run steps into a reusable custom a…
- Question 2As a developer, which workflow steps should you perform to publish an image to the GitHub…
- Question 3Where should workflow files be stored to be triggered by events in a repository?
- Question 5Which default environment variable specifies the branch or tag that triggered a workflow?
- Question 6As a developer, what is the safest way to reference an action to prevent modification of …
- Question 7Without the need to use additional infrastructure, what is the simplest and most maintain…
