Docsity

GH-200 GitHub Actions Practice Exam 2026 Guide, Exams of Computer Science

Partial preview of the text

Download GH-200 GitHub Actions Practice Exam 2026 Guide and more Exams Computer Science in PDF only on Docsity!

GH- 200 GitHub Actions Practice Exam 2026 Guide

---------------5 H-200 GitHub Actions Practice Exam 2026 Guide What are GitHub Actions: “Answer: They are packaged scripts to automate tasks in a software- development workflow in GitHub. What format are GitHub actions? - Answer: Yaml What are the three types of GitHub Actions? - Answer: Container actions, JavaScript Actions, and composite actions. Where can container actions run? | Answer: Linux only. Where can JavaScript actions run? | Answer: Linux, MacOS, or Windows. What are composite actions? “Answer: They allow you to combine multiple workflow steps within one action. What is a GitHub actions workflow? + Answer: It is a process that you set up in your repository to automate software-development lifecycle tasks, including GitHub Actions. -----------------------+ r l I I I I I I I I I I I I I I I I L. OT Where are workflows stored? ~ Answer: In egithub/workflows directory. A workflow will have at least one: + Answer: Job A job is a section associated with a: + Answer: Runner What attribute specifies a runner? | Answer: runs-on: What are the two types of runners? | Answer: GitHub-hosted and selfhosted. What is a runner? ~ Answer: A runner is a server that has a GitHub Actions runner application installed. What are the 4 components of a GitHub Action? + Answer: Workflow, Job, Step, Action What is a Workflow? | Answer: An automated process that you add to your repository. What must a Workflow have one of? ~ Answer: A Job. What is a Job? + Answer: It is a section of the workflow that will be associated with a runner. What is a Step? ~ Answer: It is an individual task that can run commands in a job. What is an Action? (Part of a Workflow) - Answer: 'I‘hese are the commands to be executed. What syntax does the workflow schedule use? - Answer: POSIX cron syntax. r l I I I I I I I I I I I I I I I I L. OT What is a matrix used for? ~ Answer: variables. ‘o create multiple jobs that are made of all combinations of What the name for what is produced by a workflow, besides a log entry: | Answer: Artifact How long are artifacts stored for? + Answer: 90 Days What is a workflow created from? | Answer: Template ‘Lhese variables are used while the runner is executing a job? » Answer: Defaule Environment Variables Which variable type can be used at any time in workflow? | Answer: Context Variables Custom variables are defined using what context? + Answer: env What command is used to run actions or scripts How do you reuse dependencies for jobs? | Answer: Cache action What are the two required and one optional parameters for the cache action? + Answer: Key and Path are required, restore-keys is optional. T/F Artifacts can be passed between jobs? | Answer: True What two repository secrets need to be set to true to enable step debugging in a workflow? ACTIONS_RUNNER_DEBUG and ACLIONS_STEP_DEBUG r l I I I I I I I I I I I I I I I I L. OT What are steps to view the logs of a workflow? - Answer: 1. Navigate to the Actions tab in your repository. 2. In che left sidebar, click the desired workflow. 3. From the list of workflow runs, select che desired run. 4, Under Jobs, select the desired job. 5. Read the log output. T/F You cannot access workflow logs from a REST API? + Answer: False What is GitHub Packages? ~ Answer: A package registry What package managers are compatible with GitHub Packages? + Answer: npm, NuGet, RubyGems, Maven and Gradle T/F GitHub is also a container Registry? | Answer: True What is used to bundle packaged software as binary files? | Answer: GitHub Releases What are the steps to make a Docker container action? ~ Answer: 1. Create a Dockertile to define the commands to assemble the Docker image. 2. Create an action.yml metadata file to define the inputs and outputs of the action. Set the runs: using: value to docker and the runs: image: value to Dockerfile in the file. 3. Create an entrypoinc.sh file to describe the docker image. 4, Commit and push your action to GitHub with the following files: action.yml, entrypoint.sh, Dockerfile, and README.md. Which is faster, Docker or JavaScript actions? © Answer: JavaScript r l I I I I I I I I I I I I I I I I L. OT What parameter is the "Color and Feather icon to use to create a badge to personalize and distinguish your action in GitHub Marketplace.” from the action.yml file? And is it required? I Answer: Branding, no "runs" for Docker needs? © Answer: using ‘Docker’, image “runs” for JavaScript needs | Answer: using ‘nodel2', main (js file) “runs” for composite run needs? » Answer: using ‘composite’, steps (shell scripst) What is a workflow command? “Answer: They allow you to communicate with the GitHub Actions runner machine by printing formatted lines of text to the console. © Answer: Public and Private What are the two types of visibility of an actio: “Answer: Only workflows in the same repository can use What is the restriction on private actions these actions. What control execution method evaluates to a condition being true? ~ Answer: IF What is GitHub Secrets used for? ~ Answer: To store sensitive information. Whar are the two ways to delete artifacts? | Answer: Manual and API What are status badge: © Answer: Used to show workflow statuses on branches, events, services, and environments. r l I I I I I I I I I I I I I I I I L. OT What are the rwo environment protection rule | Answer: Required reviewers and Wait Timers Whar are the three policies that can be configured for action in GitHub Enterprise? ~ Answer: 1, Allow all actions. 2. Allow local actions only. 3. Allow select actions. Whar is used to manually synchronize actions across your enterprise instance? © Answer: ‘I'he “action-sync” tool. What is recommended to document for your enterprise corporate standards? - Answer: . Repositories for storage 2. Files/folders naming conventions 3, Location of shared components 4, Plans for ongoing maintenance 5. Contribution guidelines - Answer: Users with write access to an Who can create workflow templates in the Enterpris organizations .github repository. Where are GitHub-hosted runners available? © Answer: Enterprise Cloud r l I I I I I I I I I I I I I I I I L.