A prompt gives good answers in claude.ai, but the same text through the API behaves differently. Which explanation fits?
- Exam domain
- Applications and Integration33.1% of the exam
- Difficulty
- Medium
- In this mock
- 21 questions on this domainPractise this domain
Why the exam asks this
Domain 2: Applications and Integration (33.1%).
Objective in the exam guide: Claude Application Design: how Claude interprets instructions across interfaces (Claude Code, Desktop, claude.ai, API).
Behavior differs across interfaces.
Why B is the answer
claude.ai and the Claude apps add their own system prompt, so API calls without one see different instructions
Claude's web, desktop and mobile apps use a system prompt at the start of every conversation; API calls get only the system prompt you send.
How it works
claude.ai, desktop and mobile apps use a system prompt at the start of every conversation.
API calls only have the system prompt you provide.
The same user text can therefore behave differently.
Clues in the question
The words that point to the answer, and what each one tells you.
- Same text, different behavior
- Different surrounding instructions.
In detail
- Anthropic publishes the app system prompts in its release notes.
- Write your own system prompt for API use.
Side by side with look-alikes
| Explanation | True? |
|---|---|
| Apps add a system prompt | Yes |
| Tokenizer per request | No |
| Larger context in app | Not the cause |
| API ignores users | No |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. The API ignores user messagesWrong
The API processes user messages.
B. claude.ai and the Claude apps add their own system prompt, so API calls without one see different instructionsRight
Claude's web, desktop and mobile apps use a system prompt at the start of every conversation; API calls get only the system prompt you send.
C. The API uses a different tokenizer for every requestWrongMost tempting
Tokenization is consistent for a given model.
Why it tempts: Tokenization depends on the model, not on each request.
D. claude.ai always uses a larger context windowWrong
Context size is not the cause here.
In practice
- Test prompts through the API with your real system prompt, not in the app.