Free ClickHouse Certified Developer Practice Questions
100 free questions · Answer explanations · No signup required
View examination details, outline and sourcesThese questions practise related knowledge and decisions. They do not replace practical performance training or assess your actual performance.
Loading selected examination banks…
Sample Practice Questions
Try these 10 sample questions from the ClickHouse Certified Developer practice bank. Each includes the answer and explanation. Continue with the interactive practice above to review the full question set.
1A deployment script may run repeatedly. Which statement creates the analytics database only when it is absent, without raising an already-exists error?
- A.CREATE DATABASE IF NOT EXISTS analyticsCorrect answer: A
- B.CREATE DATABASE analytics
- C.CREATE OR REPLACE TABLE analytics (id UInt64) ENGINE = Memory
- D.ATTACH DATABASE analytics
Explanation: Under IF NOT EXISTS, the documentation says: "Doesn’t throw an exception if clause is specified." This clause makes database creation safe when the database already exists. Plain CREATE lacks that guard; CREATE TABLE creates a table; ATTACH is not conditional creation of a new database.
2A CSV file exists only on the workstation running clickhouse-client, not on the remote server. Which mechanism directly uploads that client-side file into an existing table?
- A.INSERT INTO events SELECT * FROM file('/local/events.csv', 'CSV')
- B.INSERT INTO events FROM INFILE '/local/events.csv' FORMAT CSVCorrect answer: B
- C.CREATE TABLE events AS file('/local/events.csv', 'CSV')
- D.INSERT INTO events VALUES ('/local/events.csv')
3Which WHERE predicate correctly selects rows whose Nullable measurement is missing?
- A.measurement = NULL
- B.measurement IS NULLCorrect answer: B
- C.measurement != NULL
- D.measurement = 0
4An existing MergeTree target normalized_events should receive transformed, nonaggregated rows whenever raw_events is inserted into. Which definition establishes that incremental insert path?
- A.CREATE VIEW mv AS SELECT * FROM raw_events
- B.CREATE MATERIALIZED VIEW mv TO normalized_events AS SELECT id, lower(name) AS name FROM raw_eventsCorrect answer: B
- C.CREATE TABLE mv AS raw_events
- D.ALTER TABLE normalized_events ADD PROJECTION mv (SELECT * ORDER BY id)
Explanation: The documentation says "Materialized views store data transformed by the corresponding SELECT query." CREATE MATERIALIZED VIEW ... TO normalized_events establishes the source-insert trigger and writes transformed rows to that target. An ordinary view stores no result, a schema copy establishes no trigger, and a projection on the target does not consume raw_events.
Reference: CREATE VIEW — Materialized View — Materialized View — transformed result storage
5An events MergeTree table needs a lightweight deletion of rows with expired = 1 while retaining other rows. Which statement expresses that operation?
- A.TRUNCATE TABLE events
- B.DELETE FROM events WHERE expired = 1Correct answer: B
- C.ALTER TABLE events DROP COLUMN expired
- D.DELETE FROM events WHERE expired = 0
Explanation: The documentation states "WHERE expr". DELETE FROM with the true expiration predicate marks matching rows. TRUNCATE removes all rows, dropping a column does not delete matching records and the reversed predicate deletes the wrong subset.
6An administrator has configured a ClickHouse cluster named reporting. Which clause extends CREATE DATABASE metrics to the servers in that cluster?
- A.ENGINE = Replicated
- B.ON CLUSTER reportingCorrect answer: B
- C.SETTINGS max_threads = 8
- D.COMMENT 'reporting'
Explanation: The ON CLUSTER documentation specifies creation "on all the servers of a specified cluster." ON CLUSTER reporting supplies that distributed DDL scope. Choosing a database engine, query thread setting or descriptive comment does not specify this cluster-wide DDL operation.
7A shell pipeline sends TSV rows to clickhouse-client on standard input. Which INSERT query tells the client/server how to parse that incoming stream?
- A.INSERT INTO events VALUES
- B.SELECT * FROM events FORMAT TabSeparated
- C.INSERT INTO events FORMAT TabSeparatedCorrect answer: C
- D.INSERT INTO events FORMAT Parquet
8A query must return the ten largest purchases and use unique purchase_id ascending to break amount ties deterministically. Which ending meets the requirement?
- A.ORDER BY amount DESC LIMIT 10
- B.ORDER BY purchase_id, amount DESC LIMIT 10
- C.ORDER BY amount DESC, purchase_id ASC LIMIT 10Correct answer: C
- D.ORDER BY amount ASC, purchase_id DESC LIMIT 10
Explanation: The documentation states "arbitrary and non-deterministic order". A unique tie-break key is necessary after descending amount. Amount alone leaves ties arbitrary, ID-first prioritizes the wrong field, and ascending amount selects the smallest purchases.
Reference: ORDER BY clause — ORDER BY — sorting direction and ties
9An incremental materialized view is created without POPULATE after its source already contains historical rows. No explicit backfill is run. What initially happens to those historical rows in the target?
- A.They are copied at the next SELECT
- B.They are copied by the next source merge
- C.They remain absent unless separately backfilledCorrect answer: C
- D.They are deleted from the source
Explanation: The documentation states "Otherwise, the view contains only the data inserted". Without population/backfill, the target receives source inserts after creation. Reads and source background merges do not replay historical rows; source data is not deleted.
Reference: CREATE VIEW — Materialized View — Materialized View — population
10A synchronous lightweight DELETE has finished marking matching rows. What does this guarantee about their storage at that moment?
- A.All their bytes have already been overwritten
- B.Every affected part has been dropped
- C.They are hidden from normal queries but may remain physically storedCorrect answer: C
- D.All replicas have compacted every affected part
Explanation: The documentation states "does not immediately physically delete them.". Completion of marking provides logical deletion, not immediate erasure. Physical removal occurs in later merges; it does not imply overwriting bytes or complete compaction everywhere.
Reference: Lightweight DELETE — Lightweight DELETE does not delete data immediately
Exam Review
About ClickHouse Certified Developer
ClickHouse Certified Developer · UNSPECIFIED
This examination scores performance. Multiple-choice practice covers related knowledge and decisions; it does not replace practical performance training or assess your actual performance.
Key exam facts
- Provider
- ClickHouse owns the certification; HackerRank supplies the exam environment and task interface.
- Format
- Hands-on performance assessment in a live ClickHouse environment using clickhouse-client on the candidate's own computer; AI monitored, with documentation access. No multiple-choice, fill-in-the-blank or true/false questions. This multiple-choice practice bank addresses related knowledge and decisions; it does not replace hands-on training or certify task performance. The displayed count of 10–12 refers to hands-on tasks, not written questions.
- Exam questions
- Total questions: 10–12.
- Time limit
- 2 hours for task completion. Environment setup and pre-exam process may take an additional 5–10 minutes; breaks do not stop the timer.
- Passing score
- 70%; tasks are not equally weighted. Scripts grade most work and ClickHouse manually reviews every attempt.
- Exam fee
- USD 200 per attempt, including retakes; purchases are non-refundable.
Topics covered
Modeling data
- Create a new database
- Create a new table that satisfies a given criteria or matches a given file format
- Choose efficient data types for columns when appropriate
- Define an efficient primary key given a specific criteria of the types of queries that will be executed on a MergeTree table
- Define and query a Dictionary
Inserting data
- Insert a local file into a table
- Insert a file from cloud storage into a table
- Insert a Parquet, CSV, or TSV file into a table
- Provide minor transformations to columns as they are being inserted
- Insert data from one table into another
Analyzing data
- Write a query that satisfies a given criteria
- Write a query that uses regular functions. For example, searches for substrings within a String column, or converts a timestamp to the beginning of a time interval
- Write a query that uses aggregate functions. For example, find the max/min/sum/avg of a column, or the number of unique values, or a given quantile
- Use a GROUP BY to compute buckets of aggregated values given a specified timeframe or grouping criteria
Optimizing query performance
- Define a materialized view that stores the result of a non-aggregation query
- Define a materialized view that stores the result of an aggregate function using the AggregatingMergeTree or SummingMergeTree table engines
- Define a projection on a table
- Define a set or minmax skipping index on a table
Deduplication and mutations
- Perform a lightweight delete operation on a table
- Implement an efficient upsert strategy using the ReplacingMergeTree table engine
- Implement an efficient strategy for performing frequent updates using the CollapsingMergeTree table engine
How to prepare
Work through the topics, read the explanation after each answer, and revisit the areas where you miss questions. Use the official outline and reference materials below to guide your study.
These independent practice questions are not actual exam items and do not guarantee a passing result.
Frequently asked questions
What is the exam format?
Hands-on performance assessment in a live ClickHouse environment using clickhouse-client on the candidate's own computer; AI monitored, with documentation access. No multiple-choice, fill-in-the-blank or true/false questions. This multiple-choice practice bank addresses related knowledge and decisions; it does not replace hands-on training or certify task performance. The displayed count of 10–12 refers to hands-on tasks, not written questions.
How many questions are on the exam?
Total questions: 10–12.
How long is the exam?
2 hours for task completion. Environment setup and pre-exam process may take an additional 5–10 minutes; breaks do not stop the timer.
What is the passing score?
70%; tasks are not equally weighted. Scripts grade most work and ClickHouse manually reviews every attempt.
How much does the exam cost?
USD 200 per attempt, including retakes; purchases are non-refundable.
Official sources and references
- ClickHouse Certification
Exam objectives
- ClickHouse Certification
FAQs — What is the format of the exam?
- ClickHouse Certification
FAQs — What is the minimum passing score for the exam?
- The First Official ClickHouse Certification
What does it mean to be a hands-on exam?
- ClickHouse Certification
FAQs — How much does it cost to take the exam?
- ClickHouse Certification
FAQs — How long is the exam?
- ClickHouse Certification
FAQs — How do I schedule a time to take the exam?
Confirm current exam arrangements with the exam provider.