Sample questions with answers and explanations
Question 1
What is the FIRST step a company should take before starting an ML project?
- Buy the largest GPU instances available for training.
- Define the business problem and how success will be measured. — Correct
- Choose a deep learning framework before looking at the data.
- Deploy a model to production to see how users react.
Correct answer
Define the business problem and how success will be measured.
Explanation
A clear business problem and success metric guide all later choices. Buying compute, deploying first, or choosing tools first skips essential planning.
Question 2
A real estate company wants to predict the sale price of houses based on size, location, and age. Which type of machine learning problem is this?
- Regression — Correct
- Classification
- Anomaly detection
- Clustering
Correct answer
Regression
Explanation
Predicting a continuous numeric value is regression. Classification predicts categories. Clustering groups data. Anomaly detection finds outliers.
Question 3
A company wants to use AI to read invoices and automatically pull out the vendor name, total amount, and due date. Which AWS service fits BEST?
- Amazon Polly with a custom lexicon for invoices
- Amazon Translate with a custom terminology file
- Amazon Textract with its analyze expense capability — Correct
- Amazon Rekognition with celebrity recognition
Correct answer
Amazon Textract with its analyze expense capability
Explanation
Textract AnalyzeExpense extracts fields from invoices and receipts. Polly, Translate, and Rekognition celebrity recognition are unrelated.
Question 4
Which statement describes the difference between AI model training and inference?
- Training uses the model to answer user questions in production; inference creates the model from labeled data.
- Training and inference are the same process, run on different days of the week.
- Training runs only on CPUs and inference runs only on GPUs in every case.
- Training builds or updates the model from data; inference uses the trained model to make predictions. — Correct
Correct answer
Training builds or updates the model from data; inference uses the trained model to make predictions.
Explanation
Training learns model parameters, and inference applies the model to new inputs. The other statements are incorrect.
Question 5
A company wants to understand whether a classification model's errors are mostly false positives or false negatives. Which tool shows this breakdown?
- A word embedding plot of the input features
- A confusion matrix of predictions — Correct
- A token count report from the inference logs
- A learning rate schedule used during model training
Correct answer
A confusion matrix of predictions
Explanation
A confusion matrix shows true and false positives and negatives. The other tools do not break down classification errors.