CCAR-P · Domain 7: Developer Productivity and Operational Enablement · 8% of the exam
Task 7.1: Packaging and Distributing Claude Code Workflows
Taking a Claude Code workflow one team has proven to the whole organization: what goes in the plugin (skills, hooks, subagents, commands, MCP configuration), the marketplace, managed settings, and which controls are enforced centrally so it stays safe when it runs unattended.
Study it
Rolling a Claude Code workflow out: plugins, marketplaces, managed settings and central controls
Try each one before opening the answer. Every option is explained, with the Anthropic documentation page that proves it.
Question 1 · choose 1
A platform team distributes its release-review plugin to every engineering team through its own GitHub marketplace. The marketplace entry and the plugin's manifest are:// .claude-plugin/marketplace.json (entry)
{ "name": "release-review",
"source": { "source": "github", "repo": "acme/release-review", "ref": "stable" } }
// release-review/.claude-plugin/plugin.json
{ "name": "release-review", "version": "1.4.0" }The team merged a fix to the hook that gates unattended release runs into the stable branch a week ago. Developers' machines still run the old hook. What should the team change?
ABump the version in plugin.json, for example to 1.4.1, and push it to the stable branch
BAdd "version": "1.4.1" to the marketplace entry and leave plugin.json as it is, so that the catalog announces the fix
CTell developers to add the marketplace again as acme/marketplace#stable, so that they receive the stable branch
DAsk developers to run /reload-plugins, so that their sessions load the latest commit of the stable branch
Show the answer and why
ABump the version in plugin.json, for example to 1.4.1, and push it to the stable branch
Correct
Updates are detected by comparing versions, so a ref that moves without a version change leaves users on the cached copy.
BAdd "version": "1.4.1" to the marketplace entry and leave plugin.json as it is, so that the catalog announces the fix
Incorrect
When both set a version, Claude Code uses the plugin.json value, so users still see 1.4.0.
CTell developers to add the marketplace again as acme/marketplace#stable, so that they receive the stable branch
Incorrect
The entry already points at the stable ref; without a version change, the cached copy stays in place.
DAsk developers to run /reload-plugins, so that their sessions load the latest commit of the stable branch
Incorrect
Reloading reads the installed copy; a GitHub-sourced plugin stays on its cached copy until its version changes.
A plugin's version decides when users get an update: Claude Code detects updates by comparing versions, so a ref that moves without a version change leaves users on the cached copy. Setting version in plugin.json keeps users on that version until you change it, and if both plugin.json and the marketplace entry declare a version, Claude Code uses the plugin.json value without warning.
To keep unattended runs to centrally approved extensions, a platform team ships this in managed settings to every CI runner:{
"strictPluginOnlyCustomization": true
}An audit then finds a nightly job that starts with:claude -p "Triage new issues" --plugin-dir ./tools/triage-pluginThe sideloaded plugin brings hooks and an MCP server that nobody reviewed. Which managed control closes this gap while approved plugins keep loading?
ANone; strictPluginOnlyCustomization already blocks hooks and MCP servers from every source other than managed settings
BAdd a permissions.deny rule for the ./tools/triage-plugin path, so that Claude can't read the plugin's files
CAdd "disableSideloadFlags": true, so that Claude Code rejects --plugin-dir and the other sideload flags at startup
DCommit "disableSideloadFlags": true to the job's repository in .claude/settings.json, so that the setting travels with the job
Show the answer and why
ANone; strictPluginOnlyCustomization already blocks hooks and MCP servers from every source other than managed settings
Incorrect
It blocks skills, agents, hooks and MCP servers from user and project sources; plugins still load, and sideload flags remain open.
BAdd a permissions.deny rule for the ./tools/triage-plugin path, so that Claude can't read the plugin's files
Incorrect
A deny rule on a path stops Claude's file tools from reading it; it doesn't stop Claude Code loading a plugin folder passed at startup.
CAdd "disableSideloadFlags": true, so that Claude Code rejects --plugin-dir and the other sideload flags at startup
Correct
It rejects --plugin-dir, --plugin-url, --agents and --mcp-config, which users could otherwise pass for a single run.
DCommit "disableSideloadFlags": true to the job's repository in .claude/settings.json, so that the setting travels with the job
Incorrect
disableSideloadFlags has managed scope only; it must come from a managed settings source.
strictPluginOnlyCustomization blocks skills, agents, hooks and MCP servers from user and project sources, while plugins keep loading. The guidance pairs it with disableSideloadFlags, a managed-only key that rejects the --plugin-dir, --plugin-url, --agents and --mcp-config flags at startup and also plugin folders named in CLAUDE_CODE_PLUGIN_DIRS, so a single run can't sideload unreviewed plugins, agents or MCP servers.
A platform team lets developers install Claude Code plugins from Anthropic's community marketplace, claude-community. The supply-chain policy asks whether the code a developer installs can drift from the commit a catalog entry names, for example after new pushes to a plugin's upstream repository. What does the plugin security documentation say?
AEvery install fetches the latest commit on the plugin repository's default branch, so the team must pin plugin versions itself
BAnthropic approves each release of every community plugin, so any commit the catalog serves is already reviewed
CPins apply only when the developer passes the commit as an install argument, so default installs can drift
DWhere the catalog pins a plugin to a commit SHA, as it does for nearly every entry, Claude Code refuses a different commit
Show the answer and why
AEvery install fetches the latest commit on the plugin repository's default branch, so the team must pin plugin versions itself
Incorrect
Where the catalog pins a commit SHA, Claude Code installs that commit and refuses another.
BAnthropic approves each release of every community plugin, so any commit the catalog serves is already reviewed
Incorrect
The documentation describes a commit pin for catalog entries, not a per-release approval.
CPins apply only when the developer passes the commit as an install argument, so default installs can drift
Incorrect
The pin comes from the catalog entry, not from an install argument.
DWhere the catalog pins a plugin to a commit SHA, as it does for nearly every entry, Claude Code refuses a different commit
Correct
The plugin security page states this for the claude-community catalog.
Anthropic publishes a community marketplace whose name is claude-community. Where the claude-community catalog pins a plugin to a commit SHA, which it does for nearly every entry, Claude Code refuses to install a different commit, so the installed code matches the commit the entry names.