exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 4 question 66 discussion

Actual exam question from Microsoft's AZ-400
Question #: 66
Topic #: 4
[All AZ-400 Questions]

You have a GitHub repository that contains multiple workflows and a secret stored at the environment level.

You need to ensure that the secret can be used by all the workflows.

What should you do first?

  • A. Recreate the secret at the organization level.
  • B. Recreate the secret at the repository level.
  • C. Enable required reviewers.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
kay000001
Highly Voted 1 year, 11 months ago
Selected Answer: B
Answer should be B. Creating secrets at the repository level ensures that it is available to all workflows within that repository.
upvoted 6 times
...
zellck
Highly Voted 1 year, 11 months ago
Selected Answer: B
B is the answer. https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository
upvoted 6 times
...
Skankhunt
Most Recent 9 months, 4 weeks ago
I'm going with B, the question reads "You have A (one) GitHub repo". In this case, recreating it at the Org level would be an "over assignment".
upvoted 1 times
...
chloaus
1 year ago
For secrets stored at the organization-level, you can use access policies to control which repositories can use organization secrets. Organization-level secrets let you share secrets between multiple repositories, which reduces the need for creating duplicate secrets. Updating an organization secret in one location also ensures that the change takes effect in all repository workflows that use that secret. https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#creating-encrypted-secrets-for-an-organization
upvoted 1 times
...
ozbonny
1 year, 2 months ago
Selected Answer: B
since the question says all workflows but doesn't specify organization I infer that it is related to the repository B. Recreate the secret at the repository level.
upvoted 1 times
...
vsvaid
1 year, 4 months ago
Selected Answer: A
I think A is correct https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#creating-secrets-for-an-organization
upvoted 5 times
...
vector_bco
1 year, 6 months ago
all workflows inside the repository already have access to the environment secrets within this repository at the same time if we really need to be able to use secrets in ALL the repositories (within the any repo) we need recreate secrets on a higher level - organization - answer A
upvoted 2 times
...
ghabool
1 year, 7 months ago
I choose A Recreating the secret at the repository level would not make it available to all the workflows, as repository secrets are only accessible within the repository they are defined in
upvoted 3 times
...
catfood
1 year, 10 months ago
its also possible to enable the approvers/reviewers for each worfklow to access the secret at environment level. The question doesn't give us a motive eg. easiest, most secure....
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago