ladderlore
Request a guide
  • Type a service name, like S3 or IAM.

Concept

When not to use AI

Skip AI when a fixed rule gives the exact answer, data is missing or the cost is not worth it.

Exact answer needed?
Enough good data?
Worth the cost?
Use AI/ML
Use plain code
Get data first
Skip it
yesnonoyesnoyes
Three questions before you choose ML.
  • Calculate sales tax

    Why not ML
    The rule gives the exact answer
    Instead
    Write the rule in code
  • Only 50 past examples

    Why not ML
    Too little data to learn from
    Instead
    Collect more data
  • Saves a few dollars a month

    Why not ML
    Cost is higher than the gain
    Instead
    Keep the manual process
  • Payments must be exact

    Why not ML
    A prediction can be wrong
    Instead
    Use fixed logic and checks
Four situations where ML is the wrong tool.

1 / 2

  • Calculate sales tax

    Why not ML
    The rule gives the exact answer
    Instead
    Write the rule in code
  • Only 50 past examples

    Why not ML
    Too little data to learn from
    Instead
    Collect more data
  • Saves a few dollars a month

    Why not ML
    Cost is higher than the gain
    Instead
    Keep the manual process

2 / 2

  • Payments must be exact

    Why not ML
    A prediction can be wrong
    Instead
    Use fixed logic and checks
Four situations where ML is the wrong tool.

What it is

ML gives a prediction, not a promise. When the answer must be exact every time, write a rule. A tax calculation or a price lookup needs the same result each time, so use plain code.

ML also needs enough good data. With no data, or only a few examples, the model will not learn well. Collect data first.

Finally, weigh cost against benefit. Training, running and checking a model costs money and time. If the saving is small, a simple solution wins. Also avoid ML when you cannot accept a wrong prediction and have no way to check it.

Remember

  • A specific outcome needed, not a prediction: use a rule.
  • No data or too little data: gather data before ML.
  • Cost larger than benefit: do not build it.
  • ML output can be wrong, so plan for errors.
  • A simple solution that works is better than a complex model.

On the exam

  • “Must produce the same exact result every time” points to rules, not ML.
  • “Few records and a small expected saving” points to not using ML.