GH-200 Workflow Practice Questions
The free GH-200: GitHub Actions questions that deal with workflow, with answers and explanations. The full bank and the timed practice test cover every topic the exam asks about.
Question #4
As a developer, which workflow steps should you perform to publish an image to the GitHub Container Registry? (Choose three.)
Select 3 answers.
Correct answer: B, C, D
Explanation
To publish an image you authenticate to GitHub Container Registry, build the container image in the workflow, and push it to the registry. Setting up Docker and pulling an image are not part of publishing.
Question #6
Without the need to use additional infrastructure, what is the simplest and most maintainable method for configuring a workflow job to provide access to an empty PostgreSQL database?
Correct answer: A
Explanation
GitHub Actions supports the use of service containers, which allows you to spin up a PostgreSQL database (or any other service) in a Docker container during your workflow. You can pull a PostgreSQL image from Docker Hub, and the container will automatically be available to your workflow job. This method requires no additional infrastructure and is easy to configure and maintain, as you simply define the container in the workflow file.
Question #7
As a developer, you want to run a workflow from the Actions tab in GitHub. Which YAML snippet should you use to match the interface in this image?





Correct answer: A
Question #8
As a developer, you have a 10-MB data set that is required in a specific workflow. Which steps should you perform so the dataset is stored encrypted and can be decrypted during the workflow? (Choose three.)
Select 3 answers.
Correct answer: A, D, F
Explanation
A 10-MB dataset exceeds the small size limit for GitHub secrets, so you encrypt it, commit the encrypted file to the repository, and store the decryption key in an encrypted secret that the workflow uses. Compression alone provides no encryption.
Continue with GH-200: GitHub Actions Exam
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in GH-200: GitHub Actions Exam, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
