GitHub Actions Practice Test

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?

  1. ENV_ACTOR
  2. GITHUB_WORKFLOW_ACTOR
  3. GITHUB_ACTOR
  4. 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.)

  1. The self-hosted runner is running a Linux operating system.
  2. The self-hosted runner is running a Windows operating system.
  3. Docker is installed on the self-hosted runner.
  4. Kubernetes is installed on the self-hosted runner.
  5. 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.)

  1. repo name
  2. tag
  3. commit SHA
  4. organization name
  5. 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?

  1. Create a custom action to wrap the cloud provider's CLI.
  2. Search GitHub Marketplace for verified actions published by the cloud provider.
  3. Use the actions/jenkins-plugin action to utilize an existing Jenkins plugin for the cloud provider.
  4. Search GitHub Marketplace for actions created by GitHub.
  5. Download the CLI for the cloud provider and review the associated documentation.