CDP-4001 study guide cover: a sales table split into year partitions with only one read, and an EXPLAIN line showing #partitions=1/3, for the Cloudera Data Analyst exam

 

A useful CDP-4001 study guide starts with the two topics most candidates skim: Hive and Impala Optimization (12%) and Data Management and Storage (10%). Together they make up 22% of the Cloudera Data Analyst exam, roughly 11 of its 50 questions if the questions follow the weights, and they are the part of the exam where a few hours at an Impala prompt teach more than a week of reading.

 

This entry covers those eight topic lines one by one: partitions and pruning, COMPUTE STATS, file formats, bucketing, managed and external tables, and where query results go. The exam facts were read on Cloudera's own pages on 23 November 2026, and the behaviour described comes from the Cloudera Data Warehouse documentation.

What is the CDP-4001 exam and how is it scored?

CDP-4001 is Cloudera's Data Analyst exam. It checks that you can query, model and tune data with Apache Hive and Impala, build dashboards in Cloudera Data Visualization, and work with Ranger, Atlas and Cloudera Data Warehouse.

 

The CDP-4001 exam guide on Cloudera's site lists the format:

  • 50 questions in 120 minutes
  • Pass score: 60%
  • Delivered online and proctored, through QuestionMark
  • No allowed resources: no reference material, white papers or user guides during the exam
  • Price on the Cloudera Education store: $330 USD

Some simple sums help you plan. 60% of 50 is 30 correct answers, so you can miss up to 20 questions and still pass. 120 minutes over 50 questions gives you 2 minutes 24 seconds per question, which is plenty for reading an EXPLAIN line or a CREATE TABLE statement carefully.

 

The AnalyticsExam channel made a short video on exactly that pass maths:

 

Why study optimization and storage together?

Because both sections ask the same question from two sides: how is the data laid out on disk, and how does that layout change the work a query has to do? Cloudera's topic table splits them like this:

  • Hive and Impala Optimization (12%): pushing the filter condition, bucketing, file format optimization, COMPUTE STATS
  • Data Management and Storage (10%): where and how data is stored and accessed in HDFS, ways to store query results into a table or directory, external versus managed tables, partitioning

Partitioning sits in the storage section, but its whole point is to let the filter condition skip data. File format sits in the optimization section, but you choose it when you create the table. If you study the eight lines as one story, each one explains the next.

How does partitioning work in Impala and Hive?

Partitioning splits a table's data into a separate directory for each value of one or more columns, decided when the data is loaded. A sales table partitioned by year has one directory per year, and a query with WHERE year = 2025 only opens that directory.

 

The partition columns are declared in a PARTITIONED BY clause and are not part of the table's main column list. That detail turns up in exam wording: the value lives in the directory name, not inside the data file.

When is a column a good partition key?

Cloudera's partitioning notes give three tests:

  • The table is very large, so reading all of it takes an impractical amount of time.
  • Queries almost always filter on that column.
  • The column has reasonable cardinality: not two values (you only skip half the data) and not so many values that each directory holds a tiny file.

Typical choices are census data by year, sales by year and month, and web traffic by year, month and day. A column you rarely filter on, such as a customer surname, is a poor key even if it looks tidy.

How do you check that pruning happened?

Run EXPLAIN before the query. Cloudera's page on partition pruning in Impala queries shows a scan line with the notation #partitions=1/3, meaning Impala reads one of three partitions. After the query, SUMMARY shows how much data each stage actually read, and PROFILE gives the full detail.

 

Two pruning rules are easy to miss:

  • Static pruning uses the WHERE clause to skip partitions before the query runs; dynamic pruning skips them during execution, which helps most with joins of large partitioned tables.
  • With an analytic function, pruning only happens on columns named in the function's PARTITION BY clause.

What does COMPUTE STATS do, and when should you run it?

COMPUTE STATS collects row counts for the table and each partition, plus statistics for every column, and stores them in the metastore. Impala's planner uses them to pick join order and memory use, so a join query on tables without statistics is planned on guesses.

 

The Cloudera Data Warehouse guide to generating table and column statistics adds the working rules:

  • It is CPU heavy and slow on very large tables, so run it in a quiet maintenance window.
  • Run it periodically, for example weekly, or when the data has changed a lot; a common guide is to recompute after about 30% of the rows change.
  • You can limit the column list. The columns that matter are the ones in filters, join conditions, GROUP BY and PARTITION BY clauses.
  • Newly added partitions have no row counts until you compute stats again.

In SHOW TABLE STATS or SHOW PARTITIONS output, a #Rows value of -1 means no statistics exist for that table or partition yet.

COMPUTE STATS or COMPUTE INCREMENTAL STATS?

COMPUTE INCREMENTAL STATS works only on partitioned tables and can target only the partitions you name. On an unpartitioned table Impala quietly runs the plain version instead. The rule to remember: for one table, use one method or the other, never both. If you need to switch, run DROP STATS first.

Which file format should you pick for analytic tables?

For large analytic tables, Parquet is the default answer. It is a column-oriented format, so a query that reads three columns of a wide table, or runs SUM() and AVG() over a column, touches only those columns. Values of one column sit together, which also makes them compress well; Impala uses Snappy compression by default.

 

Parquet also helps the filter condition. Impala writes the minimum and maximum value of each column into every Parquet file, per row group and per data page, so a filter can skip blocks whose range cannot match. That is the file-format side of "pushing the filter condition".

 

One habit to avoid: INSERT ... VALUES into a Parquet table. Each statement writes a separate tiny file, which throws away the format's strength. Load Parquet tables in bulk.

Does bucketing still matter on CDP-4001?

Know what it is, and know its limits. Bucketing spreads rows into a fixed number of files with a hash of a column, written as CLUSTERED BY (user_id) INTO 256 BUCKETS, optionally with SORT BY inside each bucket.

 

The Cloudera documentation is blunt about its value today. Impala's bucketed-table page says Impala does not currently use the bucket information to optimize queries, and Hive 3 transactional tables need no bucketing at all because it does not change their performance. Bucketed tables in Impala also cannot be Kudu or Iceberg tables and do not allow adding, dropping or changing columns. So if an answer option promises that bucketing will speed up an Impala join, read it twice.

 

Iceberg tables belong to Cloudera's engineering track instead: the earlier entry on CDP-3002 Airflow and Iceberg deployment covers that Data Engineer side if you plan both exams.

What is the difference between managed and external tables?

A managed table is owned by Hive: Hive controls its files, can make it ACID, and deletes the data when you drop the table. An external table only points at files that something else owns, so dropping it removes the definition and leaves the files where they are.

 

Cloudera's overview of Hive 3 managed and external table types puts the details in one matrix:

  • Managed CRUD transactional tables are ACID, stored as ORC, and support INSERT, UPDATE and DELETE.
  • Managed insert-only tables are ACID, accept any file format, and support INSERT only. Choosing a format other than ORC for a managed table gives you this type.
  • External tables are not ACID, accept any format, and support INSERT but not UPDATE or DELETE.
  • DROP TABLE on an external table drops only the metadata, unless the table property external.table.purge is set to true.
  • External tables miss several Hive features, including the query cache, automatic runtime filtering, file merging after insert, and TRUNCATE and MERGE.
  • DROP PARTITION deletes data on any table type.

How do you store query results in a table or directory?

There are two patterns to know. CREATE TABLE AS SELECT makes a new table from a query in one step, and it can take a PARTITIONED BY clause so the new table is partitioned as it is filled. An INSERT ... SELECT adds query results to a table that already exists. For the "directory" half of the topic line, remember that an external table is defined with a LOCATION, so writing into it writes files into that HDFS or cloud directory, where other tools can read them.

A worked example: tuning one slow sales query

Here is a scenario written for this entry, not taken from the exam. A team has a 3-billion-row sales table stored as text, unpartitioned, with no statistics. Analysts run the same report every morning: total revenue per region for the last three months, joined to a small region table.

 

Walk through it the way the exam topics are ordered:

  1. Storage first. Most queries filter on date, so recreate the table partitioned by year and month with CREATE TABLE AS SELECT. Month gives reasonable cardinality; day would give 30 small directories a month for little gain.
  2. File format. Store the new table as Parquet. The report reads 3 of 40 columns and sums one of them, which is exactly the column-oriented case.
  3. Statistics. Run COMPUTE STATS on both tables, then choose: plain COMPUTE STATS weekly, or COMPUTE INCREMENTAL STATS on each new month's partition. Pick one and keep to it.
  4. Check. Run EXPLAIN on the report and look for #partitions=3/n on the sales scan. If it shows every partition, the filter is written on something other than the partition columns.
  5. What not to do. Bucketing the sales table by region would not make Impala's join faster, because Impala does not use the bucket information.

If you can explain each of those five steps out loud, you have covered most of the 22%.

What is a good four-week CDP-4001 study plan?

Cloudera recommends real hands-on experience whether or not you take training, so the plan below puts a query prompt in every week.

  1. Week 1: the SQL core (48% between Use Apache Hive and Impala, the SQL line and aggregate statistics). Joins, data type conversion, CREATE TABLE and views, aggregate functions.
  2. Week 2: this entry's 22%. Build one partitioned Parquet table, read EXPLAIN, run both kinds of statistics on copies, drop a managed and an external table and see what is left.
  3. Week 3: the 30% outside SQL. Build a dashboard in Data Visualization, read a lineage graph in Atlas, read a Ranger policy, create a Virtual Warehouse.
  4. Week 4: review your weakest topic from Cloudera's table, then time yourself at 2 minutes 24 seconds per question.

If dashboards are new to you, our notes on the Tableau Desktop Foundations exam are a gentle first look at visual analysis before the Data Visualization topic.

What mistakes cost points on these topics?

  • Partitioning on a column the queries never filter on, or on one with two values.
  • Mixing COMPUTE STATS and COMPUTE INCREMENTAL STATS on the same table.
  • Forgetting that new partitions have no statistics until you compute them.
  • Expecting DROP TABLE on an external table to delete the files.
  • Assuming bucketing speeds up Impala joins.
  • Loading a Parquet table with many INSERT ... VALUES statements.

When you want to measure your readiness across all eight topics, the CDP-4001 practice exam on AnalyticsExam is timed like the real 120-minute test.

 

CDP-4001 infographic: the 22% of the Cloudera Data Analyst exam on optimization and storage, with partitioning, COMPUTE STATS, Parquet, bucketing and managed versus external tables

Frequently asked questions

1. How many questions are on the CDP-4001 exam, and what is the pass score?

The CDP-4001 exam has 50 questions in 120 minutes, and the pass score is 60%, so 30 correct answers pass. No reference material is allowed.

2. How much of CDP-4001 is about optimization and storage?

Hive and Impala Optimization is 12% and Data Management and Storage is 10%, so 22% together. Cloudera does not publish a question count per topic.

3. Should I use COMPUTE STATS or COMPUTE INCREMENTAL STATS?

Use one of them per table and never alternate. COMPUTE INCREMENTAL STATS only applies to partitioned tables; to switch methods, run DROP STATS first.

4. What happens when you drop an external table?

By default only the table definition is removed and the data files stay. The data is deleted too only if the table property external.table.purge is true.

5. How much does the CDP-4001 exam cost?

The Cloudera Education store lists the CDP-4001 Data Analyst Exam at $330 USD. You schedule it through Questionmark after buying it.