Built-in Tools: Read, Write, Edit, Bash, Grep, Glob
Claude Certified Architect – Foundations (CCAR-F) exam practice questions · 10 flashcards
Question
Grep vs Glob?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Built-in Tools: Read, Write, Edit, Bash, Grep, Glob practice questions and answers
- Grep vs Glob?Grep searches file contents; Glob finds files by name/path pattern.
- When should you use Grep?To find function callers, error messages or import statements across files.
- When should you use Glob?To find files by pattern, e.g. **/*.test.tsx.
- What does Edit require?A unique text match to replace in the file.
- Edit fails because the anchor text isn't unique. Fallback?Read the full file, then Write the updated version.
- When should Read + Write be used instead of Edit?When targeted edits aren't reliable or the change is extensive.
- How should an agent explore an unfamiliar codebase?Incrementally: Grep for entry points, then Read to follow imports and trace flows.
- Why not read every file upfront?It floods context; targeted searches are more efficient.
- How do you trace a function's usage across wrappers?Find exported names first, then Grep for each name across the codebase.
- What is Bash used for?Running commands like tests, builds, git and scripts.