When creating and managing custom actions in an enterprise setting, which of the following is considered a best practice?
As a developer, how can you identify a JavaScript action on GitHub?
Which action type should be used to bundle a series of run steps into a reusable custom action?
As a developer, you need to integrate a GitHub Actions workflow with a third-party code quality provider that uses the Checks API. How should you trigger a follow-up workflow?
You are a DevOps engineer working on a custom action. You want to conditionally run a script at the start of the action, before the main entrypoint. Which code block should be used to define the metadata file for your custom action?
As a developer, what options should you recommend to implement standards for automation reuse? (Choose two.)
As a DevOps engineer, you are developing a container action. You need to execute a cleanup script after completing the main script execution. Which code block should be used to define the cleanup script?
You need to use a specific version of an action. How should you use v1 of an actions/javascript-action repository in your workflow?
Which syntax correctly accesses a job output (output1) of an upstream job (job1) from a dependent job within a workflow?
As a developer, which of the following snippets will enable you to run the commands npm ci and npm run build as part of a workflow?
As a developer, you need to make sure that only actions from trusted sources are available for use in your GitHub Enterprise Cloud organization. Which of the following statements are true? (Choose three.)
What are the two types of environment protection rules you can configure? (Choose two.)
As a developer, you are using a Docker container action in your workflow. What is required for the action to run successfully?
You need to make a script to retrieve workflow run logs by using the API. Which is the correct API endpoint to download a workflow run log?
As a developer, how can you identify a composite action on GitHub?
How can a workflow deployment mitigate the risk of multiple workflow runs deploying to a single cloud environment simultaneously?
(Each correct answer presents part of the solution. Choose two.)
While writing a custom action, some behavior within the runner must be changed. Which workflow commands would set an error message in the runner ' s output?
(Each correct answer presents a complete solution. Choose two.)
What is the most suitable action type for a custom action written in TypeScript?
What are the most significant advantages of adding documentation while distributing custom actions?
(Each answer presents a complete solution. Choose two.)
Which workflow event is used to manually trigger a workflow run?
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?
Based on the YAML below, which two statements are correct? (Choose two.)
As a developer, you are designing a workflow and need to communicate with the runner machine to set environment variables, output values used by other actions, add debug messages to the output logs, and other tasks. Which of the following options should you use?
Which step is using the dbserver environment variable correctly?
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?
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?
Your organization has a secret that must be available to all the repositories within GitHub Actions workflows.
You need to store the secret. The solution must minimize administrative effort.
What should you do in GitHub?
Which of the following is the most common way to target a specific major release version?
What can be used to set a failed status of an action from its code?
You have exactly one Windows x64 self-hosted runner, and it is configured with custom tools. Which syntax could you use in the workflow to target that runner?
How many jobs will result from the following matrix configuration?
As a DevOps engineer developing a JavaScript action, you need to include annotations to pass warning messages to workflow runners. Which code snippet can you use to implement an annotation in your Actions?
As a DevOps engineer developing a JavaScript action, you need to include annotations to pass warning messages to workflow runners. Which code snippet can you use to implement an annotation in your Actions?
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?
Which run: command will set a step ' s output?
Which of the following is the best way for an enterprise to prevent certain marketplace actions from running?
GitHub-hosted runners support which capabilities? (Choose two.)
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.)
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?
You are a DevOps engineer working on deployment workflows. You need to execute the deploy job only if the current branch name is feature-branch. Which code snippet will help you implement the conditional execution of the job?
You are a DevOps engineer working on deployment workflows. You need to execute the deploy job only if the current branch name is feature-branch. Which code snippet will help you to implement the conditional execution of the job?
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