Q32 — AWS AIF-C01 Ch.1

Question 32 of 100 | ← Chapter 1

A company wants to develop a trivia game where users answer: 'A jar contains 6 red marbles, 4 green marbles, and 3 yellow marbles. What is the probability of selecting a green marble from the jar?' Which solution satisfies this requirement with minimal operational overhead?

Correct Answer: C. Use code with simple rules and arithmetic to calculate the probability.

Explanation

This question tests understanding of appropriate ML algorithm selection. Calculating the probability of drawing a green marble is a straightforward mathematical computation: green marbles divided by total marbles. Direct coding with basic arithmetic is the most efficient and lowest-overhead approach. Supervised, reinforcement, and unsupervised learning are unnecessary for deterministic probability calculations and introduce excessive complexity and overhead. Thus, option C is correct.