PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
|Home/Analytics & Experimentation/TikTok

SQL Queries and Analysis on Bad Advertisers

Last updated: Mar 29, 2026

Quick Overview

This question evaluates SQL query writing, metric definition and normalization, ranking/aggregation techniques, and analytical reasoning for identifying problematic advertisers.

  • medium
  • TikTok
  • Analytics & Experimentation
  • Data Scientist

SQL Queries and Analysis on Bad Advertisers

Company: TikTok

Role: Data Scientist

Category: Analytics & Experimentation

Difficulty: medium

Interview Round: Technical Screen

##### Scenario You are part of the analytics team at TikTok and are tasked with analyzing the presence of bad content on the platform, particularly focusing on adverts. Question 1 Write an SQL query to define and identify what constitutes a 'top bad advertiser'. Consider factors such as the number of reports an advertiser receives and other relevant ranking metrics. Question 2 Given the information that there is a positive correlation between ad page visits and reports on that ad being bad, outline your approach to investigate the reasons behind this correlation. What would be your hypothesis? ##### Hints Consider how you would capture and rank bad advertisers using available data. Reflect on potential reasons for the positive correlation (e.g., higher visibility leading to more scrutiny).

Quick Answer: This question evaluates SQL query writing, metric definition and normalization, ranking/aggregation techniques, and analytical reasoning for identifying problematic advertisers.

Related Interview Questions

  • Define Ultra success metrics and detect suspicious transactions - TikTok (easy)
  • Plan DS approach for biker delivery project - TikTok (easy)
  • Define and critique a user activity metric - TikTok (easy)
  • Design and decompose Trust & Safety risk metrics - TikTok (easy)
  • Analyze promo anomaly and design risk guardrails - TikTok (Medium)
TikTok logo
TikTok
Jun 29, 2025, 4:58 PM
Data Scientist
Technical Screen
Analytics & Experimentation
10
0

Scenario

You are on the analytics team at TikTok and need to analyze the presence of bad content in ads and identify problematic advertisers.

Question 1

Propose a clear definition of a "top bad advertiser" and write an SQL query to identify them. Consider factors such as the number of reports an advertiser receives and appropriate normalization/ranking metrics.

Question 2

There is a positive correlation between ad page visits and reports on that ad being bad. Outline how you would investigate reasons behind this correlation. What hypotheses would you test?

Hints

  • Think about how to capture and rank bad advertisers using available data.
  • Reflect on why more page visits might lead to more reports (e.g., higher visibility, UI/reporting friction, confounding by exposure).

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Analytics & Experimentation•More TikTok•More Data Scientist•TikTok Data Scientist•TikTok Analytics & Experimentation•Data Scientist Analytics & Experimentation
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.