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

Which default GitHub environment variable indicates the name of the person or app that initiated a workflow?A . ENV_ACTORB . GITHUB_WORKFLOW_ACTORC . GITHUB_ACTORD . GITHUB_USERView AnswerAnswer: C Explanation: The GITHUB_ACTOR environment variable indicates the name of the person or app that initiated the workflow. This variable is automatically provided by...

February 24, 2025 No Comments READ MORE +

How should you install the bats NPM package in your workflow?

How should you install the bats NPM package in your workflow? A) B) C) D) A . Option AB . Option BC . Option CD . Option DView AnswerAnswer: D Explanation: The correct syntax includes specifying the job (example-job), the runner (ubuntu-latest), and the necessary step (npm install -g bats)...

February 23, 2025 No Comments READ MORE +

How many jobs will result from the following matrix configuration?

How many jobs will result from the following matrix configuration? A . 3 jobsB . 4 jobsC . 5 jobsD . 6 jobsView AnswerAnswer: D Explanation: The matrix configuration specifies two variables: color and animal. The color variable has 2 values (green and pink), and the animal variable has 2...

February 10, 2025 No Comments READ MORE +

Which is the correct API to download a workflow run log?

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_idB . GET /repos/:owner/:repo/actions/artifacts/logsC . GET /repos/:owner/:repo/actions/runs/:run_id/logsD . POST /repos/:owner/:repo/actions/runs/:run_id/logsView AnswerAnswer: C Explanation: The GET /repos/:owner/:repo/actions/runs/:run_id/logs API endpoint is used to retrieve the...

February 8, 2025 No Comments READ MORE +

Which two statements are true?

As a developer, you are optimizing a GitHub workflow that uses and produces many different files. You need to determine when to use caching versus workflow artifacts. Which two statements are true? (Choose two.)A . Use caching when reusing files that change rarely between jobs or workflow runs.B . Use...

February 3, 2025 No Comments READ MORE +

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

What are the two ways to pass data between jobs? (Choose two.)A . Use the copy action with restore parameter to restore the data from the cacheB . Use the copy action to save the data that should be passed in the artifacts folder.C . Use the copy action with...

January 31, 2025 No Comments READ MORE +

Which of the following commands will set the $FOO environment variable within a script, so that it may be used in subsequent workflow job steps?

Which of the following commands will set the $FOO environment variable within a script, so that it may be used in subsequent workflow job steps?A . run: echo "::set-env name=FOO::bar"B . run: echo "FOO=bar" >> $GITHUB_ENVC . run: echo ${{ $FOO=bar }}D . run: export FOO=barView AnswerAnswer: B Explanation: The...

January 31, 2025 No Comments READ MORE +

Which YAML snippet should you use to match the interface in this image?

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) A . Option AB . Option BC . Option CD . Option DView AnswerAnswer: C Explanation: The first...

January 26, 2025 No Comments READ MORE +

To minimize management overhead and ensure the token is secure, which mechanisms should you use to store and access the token?

As a developer, you need to use GitHub Actions to deploy a microservice that requires runtime access to a secure token. This token is used by a variety of other microservices managed by different teams in different repos. To minimize management overhead and ensure the token is secure, which mechanisms...

January 26, 2025 No Comments READ MORE +

When reviewing an action for use, what file defines its available inputs and outputs?

When reviewing an action for use, what file defines its available inputs and outputs?A . inputs.ymlB . config.jsonC . defaults.jsonD . workflow.ymlE . action.ymlView AnswerAnswer: E Explanation: The action.yml file defines the inputs and outputs for a GitHub Action. This file contains metadata about the action, including the required inputs...

January 21, 2025 No Comments READ MORE +