A repository team wants Copilot cloud agent to remember stable build rules, apply frontend-specific guidance only to React files, and fetch live feature-flag state from an internal service when needed. Evaluate the following statements. 1. Stable build rules fit repository custom instructions better than short-term prompt context. 2. The React guidance is path-specific context for matching files, not global memory for every file. 3. Live feature-flag state should be copied into custom instructions so the agent can fetch it automatically.
repo/
.github/
copilot-instructions.md
instructions/
react-ui.instructions.md
services/
flags/
README.md
.github/copilot-instructions.md:
- Use pnpm 10.
- Run pnpm lint before creating a pull request.
- Do not document task-specific customer data here.
.github/instructions/react-ui.instructions.md:
---
applyTo: "web/**/*.tsx"
---
- Use the shared design tokens from web/theme/tokens.ts.
- Prefer existing form components before adding new ones.Choose an answer
Tap an option to check your answer.
Correct answer: 1=Yes 2=Yes 3=No.
Why this is the answer
Statement 1 is correct. Stable build rules are persistent and apply across the repository, making them ideal for repository custom instructions, which provide long-term, consistent guidance. Short-term prompt context is better suited for immediate, transient information. Statement 2 is correct. The applyTo frontmatter in react-ui.instructions.md explicitly scopes the React guidance to web//.tsx files. This demonstrates path-specific context, ensuring the instructions are applied only where relevant, rather than globally. Statement 3 is incorrect. Live feature-flag state is dynamic and changes frequently. Copying it into static custom instructions would quickly lead to outdated information. Instead, the agent should be configured to query the internal service directly at runtime to retrieve the current state.
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