CCAR-P practice › Integration · Question 35 of 110
Integration
A coding agent used in CI only needs to run the test suite and read repository files. It currently runs with unrestricted shell access and a deploy token in its environment. After an incident in which a malicious string in a dependency's README led the agent to run a network command, leadership asks for the change that most reduces risk. Which is best?
Show answer and explanation
Answer: C — Restrict the agent to read and test-run permissions in enforced configuration and remove the deploy token
The role needs only to read files and run tests, so restrict permissions to exactly that in enforced configuration and remove the credential the role never uses. That holds even if the model is manipulated again. (a) improves the odds of refusal but leaves the same capability and token available. (b) is unworkable in CI and relies on human attention for a capability the role doesn't need. (d) detects the next incident after it happens.
Keep going
More Integration questions
- A support organization's agent needs to issue goodwill credits in about 5% of…
- A legal-research assistant serves attorneys at a firm with strict ethical walls…
- A banking assistant's get_transactions tool accepts an account_id argument filled in by…
- A platform team moves an internal MCP server that lets agents query HR and payroll data…
- A fraud-screening step inside a checkout flow must return an allow, deny or review…