Home / Confluent Certified Administrator for Apache Kafka (CCAAK) / Mock exam
Confluent Certified Administrator for Apache Kafka (CCAAK) Exam-style mock test

Confluent Certified Administrator for Apache Kafka (CCAAK) Practice Exams|Practice test

Full explanations Exam format Pass line 70%
33 USD One-time · lifetime access
Enroll →

Sample questions

Example1 · Kafka Architecture, Brokers, and Cluster Management
A B2B SaaS analytics platform runs a Kafka cluster of several brokers. A platform engineer is explaining to a new hire what an individual broker is responsible for within that cluster. Which statement best describes the primary role of a single Kafka broker?
✓It receives produced records, persists partition data to disk, and serves fetch requests from consumers
Correct. A broker accepts writes from producers, stores the partition log segments on its local disk, and responds to consumer fetch requests for the partitions it hosts.
・It holds the authoritative copy of all consumer group offsets and rebalances the groups across the cluster
Incorrect. Offsets live in the internal __consumer_offsets topic and group coordination is handled by a group coordinator, not the general responsibility of every broker as described here.
・It coordinates distributed transactions between producers and external relational databases automatically
Incorrect. Kafka transactions are scoped to Kafka topics via the transaction coordinator and do not span external relational databases automatically.
・It converts the serialized message payloads into the Avro schemas registered in the connected Schema Registry
Incorrect. Serialization and schema resolution are client-side concerns handled by producers and consumers with Schema Registry, not by the broker.
Explanation
A broker's core job is to receive, durably store, and serve partition data; offset management, transactions, and serialization are handled by other components.
Example2 · Topics, Partitions, Replication, and Storage
A B2B SaaS billing team ingests invoice events keyed by customer_id and needs ordered processing per customer while scaling consumers up to 12 instances. As the Kafka administrator, how should you configure the topic to meet both goals?
✓Create the topic with 12 partitions so each of the up-to-12 consumers in the group can be assigned at least one partition while per-key order is preserved
Correct. Ordering is guaranteed only within a partition, and keying by customer_id keeps each customer on one partition; 12 partitions let up to 12 consumers each own a partition.
・Create the topic with a single partition and rely on the consumer group coordinator to distribute the load evenly across 12 running instances
Incorrect. A single partition caps parallelism at one active consumer regardless of how many instances are running in the group.
・Create the topic with 12 partitions but disable keying so that every event is spread randomly across partitions for maximum throughput
Incorrect. Disabling keying breaks per-customer ordering because events for one customer scatter across partitions.
・Create the topic with 3 partitions and raise the consumer group's max.poll.records so 12 consumers can share partitions concurrently
Incorrect. With only 3 partitions at most 3 consumers in the group are active; the rest stay idle, and max.poll.records does not add parallelism.
Explanation
Partition count sets the parallelism ceiling and keying preserves per-key ordering within a partition, so 12 keyed partitions satisfy both ordering and scale-to-12 requirements.
Example3 · Producers, Consumers, and Configuration
At a B2B SaaS company, the billing team cannot afford to lose any invoice event, even if the leader broker crashes right after writing. Which producer acknowledgment setting should the platform team configure for the strongest delivery guarantee?
・Set acks=1 so the producer waits only for the partition leader to persist the record
Incorrect. With acks=1 only the leader confirms, so an unreplicated record is lost if the leader fails before followers copy it.
✓Set acks=all so the producer waits for all in-sync replicas to confirm the write
Correct. acks=all requires every in-sync replica to confirm, giving the strongest durability against leader failure.
・Set acks=0 so the producer continues immediately without any broker confirmation
Incorrect. acks=0 provides no confirmation at all and offers the weakest durability guarantee.
・Set acks=2 so the producer waits for exactly two brokers to acknowledge
Incorrect. acks does not accept a numeric count like 2; valid values are 0, 1, and all.
Explanation
acks=all waits for the full ISR set to acknowledge, preventing data loss when the leader fails right after writing.
Example4 · Security, ACLs, and Monitoring
A healthcare services firm must encrypt all patient-event traffic between its applications and the Kafka brokers so that data in transit cannot be read on the wire. Which approach enables this encryption for client-broker connections?
✓Configure listeners with the SSL security protocol and distribute the broker truststore and keystore to the clients
Correct. Configuring listeners to use the SSL protocol with properly distributed keystores and truststores encrypts the TCP connections between clients and brokers.
・Enable broker-side log cleanup compaction so that records are rewritten in an encrypted internal format at rest
Incorrect. Log compaction manages record retention by key and does nothing to encrypt data in transit on the network.
・Set a cluster-wide quota on each client principal so that only authenticated healthcare apps can produce records
Incorrect. Quotas throttle client throughput and relate to authentication only indirectly; they do not encrypt the connection.
・Turn on rack-awareness for the brokers so that replica traffic stays within a single trusted availability zone
Incorrect. Rack-awareness influences replica placement for fault tolerance and provides no transport-layer encryption.
Explanation
In-transit encryption between clients and brokers is achieved by enabling SSL/TLS on the listeners and provisioning the appropriate keystores and truststores.
Example5 · Kafka Connect, Operations, and Troubleshooting
A healthcare services firm runs Kafka Connect to stream patient admission records from an EHR database into Kafka. The platform team wants connectors to survive worker failures and automatically rebalance tasks across available workers. Which deployment approach should the team use?
・Run multiple standalone workers on separate hosts, each loading the same connector configuration file independently from local disk
Incorrect. Standalone workers store configuration and offsets locally and do not coordinate, so they cannot rebalance tasks or recover state when a worker fails.
✓Deploy workers in distributed mode sharing a group.id so connector and task state is stored in internal Kafka topics
Correct. Distributed mode workers with a common group.id form a cluster, persisting configs, offsets, and status in internal topics so tasks rebalance automatically on worker failure.
・Run a single standalone worker and rely on an external process supervisor to restart it when the host reboots
Incorrect. A single standalone worker is a single point of failure and a supervisor restart loses in-flight coordination and does not distribute tasks across hosts.
・Launch each connector as an isolated JVM process and coordinate failover manually using a shared network file system
Incorrect. Manually coordinating isolated JVMs over a shared file system bypasses Connect's built-in rebalancing and is not how the framework provides fault tolerance.
Explanation
Distributed mode is the correct choice for fault-tolerant, scalable Connect deployments because cluster state lives in Kafka topics and tasks rebalance automatically across workers.
Example6 · Kafka Architecture, Brokers, and Cluster Management
A healthcare services firm runs a Kafka cluster that ingests patient admission events. An administrator is explaining to a new hire what a Kafka broker is fundamentally responsible for within that cluster. Which statement best describes the broker's core responsibility?
✓It receives produced records, stores them durably on disk, and serves fetch requests from consumers
Correct. A broker accepts produced records, persists them to its log segments on disk, and serves consumer fetch requests, which is its fundamental storage-and-serve role.
・It transforms incoming records into a normalized schema and validates them against a central registry
Incorrect. Schema validation is handled by clients and the Schema Registry, not by the broker itself.
・It coordinates consumer group rebalances and tracks the committed offset of every consumer instance
Incorrect. Rebalance coordination is the job of the group coordinator role, and offsets are stored in the __consumer_offsets topic rather than tracked per instance by the broker in this way.
・It compresses records, encrypts them at rest, and replicates every topic to a disaster-recovery site
Incorrect. Compression is chosen by producers, encryption at rest is external, and cross-site replication requires a separate tool like Cluster Linking or MirrorMaker.
Explanation
A Kafka broker's core job is to receive, durably store, and serve records; the other activities belong to clients, the Schema Registry, or replication tooling.
Example7 · Kafka Architecture, Brokers, and Cluster Management
At the retailer UrbanThread, the operations team is reviewing which broker responsibilities are unique to the elected controller. Which task is performed exclusively by the controller rather than by every broker in the cluster?
・Serving produce and fetch requests from UrbanThread's checkout producers and inventory consumers directly
Incorrect. Every broker serves produce and fetch requests for the partitions it hosts, so this is a shared responsibility, not a controller-only one.
✓Managing partition leader elections and propagating the resulting metadata changes to the other brokers
Correct. The elected controller manages leader elections for partitions and pushes the resulting metadata updates to all other brokers in the cluster.
・Storing committed log segments for the partitions whose replicas are assigned to that particular broker
Incorrect. Any broker that hosts a replica stores its log segments on disk; this is normal broker storage behavior shared across the cluster.
・Replicating records from partition leaders into its own follower replicas to stay in the in-sync replica set
Incorrect. Follower replication is done by every broker holding follower replicas, so it is not a task exclusive to the controller.
Explanation
Only one broker acts as the controller at a time, and its distinguishing job is cluster coordination: electing partition leaders and propagating metadata changes. Serving reads/writes, storing segments, and follower replication are done by all brokers.
Example8 · Kafka Architecture, Brokers, and Cluster Management
UrbanThread is deploying a new Kafka cluster in KRaft mode and an administrator asks how cluster metadata is now managed. Which statement best describes how metadata is handled in KRaft mode?
・An external ZooKeeper ensemble stores all topic and partition metadata that the brokers read on startup
Incorrect. KRaft mode removes the dependency on an external ZooKeeper ensemble; that describes the legacy architecture instead.
✓A quorum of controller nodes stores metadata in an internal replicated log that brokers replicate from
Correct. In KRaft mode a quorum of controllers maintains metadata in an internal replicated log, and brokers replicate that metadata log to stay current.
・Each broker keeps its own independent copy of metadata that it never shares with any other broker
Incorrect. Brokers do not keep isolated, unshared metadata; the whole point is a consistent replicated metadata log across the cluster.
・Metadata is written only to the leader broker's local disk and is rebuilt from clients after a restart
Incorrect. Metadata is not stored on only one broker's disk and reconstructed from clients; it is a replicated quorum-based log.
Explanation
KRaft mode replaces ZooKeeper with a controller quorum that stores cluster metadata in an internal replicated log. Brokers replicate this log, giving a self-managed, consistent metadata layer without an external coordination service.
Example9 · Kafka Architecture, Brokers, and Cluster Management
UrbanThread creates a topic named orders with 6 partitions and a replication factor of 3 on a cluster of 5 brokers. How many partition replicas in total must the cluster store across all brokers for this topic?
・9 replicas, calculated as the number of brokers added to the replication factor plus one spare
Incorrect. Adding brokers to the replication factor is not how replica totals are computed; the broker count does not enter this calculation directly.
✓18 replicas, calculated as the partition count multiplied by the replication factor for the topic
Correct. Total replicas equal partitions times replication factor, so 6 partitions times 3 equals 18 replicas distributed across the brokers.
・6 replicas, one leader replica per partition with no additional follower copies retained
Incorrect. Six would count only leader replicas; the replication factor of 3 means two follower copies per partition are also stored.
・3 replicas, one copy of the topic kept on three separate brokers for fault tolerance
Incorrect. Three describes the replication factor of a single partition, not the total replica count across all six partitions.
Explanation
Each partition has as many replicas as the replication factor. With 6 partitions and replication factor 3, the cluster stores 6 x 3 = 18 replicas, spread across the available brokers (here 5).
Example10 · Kafka Architecture, Brokers, and Cluster Management
A financial services firm runs a Kafka cluster for its payment event stream. During a capacity review, an administrator is asked what a single Kafka broker is primarily responsible for within that cluster. Which statement best describes the broker's core responsibility?
✓It receives produced records, stores partition log segments on disk, and serves fetch requests to consumers for the partitions it hosts.
Correct. A broker accepts produced records, persists partition log segments to disk, and serves consumer fetch requests for the partitions assigned to it.
・It coordinates distributed transactions across all producers and guarantees exactly-once processing for every consumer group in the firm.
Incorrect. Transaction coordination is handled by the transaction coordinator component and exactly-once is a producer/consumer concern, not the broker's primary role.
・It transforms incoming payment records into a normalized schema and routes each record to the correct downstream microservice.
Incorrect. Record transformation and routing to microservices is application or stream-processing logic, not a broker responsibility.
・It caches the entire topic in memory and periodically flushes aggregated balances to the firm's relational database.
Incorrect. Brokers persist data to disk in log segments rather than caching whole topics in memory or writing to a relational database.
Explanation
A Kafka broker's fundamental job is storing partition data on disk and handling produce and fetch requests; higher-level concerns like transactions, transformation, and persistence to external stores are handled elsewhere.
Example11 · Kafka Architecture, Brokers, and Cluster Management
An administrator at a trading platform notices leader elections happening after a broker failure and wants to understand which component drives those elections. Within a Kafka cluster, what is the primary function of the controller?
・It persists consumer group offsets and compacts the internal offsets topic on a fixed schedule for the cluster.
Incorrect. Offset storage and compaction of the offsets topic are ordinary broker log functions, not controller duties.
✓It manages partition leadership, handles broker failures, and propagates metadata changes such as leader elections to the brokers.
Correct. The controller elects partition leaders, reacts to broker failures, and distributes metadata updates to the rest of the cluster.
・It authenticates every client connection and enforces the ACLs configured for each topic in the trading platform.
Incorrect. Authentication and ACL enforcement are security mechanisms applied per connection, independent of the controller role.
・It balances disk usage by moving partition replicas between brokers whenever one broker's storage fills up.
Incorrect. Replica movement for disk balancing is driven by reassignment tooling or auto-balancing, not by the controller as its primary function.
Explanation
Exactly one broker acts as controller, responsible for leader election, failure handling, and metadata propagation across the cluster.
Example12 · Kafka Architecture, Brokers, and Cluster Management
A manufacturing distributor runs a 5-broker Kafka cluster that ingests shipment events. An administrator asks which component is responsible for managing partition leader elections and tracking broker membership across the cluster. Which answer correctly describes this role?
・The producer client decides which broker becomes the leader for each partition and informs the other brokers of the result
Incorrect. Producers write to the current partition leader; they do not elect leaders or manage broker membership.
・Every broker independently elects leaders for all partitions it hosts without any cluster-wide coordinator being involved at all
Incorrect. Leader election is a cluster-wide responsibility handled by a single elected controller, not by each broker independently.
✓The controller broker manages partition leader elections and tracks broker membership for the whole cluster
Correct. One broker acts as the controller, performing partition leader elections and tracking which brokers are alive in the cluster.
・The consumer group coordinator elects partition leaders based on which consumers are currently subscribed to a topic
Incorrect. The group coordinator manages consumer group membership and offsets, not partition leader elections.
Explanation
Exactly one broker is elected as the controller and is responsible for leader elections and broker membership management.
Example13 · Kafka Architecture, Brokers, and Cluster Management
In the distributor's order-events topic, a partition has one leader and two follower replicas. An operator wants to understand how producer writes and follower replicas interact for that partition. Which statement best describes the behavior?
・Producers and consumers may both read from and write to any of the three replicas, which keeps the replica contents synchronized automatically
Incorrect. Reads and writes for a partition go to the leader; replicas are not all independently writable by clients.
✓Producers write to the leader replica, and the follower replicas fetch those records from the leader to stay in sync
Correct. The leader handles producer writes, and followers replicate by fetching those records from the leader.
・Producers write to all three replicas in parallel, and each replica independently acknowledges the write back to the producer
Incorrect. Producers write only to the leader, not to all replicas in parallel.
・Followers accept writes directly from producers while the leader only serves consumer read requests for that partition
Incorrect. Followers do not accept producer writes; the leader handles writes and serves reads.
Explanation
The partition leader handles all produce and consume requests, and followers fetch from the leader to replicate.
Example14 · Kafka Architecture, Brokers, and Cluster Management
A telecom operator runs a Kafka cluster that ingests call-detail records from regional switches. An administrator needs to explain to a new hire what a single broker is primarily responsible for in this deployment. Which statement best describes the broker's core role?
✓It stores partition replicas on local disk, serves produce and fetch requests, and manages the commit log for the partitions it leads
Correct. A broker persists partition replicas to local disk, serves produce/fetch requests from clients, and maintains the append-only commit log for partitions it hosts.
・It coordinates all consumer group rebalances and assigns partitions by running the group membership protocol for every topic in the cluster
Incorrect. A single broker acts as group coordinator only for groups hashed to it, and rebalance assignment is driven by the group leader (a consumer), not by every broker.
・It transforms incoming call-detail records into Avro before persisting them and validates each record against the central schema registry
Incorrect. Serialization and schema validation are client-side and Schema Registry concerns, not broker responsibilities.
・It mirrors every topic to a secondary datacenter and resolves offset conflicts across both clusters automatically
Incorrect. Cross-datacenter mirroring is handled by tools like MirrorMaker 2 or Cluster Linking, not by an individual broker.
Explanation
A Kafka broker's fundamental job is to store partition data, serve client read/write requests, and manage the commit log for the partitions it hosts.
Example15 · Kafka Architecture, Brokers, and Cluster Management
During a maintenance window the telecom operator's lead broker for several partitions goes offline. An administrator wants to understand which cluster component detects this and drives leader re-election. Which component is responsible?
・The ZooKeeper ensemble, which directly promotes a new partition leader and pushes the updated assignment to every consumer client
Incorrect. ZooKeeper (or KRaft metadata) stores state, but the controller performs leader election; clients learn new leaders via metadata refresh, not a direct push.
✓The active controller, which detects the broker failure and elects new partition leaders from the in-sync replica set
Correct. The active controller monitors broker liveness and elects new leaders from the ISR when a leader broker fails.
・The consumer group coordinator, which reassigns leadership for affected partitions during the next group rebalance cycle
Incorrect. The group coordinator manages consumer group membership and offsets, not partition leader election.
・Each follower broker independently, by volunteering to become leader as soon as it stops receiving fetch responses
Incorrect. Followers do not self-promote; leader election is centrally coordinated by the controller.
Explanation
The controller is the broker elected to manage cluster-wide metadata operations, including electing partition leaders when a broker fails.
▶ Try 10 free questions (graded)
Measure your readiness with a full mock exam
All questions · full explanations · lifetime access
Enroll(33 USD)