Courseiva

CCAR-P Practice Question: Developer Productivity and Operational Enablement

Which TWO practices best improve the maintainability of large-scale prompt libraries? (Choose TWO)

⚠ Common exam trap

Candidates often suggest embedding prompts directly in code, which makes them hard to version, audit, or update without a full application deployment cycle.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

Store prompts in external configuration files or a dedicated prompt management system.

Managing large prompt libraries requires modularity and version control to ensure consistency. By treating prompts as code and decoupling them from application logic, teams can implement standardized testing and deployment workflows. This separation allows developers to iterate on prompt performance independently of the software release cycle, reducing the risk of regressions and enabling rapid experimentation within established operational guardrails.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    Hardcode all prompt versions directly into the application source code.

    Why it's wrong here

    Hardcoding prompts creates tight coupling, forcing a full application deployment for every minor prompt tweak. This practice severely limits developer productivity and increases the risk of deployment-related errors. It prevents independent scaling and testing of prompt logic, making the codebase significantly harder to maintain and audit over time.

  • ✓

    Store prompts in external configuration files or a dedicated prompt management system.

    Why this is correct

    Externalizing prompts allows for rapid updates without needing a full software build. This architectural choice enables teams to manage versioning, track changes, and perform A/B testing more effectively. It decouples the prompt engineering lifecycle from the application development lifecycle, significantly enhancing operational agility and overall system maintainability.

  • ✓

    Implement a centralized version control system to track prompt iterations.

    Why this is correct

    A version control system is essential for auditing, rollback capabilities, and collaborative development. By treating prompts as versioned assets, teams ensure that specific prompt iterations are linked to predictable model behaviors. This visibility is crucial for debugging production issues and maintaining a stable environment as the complexity of the application grows.

  • ✗

    Combine prompts and business logic into monolithic classes for better encapsulation.

    Why it's wrong here

    Monolithic structures lead to high cognitive load and make testing individual components difficult. When prompt logic is tangled with application code, it becomes impossible to verify prompt performance in isolation. This design pattern discourages modularity and hinders the ability of teams to iterate quickly without introducing unintended side effects.

  • ✗

    Avoid using variables in prompts to ensure absolute predictability.

    Why it's wrong here

    Static prompts lack the flexibility required for modern LLM applications. Variable injection is a standard requirement for dynamic content generation. Avoiding variables limits the utility of the system and forces developers to write duplicate prompts for minor variations, which creates significant maintenance overhead and redundancy across the repository.

About these practice questions

This CCAR-P question is part of Courseiva's 262-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Anthropic exam blueprint

This CCAR-P practice question is part of Courseiva's free Anthropic certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CCAR-P exam.