Exam CCAR-F Topic 1 Question 17 Discussion
Actual exam question for Anthropic's CCAR-F exam
Question #: 17
Topic #: 1
Question #: 17
Topic #: 1
You are building developer-productivity tools using the Claude Agent SDK. The agent helps engineers explore unfamiliar codebases, understand legacy systems, generate boilerplate code, and automate repetitive tasks. It uses the built-in tools-Read, Write, Bash, Grep, and Glob-and integrates with Model Context Protocol (MCP) servers.
An engineer asks the agent to find every file in a monorepo that imports the @company/auth package to understand how authentication is used across services.
Which built-in tool is most appropriate for this task?
An engineer asks the agent to find every file in a monorepo that imports the @company/auth package to understand how authentication is used across services.
Which built-in tool is most appropriate for this task?
Suggested Answer: C Vote an answer
Option C directly searches source-file contents for imports of @company/auth . Anthropic's Claude Code tools reference states that Grep locates patterns within files, while Glob matches filenames and paths. The search can account for the repository's supported module syntaxes, including static imports, require() calls, dynamic imports, and re-exports. It can also restrict results by file type or directory when appropriate. Option A identifies packages that declare the dependency but does not prove which source files import or invoke it; workspace-level dependency declarations may cover many packages. Option B finds authentication-related filenames, which are unrelated to whether a file imports the package. Option D searches directory names and therefore has the same limitation. After Grep returns the matching files and line numbers, the agent can read the surrounding code to determine whether each import supports middleware registration, token verification, authorization checks, or re-exporting. This produces an accurate usage inventory while minimizing context consumption and unnecessary file reads.
by Lennon at Oct 16, 2026, 09:45 AM
Contact Us
If you have any question please leave me your email address, we will reply and send email to you in 12 hours.
Our Working Time: ( GMT 0:00-15:00 ) From Monday to Saturday
Support: Contact now
Comments
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).