GitHub Actions v1.0

Page:    1 / 9   
Exam contains 124 questions

Which of the following scenarios would require the use of self-hosted runners instead of GitHub-hosted runners?

  • A. running more than the three concurrent workflows supported by GitHub-hosted runners
  • B. performing builds on macOS
  • C. exceeding 50,000 monthly minutes of build time
  • D. using specialized hardware configurations required for workflows
  • E. using Docker containers as part of the workflow


Answer : D

You are developing a GitHub Actions workflow that will build a .NET app.

You need to provide the workflow with access to a sensitive enterprise license. The solution must ensure that the license is NOT exposed publicly or hardcoded.

What should you do?

  • A. Use a GitHub-hosted Windows runner and expose the license via a public URL downloaded by the workflow at runtime.
  • B. Embed the license into an encrypted ZIP file stored in a repository and decrypt the file at runtime by using a hardcoded passphrase.
  • C. Use GitHub Enterprise Managed User (OIDC) in a GitHub-hosted or self-hosted Windows runner to fetch the license from a third-party vault or secrets manager at runtime.
  • D. Use a GitHub-hosted Ubuntu runner and store the license in a Base64-encoded repository.


Answer : D

Which YAML snippet triggers a GitHub Actions workflow for both push and pull request events?

  • A.
  • B.
  • C.
  • D.


Answer : D

You need to stop a GitHub Actions workflow from running. The solution must retain the configuration and execution history of the workflow.

What should you do?

  • A. Delete the workflow YAML file from the repository.
  • B. Select Actions and disable the workflow.
  • C. Rename the workflow YAML file.
  • D. Archive the workflow in a new branch.


Answer : B

You need to publish a release that includes assets in GitHub Actions. The solution must meet GitHub support requirements.

What should you do?

  • A. Run actions/upload-artifact followed by actions/create-release, and then actions/upload-release-asset.
  • B. Run gh release create in a script step to create a release and attach the assets after tagging a commit.
  • C. Use a GitHub Marketplace action that creates a release and uploads the assets in a single step.
  • D. Run git push --tags to automatically trigger GitHub to create a release that includes all the project files.


Answer : B

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?

  • A.
  • B.
  • C.
  • D.


Answer : B

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.


Answer : A

For which type of GitHub Actions workflows should you use a self-hosted runner?

  • A. workflows on a wide range of open-source software preinstalled in a GitHub-hosted environment
  • B. workflows in environments that have specific hardware or operating system requirements that are unavailable on a GitHub-hosted runner
  • C. workflows that require high availability and automatic scaling
  • D. workflows that have standard configurations and frequent GitHub updates


Answer : B

Which two actions ensure that a GitHub Actions workflow can be triggered manually? Each correct answer presents a complete solution.

NOTE: Each correct selection is worth one point.

  • A. Define a workflow_dispatch event and specify inputs that enable users to provide values when triggering the workflow manually.
  • B. Use a schedule event and add a manual: false parameter.
  • C. Define a workflow_dispatch event in the on field of the workflow YAML file.
  • D. Trigger a workflow manually by using a workflow_call event that has a button on the UI.


Answer : AC

Which native method should you use to pass files between jobs within the same GitHub Actions workflow?

  • A. Use artifact storage.
  • B. Use job outputs.
  • C. Use the copy action with the cache parameter to cache the data.
  • D. Use an external blob store


Answer : A

By default, which workflows can use an action stored in internal repository? (Each answer presents a complete solution. Choose two.)

  • A. selected public repositories outside of the enterprise
  • B. internal repositories owned by the same organization as the enterprise
  • C. public repositories owned by the same organization as the enterprise
  • D. private repositories owned by an organization of the enterprise


Answer : BD

Which default environment variable specifies the branch or tag that triggered a workflow?

  • A. GITHUB_REF
  • B. GITHUB_BRANCH
  • C. ENV_BRANCH
  • D. GITHUB_TAG


Answer : A

As a developer, you need to add the correct syntax to allow the following workflow file to be triggered by multiple types of events. Which two code blocks should you add starting at line 5? (Each correct answer presents a complete solution. Choose two.)

  • A. on: [push, pull_request]
  • B. on:
    branches:
    - 'main'
    - 'dev'
  • C. on:
    schedule:
    - cron: '*/15 * * * *'
    initiate:
    - 'main'
  • D. on: [push, commit]
  • E. on:
    push:
    branches:
    - main
    release:
    types:
    - created
  • F. on:
    env:
    - 'prod'
    - 'qa'
    - 'test'


Answer : AE

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/logs
  • B. GET /repos/:owner/:repo/actions/runs/:run_id/logs
  • C. POST /repos/:owner/:repo/actions/runs/:run_id
  • D. GET /repos/:owner/:repo/actions/artifacts/logs


Answer : B

You are reaching your organization’s storage limit for GitHub artifacts and packages. What should you do to prevent the storage limit from being reached? (Each correct answer presents a complete solution. Choose two.)

  • A. Use self-hosted runners for all workflow runs.
  • B. Delete artifacts from the repositories manually.
  • C. Configure the artifact and log retention period.
  • D. Disable branch protections in the repository.
  • E. Configure the repo to use Git Large File Storage.


Answer : BC

Page:    1 / 9   
Exam contains 124 questions

Talk to us!


Have any questions or issues ? Please dont hesitate to contact us

Certlibrary.com is owned by MBS Tech Limited: Room 1905 Nam Wo Hong Building, 148 Wing Lok Street, Sheung Wan, Hong Kong. Company registration number: 2310926
Certlibrary doesn't offer Real Microsoft Exam Questions. Certlibrary Materials do not contain actual questions and answers from Cisco's Certification Exams.
CFA Institute does not endorse, promote or warrant the accuracy or quality of Certlibrary. CFA® and Chartered Financial Analyst® are registered trademarks owned by CFA Institute.
Terms & Conditions | Privacy Policy | Amazon Exams | Cisco Exams | CompTIA Exams | Databricks Exams | Fortinet Exams | Google Exams | Microsoft Exams | VMware Exams