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?

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.