Courseiva
Exploratory Data AnalysishardMultiple ChoiceObjective-mapped

MLS-C01 Exploratory Data Analysis Practice Question

A data scientist is performing EDA on a dataset with 1 million rows. They suspect the dataset contains duplicate rows. Which approach is most efficient to identify duplicates in Amazon SageMaker Studio?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Use DuckDB SQL query: SELECT COUNT(*) - COUNT(DISTINCT *) FROM table.

DuckDB is an in-process SQL OLAP database that can run on a single machine and efficiently handle large datasets. Option A (Python loop) is slow; Option B (pandas drop_duplicates) may be memory-intensive; Option D (Athena) is serverless but incurs cost and latency.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Write a Python script that loops through each row and compares to a set of seen rows.

    Why it's wrong here

    Looping is inefficient for 1M rows.

  • Use pandas drop_duplicates and then check the length difference.

    Why it's wrong here

    pandas may run out of memory for large datasets.

  • Use DuckDB SQL query: SELECT COUNT(*) - COUNT(DISTINCT *) FROM table.

    Why this is correct

    DuckDB efficiently processes large DataFrames in-memory.

  • Use Amazon Athena to query the S3 data with COUNT(DISTINCT *).

    Why it's wrong here

    Athena charges per query and has overhead.

Quick reference

Cloud Service Model Comparison

ModelYou ManageProvider ManagesExamples
IaaSOS, runtime, apps, dataHardware, hypervisor, networkingEC2, Azure VMs, GCP Compute Engine
PaaSApps and dataOS, runtime, middleware, hardwareElastic Beanstalk, Azure App Service
SaaSData and settings onlyEverything elseMicrosoft 365, Salesforce, Workday
FaaS / ServerlessFunction code onlyInfra, scaling, runtimeLambda, Azure Functions, Cloud Run
CaaSContainers and appsKubernetes, OS, hardwareEKS, AKS, GKE

About these practice questions

Courseiva writes every MLS-C01 question from scratch — 1,672 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This MLS-C01 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the MLS-C01 exam.