GitHub Actions Practice Test practice questions, page 4 of 4, with answer review and explanations.
Question 16
Which default GitHub environment variable indicates the name of the person or app that initiated a workflow?
ENV_ACTOR
GITHUB_WORKFLOW_ACTOR
GITHUB_ACTOR
GITHUB_USER
Question 17
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? (Choose two.)
The self-hosted runner is running a Linux operating system.
The self-hosted runner is running a Windows operating system.
Docker is installed on the self-hosted runner.
Kubernetes is installed on the self-hosted runner.
The service status of Kubernetes is "active".
Question 18
Which choices represent best practices for publishing actions so that they can be consumed reliably? (Choose two.)
repo name
tag
commit SHA
organization name
default branch
Question 19
You need to create new workflows to deploy to an unfamiliar cloud provider. What is the fastest and safest way to begin?
Create a custom action to wrap the cloud provider's CLI.
Search GitHub Marketplace for verified actions published by the cloud provider.
Use the actions/jenkins-plugin action to utilize an existing Jenkins plugin for the cloud provider.
Search GitHub Marketplace for actions created by GitHub.
Download the CLI for the cloud provider and review the associated documentation.