AWS Certified AI Practitioner (AIF-C01) — Question 94

An AI practitioner wants to predict the classification of flowers based on petal length, petal width, sepal length, and sepal width.

Which algorithm meets these requirements?

Answer options

Correct answer: A

Explanation

The K-nearest neighbors (k-NN) algorithm is appropriate for classification tasks, making it ideal for predicting flower classifications based on the specified features. In contrast, K-mean is used for clustering, ARIMA is designed for time series forecasting, and linear regression is primarily used for predicting continuous outcomes rather than classifications.