GitHub Actions v1.0

Page:    1 / 8   
Exam contains 107 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

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

While awaiting approval, how many days can a workflow be in the “Waiting” state before it automatically fails?

  • A. 30 days
  • B. 60 days
  • C. 14 days
  • D. 7 days


Answer : A

What is the proper syntax to reference the system-provided run number variable?

  • A. ${{var.GITHUB_RUN_NUMBER}}
  • B. ${{env.GITHUB_RUN_NUMBER}}
  • C. $GITHUB_RUN_NUMBER
  • D. ${{GITHUB_RUN_NUMBER}}
  • E. $github.run_number


Answer : D

How can a workflow deploy mitigate the risk of multiple workflow runs that are deploying to a single cloud environment simultaneously? (Each correct answer presents part of the solution. Choose two.)

  • A. Reference the mutex in the task performing the deployment.
  • B. Set the concurrency in the deploymentjob to 1.
  • C. Specify a target environment in the deploymentjob.
  • D. Specify a concurrency scope in the workflow.
  • E. Configure the mutex setting in the environment.
  • F. Pass the mutex into the deployment job.


Answer : CD

Which default GitHub environment variable indicates the name of the person or app that initiated a workflow?

  • A. GITHUB_ACTOR
  • B. GITHUB USER
  • C. ENV_ACTOR
  • D. GITHUB_WORKFLOW_ACTOR


Answer : A

Page:    1 / 8   
Exam contains 107 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