Weekend Sale Special - 75% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: estly75

What is the smallest scope for an environment variable?

A.

the workflow settings

B.

a step

C.

a job

D.

the workflow env mapping

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 entry point. Which code block should be used to define the metadata file for your custom action?

A.

runs:

using: ' node16 '

start: ' start.js '

start-if: github.event_name == ' push '

main: ' index.js '

B.

runs:

using: ' node16 '

pre: ' start.js '

pre-if: github.event_name == ' push '

main: ' index.js '

C.

runs:

using: ' node16 '

pre-if: github.event_name == ' push ' then ' start.js '

main: ' index.js '

D.

runs:

using: ' node16 '

before: ' start.js '

before-if: github.event_name == ' push '

main: ' index.js '

Which step is using the dbserver environment variable correctly?

A.

steps:

- name: Hello world

run: echo $dbserver

variables:

dbserver: orgserver1

B.

steps:

- name: Hello world

run: echo $dbserver

env:

dbserver: orgserver1

C.

steps:

- name: Hello world

run: echo $dbserver

env:

- name: dbserver

value: orgserver1

D.

steps:

- name: Hello world

run: echo $dbserver

environment:

dbserver: orgserver1

What metadata file in a custom action defines the main entry point?

A.

action.js

B.

index.js

C.

action.yml

D.

main.yml

Which of the following scenarios requires a developer to explicitly use the GITHUB_TOKEN or github.token secret within a workflow? (Choose two.)

A.

passing the GITHUB_TOKEN secret to an action that requires a token as an input

B.

making an authenticated GitHub API request

C.

checking out source code with the actions/checkout@v3 action

D.

assigning non-default permissions to the GITHUB_TOKEN

Which statement is true regarding the ability to delete a workflow run?

A.

Completed workflow runs may be deleted.

B.

Pending workflow runs may be deleted.

C.

Workflow runs must be older than 30 days to be deleted.

D.

Admin access is required to delete a workflow run.

As a developer, what options should you recommend to implement standards for automation reuse? (Choose two.)

A.

Create workflow templates and store them in the organization ' s .github repository.

B.

Create reusable actions and workflows that can be called from other workflows.

C.

Create a marketplace partition to publish reusable automation for the company.

D.

Store shared corporate actions in subfolders in a defined and documented internally accessible repository.

Based on the YAML below, which two statements are correct? (Choose two.)

A.

This workflow will publish a package to an npm registry.

B.

This workflow will publish a package to GitHub Packages.

C.

This workflow file is using a matrix strategy.

D.

The workflow job publish-npm will only run after the build job passes.

What is the simplest action type to run a shell script?

A.

Docker container action

B.

Composite action

C.

Bash script action

D.

JavaScript action

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

A.

7 days

B.

14 days

C.

30 days

D.

60 days