GITHUB-ACTIONS Exam Questions
75 real GITHUB-ACTIONS exam questions with expert-verified answers and explanations. Page 1 of 2.
- Question #1Configure and manage self-hosted runners
You are a developer, and your container jobs are failing on a self-hosted runner. Which requirements must you check to ensure that the self-hosted runner is properly configured? (C...
self-hosted runnerscontainer jobsDockerLinux requirements - Question #2Author and maintain actions
Which choices represent best practices for publishing actions so that they can be consumed reliably? (Choose two.)
action publishingversion pinningcommit SHArelease tags - Question #3Consume workflows
You need to create new workflows to deploy to an unfamiliar cloud provider. What is the fastest and safest way to begin?
GitHub Marketplaceverified actionscloud deploymentworkflow creation - Question #4Configure and manage GitHub-hosted runners
GitHub-hosted runners support which capabilities? (Choose two.)
GitHub-hosted runnersOS supportrunner capabilitiesLinux variants - Question #5Monitor and manage workflow runs
You need to make a script to retrieve workflow run logs via the API. Which is the correct API to download a workflow run log?
GitHub REST APIworkflow logsrun_idAPI endpoints - Question #6Author 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...
cachingartifactsworkflow optimizationfile retention - Question #7Author and maintain workflows
As a developer, you are designing a workflow and need to communicate with the runner machine to set environment variables, output values used by other actions, add debug messages t...
workflow commandsrunner communicationenvironment variablesdebug logging - Question #8Consume workflows
What menu options in a repository do you need to select in order to use a starter workflow that is provided by your organization?
starter workflowsorganization templatesrepository navigationActions tab - Question #9Author and maintain workflows
Where should workflow files be stored to be triggered by events in a repository?
workflow file location.github/workflowsrepository structureevent triggers - Question #10Configure and manage self-hosted runners
A development team has been using a Powershell script to compile and package their solution using existing tools on a Linux VM, which has been configured as a self-hosted runner. T...
PowerShellpwsh shellself-hosted runnersLinux runner - Question #11Manage GitHub Actions for the enterprise
What are the two types of environment protection rules you can configure? (Choose two.)
deployment environmentsenvironment protection rulesrequired reviewerswait timer - Question #12Configure and manage self-hosted runners
You have exactly one Windows x64 self-hosted runner, and it is configured with custom tools. Which syntax could you use in the workflow to target that runner?
self-hosted runnersruns-on syntaxrunner labelsworkflow YAML - Question #13Configure and manage self-hosted runners
Which of the following scenarios would require the use of self-hosted runners instead of GitHub- hosted runners?
self-hosted runnersspecialized hardwareconcurrent workflowsGitHub-hosted limitations - Question #14Monitor and manage workflow runs
As a developer, you want to review the step that caused a workflow failure and the failed step's build logs. First navigate to the main page of the repository on GitHub. Which sect...
workflow debuggingbuild logsActions tabfailure investigation - Question #15Manage GitHub Actions for the enterprise
When creating and managing custom actions in an enterprise setting, which of the following is considered a best practice?
custom actionsenterprise best practicesaction versioningrepository management - Question #16Author and maintain actions
As a developer, what is the safest way to reference an action to prevent modification of the underlying code?
action securitycommit SHAversion pinningsupply chain security - Question #17Author and maintain workflows
Without the need to use additional infrastructure, what is the simplest and most maintainable method for configuring a workflow job to provide access to an empty PostgreSQL databas...
service containersPostgreSQLDocker Hubdatabase testing - Question #18Author 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_TOKENtoken authenticationGitHub APIexplicit token usage - Question #19Author and maintain workflows
What will the output be for the following event trigger block in a workflow?
event triggersissue_comment eventissues eventtypes filtering - Question #20Author and maintain workflows
A Scheduled workflows run on the:
scheduled workflowscron triggersdefault branchschedule event - Question #21Manage encrypted secrets
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...
encrypted secretssecret scopingrepository secretssecret precedence - Question #22Use workflow components to automate software development lifecycle
Which scopes are available to define custom environment variables within a workflow file? (Choose three.)
environment variablesvariable scopingworkflow syntaxenv keyword - Question #23Manage 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 managementdisabling workflowsworkflow triggersexternal service impact - Question #24Use workflow components to automate software development lifecycle
What is the smallest scope for an environment variable?
environment variablesvariable scopestep scopeworkflow syntax - Question #25Author and maintain workflows
You are a developer working on developing reusable workflows for your organization. What keyword should be included as part of the reusable workflow event triggers?
reusable workflowsworkflow_callevent triggersworkflow authoring - Question #26Use workflow components to automate software development lifecycle
Which default environment variable specifies the branch or tag that triggered a workflow?
default environment variablesGITHUB_REFworkflow contexttrigger metadata - Question #27Create and publish custom GitHub Actions
What can be used to set a failed status of an action from its code?
action exit codesaction statusnon-zero exitaction failure - Question #28Use workflow components to automate software development lifecycle
What are the advantages of using a matrix strategy in a job definition? (Choose two.)
matrix strategyparallel jobsmulti-OS testingmulti-version testing - Question #29Manage dependencies and caching
As a developer, your Actions workflow often reuses the same outputs or downloaded dependencies from one run to another. To cache dependencies for a job, you are using the GitHub ca...
caching dependenciescache actioncache keycache path - Question #30Use workflow components to automate software development lifecycle
Which syntax correctly accesses a job output (output1) of an upstream job (job1) from a dependent job within a workflow?
job outputsneeds contextupstream jobworkflow syntax - Question #31Use workflow components to automate software development lifecycle
Which workflow commands send information from the runner? (Choose two.)
workflow commandsdebug messagesoutput parametersrunner communication - Question #32Create and publish custom GitHub Actions
As a developer, you are using a Docker container action in your workflow. What is required for the action to run successfully?
Docker container actionLinux runnerDocker environmentaction requirements - Question #33Create and publish custom GitHub Actions
Which action type should be used to bundle a series of run steps into a reusable custom action?
composite actionreusable actionaction typesrun steps - Question #34Manage encrypted secrets
As a DevOps engineer, you are trying to leverage an organization secret in a repo. The value received in the workflow is not the same as that set in the secret. What is the most li...
secret precedenceorganization secretsrepo-level secretssecret override - Question #35Manage GitHub Actions environments
What is the right method to ensure users approve a workflow before the next step proceeds?
environment protection rulesrequired reviewersdeployment approvalenvironment gates - Question #36Manage GitHub Actions workflows
You are reaching your organization's storage limit for GitHub artifacts and packages. What should you do to prevent the storage limit from being reached? (Choose two.)
artifact storageretention policystorage limitsartifact management - Question #37Use workflow components to automate software development lifecycle
Which run: command will set a step's output?
step outputsGITHUB_OUTPUToutput variablesworkflow commands - Question #38Create and publish custom GitHub Actions
As a developer, how can you identify a Docker container action on GitHub?
Docker container actionaction.ymlruns.usingaction identification - Question #39Create and publish custom GitHub Actions
Which files are required for a Docker container action in addition to the source code? (Choose two.)
Docker container actionDockerfileaction.ymlrequired files - Question #40Create and publish custom GitHub Actions
As a DevOps engineer developing a JavaScript action, you need to include annotations to pass warning messages to workflow runners. Which code snippet can you use to implement an an...
JavaScript actioncore toolkitwarning annotation@actions/core - Question #41GitHub Actions - Self-Hosted Runners
As a developer, your self-hosted runner sometimes looses connection while running jobs. How should you troubleshoot the issue affecting your self-hosted runner?
self-hosted runnerstroubleshootingdiagnosticslog files - Question #42GitHub Actions - Custom Actions
As a developer, you need to create a custom action written in Python. Which action type should you choose?
custom actionsDocker container actionaction typesPython - Question #43GitHub Actions - Workflow Syntax
Which keyword allows you to define environment variables in a GitHub Actions workflow?
environment variablesworkflow syntaxenv keyword - Question #44GitHub Actions - Workflow Syntax
What does the 'needs' keyword do in a GitHub Actions workflow?
job dependenciesneeds keywordworkflow syntax - Question #45GitHub Actions - Security and Secrets
What is the recommended approach for storing secrets larger than 48 KB?
secrets managementsecret size limitsencryptionrepository secrets - Question #46GitHub Actions - Workflow Triggers
As a developer, you want to run a workflow from the Actions tab in GitHub. Which YAML snippet should you use to match the interface in this image? A. B. C. D.
workflow_dispatchmanual triggerworkflow YAMLActions tab - Question #47GitHub Actions - Workflow Configuration
How many jobs will result from the following matrix configuration?
matrix strategyjob matrixworkflow configuration - Question #48GitHub Actions - Packages and Container Registry
As a developer, which workflow steps should you perform to publish an image to the GitHub Container Registry? (Choose three.)
GitHub Container RegistryDockercontainer publishingauthentication - Question #49GitHub Actions - Security and Secrets
As a developer, you have a 10-MB data set that is required in a specific workflow. Which steps should you perform so the dataset is stored encrypted and can be decrypted during the...
secrets managementlarge secretsencryptiondataset handling - Question #50GitHub Actions - Environment Variables
Which statement is true about using default environment variables?
default environment variablesGITHUB_WORKSPACEworkflow context