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
Experiences
Practice
Mock InterviewsTimed interview simulations with feedbackCoaching1:1 coaching with people at your target companiesSuccess 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
Build my plan
Encryption Ciphers Overview
00:00
5 left

Encryption Ciphers Overview

MediumSQL · PostgreSQL

Problem

Describe different encryption ciphers.

Write a SQL query that returns each approved cipher, its family classification, key length, and number of recorded deployments. Include approved ciphers with no deployments and exclude unapproved ciphers.

Output

  1. One row per approved cipher.
  2. Columns: cipher_name, cipher_family, cipher_type, key_length_bits, and deployment_count.
  3. Sort by cipher_family, then cipher_name alphabetically.

Schema

cipher_catalog
ColumnTypeDescription
cipher_idPKINTUnique cipher identifier
cipher_nameVARCHAR(80)Cipher algorithm name
cipher_familyVARCHAR(20)Cipher family, such as symmetric or asymmetric
modeVARCHAR(40)Cipher mode or construction
key_length_bitsINTNominal key length in bits
is_approvedBOOLEANWhether the cipher is approved for use
cipher_deployments
ColumnTypeDescription
deployment_idPKINTUnique deployment record identifier
cipher_idINTReferenced cipher identifier
deployment_environmentVARCHAR(30)Environment where the cipher is deployed
Tablescipher_catalogcipher_deployments
Interviewer

Your question is Encryption Ciphers Overview. 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.