Based on the AIF-C01 exam guideReport an error
data + rules → results, while machine learning is data + results → rules. The input and output are swapped.Machine learning is powerful, but it is not a cure-all. In practice, cases are common where ML was adopted without any real need, so costs went up and the results were worse.
| Aspect | Traditional programming | Machine learning |
|---|---|---|
| Who creates the rules | A person (the developer) | Learned from data |
| Input | Data + rules | Data + answers (examples) |
| Output | Results (answers) | Rules (a model) |
| Suitable situations | Rules are clear and do not change | Rules are complex or hard for humans to define |
Traditional programming is data + rules → results, and machine learning is data + results → rules. It is easy to remember if you think of it as the input and output being swapped.
The more of the following conditions are met, the better a choice machine learning is.
Conversely, in the following cases machine learning is overkill or inappropriate.
| Problem | Better approach | Reason |
|---|---|---|
| Computing the sum of two numbers | Traditional programming | The rule is clear |
| Calculating a 10% tax | Traditional programming | A simple formula |
| Looking up employee information by employee ID | Database lookup | An exact lookup is enough |
| A prediction based on only 10 data records | Acquire data first | Not enough training data |
💡 Related theory: Avoid the misconception that "machine learning is always smarter." Applying machine learning to a problem with clear rules can raise costs and even lower accuracy. Choosing the simplest method that is still sufficient is good design.
This is a quick sequence for checking whether to adopt machine learning.
Can a person write the rules easily and clearly?
└ Yes → Use traditional programming (ML is unnecessary)
└ No ↓
Is there enough data to train on?
└ No → Get data first (ML is difficult for now)
└ Yes ↓
Can a small margin of error be tolerated?
└ No → Review carefully (ML may be risky)
└ Yes → ML is likely a good fit
The AIF-C01 exam guide gives cost-benefit analysis and cases that need a fixed outcome rather than a prediction as examples of situations where AI/ML is not a good match.
| Task | What is needed | Right approach |
|---|---|---|
| Calculating the income tax to withhold from a salary | The single value set by law | Traditional programming |
| Checking an account balance, deducting a transfer amount | A value that cannot be wrong by even one unit of currency | Traditional programming |
| Checking whether a password matches | A definite yes or no | Traditional programming |
| The likelihood that this transaction is fraud | An estimate of a likelihood | Machine learning |
| Expected number of visitors next month | An estimate of an uncertain future | Machine learning |
Machine learning does not cost only the price of building a model. You have to add up everything below and weigh it against the benefit you get.
| Cost | Details |
|---|---|
| Data | Collecting, cleaning, and attaching answers (labels) |
| Training | Compute resources and time, and many rounds of trial and error |
| Operations | The cost of keeping it running in a service, monitoring performance, periodic retraining |
| People | Specialists, and staff to review the results |
The exam guide gives assisting human decision-making, scalability of solutions, and automation as examples of where it adds value.
| Direction | Meaning | Example |
|---|---|---|
| Decision support | A person makes the decision, while the model narrows down evidence and candidates | Marking suspicious areas in a medical scan for the doctor to review |
| Scalability | Raise throughput without adding headcount | Checking millions of payments a day in real time |
| Automation | Take repetitive judgments off people's hands | Automatically routing incoming inquiries to the right department |
| Scenario | Verdict | Reason |
|---|---|---|
| Free shipping when the order total is 50,000 KRW or more | Traditional programming | The rule is one line, and the outcome is fixed |
| Read a handwritten address and convert it to text | Machine learning | A person cannot write rules for handwriting styles |
| Apply a discount rate by membership tier | Traditional programming | Looking up a table is all it takes |
| Pick out, from millions of customers, those who will cancel next month | Machine learning | The patterns are complex and there is a lot of past data |
| In the first week of a startup, predict demand from 30 customer records | Not suitable for now | There is not enough data; build it up first |
| Fully automate eligibility decisions where the law requires giving reasons | Proceed carefully | A complete explanation is needed; use rules or add human review |
| Auto-classify a handful of documents a month | Not suitable | The cost does not justify the benefit |
| Pick out defective products from photos (tens of thousands of defect photos on hand) | Machine learning | Complex visual patterns + enough data |
📚 Case: In a card payment approval system, "decline if over the limit" and "decline a card reported lost" are policies that must be enforced without exception, so they are put in as code. "Is this an unusual, suspicious payment?" is hard to write as rules, so machine learning scores it. Cases where the score is ambiguous are checked by a person. Three layers sit one on top of the other in a single system.
Even after deciding to use machine learning, there is one more choice left. The exam guide asks you to tell which of a traditional ML model and a foundation model (FM) fits, based on regulation, explainability, and operational constraints.
| Comparison axis | Traditional ML model | Foundation model (FM) |
|---|---|---|
| What it was built for | Trained for one task (for example, predicting delinquency) | Pretrained on huge amounts of data and used generally across many tasks |
| What it does well | Classification and numeric prediction on tabular data | Generating text and images, summarization, question answering |
| Explaining results | Relatively easy to show which features had an influence | Hard to explain why a given sentence came out |
| Size and operation | Small, fast, and cheap | Large; response latency and usage cost must be weighed |
| Fitting situations | Decisions that need justification, such as screening and scoring in regulated industries | Work that needs flexible expression, such as drafting and handling customer conversations |
Click a choice to reveal the answer and explanation.
Question 1
For which of the following problems is traditional programming more appropriate than machine learning?
Question 2
Which statement most accurately describes the input/output relationship of traditional programming and machine learning?
Question 3
In a certain business task, there are only a handful of historical records available for training, and the results must be legally 100% accurate and fully explainable. Which judgment is most appropriate for this situation?
Question 4
Which of the following is hard to consider a characteristic of problems suited to adopting machine learning?