GitHub GitHub Actions GitHub Actions Certificate Exam Online Training
GitHub GitHub Actions Online Training
The questions for GitHub Actions were last updated at Feb 21,2025.
- Exam Code: GitHub Actions
- Exam Name: GitHub Actions Certificate Exam
- Certification Provider: GitHub
- Latest update: Feb 21,2025
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?
- A . POST /repos/:owner/:repo/actions/runs/:run_id
- B . GET /repos/:owner/:repo/actions/artifacts/logs
- C . GET /repos/:owner/:repo/actions/runs/:run_id/logs
- D . POST /repos/:owner/:repo/actions/runs/:run_id/logs
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 statements are true? (Choose two.)
- A . Use caching when reusing files that change rarely between jobs or workflow runs.
- B . Use artifacts when referencing files produced by a job after a workflow has ended.
- C . Use caching to store cache entries for up to 30 days between accesses.
- D . Use artifacts to access the GitHub Package Registry and download a package for a workflow
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 to the output logs, and other tasks.
Which of the following options should you use?
- A . environment variables
- B . workflow commands
- C . self-hosted runners
- D . enable debug logging
E composite run step
Which of the following is the best way for an enterprise to prevent certain marketplace actions from running?
- A . Create a list of the actions that are restricted from being used as an enterprise policy. Every other action can be run.
- B . It is not possible; if an action is in the marketplace, its use cannot be restricted.
- C . Create a list that is maintained as a. yml file in a. github repository specified in the enterprise. Only these actions can be run.
- D . Create a list of the actions that are allowed to run as an enterprise policy. Only these actions can be run.
What are the two ways to pass data between jobs? (Choose two.)
- A . Use the copy action with restore parameter to restore the data from the cache
- B . Use the copy action to save the data that should be passed in the artifacts folder.
- C . Use the copy action with cache parameter to cache the data
- D . Use data storage.
- E . Use job outputs
- F . Use artifact storage.