Claude Certified Architect – Foundations Practice Question 41: Parallel Guardrail Screening

Claude Certified Architect, Foundations · Test 5 · question 1 of 10

Agent Architecture & Orchestrationmedium

A support chatbot built on the Claude API first calls a screening prompt that checks each user message for abusive or off-topic content, and only then calls Claude to write the reply. Both calls are about the same length. Users complain about slow replies, and the two calls do not depend on each other's output. The team wants to cut latency without removing the screening step or weakening the main prompt. Which change fits best?

Select one answer
Show answer and explanation

Answer:

  • B. Send the screening call and the response call concurrently, and discard or replace the reply if the screen flags the message.

This is the parallelization workflow in its "sectioning" form. Anthropic's guidance on building effective agents gives exactly this example: one model instance handles the user query while another screens it, and models generally perform better when each consideration gets its own focused call. Because neither call needs the other's output, running them concurrently removes the screening latency from the critical path. The application withholds the reply until the screen returns, and swaps in a refusal if the screen flags the message.

A is wrong because combining the jobs gives up the focused attention that separate calls provide, and it weakens the main prompt, which the team ruled out. C is wrong because it is still sequential (reply, then screen), so latency is not reduced, and it spends tokens generating replies for content that should never have been answered. D is wrong because model size does not make a call finish faster than another in a predictable way, and a larger model usually adds latency and cost; it also does not change the sequential structure.

Reference: Building effective agents

Practice Test 5 ›

Study guides for Claude Certified Architect, Foundations