GITHUB-ACTIONS Exam Questions
75 real GITHUB-ACTIONS exam questions with expert-verified answers and explanations. Page 2 of 2.
- Question #51GitHub Actions - Workflow Commands
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 variablesGITHUB_ENVworkflow commandsstep outputs - Question #52GitHub Actions - Artifacts and Storage
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?
artifactsstorage limitsretention policiespackages - Question #53GitHub Actions - Packages and Publishing
Based on the YAML below, which two statements are correct? (Choose two.)
npm registryworkflow jobsjob dependenciesneeds keyword - Question #54GitHub Actions - Security and Authentication
In which scenarios could the GITHUB_TOKEN be used? (Choose two.)
GITHUB_TOKENtoken permissionsGitHub Packagesrepository permissions - Question #55GitHub Actions - Environment Variables
Which default GitHub environment variable indicates the owner and repository name?
default environment variablesGITHUB_REPOSITORYworkflow context - Question #56GitHub Actions - Workflow Triggers and Integration
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?
Checks APIwebhook eventscheck_runthird-party integration - Question #57GitHub Actions - Custom Actions
What metadata file in a custom action defines the main entry point?
custom actionsaction.ymlaction metadataentry point - Question #58GitHub Actions - Workflow Commands
Which workflow command would output the debug message "action successfully debugged"?
workflow commandsdebug messagesloggingworkflow syntax - Question #59GitHub Actions - Workflow Triggers
Which workflow event is used to manually trigger a workflow run?
workflow_dispatchmanual triggerworkflow events - Question #60GitHub Actions - Enterprise Configuration
Which of the following statements are true regarding the use of GitHub Actions on a GitHub Enterprise Server instance? (Choose three.)
GitHub Enterprise ServerGHESGitHub Connectaction synchronization - Question #61Author and maintain workflows
You need to trigger a workflow using the GitHub API for activity that happens outside of GitHub. Which workflow event do you use?
repository_dispatchworkflow triggersexternal eventsGitHub API - Question #62Manage GitHub Actions in the enterprise
Which of the following is the best way for an enterprise to prevent certain marketplace actions from running?
enterprise policyaction restrictionsmarketplace actionsallowlist - Question #63Author and maintain workflows
What are the two ways to pass data between jobs? (Choose two.)
job outputsartifact storagedata passinginter-job communication - Question #64Manage self-hosted runners
You installed specific software on a Linux self-hosted runner. You have users with workflows that need to be able to select the runner based on the identified custom software. Whic...
self-hosted runnersrunner labelscustom softwarerunner selection - Question #65Manage GitHub Actions in the enterprise
Your organization needs to simplify reusing and maintaining automation in your GitHub Enterprise Cloud. Which components can be directly reused across all repositories in an organi...
workflow templatesencrypted secretsorganization-level reuseGitHub Enterprise Cloud - Question #66Author and maintain actions
In which locations can actions be referenced by workflows? (Choose three.)
action referencesDocker Hubpublic repositoryworkflow syntax - Question #67Manage GitHub Actions in the enterprise
As a developer, what options should you recommend to implement standards for automation reuse? (Choose two.)
workflow templatesreusable workflowsautomation standardsorganization governance - Question #68Manage GitHub Actions in the enterprise
As a developer, you need to make sure that only actions from trusted sources are available for use in your GitHub Enterprise Cloud organization. Which of the following statements a...
action policiestrusted sourcesenterprise securityinternal marketplace - Question #69Use secrets and environment variables
As a developer, you need to use GitHub Actions to deploy a microservice that requires runtime access to a secure token. This token is used by a variety of other microservices manag...
encrypted secretsHashiCorp Vaultorganizational secretssecret management - Question #70Author and maintain actions
What is the minimal syntax for declaring an output named foo for an action? A. B. C. D.
action outputsaction.yml syntaxoutput declarationaction metadata - Question #71Author and maintain actions
When reviewing an action for use, what file defines its available inputs and outputs?
action.ymlaction metadatainputs outputsaction definition - Question #72Author and maintain workflows
How should you install the bats NPM package in your workflow? A. B. C. D.
NPM packagesworkflow stepspackage installationworkflow syntax - Question #73Use secrets and environment variables
How can GitHub Actions encrypted secrets be used in if: conditionals within a workflow job?
encrypted secretsif conditionalssecrets contextworkflow expressions - Question #74Author and maintain actions
As a DevOps engineer, you are developing a container action. You need to execute a cleanup script after completing the main script execution. Which code block should be used to def...
container actionspost entrypointcleanup scriptaction.yml syntax - Question #75Author and maintain workflows
Which default GitHub environment variable indicates the name of the person or app that initiated a workflow?
GITHUB_ACTORdefault environment variablesworkflow contextGitHub variables