Bird
0
0

You want to limit AI usage to 1000 requests per day and a budget of $500. Which approach correctly combines rate limiting and budget control?

hard📝 Application Q15 of 15
Agentic AI - Agent Safety and Guardrails
You want to limit AI usage to 1000 requests per day and a budget of $500. Which approach correctly combines rate limiting and budget control?
ASet daily_limit = 1000 and budget_limit = 500; check both before allowing requests
BSet daily_limit = 1000; budget_limit is not needed if rate limiting is set
COnly set budget_limit = 500; rate limiting is handled automatically
DSet budget_limit = 1000 and daily_limit = 500; swap values for safety
Step-by-Step Solution
Solution:
  1. Step 1: Understand the need for both controls

    Rate limiting controls request count; budget controls money spent. Both must be checked.
  2. Step 2: Evaluate options for combining controls

    Set daily_limit = 1000 and budget_limit = 500; check both before allowing requests correctly sets both limits and checks them before allowing requests. Others ignore one control or swap values incorrectly.
  3. Final Answer:

    Set daily_limit = 1000 and budget_limit = 500; check both before allowing requests -> Option A
  4. Quick Check:

    Use both limits together for control [OK]
Quick Trick: Always check both request count and budget before allowing [OK]
Common Mistakes:
  • Ignoring budget when rate limiting is set
  • Assuming budget controls requests automatically
  • Swapping limit values causing confusion

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Agentic AI Quizzes