Practice Free GH-200 Exam Online Questions
What is the smallest scope for an environment variable?
- A . the workflow settings
- B . a step
- C . a job
- D . the workflow env mapping
As a developer, how can you identify a Docker container action on GitHub?
- A . The action’s repository includes @actions/core in the root directory.
- B . The action’s repository name includes the keyword "Docker."
- C . The action.yml metadata file references a Dockerfile file.
- D . The action.yml metadata file has the runs.using value set to Docker.
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.)
- A . Encrypt the dataset.
- B . Leverage the actions/download-secret action in the workflow.
- C . Store the dataset in a GitHub encrypted secret.
- D . Store the encryption keys in a GitHub encrypted secret.
- E . Compress the dataset
- F . Commit the encrypted dataset to the same repository as the workflow
- G . Create a GitHub encrypted secret with the Large object option selected and upload the dataset.
How many jobs will result from the following matrix configuration?

- A . 3 jobs
- B . 4 jobs
- C . 5 jobs
- D . 6 jobs
As a DevOps engineer, you are trying to leverage an organization secret in a repo. The value received in the workflow is not the same as that set in the secret.
What is the most likely reason for the difference?
- A . There is a different value specified at the rego level.
- B . There is a different value specified at the workflow level.
- C . The Codespace secret doesn’t match the expected value.
- D . The Encrypt Secret setting was not configured for the secret.
- E . There is a different value specified at the enterprise level.
In the following workflow file, line 5 interprets lines 3 and 4 as Python.
Which of the following is a valid option to complete line 5?
1 steps:
2 – run: |
3 import os
4 print(os.environ[‘PATH’])
5
- A . with: python
- B . shell: bash
- C . working-directory: .github/python
- D . shell: python
As a developer, you want to review the step that caused a workflow failure and the failed step’s build logs. First navigate to the main page of the repository on GitHub.
Which section contains the step failure information?
- A . Insights
- B . Code
- C . Actions
- D . Pull requests
- E . Issues
Which statement accurately describes using labels to route GitHub Actions workflows to runners?
- A . A user can assign multiple labels to a self-hosted runner and use the labels in a runs-on to target only runners that match all the specified labels.
- B . Labels apply only to GitHub-hosted runners and are ignored by self-hosted runners.
- C . GitHub Actions automatically assigns the runner’s IP address as a label, and the label must be used in a runs-on.
- D . To target a specific runner, the runs-on must match the runner’s hostname rather than its labels.
You need to create new workflows to deploy to an unfamiliar cloud provider.
What is the fastest and safest way to begin?
- A . Create a custom action to wrap the cloud provider’s CLI.
- B . Search GitHub Marketplace for verified actions published by the cloud provider.
- C . Use the actions/jenkins-plugin action to utilize an existing Jenkins plugin for the cloud provider.
- D . Search GitHub Marketplace for actions created by GitHub.
- E . Download the CLI for the cloud provider and review the associated documentation.
While awaiting approval, how many days can a workflow be in the “Waiting” state before it automatically fails?
- A . 7 days
- B . 14 days
- C . 30 days
- D . 60 days
