Pass the Microsoft GitHub Administrator GH-200 Questions and answers with CertsForce

Viewing page 2 out of 3 pages
Viewing questions 11-20 out of questions
Questions # 11:

You need to create new workflows to deploy to an unfamiliar cloud provider. What is the fastest and safest way to begin?

Options:

A.

Create a custom action to wrap the cloud provider's CLI.


B.

Search GitHub Marketplace for verified actions published by the cloud provider.


C.

Use the actions/jenkins-plugin action to utilize an existing Jenkins plugin for the cloud provider.


D.

Search GitHub Marketplace for actions created by GitHub.


E.

Download the CLI for the cloud provider and review the associated documentation.


Expert Solution
Questions # 12:

What is the minimal syntax for declaring an output named foo for an action?

A)

Question # 12

B)

Question # 12

C)

Question # 12

D)

Question # 12

Options:

A.

Option A


B.

Option B


C.

Option C


D.

Option D


Expert Solution
Questions # 13:

How many jobs will result from the following matrix configuration?

Question # 13

Options:

A.

3 jobs


B.

4 jobs


C.

5 jobs


D.

6 jobs


Expert Solution
Questions # 14:

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

Options:

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


Expert Solution
Questions # 15:
Options:

A.

Scheduled workflows run on the:


B.

latest commit and branch on which the workflow was triggered,


C.

latest commit from the branch named schedule,


D.

latest commit from the branch named main,


E.

specified commit and branch from the workflow YAML file,


F.

latest commit on the default or base branch


Expert Solution
Questions # 16:

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.)

Options:

A.

self-hosted runners


B.

actions stored m private repositories in the organization


C.

encrypted secrets


D.

custom Docker actions stored in GitHub Container Registry


E.

actions stored in an organizational partition in the GitHub Marketplace


F.

workflow templates


Expert Solution
Questions # 17:

What can be used to set a failed status of an action from its code?

Options:

A.

@actions/github toolkit


B.

JavaScript dist/ folder


C.

Dockerfile CMD


D.

a non-zero exit code


E.

output variable


F.

composite run step


Expert Solution
Questions # 18:

As a developer, you have a 10-MB data set that is required in a specific workflow. Which steps should you perform so the dataset is stored encrypted and can be decrypted during the workflow? (Choose three.)

Options:

A.

Encrypt the dataset.


B.

Leverage the actions/download-secret action in the workflow.


C.

Store the dataset in a GitHub encrypted secret.


D.

Store the encryption keys in a GitHub encrypted secret.


E.

Compress the dataset


F.

Commit the encrypted dataset to the same repository as the workflow


G.

Create a GitHub encrypted secret with the Large object option selected and upload the dataset.


Expert Solution
Questions # 19:

Which syntax correctly accesses a job output (output1) of an upstream job (job1) from a dependent job within a workflow?

Options:

A.

${{needs.job1.outputs.output1}}


B.

${{needs.job1.output1}}


C.

${{depends.job1.output1}}


D.

${{job1.outputs.output1}}


Expert Solution
Questions # 20:

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?

Options:

A.

via the .github repository owned by the organization


B.

via repositories owned by the organization


C.

via the GitHub Marketplace


D.

via a repository owned by a third party


Expert Solution
Viewing page 2 out of 3 pages
Viewing questions 11-20 out of questions