A developer wants to use Copilot CLI to inspect failing tests for the orders-api repository only. Several repositories are checked out under ~/work, and the terminal is currently at the parent directory. Which change should the developer make first? Select one answer.
cd ~/work
copilot
# Prompt:
# Find the failing tests in orders-api and suggest fixes.
# Do not inspect neighbouring repositories.Choose an answer
Tap an option to check your answer.
Correct answer: Launch Copilot inside orders-api.
Why this is the answer
Launching Copilot inside the orders-api directory ensures that Copilot's context is limited to that specific repository, allowing it to focus on inspecting its tests and suggesting fixes without interference from other repositories. Copilot CLI, by default, operates within the current working directory. Adding repository names to the prompt is less efficient and might not fully restrict the context. Running Copilot from the parent workspace (~/work) would give it access to all repositories, violating the requirement to inspect only orders-api. Opening all repositories in one terminal doesn't inherently restrict Copilot's scope to a single repository.
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