Dataford
Interview QuestionsInterview GuidesExperiencesCoaching
New
Pricing
Get started
Dataford
Popular roles
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Browse
Browse All RolesEvery role hub, from analyst to MLBrowse All CompaniesCompany-specific interview loopsAll Interview GuidesThe full guide library
Top questions by role
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Top questions by skill
SQLPythonStatisticsMachine LearningA/B TestingSystem DesignGenerative AIProduct SenseMetricsBehavioral
Browse all questions →Try a mock interview
ExperiencesCoaching
New
Practice
Mock InterviewsTimed interview simulations with feedbackSuccess PathYour 6-week structured planModulesCurated lessons by topicWebinarsTalks from ex-Big Tech data leadsPlaygroundA free-form scratch editor
Learn
BlogInterview strategy and career adviceTech Job Market ReportHiring trends across data and AI rolesFor UniversitiesDataford for career centersAbout DatafordWho we are and how we build
Pricing
Get started
What SSL Traffic Means
00:00
5 left

What SSL Traffic Means

MediumSQL · PostgreSQL

Problem

What is SSL traffic?

Using the provided request and hostname data, write a PostgreSQL query that measures SSL traffic as requests using the HTTPS protocol during January 2025.

Output

  1. One row per configured hostname, including hosts with no matching requests
  2. Columns: hostname, total_requests, ssl_requests, and ssl_percentage
  3. Include only requests from January 2025, order by ssl_percentage descending, then hostname ascending

Schema

property_hosts
ColumnTypeDescription
host_idPKINTUnique hostname identifier
hostnameVARCHAR(255)Configured hostname
property_nameVARCHAR(100)Akamai property associated with the hostname
request_logs
ColumnTypeDescription
request_idPKINTUnique request identifier
host_idINTReferenced configured hostname identifier
request_timeTIMESTAMPTime when the request was received
protocolVARCHAR(10)Transport protocol, such as HTTPS or HTTP
status_codeINTHTTP response status code
Tablesproperty_hostsrequest_logs
Interviewer

Your question is What SSL Traffic Means. Start with the requirements and the two tables in the Question tab.

Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.

You need to log in / sign up to run or submit.
CodePostgreSQL
Sign up free to run your codeLog inLn 1
Run your query to see results here.