GH-200 Exam Questions
95 real GH-200 exam questions with expert-verified answers and explanations. Page 2 of 2.
- Question #51Consume Workflows
In which locations can actions be referenced by workflows? (Each correct answer presents a complete solution. Choose three.)
GitHub ActionsAction ReferencingWorkflow SyntaxAction Sources - Question #52Author and Maintain Workflows
Scheduled workflows run on the:
Scheduled workflowsWorkflow triggersBranch contextWorkflow execution - Question #53Manage GitHub Actions for the Enterprise
In GitHub Enterprise Cloud, where do you set the policy that allows only enterprise hosted actions and reusable workflows to run?
GitHub Actions policiesEnterprise administrationHosted actionsReusable workflows - Question #54Author and Maintain Workflows
In GitHub Actions, where should you declare custom environment variables so they are accessible across all jobs and steps in a single workflow run?
GitHub ActionsEnvironment VariablesWorkflow YAMLWorkflow Scope - Question #55Implement and manage GitHub Actions workflows
Which GitHub Actions event configuration triggers only for pull requests targeting the release branch and not for push events?
GitHub Actions eventsPull request triggersBranch filtering - Question #56Author and Maintain Workflows
In GitHub Actions, which workflow key defines the events that trigger the workflow such as push or pull_request?
Workflow triggersGitHub Actions syntaxon keyword - Question #57Author and Maintain Workflows
As a DevOps engineer, you are developing workflows to build an application. You have a requirement to create the build targeting multiple node versions. Which code block should you...
GitHub ActionsWorkflow DefinitionMatrix StrategyNode.js - Question #58Implement and manage GitHub Actions workflows
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 b...
Workflow managementError handlingTroubleshooting workflowsResource optimization - Question #59Consume Workflows
Which of the following is a valid reusable workflow reference?
Reusable workflowsWorkflow syntaxGitHub ActionsWorkflow reference - Question #60Author and Maintain Workflows
What are the two ways to pass data between jobs? (Each correct answer presents part of the solution. Choose two.)
GitHub ActionsWorkflow designInter-job data transferArtifactsJob outputs - Question #61Author and Maintain Workflows
As a developer, you are optimizing a GitHub workflow that uses and produces many different files. You need to determine when to use caching versus workflow artifacts. Which two sta...
GitHub ActionsWorkflow OptimizationCachingArtifacts - Question #62Author and Maintain Workflows
Which syntax correctly accesses a job output (output1) of an upstream job (job1) from a dependent job within a workflow?
GitHub ActionsWorkflow OutputsJob DependenciesExpression Syntax - Question #63Implement and manage GitHub Actions workflows
What is the right method to ensure users approve a workflow before the next step proceeds?
Workflow approvalsGitHub EnvironmentsDeployment gatesRequired reviewers - Question #64Author and Maintain Workflows
As a developer, you need to integrate a GitHub Actions workflow with a third-party code quality provider that uses the Checks API. How should you trigger a follow-up workflow?
GitHub Actions eventsChecks APIWorkflow triggeringThird-party integration - Question #65Create and manage custom actions
What is the simplest action type to run a shell script?
GitHub ActionsCustom ActionsJavaScript ActionsShell Scripting - Question #66Create and manage custom actions
What is the most suitable action type for a custom action written in TypeScript?
Custom ActionsJavaScript ActionsTypeScriptAction Types - Question #67Author and Maintain Actions
You are a DevOps engineer working on custom Actions development. You need to handle the errors or exceptions as part of the JavaScript based action code. What should be added to th...
GitHub ActionsCustom ActionsError HandlingJavaScript Actions API - Question #68Author and Maintain Workflows
Custom environment variables can be defined at multiple levels within a workflow file including: (Each answer presents a complete solution. Choose three.)
Environment variablesWorkflow syntaxGitHub ActionsWorkflow levels - Question #69Author and Maintain Workflows
You are a DevOps engineer working on deployment workflows. You need to execute the deploy job only if the current branch name is feature-branch. Which code snippet will help you to...
GitHub ActionsConditional executionWorkflow jobsBranch conditions - Question #70Author and Maintain Actions
What are the mandatory requirements for publishing GitHub Actions to the GitHub Marketplace? (Each correct answer presents part of the solution. Choose two.)
GitHub ActionsGitHub MarketplacePublishing ActionsAction Metadata - Question #71Author and Maintain Workflows
Which of the following is the proper syntax to specify a custom environment variable named MY_VARIABLE with the value my-value?
GitHub ActionsEnvironment VariablesWorkflow SyntaxYAML - Question #72Author and Maintain Workflows
As a DevOps engineer, you need to define a deployment workflow that runs after the build workflow has successfully completed. Without modifying the build workflow, which trigger sh...
GitHub ActionsWorkflow triggersDependent workflowsDeployment workflows - Question #73Author and Maintain Workflows
Which step is using the dbserver environment variable correctly?
Environment VariablesGitHub Actions Workflow SyntaxStep ConfigurationShell Scripting - Question #74Implement security for GitHub Actions
In which scenarios could the GITHUB_TOKEN be used? (Each correct answer presents a complete solution. Choose two.)
GITHUB_TOKENPermissionsGitHub Actions securityAPI authentication - Question #75Author and Maintain Workflows
As a developer, which of the following snippets will enable you to run the commands npm ci and npm run build as part of a workflow?
GitHub ActionsWorkflow SyntaxRun CommandMulti-line Commands - Question #76Implement and manage GitHub Actions workflows
What is the smallest scope for an environment variable?
Environment variablesVariable scopeGitHub Actions workflows - Question #77Author and Maintain Workflows
Which workflow event is used to manually trigger a workflow run?
GitHub Actions eventsworkflow_dispatchManual workflow triggersWorkflow configuration - Question #78Author and Maintain Workflows
Where should workflow files be stored to be triggered by events in a repository?
GitHub Actions WorkflowsWorkflow TriggersUI ConfigurationWorkflow Management - Question #79Implement and manage GitHub Actions workflows
As a developer, which workflow steps should you perform to publish an image to the GitHub Container Registry? (Each correct answer represents part of the solution. Choose three).
GitHub Container RegistryContainer ImagesPublishing ImagesGitHub Actions - Question #80Author and Maintain Actions
While writing a custom action, some behavior within the runner must be changed. Which workflow commands would set an error message in the runner's output? (Each correct answer pres...
Workflow commandsGitHub Actions syntaxError loggingCustom actions - Question #81Author and Maintain Actions
Which action type should be used to bundle a series of run steps into a reusable custom action?
Custom ActionsComposite ActionsReusable ActionsGitHub Actions - Question #82Create and manage custom actions
Which choices represent best practices for publishing actions so that they can be consumed reliably? (Each correct answer presents a complete solution. Choose two.)
GitHub ActionsAction VersioningReliable ConsumptionBest Practices - Question #83Author and Maintain Workflows
What is a valid scenario regarding environment secrets?
Environment secretsGitHub Actions environmentsWorkflow securityCredentials - Question #84Create and manage custom actions
What are two reasons to keep an action in its own repository instead of bundling it with other application code? (Each correct answer presents a complete solution. Choose two.)
Custom ActionsAction Repository StructureAction VersioningAction Discoverability - Question #85Author and Maintain Workflows
As a developer, you are authoring a workflow that will deploy to both DevCloud and TestCloud resources. Each cloud resource is accessed with a different deployment key. Which appro...
Reusable WorkflowsEnvironment SecretsSecrets ManagementWorkflow Management - Question #86Implement and manage GitHub Actions workflows
GitHub-hosted runners support which capabilities? (Each correct answer presents a complete solution. Choose two.)
GitHub-hosted runnersRunner capabilitiesOperating systemsRunner maintenance - Question #87Implement and manage GitHub Actions workflows
Your organization is managing secrets using GitHub encrypted secrets, including a secret named SuperSecret. As a developer, you need to create a version of that secret that contain...
GitHub Actions SecretsSecret ScopingRepository-level SecretsWorkflow Configuration - Question #88Manage self-hosted runners
As a developer, one of your workflows will require XCode version 11.2 hosted on macOS Catalina (i.e., v10.15). You've already created and configured a self-hosted runner to conform...
Self-hosted runnersRunner labelsWorkflow targetingruns-on keyword - Question #89Author and Maintain Workflows
Which default GitHub environment variable indicates the owner and repository name?
GitHub ActionsEnvironment VariablesWorkflow ContextRepository Information - Question #90Author and Maintain Workflows
You are a DevOps engineer in ABC Corp. You need to schedule your deployment workflow twice a week at 7:45 UTC every Wednesday and Saturday. What is the appropriate YAML structure?
GitHub ActionsWorkflow schedulingCron expressionsYAML syntax - Question #91Implement and manage GitHub Actions workflows
You need to create new workflows to deploy to an unfamiliar cloud provider. What is the fastest and safest way to begin?
GitHub MarketplaceCloud integrationWorkflow best practicesAction discovery - Question #92Author and Maintain Workflows
Which scopes are available to define custom environment variables within a workflow file? (Choose three.)
Environment VariablesWorkflow SyntaxGitHub ActionsWorkflow Scope - Question #93Author and Maintain Workflows
Which of the following commands will set the $FOO environment variable within a script, so that it may be used in subsequent workflow job steps?
environment variablesworkflow syntaxstep communicationGitHub Actions - Question #94Author and Maintain Workflows
Which of the following scenarios requires a developer to explicitly use the GITHUB_TOKEN or github.token secret within a workflow? (Choose two.)
GITHUB_TOKENSecretsGitHub APIWorkflow authentication - Question #95Consume Workflows
By default, which workflows can use an action stored in internal repository? (Each answer presents a complete solution. Choose two.)
GitHub ActionsInternal repositoriesAction sharingDefault behavior