Free GitHub-Actions Exam Braindumps (page: 7)

Page 7 of 19

What are the two ways to pass data between jobs? (Choose two.)

  1. Use the copy action with restore parameter to restore the data from the cache
  2. Use the copy action to save the data that should be passed in the artifacts folder.
  3. Use the copy action with cache parameter to cache the data
  4. Use data storage.
  5. Use job outputs
  6. Use artifact storage.

Answer(s): E,F

Explanation:

Job outputs are used to pass data from one job to another in a workflow. A job can produce output values (like variables or files), which can be referenced by subsequent jobs using the needs keyword and ${{ steps.step_id.outputs.output_name }} syntax.

Artifact storage allows data (such as files or results) to be saved by a job and then retrieved by another job in a later step. This is commonly used for passing large amounts of data or files between jobs.



You installed specific software on a Linux self-hosted runner. You have users with workflows that need to be able to select the runner based on the identified custom software.
Which steps should you perform to prepare the runner and your users to run these workflows? (Choose two.)

  1. Create the group custom-software-on-linux and move the runner into the group.
  2. Inform users to identify the runner based on the group.
  3. Add the label custom-software to the runner.
  4. Configure the webhook and network to enable GitHub to trigger workflow.
  5. Add the label linux to the runner.

Answer(s): B,C

Explanation:

Once the runner is properly configured and labeled, users should be informed to select the specific runner by identifying the label or group name when defining the runner in their workflows.

Adding a custom label (like custom-software) to the runner makes it easier for users to select the runner in their workflows by using the runs-on key, which allows them to choose this specific runner based on its label.



Your organization needs to simplify reusing and maintaining automation in your GitHub Enterprise Cloud.
Which components can be directly reused across all repositories in an organization? (Choose three.)

  1. self-hosted runners
  2. actions stored m private repositories in the organization
  3. encrypted secrets
  4. custom Docker actions stored in GitHub Container Registry
  5. actions stored in an organizational partition in the GitHub Marketplace
  6. workflow templates

Answer(s): B,C,F

Explanation:

Actions stored in private repositories within the organization can be reused across all repositories by referencing them in workflows. This ensures a centralized way of maintaining custom actions. Encrypted secrets can be accessed across repositories in the same organization, making it easy to store sensitive data (like API keys or tokens) securely while allowing multiple workflows to access them.
Workflow templates allow you to create reusable templates for workflows that can be shared across repositories within the organization. This makes it easier to standardize processes and automate them across multiple projects.



In which locations can actions be referenced by workflows? (Choose three.)

  1. a separate public repository
  2. an .action extension file in the repository
  3. the same repository as the workflow
  4. a published Docker container image on Docker Hub
  5. the runs-on: keyword of a workflow file
  6. the repository's Secrets settings page
  7. a public NPM registry

Answer(s): A,C,D

Explanation:

Actions can be stored in a separate public repository and referenced in workflows by specifying the repository and action name.
Actions can also be stored in the same repository as the workflow and referenced directly by their path (e.g., ./.github/actions/my-action).
Actions can be packaged as Docker container images and published to Docker Hub. These can then be referenced in workflows by specifying the Docker image.



Page 7 of 19



Post your Comments and Discuss GitHub GitHub-Actions exam with other Community members:

Ian Hoskings commented on January 23, 2025
Hi I purchased the CKA exam and should have got the Github Actions exams as well. The Github exam is not downloading, can you advise please
UNITED KINGDOM
upvote