Cost and Latency Optimization: Practice Questions β Evaluation, Testing, and Optimization (Claude Certified Architect - Professional)
Cost and Latency Optimization β Practice Questions This set of multiple-choice questions is designed to help candidates prepare for Exam Domain 4...
Cost and Latency Optimization β Practice Questions
This set of multiple-choice questions is designed to help candidates prepare for Exam Domain 4 (17%) of the Claude Certified Architect - Professional exam. The focus is on cost and latency optimization within the evaluation, testing, and optimization domain of production-grade AI solutions on the Claude platform.
Question 1
You observe that your Claude deploymentβs average latency has increased significantly after a recent model upgrade. Telemetry shows a drop in cache hit rates for prompt caching. What is the best initial action to optimize latency without sacrificing quality?
- A. Roll back to the previous model version immediately.
- B. Investigate and tune prompt caching strategies to improve cache hit rates.
- C. Increase the model context window size to reduce retrieval calls.
- D. Disable prompt caching to avoid stale responses.
Correct Answer: B
Explanation: Improving prompt caching hit rates directly reduces repeated expensive calls, lowering latency while maintaining model quality. Rolling back is premature without diagnosis; increasing context size may increase latency; disabling caching worsens latency.
Question 2
During an experiment comparing two prompt configurations, you have a fixed cost budget and need to minimize latency impact. Which experimental design approach best balances interpretability and cost?
- A. Run a single trial per input case for both configurations.
- B. Run multiple trials per input case to separate configuration effects from run-to-run variance.
- C. Use only the configuration with historically lower latency.
- D. Test only on a small random sample ignoring cost constraints.
Correct Answer: B
Explanation: Multiple trials per case help isolate true configuration effects from noise, improving interpretability within cost constraints. Single trials risk confounding variance; ignoring cost or sample representativeness reduces experiment validity.
Question 3
You need to reduce operational costs of a Claude system without breaching a strict quality floor. Telemetry indicates high tool invocation latency and low cache hit rates. Which combined optimization strategy is most appropriate?
- A. Pin the current model version and disable tools.
- B. Optimize tool integration and improve prompt caching.
- C. Increase model context size to reduce tool calls.
- D. Remove prompt caching to simplify architecture.
Correct Answer: B
Explanation: Optimizing tool integration reduces invocation latency, and improving prompt caching reduces redundant calls, both lowering cost and latency without sacrificing quality. Pinning model or removing caching are suboptimal.
Question 4
When judging migration readiness for a new Claude model version, you observe a slight latency increase but improved accuracy. What is the best approach to maintain cost and latency targets?
- A. Defer migration until latency matches the previous model.
- B. Re-tune prompts and re-baseline evaluations to optimize latency.
- C. Pin the old model indefinitely to avoid latency risk.
- D. Ignore latency increase if accuracy improves.
Correct Answer: B
Explanation: Re-tuning prompts and re-baselining evaluations can reduce latency impact while preserving accuracy gains, enabling migration readiness. Deferring or pinning delays benefits; ignoring latency risks breaching SLAs.
Question 5
Your evaluation suite lacks latency metrics, and a production failure is traced to slow response times. What is the best way to derive a valid latency evaluation metric aligned with business needs?
- A. Use average response time across all requests as the sole metric.
- B. Derive latency targets from the business decisionβs acceptable delay threshold and measure percentile latencies.
- C. Measure latency only during off-peak hours to reduce noise.
- D. Use cost as a proxy metric for latency.
Correct Answer: B
Explanation: Deriving latency metrics from business decision thresholds ensures evaluation relevance. Percentile latencies capture tail latency better than averages. Off-peak or cost proxies do not reflect true latency impact.
Question 6
In a scenario where prompt caching reduces latency but increases cost due to cache misses, what is a suitable optimization to balance cost and latency?
- A. Increase cache size to reduce misses.
- B. Disable caching to reduce cost.
- C. Reduce model context window to speed up processing.
- D. Increase tool usage to compensate latency.
Correct Answer: A
Explanation: Increasing cache size can reduce misses, improving latency and lowering cost from repeated calls. Disabling caching increases latency; reducing context window may degrade quality; increasing tool usage likely increases cost and latency.
Question 7
You detect that latency spikes correlate with specific subagent failures in the Claude Agent SDK. What is the best root-cause isolation approach to optimize latency?
- A. Ignore subagent logs and focus on model tuning.
- B. Analyze subagent logs and traces to identify failure patterns causing retries or delays.
- C. Disable subagents to reduce latency.
- D. Increase prompt verbosity to improve subagent responses.
Correct Answer: B
Explanation: Analyzing subagent logs and traces helps isolate latency causes related to failures or retries. Ignoring logs or disabling subagents may degrade functionality; increasing prompt verbosity may worsen latency.
More in this topic
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 →