Courseiva
Exploratory Data AnalysismediumMultiple ChoiceObjective-mapped

MLS-C01 Exploratory Data Analysis Practice Question

A data scientist is performing EDA on a dataset containing customer transaction records. The dataset includes columns: 'transaction_id', 'customer_id', 'transaction_amount', 'transaction_date', and 'product_category'. The data scientist wants to check for duplicate transactions and identify any suspicious patterns, such as multiple transactions from the same customer on the same day with the same amount. The dataset has 5 million rows. The data scientist is using a SageMaker Studio notebook with a ml.t3.medium instance. The data is stored in S3. What is the most efficient way to perform this analysis?

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 a SageMaker Spark processing job with PySpark to aggregate and detect duplicates.

SageMaker Spark processing jobs distribute the workload across multiple nodes, allowing efficient handling of the 5-million-row dataset within the memory limits of the ml.t3.medium instance. Option B (Athena) is less efficient due to query costs and the need for external setup, and it may not be as flexible for custom duplicate detection logic. Option C (pandas) would likely cause out-of-memory errors on the small instance. Option D (DataBrew) is designed for profiling and basic transformations, not for custom duplicate analysis.

Answer analysis

Option-by-option breakdown

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

  • Use a SageMaker Spark processing job with PySpark to aggregate and detect duplicates.

    Why this is correct

    Spark can handle large data efficiently.

  • Use Amazon Athena to run SQL queries to find duplicates.

    Why it's wrong here

    Athena is query-only, not for interactive EDA with custom logic.

  • Load the entire dataset into a pandas DataFrame and use groupby operations.

    Why it's wrong here

    Memory may be insufficient.

  • Use AWS Glue DataBrew to create a profile and manually inspect.

    Why it's wrong here

    DataBrew may not support custom duplicate detection logic.

Quick reference

AWS S3 Storage Class Comparison

Storage ClassMin DurationRetrievalUse Case
S3 StandardNoneImmediateFrequently accessed data
S3 Standard-IA30 daysImmediateInfrequent access, rapid retrieval
S3 One Zone-IA30 daysImmediateNon-critical infrequent data
S3 Intelligent-TieringNoneImmediate–hoursUnknown or changing access patterns
S3 Glacier Instant90 daysMillisecondsArchive with instant retrieval
S3 Glacier Flexible90 daysMinutes–hoursArchive, flexible retrieval
S3 Glacier Deep Archive180 daysHoursLong-term compliance archive

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.