When not to use AI: rules, ML or generative AI?
How to choose between plain rules, traditional ML, a managed AI service and a foundation model, and the signals that AI is the wrong tool.
7 min readBy AI Guru AcademyFacts last checked
By AI Guru Academy
In short
Do not use AI when a specific, exact outcome is required and the logic can be written down, when there is not enough good data, or when the expected benefit does not cover the cost of building, running and checking it. When AI does fit, use traditional ML for predictions from structured data where accuracy and explanation must be measured, and use a foundation model when the task is to understand or produce language, images or code. A ready-made AWS AI service often beats both for common tasks such as transcription or translation.
When is AI not the right answer?
AI is the wrong tool when a deterministic rule can do the job. AWS's Machine Learning Lens tells teams to evaluate whether ML is the right approach at the problem-framing stage, and notes that some business problems don't need ML because simple business rules can do a much better job. It adds that for other problems there might not be sufficient data to apply ML.
The AIF-C01 exam guide frames the same idea in two parts: cost-benefit analysis, and situations where a specific outcome is needed instead of a prediction. Five warning signs cover most cases:
- The answer must be exact. Tax arithmetic, a contract's notice period or an eligibility rule needs a computed result, not a likely one. A model produces a prediction; code produces the answer.
- The logic already exists. If the criteria are written down and complete, encoding them is cheaper and easier to test than training a model to approximate them.
- There is no suitable data. Supervised ML needs labelled examples, and evaluating any model needs known-correct test cases.
- The benefit is small. AWS notes that the processing power for AI can be costly and can limit scalability. A task done a few times a month rarely repays the cost of building, testing and monitoring a model.
- Errors cannot be caught. If nobody can review the output and a wrong answer causes real harm, a probabilistic system is a poor fit.
For a business-leader view of the rules-or-AI choice and hybrid patterns where AI drafts and rules decide, see When not to use AI: rules or AI for a business decision. This guide goes one level further: once AI is justified, which kind?
When should you choose traditional ML over a foundation model?
Choose traditional ML when the task is a prediction from structured data and you need to measure, explain and control it. The AIF-C01 exam guide names three factors for this choice: regulatory concerns, explainability requirements and operational constraints.
Regulatory and explainability needs. AWS's Machine Learning Lens gives credit scoring as an example where fairness and explainability may be primary concerns, because of regulatory requirements and the need to give reasons for decisions. It notes that simpler models are often more explainable and simpler to deploy, even if they sacrifice some accuracy, and recommends starting with a model that is simple to interpret. A foundation model is much harder to explain. AWS describes generative models as often considered black boxes, and AWS's service card for Amazon Nova describes transformer-based foundation models as token generation engines, not information retrieval engines.
Repeatability. Foundation models sample each token from a probability distribution, so the same prompt can give different output. A lower temperature makes output more deterministic, but AWS does not present it as a guarantee of identical results. A trained classification or regression model gives the same output for the same input.
Operational constraints. A small trained model can be cheap and fast at high volume. A large foundation model processes many tokens per request, and AWS's model selection guidance notes that smaller models are usually faster and cheaper. If you need millions of predictions a day with tight latency, a purpose-built model is often the better fit.
Task shape. Traditional ML maps well to the three classic techniques:
- Regression for continuous values, such as next month's demand.
- Classification for categories, such as fraud or not fraud.
- Clustering for finding groups in unlabelled data, such as customer segments.
When does a foundation model make sense?
Choose a foundation model when the input or output is unstructured language, images or code, and when the task is too broad or varied to train a dedicated model for. AWS describes foundation models as adaptable: one model can perform a wide range of tasks based on input prompts, and using a pre-trained model is faster and cheaper than building one from scratch.
Good fits include summarising documents, drafting replies, answering questions over company documents with retrieval-augmented generation (RAG), translating informal text and generating code. In each case a person or a check can review the output, and there is no single correct answer.
Weigh the known disadvantages before choosing one: hallucinations, inaccuracy, limited interpretability and nondeterminism. AWS suggests reducing hallucinations by refining prompts, using RAG to supply relevant data, or trying a different model. These lower the risk but do not remove it.
What about managed AI services?
For common, well-defined tasks, a managed AWS AI service is often simpler than either training a model or prompting a foundation model. These services are pre-trained and called through an API:
- Amazon Transcribe converts speech to text.
- Amazon Translate translates text.
- Amazon Comprehend extracts entities, key phrases, language, sentiment and personal information from text.
- Amazon Polly converts text to speech.
- Amazon Lex builds voice and text chat interfaces.
If one of these does exactly what you need, it usually involves less data preparation and less prompt design than the alternatives, and its output format is fixed.
How do the options compare?
The table gives a starting point, not a rule. Validate any choice on your own data.
| Need | Usually best fit | Why |
|---|---|---|
| Exact result from written criteria | Rules or ordinary code | Deterministic, testable, fully explainable |
| Score or category from structured history | Traditional ML (classification or regression) | Measurable, repeatable, easier to explain |
| Groups in unlabelled data | Traditional ML (clustering) | Finds structure without labels |
| Speech to text, translation, sentiment | Managed AI service | Pre-trained, fixed output, no training needed |
| Summaries, drafts, open questions over documents | Foundation model, often with RAG | Language task with no single correct answer |
| Multi-step task using several systems | Agent built on a foundation model, with limits | Plans steps and calls tools; needs human approval for risky actions |
What does a worked example look like?
Example (fictional): Lakeside Insurance wants to "add AI" to motor claims. The team splits the process into parts.
- Policy coverage check. The rules are written in the policy wording. Decision: rules. A model adds risk and no benefit.
- Fraud risk scoring. Five years of labelled claims exist, and regulators may ask why a claim was flagged. Decision: a traditional classification model, chosen for interpretability and evaluated on precision and recall.
- Phone call notes. Claims are often reported by phone. Decision: Amazon Transcribe to turn calls into text.
- Claim summary for the handler. Handlers read long, messy notes. Decision: a foundation model writes a summary that the handler checks against the source.
- Repair cost estimate from photos. Only a few hundred labelled photos exist, and the business case shows little time saved. Decision: not now. Revisit when there is data and a clearer benefit.
The result uses four approaches, and one part is deliberately left without AI. That is a normal outcome of a cost-benefit review.
Key takeaways
- Do not use AI when an exact outcome is required and the logic can be written down.
- Without suitable data, or with a weak cost-benefit case, AI is the wrong choice for now.
- Traditional ML suits predictions from structured data where explanation, repeatability and low cost per call matter.
- Foundation models suit language, image and code tasks with reviewable output.
- Managed AI services are often the simplest choice for common tasks such as transcription and translation.
- Split a process into parts; each part may need a different approach, including none.
FAQ
Is generative AI always better than traditional ML?
No. For predictions from structured data with explainability or regulatory needs, traditional ML is usually easier to measure, explain and run cheaply. Generative AI is better for producing or understanding language, images and code.
Why does "a specific outcome instead of a prediction" rule out AI?
Models estimate a likely answer from patterns in data. When the answer must be exact and the logic is known, ordinary code computes it every time, while a model can only approximate it.
Can I make a foundation model fully deterministic?
Not reliably. Lowering the temperature makes output more deterministic, but AWS does not describe that as a guarantee of identical output on every run.
What should I do if there is not enough data for ML?
Use rules or a managed AI service for now, and start collecting labelled examples and test cases. AWS's Machine Learning Lens notes that some problems lack sufficient data for ML.
Sources
- AWS Well-Architected Machine Learning Lens, ML problem framing: https://docs.aws.amazon.com/wellarchitected/latest/machine-learning-lens/ml-problem-framing.html
- AWS Well-Architected Machine Learning Lens, MLPERF04-BP05: https://docs.aws.amazon.com/wellarchitected/latest/machine-learning-lens/mlperf04-bp05.html
- AWS, What is artificial intelligence?: https://aws.amazon.com/what-is/artificial-intelligence/
- AWS, What is generative AI?: https://aws.amazon.com/what-is/generative-ai/
- AWS, What are foundation models?: https://aws.amazon.com/what-is/foundation-models/
- Amazon SageMaker AI, choosing an algorithm: https://docs.aws.amazon.com/sagemaker/latest/dg/algorithms-choose.html
- Amazon Bedrock inference parameters: https://docs.aws.amazon.com/bedrock/latest/userguide/inference-parameters.html
- Amazon Bedrock prompt engineering concepts: https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-engineering-guidelines.html
- AWS AI Service Card, Amazon Nova Micro, Lite, Pro and Premier: https://docs.aws.amazon.com/ai/responsible-ai/nova-micro-lite-pro/overview.html
- Choosing a generative AI service (AWS decision guide): https://docs.aws.amazon.com/decision-guides/latest/generative-ai-on-aws-how-to-choose/guide.html
- Amazon Transcribe: https://docs.aws.amazon.com/transcribe/latest/dg/what-is.html
- Amazon Translate: https://docs.aws.amazon.com/translate/latest/dg/what-is.html
- Amazon Comprehend: https://docs.aws.amazon.com/comprehend/latest/dg/what-is.html
- Amazon Polly: https://docs.aws.amazon.com/polly/latest/dg/what-is.html
- Amazon Lex V2: https://docs.aws.amazon.com/lexv2/latest/dg/what-is.html
- AWS Certified AI Practitioner (AIF-C01) exam guide: https://docs.aws.amazon.com/aws-certification/latest/ai-practitioner-01/ai-practitioner-01.html
Last checked 2026-11-22.
AI Guru Academy is an independent training provider and is not affiliated with or endorsed by Amazon Web Services. AWS service names are trademarks of Amazon.com, Inc. or its affiliates.
Next step: see the AIF-C01 course at /courses/aif-c01-exam-prep.