Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free Confluent Certified Administrator for Apache Kafka CCAAK Exam Questions

Last updated: · 13 practice questions with answers and explanations

Page: 1 / 6 Total 54 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Apache Kafka® Fundamentals

Skill tested: Analyzes partition leadership, replication, and consumer offset behavior during broker failure.

A payment-events topic has three partitions and a replication factor of three. Producers use `acks=all` with a topic-level `min.insync.replicas` of two. One broker fails, leaving each affected partition with two in-sync replicas. A consumer group continues processing, but the operations team needs to predict what happens if a second replica for one partition becomes unavailable before the first broker recovers. Which statement best describes the producer and consumer behavior?

Correct Answer: B. The producer can still receive success for writes to that partition as long as its leader remains in the ISR; the consumer can read committed log data from the leader.
Explanation:

With one broker down, a partition can still have two ISR members. If a second replica becomes unavailable, the ISR may fall to one. `acks=all` requires acknowledgment from the current ISR, while `min.insync.replicas=2` rejects writes when the ISR count is below two; thus, the producer will receive an error rather than a success. The consumer can continue reading from the available leader. Option B captures the normal read availability but incorrectly implies writes succeed with one ISR member, so none of the choices fully states the expected outcome. This ambiguity must be corrected.

Question 2

New Single answer

Topic: Apache Kafka® Security

Skill tested: Configures TLS client authentication and Kafka ACLs for least-privilege access.

A logistics company requires encryption in transit and individual client identity for audit purposes. Kafka brokers already present certificates signed by the company CA. A new producer must be authenticated as a unique identity and allowed to write only to `shipment-events`; it must not be able to create topics or read data. The cluster uses mutual TLS and the StandardAuthorizer. Which implementation best meets the requirement?

Correct Answer: C. Configure the producer with a client certificate and truststore, map its authenticated principal consistently, and grant that principal only the topic `Write` operation on `shipment-events`.
Explanation:

Mutual TLS authenticates the client using its certificate, while the broker's trust configuration validates the issuing CA. Kafka authorization then evaluates the authenticated principal, which should map consistently to a unique identity. A narrowly scoped topic `Write` ACL permits producing to the named topic without granting read or cluster-level creation privileges. Encryption alone, as in A, does not establish individual client identity. SASL/PLAIN adds unnecessary credentials and the broad ACL in C violates least privilege. D confuses server and client identities and grants excessive cluster permission.

Question 3

New Multiple answers

Topic: Deployment Architecture

Skill tested: Designs broker placement and replication for failure-domain resilience.

A regional Kafka cluster must tolerate the loss of any one availability zone without losing acknowledged records or stopping writes. The organization can deploy brokers across three independent zones, and it accepts the additional network cost of cross-zone replication. Topic workloads require a replication factor of three. Which two design choices best support the requirement? Select TWO.

Correct Answer: C. Place each replica set across distinct zones using rack awareness, and configure `min.insync.replicas=2` with producers using `acks=all`.; E. Configure broker rack identifiers to reflect zone placement, and ensure the replica assignment distributes replicas across those racks.
Explanation:

Rack-aware replica placement distributes a partition's replicas across failure domains, so losing one zone need not remove all replicas. With replication factor three, `acks=all`, and `min.insync.replicas=2`, writes can continue after one replica is lost while still requiring two ISR acknowledgments. D describes the broker rack metadata that enables placement-aware assignment; A combines that resilience strategy with an appropriate acknowledgment policy. Setting the minimum ISR to three would stop writes after a replica loss, while `acks=1` weakens durability. Concentrated placement or replication factor one cannot meet the stated failure tolerance.

Question 4

New Single answer

Topic: Kafka Connect

Skill tested: Diagnoses distributed connector task failures through worker configuration and connector status.

A team runs a JDBC source connector on a three-worker distributed Kafka Connect cluster. The connector is configured with six tasks, but status repeatedly shows only one task running while the others fail during startup. The workers share the same Kafka cluster and group ID, and their REST endpoints are reachable. The connector's database connection and credentials have been confirmed from every worker. The task configuration includes a database-specific setting that the connector documentation identifies as worker-scoped. What is the most appropriate next action?

Correct Answer: C. Move the worker-scoped setting into the connector configuration, then restart or reconfigure the connector and inspect task status and worker logs.
Explanation:

Distributed Connect workers receive connector and task configurations through Kafka-backed internal topics, and all workers in a cluster must be configured consistently. A property defined as worker-scoped belongs in worker configuration, not connector configuration; putting it in the wrong scope can cause task initialization failures. Correcting the scope and then inspecting status and logs addresses the likely startup problem. Raising `tasks.max` cannot fix invalid configuration. Splitting the group ID creates separate Connect clusters rather than repairing this connector, and per-task topics do not resolve a worker setting error.

Question 5

New Multiple answers

Topic: Kafka Connect

Skill tested: Selects safe internal-topic settings for distributed Kafka Connect coordination and recovery.

An operations team is deploying a new distributed Kafka Connect cluster. It wants connector configurations, source offsets, and status to survive individual broker failures and worker restarts. The Kafka cluster has sufficient capacity, and administrators can pre-create internal topics with appropriate settings. Which TWO actions are appropriate? Select TWO.

Correct Answer: A. Use a compacted, single-partition config topic and configure replication for the internal topics so their state is not dependent on one broker.; D. Use distinct, consistently configured internal topic names for config, offset, and status data, and set their replication factors to a value supported by the cluster.
Explanation:

Distributed Connect relies on internal Kafka topics for connector configuration, source offsets, and status. Those topic names must be consistent across workers in the same Connect cluster, and replication should match the desired fault tolerance and available broker count. The config topic is compacted and must have one partition; Connect's internal-topic requirements also call for compaction on offset storage, while the status topic need not be treated as an immutable event log. D risks losing source offsets, and different config topics would split workers' view of cluster state.

Question 6

New Multiple answers

Topic: Apache Kafka® Cluster Configuration

Skill tested: Applies partition reassignment controls while minimizing broker load and cluster disruption.

A production cluster is expanding from six brokers to nine. Several high-volume topics must be rebalanced onto the new brokers, but the cluster cannot tolerate a large simultaneous replication burst or prolonged under-replication. An administrator plans to use partition reassignment and wants to limit its operational impact. Which TWO actions are most appropriate? Select TWO.

Correct Answer: C. Throttle reassignment replication and execute in controlled batches, monitoring replica lag and under-replicated partitions.; D. Use a reassignment plan that places replicas across the intended brokers and respects the configured rack/failure-domain layout.
Explanation:

A planned reassignment should distribute replicas deliberately across the expanded broker set and preserve the intended failure-domain placement. Replication throttling and staged batches constrain network and disk pressure, allowing operators to observe lag and under-replicated partitions before proceeding. Launching every movement at maximum speed can overwhelm resources and increase risk. Temporarily reducing replication factor sacrifices fault tolerance and adds unnecessary metadata changes. Brokers do not independently assign replicas when the controller is disabled; that would undermine cluster operation.

Question 7

New Single answer

Topic: Apache Kafka® Cluster Configuration

Skill tested: Chooses producer durability settings consistent with minimum in-sync replica guarantees.

A telemetry service must not report a write as successful unless at least two replicas have received it. The topic has replication factor three, and the platform team wants writes to fail rather than silently weaken durability when only one replica remains in sync. Which producer and topic configuration best expresses this policy?

Correct Answer: A. Producer `acks=all`; topic `min.insync.replicas=2`.
Explanation:

`acks=all` makes the producer wait for acknowledgment from the partition's current in-sync replicas. The topic's `min.insync.replicas=2` imposes the required floor: if fewer than two replicas are in the ISR, the broker rejects the write instead of acknowledging it with weaker durability. With `acks=1`, the leader alone can acknowledge, regardless of the intended replica guarantee. `acks=0` does not wait for broker acknowledgment. A minimum of one would permit success with only the leader in sync.

Question 8

New Single answer

Topic: Apache Kafka® Cluster Configuration

Skill tested: Evaluates log retention and segment settings for storage-capacity planning.

A compliance service stores append-only audit events. The retention requirement is seven days, and traffic varies substantially by day. The storage team has set a time-based retention period but expects disk usage to remain exactly constant each day. The topic's segment size is large relative to daily traffic, and operators observe that some old records remain beyond the nominal retention interval. Which adjustment and expectation are most accurate?

Correct Answer: A. Use a shorter `log.segment.ms` or smaller segment size where appropriate, recognizing that retention deletes whole eligible segments and storage usage still varies with traffic.
Explanation:

Time-based retention is evaluated at the log-segment level: Kafka removes eligible closed segments, not individual records at an exact timestamp. A large active segment can therefore leave older records present until the segment rolls and becomes eligible for deletion. Reducing segment size or segment-roll time can make deletion timing more responsive, at the cost of more segment management overhead. Traffic variability means retained bytes will not be constant. A byte limit is not a precise age guarantee, compaction is not age-based deletion, and zero retention does not provide the described behavior.

Question 9

New Single answer

Topic: Observability

Skill tested: Correlates consumer lag metrics with partition progress and processing health.

A service-level objective requires consumer groups to process each partition within two minutes of the latest produced record. Broker CPU, request latency, and under-replicated partition counts are normal. One consumer group shows rising lag on several partitions, while its consumer instances report successful heartbeats and no rebalances. What should the on-call engineer examine first to determine whether processing capacity or partition assignment is the bottleneck?

Correct Answer: C. Consumer lag by partition together with per-consumer assignment and processing-rate metrics.
Explanation:

Consumer lag represents the distance between a group's committed position and the log end position, and partition-level lag helps identify whether a few partitions or the whole group are falling behind. Comparing assignments and per-consumer processing rates reveals skewed ownership, insufficient consumer capacity, or slow processing. Healthy heartbeats indicate that consumers remain members, but do not prove they process records quickly. Broker disk utilization and controller metrics are useful for other diagnoses, not direct measures of application progress. Throttling producers without evidence may mask rather than resolve the cause.

Question 10

New Single answer

Topic: Troubleshooting

Skill tested: Diagnoses ISR shrinkage by distinguishing replication lag from leader-election issues.

After a network change, a Kafka cluster reports repeated ISR shrink and expansion events for several partitions. Producers occasionally receive `NotEnoughReplicas` errors, but there are no broker restarts, disk errors, or controller elections. The affected replicas are hosted on brokers connected through the modified network path. Which investigation is the best first step?

Correct Answer: C. Inspect inter-broker connectivity, latency, packet loss, and replication-fetcher lag between the affected leaders and followers.
Explanation:

ISR membership depends on replicas keeping up with the leader within broker-defined lag conditions. A network-path change followed by ISR churn, with no restarts or disk faults, points first to inter-broker connectivity or replication latency. Inspecting fetcher lag and network health identifies whether followers can retrieve data reliably. Increasing producer timeouts may reduce some client-visible symptoms but does not repair replication. Disabling ISR safety is not an appropriate remedy, and adding replicas before finding the fault can increase replication load.

Question 11

New Single answer

Topic: Apache Kafka® Fundamentals

Skill tested: Applies partition-key and ordering guarantees to event-processing design.

An inventory platform publishes stock adjustments for many products to a topic with multiple partitions. Consumers must process adjustments for each product in the order produced, but events for different products may be processed concurrently. Producers currently omit keys, and records for one product are occasionally handled out of order by separate consumer instances. Which change best meets the ordering requirement without serializing the entire topic?

Correct Answer: C. Use the product identifier as the record key and preserve a stable partitioning strategy for the topic.
Explanation:

Kafka preserves record order within a partition, not across partitions. Using the product identifier as the key routes records for that product to the same partition under a stable partitioning strategy, allowing per-product ordering while retaining parallelism across products. A single global key would impose unnecessary serialization. More consumers cannot create ordered processing across partitions, and retries do not establish cross-partition ordering for unkeyed records.

Question 12

New Single answer

Topic: Apache Kafka® Security

Skill tested: Uses ACL resource patterns and prefixed principals to grant narrowly scoped topic access.

A platform team provisions topics whose names begin with `tenant-42-`. A service principal should be able to produce to any topic in that namespace, including topics created later by administrators, but it must not read those topics or create topics itself. The cluster uses Kafka ACL authorization and topic creation is restricted to administrators. Which authorization approach best meets the requirement?

Correct Answer: D. Grant the service principal `Write` on a prefixed topic resource matching `tenant-42-`, without granting `Create` or `Read`.
Explanation:

A prefixed topic ACL applies to matching topic names, including future topics that meet the prefix, and the `Write` operation authorizes producing without granting read access. Topic creation is a separate authorization concern; the scenario explicitly reserves it for administrators, so the service should not receive `Create`. Cluster-wide `All` is excessive. Explicit ACLs on existing topics do not automatically cover future topics unless the resource pattern does so. Granting create permission is unnecessary and violates the stated boundary.

Question 13

New Single answer

Topic: Apache Kafka® Cluster Configuration

Skill tested: Selects partition counts and consumer parallelism based on workload requirements.

A data pipeline currently has eight partitions and eight consumer instances, all actively processing. Forecasts indicate a fourfold increase in throughput, and benchmarks show each consumer can sustain its present rate without CPU or I/O saturation. The team considers increasing the number of consumers to 32 immediately. The topic's ordering requirement is limited to records with the same key, and partition-count changes must be planned carefully because they can affect key-to-partition mapping. What is the best capacity-planning decision?

Correct Answer: D. Evaluate a controlled partition-count increase to support additional active consumers, validating key-ordering implications and consumer capacity before rollout.
Explanation:

Within a consumer group, a partition is assigned to at most one consumer at a time, so eight partitions cannot provide 32-way active consumption for that group. A planned partition increase can add parallelism, but partition-count changes can alter the mapping of keys to partitions and require careful consideration of ordering and downstream behavior. Consumer benchmarks should also confirm the workload can scale as forecast. Adding consumers alone does not split partitions; replication creates copies for availability, not independent logical partitions.