# DNN or KNN for a million-point dataset?

Aced (formerly Exponent) publishes a public search API over its indexed pages; the guide is at https://www.aced.io/agents/agent-access.

Source: https://www.aced.io/questions/3480/choice-between-dnn-knn-large-dataset
Source observed: 2026-11-05T00:35:43.853Z
Last checked: 2026-11-05T00:35:43.853+00:00
Indexed: 2026-11-06T10:41:36.327+00:00

---

# For a dataset with a million data points, would you use a DNN or KNN? Why?

We provide this as a Machine Learning Engineer interview concept associated with Pinterest. The question asks candidates to choose between a deep neural network (DNN) and k-nearest neighbors (KNN) for a dataset containing one million data points and explain the reasoning.

## Access and answers

Detailed company statistics are available through [Upgrade](https://www.aced.io/upgrade?src=questions). No community answers have been contributed yet. To submit an answer, log in or sign up; submitting marks the question complete.

## Question details

- Role: [Machine Learning Engineer](https://www.aced.io/questions?role=ml-engineer)
- Company: [Pinterest](https://www.aced.io/questions?company=pinterest)
- Category: [Concept](https://www.aced.io/questions?type=concept)
- Reported last asked: 3 years ago

## Related questions

- [What data points would you use to define a product recommendation engine?](https://www.aced.io/questions/1018/data-points-product-recommendation-engine)
- [How would you train a model on a large dataset with few labels?](https://www.aced.io/questions/3421/train-model-large-dataset-few-labels)

## Related courses

![Machine Learning Engineer Interview Prep](https://images.ctfassets.net/x78yjrjc11pq/6UfkHxUyLQVfDHSfLNQtWa/1be1539a65b4f6f15201f5b573c0a578/ML_Engineer_Interview_Prep_Course.jpeg?w=800&h=800&fm=webp&q=75)

### [Machine Learning Engineer Interview Prep](https://www.aced.io/courses/ml-engineer)

We cover mock interviews, frameworks, senior-candidate advice, machine-learning system design, core concepts, coding, and behavioral interviews to help candidates prepare for roles at Meta, Google, Amazon, Apple, Microsoft, Nvidia, and other companies.

![Behavioral Interviews: A Practical Guide for Engineers](https://images.ctfassets.net/x78yjrjc11pq/47qcoHjzFZXE37GoacedkB/9d8e3f4910d8b06b21e76745cd9cbff3/AdobeStock_1142146335.jpeg?w=800&h=800&fm=webp&q=75)

### [Behavioral Interviews: A Practical Guide for Engineers](https://www.aced.io/courses/eng-behavioral)

We help candidates prepare for senior-plus behavioral interviews at FAANG and Tier-1 companies, with material made with staff and principal engineers from Meta, Netflix, Google, and more.

---

[Read this page’s summary](https://www.aced.io/agents/api/public/v1/page-tldr?url=https%3A%2F%2Fwww.aced.io%2Fquestions%2F3480%2Fchoice-between-dnn-knn-large-dataset&trace=t_679ff9ab98f3)

## Ask a follow-up about this page

Need a more specific answer? Ask the exact question you have. It returns a fresh, cited answer from Aced (formerly Exponent)’s knowledge base. No account or API key required.

Open this URL with your own question, URL-encoded. Include your question in q. All research inputs are optional; no account or setup.

`GET https://www.aced.io/agents/agent/faq?q={question}&trace=t_679ff9ab98f3`

[Tool guide and examples](https://www.aced.io/agents/agent-access) · [OpenAPI](https://www.aced.io/agents/api/public/v1/openapi.json) · [Page TLDR form](https://www.aced.io/agents/agent-tools/page-tldr?url=https%3A%2F%2Fwww.aced.io%2Fquestions%2F3480%2Fchoice-between-dnn-knn-large-dataset). Opening a form does not execute a tool.