A team is preparing several repositories for agentic development. Match each environment-specific constraint to the most appropriate GitHub or Copilot configuration approach. Which mapping is correct?
1. The agent must install private project dependencies before work starts.
2. Copilot CLI should operate only inside the intended repository.
3. An MCP server needs a token available to Copilot cloud agent.
4. The build script requires a supported Windows environment.
A. Add install commands to copilot-setup-steps
B. Add a COPILOT_MCP_ prefixed agent secret
C. Trust only the intended repository directory
D. Replace setup steps with pull_request_target
E. Set runs-on to a Windows runner
F. Store credentials in shared CLI outputChoose an answer
Tap an option to check your answer.
Correct answer: 1-A, 2-C, 3-B, 4-E.
Why this is the answer
1-A: To install private project dependencies before an agent starts work, adding installation commands to copilot-setup-steps is the correct approach. This ensures the dependencies are available in the agent's environment. 2-C: To restrict Copilot CLI operation to a specific repository, you should configure it to trust only that intended repository directory. This prevents unintended execution in other locations. 3-B: For an MCP (Managed Control Plane) server to access a token via a Copilot cloud agent, the token should be stored as a COPILOTMCP prefixed agent secret. This is the designated secure method for Copilot to access such credentials. 4-E: If a build script requires a Windows environment, setting runs-on to a Windows runner (e.g., windows-latest) in the workflow configuration ensures the job executes on a compatible operating system.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed