Home / Confluent Certified Developer for Apache Flink / Mock exam
Confluent Certified Developer for Apache Flink Exam-style mock test

Confluent Apache Flink Developer Practice Exams|Practice test

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

Sample questions

Example1 · Stream Processing & Flink Fundamentals
A B2B SaaS analytics team currently runs nightly batch jobs that aggregate customer usage logs, but product managers complain that dashboards are always a day behind. They want to adopt Flink stream processing. Which characteristic of stream processing best explains why it addresses their complaint?
・Flink recomputes the entire historical dataset on every run, guaranteeing that the dashboards always reflect fully consistent totals across all past days of data
Incorrect. Reprocessing the full history on every run is a batch-oriented pattern and would not reduce the one-day latency the team is complaining about.
✓Flink processes each event as it arrives and continuously updates results, so dashboards reflect usage with low latency instead of waiting for a scheduled window
Correct. Stream processing consumes unbounded events continuously and incrementally updates results, so output reflects recent events with low latency rather than on a nightly schedule.
・Flink stores all incoming events in a relational database first and then triggers a query only when an operator manually refreshes the dashboard view
Incorrect. Flink does not require landing every event in a relational database and triggering only on manual refresh; it processes events continuously as they arrive.
・Flink requires that the complete bounded dataset be available before any computation can start, which makes it ideal for predictable end-of-day reporting jobs
Incorrect. Needing the complete bounded dataset before computing describes batch processing, which is exactly the delayed model the team wants to move away from.
Explanation
Stream processing handles unbounded data event-by-event and updates results continuously, giving the low-latency dashboards the team needs, whereas batch processing waits for a complete dataset and a schedule.
Example2 · Flink SQL & Table API
A SaaS billing team runs a Flink SQL job that must count API requests per customer in fixed, non-overlapping 1-hour buckets so that each request contributes to exactly one bucket. Which windowing approach should they use in the query?
・A SESSION window keyed by customer with a 1-hour inactivity gap closing each bucket
Incorrect. SESSION windows start and end based on activity gaps, so bucket boundaries shift with traffic rather than being fixed 1-hour intervals.
✓A TUMBLE window table-valued function with a 1-hour size over the event-time column
Correct. TUMBLE produces fixed-size, non-overlapping windows, so each request falls into exactly one 1-hour bucket as required.
・A HOP window table-valued function with a 1-hour size sliding every 15 minutes
Incorrect. HOP windows overlap because they slide, so a single request would be counted in several overlapping windows instead of one.
・An OVER window partitioned by customer with an unbounded preceding time range
Incorrect. An unbounded OVER window produces a running cumulative count rather than discrete, independent 1-hour buckets.
Explanation
Fixed, non-overlapping time buckets map directly to TUMBLE windows; HOP overlaps, SESSION is gap-driven, and OVER is running aggregation.
Example3 · DataStream API & Transformations
At a B2B SaaS company, a DataStream of raw usage events must be converted so each event becomes exactly one enriched record with an added tenant-tier field. Which DataStream transformation best fits this one-in, one-out requirement?
・Use flatMap() so each incoming usage event may emit zero, one, or several enriched output records depending on tenant
Incorrect. flatMap() allows a variable number of outputs per input, which is more than needed for a strict one-to-one mapping.
✓Use map() to transform each usage event into exactly one enriched output record with the tier field
Correct. map() applies a function that returns exactly one output element for each input element, matching the one-in, one-out enrichment.
・Use filter() to keep only the usage events whose tenant-tier field is already populated downstream
Incorrect. filter() only drops or keeps records unchanged and cannot add a new tier field to each event.
・Use keyBy() to group usage events by tenant and then rely on the grouping to attach the tier field
Incorrect. keyBy() only partitions the stream by key and performs no record transformation or field enrichment.
Explanation
map() is the canonical one-to-one transformation in the DataStream API; it returns a single output per input, which is exactly what per-event enrichment requires.
Example4 · State, Time & Windowing
A healthcare services firm streams patient vital-sign readings keyed by patient ID. A KeyedProcessFunction must keep a running count of readings received for each patient to flag anomalies. Which state primitive should the developer register to hold this single evolving count per patient?
・A ListState<Long> that appends every reading's value so the running total can be recomputed across the stored list on each event
Incorrect. ListState accumulates every element and would force a full re-scan to derive a count, which is wasteful when a single scalar suffices per key.
✓A ValueState<Long> holding the current count, read and incremented for each incoming reading
Correct. ValueState stores exactly one value scoped to the current key, so each patient's running count is read and incremented in place.
・A MapState<String, Long> that stores one count entry per distinct patient ID inside each keyed context
Incorrect. The runtime already scopes state to the current key, so adding a patient ID map key inside keyed state duplicates the keying and is incorrect.
・A broadcast state that distributes the shared count to all parallel subtasks processing the patient stream
Incorrect. Broadcast state is for low-throughput control data shared across all keys, not for a per-patient count that must stay partitioned by key.
Explanation
A single scalar value maintained per key is the textbook use case for ValueState; keyed state is already partitioned by key, so no extra map or list is needed.
Example5 · Fault Tolerance, Deployment & Confluent Cloud
A healthcare services firm runs a Flink job that aggregates patient vitals from medical devices and must never double-count or lose a reading if a TaskManager crashes. The team wants the strongest state consistency guarantee the job can offer end-to-end. Which checkpointing configuration should the developer apply?
✓Enable checkpointing with EXACTLY_ONCE mode and use a transactional sink that participates in the two-phase commit protocol so committed output aligns with the last completed checkpoint
Correct. EXACTLY_ONCE checkpointing combined with a two-phase-commit transactional sink is what delivers end-to-end exactly-once, so committed output matches the last completed checkpoint even after a crash.
・Enable checkpointing with AT_LEAST_ONCE mode and a transactional sink, accepting that some vitals readings may be emitted more than once after a recovery
Incorrect. AT_LEAST_ONCE mode permits duplicate emission on recovery, which fails the firm's requirement to never double-count a vitals reading.
・Disable checkpointing entirely and rely on reprocessing the source topic from the earliest offset whenever the job restarts from a failure
Incorrect. Disabling checkpointing removes state recovery; reprocessing from earliest neither restores operator state nor prevents duplicates or loss.
・Enable checkpointing with EXACTLY_ONCE mode but keep a non-transactional sink that flushes results immediately as records arrive
Incorrect. A non-transactional sink cannot roll output back to a checkpoint, so even EXACTLY_ONCE engine state cannot prevent duplicate side effects at the sink.
Explanation
End-to-end exactly-once requires both EXACTLY_ONCE checkpointing and a transactional (two-phase-commit) sink; either piece alone is insufficient.
Example6 · Stream Processing & Flink Fundamentals
A healthcare services firm ingests patient vital-sign readings continuously from bedside monitors and must raise alerts within seconds of an abnormal reading. An engineer argues this is a natural fit for stream processing rather than batch processing. Which characteristic best justifies choosing stream processing for this use case?
・Stream processing records are persisted to a relational warehouse first and queried on a fixed nightly schedule to generate the alerts
Incorrect. Loading to a warehouse and querying on a nightly schedule describes a batch pattern, which cannot meet a seconds-level alerting requirement.
✓Stream processing handles each reading as it arrives with low latency, producing results continuously over an unbounded sequence of events
Correct. Stream processing operates on an unbounded sequence, handling each event as it arrives with low latency, which matches the seconds-level alerting requirement.
・Stream processing requires the complete set of readings for a time window to be collected before any computation on them can begin
Incorrect. Waiting for a complete bounded dataset before computing is the defining trait of batch processing, not stream processing.
・Stream processing reduces cost by processing all readings together in one large job that runs once at the end of each day
Incorrect. Running one large end-of-day job is a batch approach and introduces latency incompatible with near-real-time alerting.
Explanation
Stream processing continuously computes over an unbounded event stream with low latency per event, which is exactly what real-time vital-sign alerting needs; the other options describe batch behavior.
Example7 · Stream Processing & Flink Fundamentals
The retailer UrbanThread runs nightly batch jobs that recompute sales totals from the full order history, but the analytics team wants per-minute revenue dashboards that update as orders arrive. Which characteristic of stream processing makes it the better fit for this new requirement compared to the existing batch approach?
✓Stream processing consumes events continuously as they arrive and emits incrementally updated results with low latency, rather than waiting to reprocess a bounded dataset on a fixed schedule
Correct. Stream processing handles unbounded event flows incrementally and emits low-latency, continuously updated results, which matches a per-minute live dashboard far better than scheduled batch reprocessing.
・Stream processing scans the complete bounded dataset once per scheduled run and writes a final aggregate only after every record has been read from storage
Incorrect. Scanning a bounded dataset once per scheduled run and emitting only a final aggregate describes batch processing, which is exactly the approach the team wants to move away from.
・Stream processing guarantees that every record is stored permanently on disk before any computation can begin on the incoming data
Incorrect. Stream processing does not require permanently persisting every record before computing; it processes events as they flow, and durability is a separate concern handled by state and checkpoints.
・Stream processing requires all input data to be fully collected and sorted before producing any output result for the dashboard
Incorrect. Requiring all input to be collected and sorted before producing output is a batch trait; streaming produces output continuously without waiting for a complete dataset.
Explanation
Stream processing operates on unbounded data and produces incremental, low-latency results, making it the natural choice for live per-minute dashboards, whereas batch processing reprocesses bounded datasets on a schedule.
Example8 · Stream Processing & Flink Fundamentals
UrbanThread's platform team is evaluating Apache Flink to process clickstream and order events together at scale. When they describe Flink's core processing model to leadership, which statement most accurately captures what Flink is designed to do?
✓Flink is a distributed engine for stateful computations over unbounded and bounded data streams, running parallel tasks across a cluster while managing application state
Correct. Flink is a distributed engine for stateful computations over both unbounded and bounded streams, executing parallel tasks and managing application state across the cluster.
・Flink is a columnar storage format that compresses historical order tables on disk so that external query engines can scan them more efficiently later
Incorrect. A columnar storage format that compresses tables on disk describes a file format like Parquet, not a stream processing engine such as Flink.
・Flink is a message broker that durably stores event logs and offers topics to which producers write and from which consumers independently read records
Incorrect. A durable log of topics with independent producers and consumers describes a message broker like Kafka, which Flink reads from and writes to but is not.
・Flink is a distributed scheduler that only orchestrates containerized microservices and forwards HTTP requests between them without performing any data computation
Incorrect. Flink does perform data computation over streams; it is not merely a scheduler forwarding HTTP requests between microservices.
Explanation
Flink is fundamentally a distributed, stateful stream processing engine that computes over bounded and unbounded streams with parallel tasks, distinct from storage formats, brokers, or service schedulers.
Example9 · Stream Processing & Flink Fundamentals
UrbanThread ingests a live feed of point-of-sale transactions that never stops, and separately loads last year's archived transaction file for a one-off reconciliation. How should the developer classify these two inputs in Flink terms?
✓The live point-of-sale feed is an unbounded stream with no defined end, while the archived file is a bounded stream with a known, finite set of records
Correct. A continuously arriving feed with no defined end is an unbounded stream, and a finite archived file with a known set of records is a bounded stream.
・Both the live feed and the archived file are bounded streams because each individual record carries a fixed, finite size when it is serialized
Incorrect. Boundedness refers to whether the stream has a defined end, not to the serialized size of individual records, so both being bounded is wrong.
・The live feed is a bounded stream since it is read one record at a time, while the archived file is unbounded because it contains many historical rows
Incorrect. This reverses the concepts: the live never-ending feed is unbounded and the finite file is bounded, regardless of how records are read.
・Both the live feed and the archived file are unbounded streams because Flink always treats any input as a continuous, never-ending flow of events
Incorrect. Flink explicitly supports bounded streams as well; a finite archived file is bounded rather than being forced into an unbounded classification.
Explanation
Unbounded streams have no defined end (the live feed), while bounded streams have a known, finite extent (the archived file); Flink supports both under one runtime.
Example10 · Stream Processing & Flink Fundamentals
A financial services firm currently runs a nightly batch job that recomputes fraud scores on the full day of card transactions. They want to switch to Flink so that scores update continuously as each transaction arrives. Which characteristic of stream processing best motivates this change?
・Stream processing waits for a complete, bounded dataset to be collected before it begins computing any results for the entire window of card transactions.
Incorrect. Waiting for a complete bounded dataset describes batch processing, which is exactly the nightly model the firm wants to replace.
✓Stream processing handles each transaction as an unbounded, continuously arriving record, producing incremental results with low latency instead of waiting for a batch.
Correct. Stream processing treats input as an unbounded, continuously arriving sequence and emits incremental low-latency results per record, enabling continuous fraud scoring.
・Stream processing guarantees that all historical card transactions are reprocessed from the beginning every time a single new transaction is received.
Incorrect. Reprocessing all history on every new record would be prohibitively expensive and is not how streaming incremental computation works.
・Stream processing eliminates the need for any state because each card transaction is fully independent and scored in isolation.
Incorrect. Fraud scoring typically relies on accumulated state such as recent spend per card, so streaming does not eliminate the need for state.
Explanation
Streaming processes unbounded data incrementally with low latency, which is the key advantage over nightly batch recomputation for continuous fraud scoring.
Example11 · Stream Processing & Flink Fundamentals
A developer at a bank models two data sources in Flink: a live Kafka topic of real-time wire transfers, and a one-time export of last quarter's closed loan accounts stored as files. How should these two sources be categorized in Flink's data model?
✓The wire transfer topic is an unbounded stream and the loan account export is a bounded stream that has a defined start and end.
Correct. A continuous live Kafka topic has no defined end and is unbounded, whereas a finite one-time file export has a clear start and end and is bounded.
・Both the wire transfer topic and the loan account export are unbounded streams because every Flink source is treated identically as never-ending.
Incorrect. Flink supports both bounded and unbounded sources and does not treat every source as never-ending.
・The wire transfer topic is a bounded stream because Kafka topics eventually reach a maximum retention, while the export is an unbounded stream.
Incorrect. Kafka retention limits do not make a live topic bounded; new records keep arriving so it remains unbounded.
・Both sources are bounded because Flink internally converts every input into a finite dataset before any processing starts.
Incorrect. Flink does not convert all inputs to finite datasets; it processes unbounded streams continuously.
Explanation
A live, continuously appended Kafka topic is unbounded, while a one-time finite file export is bounded, matching Flink's unified bounded/unbounded model.
Example12 · Stream Processing & Flink Fundamentals
A manufacturing distributor ingests a continuous feed of warehouse scanner events that never ends, and the team wants Flink to emit updated shipment counts as events arrive rather than waiting for a file to finish. How should this workload be characterized in Flink terms?
・It is a bounded data set that Flink must read fully into memory before it can produce any shipment count output downstream
Incorrect. Bounded processing requires a known end; a never-ending scanner feed cannot be fully read before producing output, and Flink streams incrementally.
✓It is an unbounded stream that Flink processes continuously, producing incremental results as events arrive without a defined end
Correct. A continuous feed with no defined end is an unbounded stream, and Flink emits incremental results as events arrive rather than at completion.
・It is a request-response lookup where each scanner event triggers a synchronous query and the job terminates after the final reply
Incorrect. Flink streaming jobs run continuously and do not terminate after a final reply; this describes a request-response pattern, not stream processing.
・It is a micro-batch of fixed-size windows that Flink schedules only once per day after the warehouse closes its shift
Incorrect. A continuous unbounded feed is not a once-per-day fixed batch; Flink processes the stream continuously, not on a daily schedule.
Explanation
A feed with no defined end is an unbounded stream. Flink's streaming runtime processes such data continuously and emits incremental results as events arrive.
Example13 · Stream Processing & Flink Fundamentals
The distributor's platform team submits a shipment-aggregation job to a Flink cluster and wants to know which component coordinates checkpoints and schedules the work across worker processes. Which component performs this coordination role?
・The TaskManager, which owns global scheduling decisions, coordinates all checkpoints, and distributes subtasks to the other worker nodes in the cluster
Incorrect. TaskManagers execute subtasks and provide slots; they do not own global scheduling or coordinate checkpoints, which is the JobManager's role.
✓The JobManager, which coordinates distributed execution by scheduling tasks and triggering checkpoints across the cluster
Correct. The JobManager coordinates distributed execution, scheduling tasks and triggering checkpoints across the cluster.
・The ResourceManager, which executes the operator logic directly on its task slots and holds the keyed state for the running job
Incorrect. The ResourceManager manages slots and allocation; it does not execute operator logic or hold keyed state, which lives in TaskManagers.
・The Dispatcher, which runs the user functions within its own slots and periodically snapshots operator state to durable storage
Incorrect. The Dispatcher provides the REST endpoint and starts JobManagers; it does not run user functions or snapshot operator state itself.
Explanation
The JobManager is the coordinator: it schedules tasks and triggers checkpoints. TaskManagers execute the actual subtasks in their slots.
Example14 · Stream Processing & Flink Fundamentals
A telecom operator ingests continuous call detail records from mobile switches into a Kafka topic that is never closed, while a separate daily export of settled roaming charges arrives as a finite file set. How should a Flink developer classify these two inputs?
・Both inputs are unbounded because any source consumed through Flink's DataStream API is treated identically as an infinite stream regardless of origin
Incorrect. Flink distinguishes bounded from unbounded by whether the data has a known end, not merely by which API is used to consume it.
✓The call detail records form an unbounded stream and the daily roaming file set forms a bounded stream that has a defined start and end
Correct. A never-closing Kafka topic has no defined end so it is unbounded, while a finite daily file set has a known start and end so it is bounded.
・The call detail records are bounded per Kafka partition and the roaming file export is unbounded since files may be appended
Incorrect. Kafka partitions of a live topic keep receiving new records, so they are unbounded, and a completed daily export does not grow by appends.
・Both inputs are bounded because Flink internally splits every source into finite checkpoint intervals before processing them downstream
Incorrect. Checkpoint intervals are a fault-tolerance mechanism and do not convert an infinite source into a bounded dataset for processing semantics.
Explanation
Boundedness is defined by whether the input has a known end: the live call detail topic is unbounded, and the finite daily roaming export is bounded.
Example15 · Stream Processing & Flink Fundamentals
An architect at a telecom operator claims that Flink achieves low latency on call signaling events because it waits to accumulate a fixed micro-batch of events before running each operator. Which statement best corrects or confirms this claim about Flink's execution model?
・The claim is correct because Flink buffers events into small timed micro-batches and schedules each operator once a batch boundary is reached downstream
Incorrect. Flink is not a micro-batch engine; it does not wait for a timed batch boundary before invoking operators on signaling events.
・The claim is partly correct because Flink processes records one at a time but only after collecting a complete window of signaling events first
Incorrect. Window assignment is a separate concern, and Flink does not require a full window before pushing individual records through the pipeline.
✓The claim is incorrect because Flink is a true streaming engine that processes each record as it arrives rather than grouping records into micro-batches
Correct. Flink is a native streaming engine that processes each record as it arrives, giving low per-event latency without micro-batching.
・The claim is incorrect because Flink always defers processing until a checkpoint barrier aligns across all parallel operator subtasks
Incorrect. Checkpoint barriers coordinate state snapshots and do not gate normal record processing until the next checkpoint aligns.
Explanation
Flink uses a true record-at-a-time streaming model, processing each event on arrival rather than forming micro-batches.
▶ Try 10 free questions (graded)
Measure your readiness with a full mock exam
All questions · full explanations · lifetime access
Enroll(33 USD)