Q14 — AWS AIF-C01 Ch.2
Question 14 of 100 | ← Chapter 2
A company wants to develop an educational game where users need to answer the following question: 'A jar contains six red, four green, and three yellow balls. What is the probability of randomly selecting a green ball from the jar?' Which solution meets these requirements while minimizing cost?
- A. Use supervised learning to create a regression model that predicts the probability.
- B. Use reinforcement learning to train a model that returns the probability.
- C. Use code with simple rules and calculations to compute the probability. ✓
- D. Use unsupervised learning to create a model that estimates probability density.
Correct Answer: C. Use code with simple rules and calculations to compute the probability.
Explanation
This problem requires calculating the probability of randomly selecting a green ball from the jar—a basic probability calculation solvable directly via arithmetic. Specifically, the jar contains 6 red, 4 green, and 3 yellow balls, totaling 13 balls, of which 4 are green. Thus, the probability is 4/13. A simple rule-based calculation is optimal for accuracy, speed, and minimal cost—no ML model is needed.