Courseiva

CCAR-P Practice Question: Developer Productivity and Operational Enablement

A developer needs to log all prompt-response pairs for compliance. What is the most reliable way to implement this without impacting application performance?

⚠ Common exam trap

Candidates often choose synchronous database logging within the main request execution thread, failing to recognize that this introduces severe latency bottlenecks and violates real-time application performance requirements.

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

✓

Use an asynchronous message queue to offload log processing.

Asynchronous logging is the key to maintaining application performance while ensuring full auditability. By offloading the logging process to a background task, the main request thread is not blocked, ensuring that users experience minimal latency. This pattern is crucial for compliance-heavy environments where audit trails are non-negotiable but system performance must remain highly responsive to meet end-user demands.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Write logs to a local file system before sending the response to the user.

    Why it's wrong here

    Blocking the user response thread to write to a local file system significantly increases latency and risks file system bottlenecks. This approach is inefficient and prone to performance degradation under load. Offloading tasks to an asynchronous background worker is the standard for high-performance service architecture.

  • ✓

    Use an asynchronous message queue to offload log processing.

    Why this is correct

    Asynchronous message queues are the gold standard for high-throughput, non-blocking operations. By sending the log data to a queue, the main application thread returns the response to the user immediately, while a background consumer handles the logging task. This ensures both performance and compliance-required reliability.

  • ✗

    Request the user to manually send a copy of the interaction for audit.

    Why it's wrong here

    Relying on the user for audit compliance is impossible and violates core security governance. Compliance and auditing must be handled entirely on the server side to ensure accuracy, completeness, and tamper-resistance. This method is completely insufficient for any professional or regulated enterprise environment.

  • ✗

    Only log errors instead of every prompt-response pair.

    Why it's wrong here

    Compliance requirements typically mandate full auditability of all interactions, not just error states. Logging only errors would result in a massive audit failure. Full-stack visibility is required for both security audits and performance analysis, making this an inappropriate choice for enterprise-grade LLM applications.

Visual reference

Client Server SYN (seq=100) SYN-ACK (seq=200, ack=101) ACK (ack=201) Connection established — data transfer begins

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.