Salesforce Certified Heroku Architect Practice Questions

Salesforce Certified Heroku Architect exam preparation

Salesforce Certified Heroku Architect practice questions in English: 180 questions with explanations. The mock exam has 60 questions and 105 minutes.

Salesforce Certified Heroku Architect free question 3 / 10 · Domain 2: Data

A team creates a Kafka topic with the default 32 partitions and later expects its consumers to need many more. Which statement about changing the topic is correct?

  1. The partition count can be raised but this triggers a rebalance across brokers
  2. The partition count can be changed only when the retention period is lowered to the minimum
  3. The partition count is fixed at creation so the team must plan it up front
  4. The partition count can be raised at any time with a CLI command and no other effect
Show the answer and explanation

Answer: C

Why this is correct
A note in Configuration Defaults and Limits tells you to plan topic design carefully: the partition count cannot be changed after the topic is created, while retention and compaction can be changed at any time, and the replication factor can be changed but triggers a partition rebalance. Because most consumer libraries use one thread per partition, the count caps consumer parallelism.

Why the other options are wrong
"The partition count can be raised at any time with a CLI command and no other effect" … The article says partition count cannot be changed after topic creation. Retention and compaction can.
"The partition count can be raised but this triggers a rebalance across brokers" … The rebalance is the effect of changing the replication factor, and the partition count cannot be changed at all.
"The partition count can be changed only when the retention period is lowered to the minimum" … Retention settings do not unlock partition changes. The count is fixed after creation.

Key points
Partitions are fixed at creation. Retention, compaction and replication factor can change. Most consumer libraries use one consumer thread per partition, so the count also caps parallelism. For review, read the "Configuration Defaults and Limits" section of the "Managing Topics and Partitions on Apache Kafka on Heroku" page in the official documentation.

Go to the Salesforce Certified Heroku Architect practice app (10 free questions; purchase unlocks all questions)

See the full practice set