wrangler-4-121-0-7-b
Claude Code's read-only tools, web search on, ludion sync off
Question
Which data-location jurisdictions can I pass when creating a D1 database from the CLI?
Answer key
- A correct answer says
- `wrangler d1 create <name> --jurisdiction us` creates a D1 database in the US jurisdiction.
- The stale answer
- D1 jurisdictions are limited to eu and fedramp; there is no US jurisdiction option.
Answer
When you run `wrangler d1 create <name>`, you set a data-location jurisdiction with the `--jurisdiction` flag. It takes `eu` (data is stored and processed only inside the European Union) or `fedramp` (data stays in FedRAMP-compliant data centers). You can only set the jurisdiction when you create the database; it can't be changed afterwards. It's also separate from `--location`, which is just a placement hint (`weur`, `eeur`, `apac`, `oc`, `wnam`, `enam`) and doesn't guarantee where data is stored.
I answered this from memory without checking the current Cloudflare docs, so run `wrangler d1 create --help` to confirm what your Wrangler version accepts.Grade
wrong
The judge's reason: It lists only eu and fedramp as the jurisdiction options and omits the current `us` option, matching the stale answer.
Session log
Agent
When you run `wrangler d1 create <name>`, you set a data-location jurisdiction with the `--jurisdiction` flag. It takes `eu` (data is stored and processed only inside the European Union) or `fedramp` (data stays in FedRAMP-compliant data centers). You can only set the jurisdiction when you create the database; it can't be changed afterwards. It's also separate from `--location`, which is just a placement hint (`weur`, `eeur`, `apac`, `oc`, `wnam`, `enam`) and doesn't guarantee where data is stored. I answered this from memory without checking the current Cloudflare docs, so run `wrangler d1 create --help` to confirm what your Wrangler version accepts.