Microsoft DevOps Engineer Expert AZ-400 Practice Question

You are designing a GitHub Actions workflow for a private organization-owned repository. The workflow must

  1. push code changes back to its own repository branches, and
  2. call the GitHub REST API to open an issue in another private repository within the same organization. You must follow least-privilege principles and avoid storing long-lived credentials in the workflow file. Which authentication approach should you implement?
  • Add an SSH deploy key to the repository and configure the workflow to use the key for both Git operations and REST API calls.

  • Create a fine-grained personal access token scoped to the organization and store it as an encrypted repository secret.

  • Register an organization-wide GitHub App with the required minimal permissions and authenticate the workflow by requesting its short-lived installation access token at run time.

  • Use the automatically generated ${{ secrets.GITHUB_TOKEN }} with its default permissions.

Microsoft DevOps Engineer Expert AZ-400
Develop a security and compliance plan
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot