Least Operational Overhead for Simple Probability Calculations

AIF-C01 By islever Editorial Last updated

Understand the capabilities and limitations of generative AI for solving business problems. Describe design considerations for applications that use foundation models.

Short answer

C Use code that will calculate probability by using simple rules and computations.

Question

A company wants to develop an educational game where users answer questions such as the following: "A jar contains six red, four green, and three yellow marbles. What is the probability of choosing a green marble from the jar?"
Which solution meets these requirements with the LEAST operational overhead?
  1. Use supervised learning to create a regression model that will predict probability.
  2. Use reinforcement learning to train a model to return the probability.
  3. Use code that will calculate probability by using simple rules and computations. Correct Answer
  4. Use unsupervised learning to create a model that will estimate probability density.

Key Takeaways

The main trap is assuming AI/ML is required for any task involving 'probability' or 'prediction', ignoring that simple arithmetic formulas have near-zero operational overhead.

This question tests identifying when to avoid machine learning for simple deterministic tasks. The correct answer uses basic code to minimize operational overhead instead of training complex models.

Common mistake: Candidates often choose supervised learning (A) because they associate 'prediction' with ML models, failing to recognize that a fixed mathematical rule does not require training or generalization.

Expert Analysis

Determine the Operational Constraint The question explicitly requires the solution with the LEAST operational overhead. In AWS certification contexts, "operational overhead" encompasses model training time, infrastructure costs (compute instances), data labeling effort, and ongoing maintenance complexity. A simple arithmetic problem does not justify the lifecycle of a machine learning model.

Evaluate Machine Learning Approaches (Options A, B, D)

  • Supervised Learning (A): Training a regression model for a single deterministic formula is over-engineering. It requires collecting labeled data, choosing hyperparameters, training, validating, and deploying an endpoint. The overhead far exceeds writing a script.
  • Reinforcement Learning (B): This is used for decision-making in environments with rewards/punishments. It is entirely inappropriate for static probability calculation and has massive operational overhead.
  • Unsupervised Learning (D): This finds hidden patterns in unlabeled data. It cannot solve a direct ratio calculation and introduces unnecessary complexity and overhead.

Analyze the Code-Based Approach (Option C) Using simple code to calculate probability involves a basic division operation ($\frac{4}{13}$). This requires zero training data, no GPU/ML compute resources, no model storage, and minimal CPU usage. It runs instantly on any standard instance or even locally. As noted in community comments, this approach avoids "complexity and resource" burdens associated with ML models. For deterministic mathematical problems, traditional programming is always the lowest-overhead solution compared to AI/ML inference pipelines.

Official Reference

Exam Strategy

Always prioritize simplicity and cost-efficiency. If a problem can be solved with a deterministic formula (like basic math, logic gates, or fixed business rules), choose traditional code over ML. Reserve ML only for non-deterministic, pattern-based, or predictive scenarios where explicit rules are unknown or too complex to encode manually.

Frequently Asked Questions

Why is reinforcement learning wrong for this?

Reinforcement learning is for sequential decision-making in dynamic environments with reward signals. It is unsuitable for static, deterministic calculations like probability ratios.

Does 'operational overhead' include development time?

Yes. While ML models might take longer to develop, the primary overhead in AWS exams usually refers to runtime compute, storage, and management complexity. Simple code has negligible overhead in both.

More AIF-C01 FAQ →

Community Votes

C
100%

100% of anonymous learners picked answer C. Votes are pick records left by other test-takers — they are not the verified answer.

Discussion 7 contributions

Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.

From public community threads 7

  1. Moon 👍 9 Answered C
    C: Use code that will calculate probability by using simple rules and computations. Explanation: For a question like this, where the probability can be computed using basic arithmetic (e.g., number of favorable outcomes divided by total outcomes), implementing a straightforward function in code will meet the requirements with the least operational overhead. This avoids the complexity and resource demands of machine learning. For example: Total marbles = 6 + 4 + 3 = 13 6+4+3=13
  2. aswathsaikarthick 👍 5 Answered C
    Estimated Costs Memory: Less than 1 MB for the model. Computation: A few seconds to minutes on a standard laptop CPU. Data: A few hundred examples, which can be generated programmatically. Instead def calculate_probability(green_marbles, total_marbles): return green_marbles / total_marbles # Example usage green_marbles = 4 total_marbles = 6 + 4 + 3 # red + green + yellow probability = calculate_probability(green_marbles, total_marbles) print(f"Probability of choosing a green marble: {probability:.2f}") A program is effective and time saving
  3. tccusa 👍 5 Answered C
    Not necessary to train a model for this. Code for computation is sufficient.
  4. jove 👍 4 Answered C
    Make it simple : Use code that will calculate probability by using simple rules and computations.
  5. 65703c1 👍 3 Answered C
    C is the correct answer.
Show 2 more comments
  1. Jessiii 👍 1 Answered C
    The problem described is a simple probability calculation based on basic combinatorics. The probability of choosing a green marble is simply the ratio of green marbles to total marbles, which can be computed directly without needing a complex machine learning model. Using a straightforward code implementation to calculate the probability based on the given numbers (6 red, 4 green, and 3 yellow marbles) will be the most efficient and have the least operational overhead. It’s a direct computation using basic arithmetic.
  2. VIJAY K T 👍 1 Answered C
    no need for modeling as Probability can be calculated directly using a simple formula

Reader comments & corrections

No reader corrections yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Practice All AIF-C01 Questions

Access 100 questions with complete answers and detailed explanations.

View Full AIF-C01 Practice Test →

← Back to AIF-C01 Study Guide