A developer wants Copilot CLI to fix failing tests and update a workflow. The repository is cloned at ~/work/acme-api, but the developer starts the session from a shared downloads folder that contains old ZIP files, credentials exports, and unrelated scripts. Which action should the developer take first? Select one answer.
cd ~/Downloads
copilot
# Prompt:
# Fix the failing auth tests, update the pull request validation workflow,
# run npm test, and prepare the branch for review.Choose an answer
Tap an option to check your answer.
Correct answer: Restart Copilot CLI inside the repository.
Why this is the answer
The developer must restart Copilot CLI inside the ~/work/acme-api repository. Copilot CLI operates on the current working directory. If started in ~/Downloads, it lacks the context of the acme-api project, making it unable to access the repository's files, tests, or workflows. Changing the directory to the repository ensures Copilot CLI can correctly interpret the prompt and perform the requested actions within the project's scope. Adding workflowdispatch is irrelevant to the immediate problem of Copilot's operational context. Exporting secrets is not the first step; Copilot needs repository context before it can even consider secrets. Asking Copilot to ignore unrelated folders is also premature; the primary issue is that Copilot isn't even aware of the relevant folder.
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