Protecting an AI System from Denial-of-Wallet Attacks

CY0-001 By islever Editorial Last updated

Short answer

EF Enforce API rate controls to throttle abusive request volume and output token controls to cap per-request model spend, protecting the AI service from denial-of-wallet cost exhaustion.

Question

A security analyst finds that the AI system is under a denial-of-wallet attack. Which of the following should the analyst enforce to protect the company? (Choose two.)
  1. Endpoint access controls
  2. Content delivery network (CDN)
  3. Model fine-tuning
  4. Modality controls
  5. Application programming interface (API) rate controls Correct Answer
  6. Output token controls Correct Answer

Key Takeaways

The question tests whether you can separate cost-exhaustion controls from availability and access controls, with the trap being to choose endpoint hardening or a CDN instead of request and output throttling.

A denial-of-wallet attack against an AI system abuses billable inference, so the analyst should enforce API rate controls and output token controls. This page explains why those two controls (E and F) limit cost exhaustion better than endpoint controls or a CDN.

Common mistake: Choosing A and E is the most plausible error: endpoint access controls seem to restrict abuse, but they do not cap repeated billable inference by distributed or legitimate-looking clients, whereas F directly limits per-call output cost.

Expert Analysis

Why the attack is a cost-control problem A denial-of-wallet attack does not need to steal data or crash the model; it makes the AI service perform expensive inference repeatedly until the bill or quota is exhausted. The primary controls therefore sit at the request boundary and at the generation boundary: E (API rate controls) limits how many calls a client, token, or IP can make in a window, while F (output token controls) caps how many tokens each response can generate. Together they reduce both request volume and per-call cost.

Why not endpoint access controls or a CDN Option A would harden or restrict endpoints, but on an internet-facing AI API the attacker can distribute source addresses and change them, so endpoint allow-listing is brittle and does not cap repeated, authenticated inference. Option B can absorb traffic and improve availability, but a CDN does not stop a valid API key from triggering billable model calls; it is an availability control, not a spend control. C (fine-tuning) and D (modality controls) affect model behavior or input types, not the rate of billable inference, so they are at best secondary hardening.

The adjacent decision and the flip The real discriminator is whether the scenario asks about availability/performance or cost exhaustion. If the prompt said the service is unavailable because of volumetric flooding, a CDN/WAF or autoscaling might be the answer. If it said unauthorized users are reaching the model, authentication and access controls would matter. Here the explicit denial-of-wallet framing means request throttling plus output caps. Comments split between endpoint access controls plus rate limits and rate limits plus output-token caps; the latter aligns with the cost mechanism because even legitimate-looking calls must be bounded in number and size.

Operational consequence Without E and F, budgets can drain silently through retries, long prompts, or large completions, and incident response becomes a billing investigation rather than an outage. Enforcing both controls also preserves capacity for legitimate users and gives monitoring something concrete to alert on.

Official Reference

Exam Strategy

For denial-of-wallet scenarios, identify where money is consumed: number of API calls and size of each model response. Eliminate controls that address availability (CDN), identity (endpoint access), or model tuning unless the prompt explicitly adds that constraint. Look for pairs such as rate limiting plus output-token caps, and check whether the question says "choose two" so you do not over-select defensive extras.

Frequently Asked Questions

Why is a CDN not sufficient against a denial-of-wallet attack on an AI API?

A CDN absorbs traffic and improves availability, but it does not stop authenticated API calls from triggering billable model inference. Rate controls and token caps directly bound cost.

How do output token controls reduce denial-of-wallet risk?

They cap how many tokens the model generates per response, limiting the most expensive part of many inference calls and preventing long completions from multiplying spend.

Would endpoint access controls ever be the right answer for AI cost abuse?

They help when the issue is unauthorized reachability or source restriction, but with distributed or legitimate API keys they do not cap billable request volume. Pair them with rate and token limits rather than using them alone.

More CY0-001 FAQ →

Community Votes

EF
67%
AE
22%
F
11%

67% of anonymous learners picked answer EF. Votes are pick records left by other test-takers — they are not the verified answer.

Discussion 3 contributions

Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.

From public community threads 3

  1. Mu2 👍 3
    E - throttles incoming requests F - Setting fixed limitations on how many output tokens the language model can generate per request
  2. Comptia SecAI Group 👍 1
    What if this is an internet facing application? how would answer A work? Would you be constantly updating the firewall to include new IP addresses? It would be easier to close the attack surface with one change and limit overly repetitive access to the model with API controls.
  3. msengupta 👍 1
    A - restricts who can reach the API and E - Rate limiting caps how many requests a given user/client/token can be made. Together these steps protect from denial-of-wallet attack

Reader comments & corrections

No reader corrections yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

← Back to CY0-001 Study Guide