Accountability for AI-Generated Code: Practice Questions — Developer Productivity and Operational Enablement (Claude Certified Architect - Professional)

Accountability for AI-Generated Code — Practice Questions This set of multiple-choice questions is designed to help candidates prepare for Exam...

Accountability for AI-Generated Code — Practice Questions

This set of multiple-choice questions is designed to help candidates prepare for Exam Domain 7 of the Claude Certified Architect - Professional exam, focusing on maintaining human accountability in AI-assisted development workflows using Anthropic's Claude platform.

  1. Question 1

    In a team adopting Claude Code for AI-assisted development, which control best preserves human ownership of AI-generated code?

    • A. Allowing AI to automatically commit code changes without review
    • B. Implementing a mandatory human review step before any AI-generated code is merged
    • C. Disabling all AI suggestions and relying solely on manual coding
    • D. Using the bypassPermissions mode in Claude Agent SDK to speed up deployment

    Correct answer: B

    Explanation: A mandatory human review ensures that AI-generated code is vetted by developers, preserving accountability and ownership. Automatic commits (A) remove human oversight, disabling AI suggestions (C) negates productivity benefits, and bypassing permissions (D) risks unsafe code deployment.

  2. Question 2

    When packaging a Claude Code workflow for organization-wide use, which approach helps maintain safety when the workflow runs unattended?

    • A. Leaving all plugin controls to be configured by individual teams
    • B. Enforcing central controls on critical plugin components like skills and hooks
    • C. Removing all subagents and commands to simplify the workflow
    • D. Using headless operation mode without any guardrails

    Correct answer: B

    Explanation: Central enforcement of critical controls ensures consistent safety and compliance across teams. Leaving controls to teams (A) risks inconsistent safety, removing components (C) reduces functionality, and headless mode without guardrails (D) increases risk.

  3. Question 3

    Which Claude Agent SDK permission mode allows a team to review AI-generated plans before execution, supporting accountability?

    • A. auto
    • B. dontAsk
    • C. plan
    • D. bypassPermissions

    Correct answer: C

    Explanation: The plan mode generates a plan for human review before execution, preserving accountability. auto (A) executes automatically, dontAsk (B) suppresses prompts, and bypassPermissions (D) overrides controls, reducing oversight.

  4. Question 4

    In the context of AI-assisted development, what is the primary purpose of hooks in Claude Code workflows?

    • A. To bypass security checks
    • B. To integrate custom logic or validations during execution
    • C. To disable subagents
    • D. To automatically accept all AI-generated code

    Correct answer: B

    Explanation: Hooks allow insertion of custom logic or validations, enabling teams to enforce policies and maintain accountability. They do not bypass security (A), disable subagents (C), or auto-accept code (D).

  5. Question 5

    Which practice best supports accountability when a team uses AI-generated code in continuous integration (CI) pipelines with Claude Agent SDK?

    • A. Running the SDK in headless mode with no logging
    • B. Configuring detailed logging and audit trails for AI interactions
    • C. Disabling permission modes to speed up CI execution
    • D. Allowing AI to merge code directly to production branches

    Correct answer: B

    Explanation: Detailed logging and audit trails enable traceability and accountability for AI-generated code changes. Headless mode without logs (A), disabling permissions (C), and direct merges (D) reduce oversight and increase risk.

  6. Question 6

    When evaluating a team's AI-assisted development workflow, which artifact would best help identify if human accountability is preserved?

    • A. Plugin marketplace listings
    • B. Configuration files showing permission modes and enforced controls
    • C. Marketing documentation for Claude Code
    • D. User interface color themes

    Correct answer: B

    Explanation: Configuration files reveal how permissions and controls are enforced, directly impacting accountability. Marketplace listings (A), marketing materials (C), and UI themes (D) do not provide this insight.

  7. Question 7

    Which design pattern can an architect implement to ensure output filtering of AI-generated code, preserving accountability?

    • A. Using a separate classifier call to validate AI outputs before integration
    • B. Allowing AI to generate code without any validation
    • C. Disabling all hooks in the Claude Code workflow
    • D. Running the workflow only in manual mode without automation

    Correct answer: A

    Explanation: Implementing output filtering via a separate classifier call adds a validation layer, ensuring AI outputs meet standards before integration. Options B and C reduce control, and D limits productivity unnecessarily.

More in this topic

Packaging and Distributing Claude Code Workflows: Practice Questions — Developer Productivity and Operational Enablement (Claude Certified Architect - Professional)Packaging and Distributing Claude Code Workflows: Worked Example — Developer Productivity and Operational Enablement (Claude Certified Architect - Professional)Agent SDK and Claude Code Configuration — Developer Productivity and Operational Enablement (Claude Certified Architect - Professional)Developer Productivity and Operational Enablement — Claude Certified Architect - ProfessionalAgent SDK and Claude Code Configuration: Quick Reference — Developer Productivity and Operational Enablement (Claude Certified Architect - Professional)Accountability for AI-Generated Code — Developer Productivity and Operational Enablement (Claude Certified Architect - Professional)Accountability for AI-Generated Code: Worked Example — Developer Productivity and Operational Enablement (Claude Certified Architect - Professional)Packaging and Distributing Claude Code Workflows: Common Mistakes — Developer Productivity and Operational Enablement (Claude Certified Architect - Professional)Agent SDK and Claude Code Configuration: Practice Questions — Developer Productivity and Operational Enablement (Claude Certified Architect - Professional)Agent SDK and Claude Code Configuration: Common Mistakes — Developer Productivity and Operational Enablement (Claude Certified Architect - Professional)Packaging and Distributing Claude Code Workflows — Developer Productivity and Operational Enablement (Claude Certified Architect - Professional)Packaging and Distributing Claude Code Workflows: Quick Reference — Developer Productivity and Operational Enablement (Claude Certified Architect - Professional)Accountability for AI-Generated Code: Quick Reference — Developer Productivity and Operational Enablement (Claude Certified Architect - Professional)Accountability for AI-Generated Code: Common Mistakes — Developer Productivity and Operational Enablement (Claude Certified Architect - Professional)Agent SDK and Claude Code Configuration: Worked Example — Developer Productivity and Operational Enablement (Claude Certified Architect - Professional)

Related topics:

#ClaudeCertifiedArchitect #AIAccountability #ClaudeCode #AIWorkflow #DeveloperEnablement

Preparing for the Claude Certified Architect Professional exam?

Start free with 5 practice quizzes a day and track your progress.

Practise Claude Certified Architect Professional questions free →