Cloud Data Platforms and Managed Services Questions
Evaluating and choosing among managed cloud data platform PRODUCTS: cloud data warehouses (Snowflake, BigQuery, Redshift, Synapse) as vendor options, the storage-and-compute-separation model as a purchasing and operating decision, serverless versus provisioned compute models, warehouse and streaming-service sizing and capacity planning, concurrency and workload management as a platform operating concern, pricing-model comparison and platform-level cost trade-offs, vendor lock-in and portability, platform-to-platform migration, and the recurring managed-versus-self-managed decision applied to warehouses, databases, streaming, and ETL/orchestration services. Focuses on platform SELECTION and operation as a product, not designing the ingestion pipelines, ETL transform patterns, or streaming processing logic that run on top of a chosen platform, and not a single vendor's certification trivia.
When would you recommend a fully managed cloud streaming service (such as AWS MSK Serverless, Kinesis Data Streams, Confluent Cloud, or GCP Pub/Sub) over a self-managed Kafka cluster running on VMs or Kubernetes? Give at least five decision criteria covering operational overhead, feature parity, ordering guarantees, scaling, and cost predictability.
Sample Answer
Direct answer. A fully managed streaming service (AWS MSK Serverless, Kinesis Data Streams, Confluent Cloud, GCP Pub/Sub) removes cluster operations entirely at the cost of some flexibility and potential vendor lock-in; a self-managed Kafka cluster on VMs or Kubernetes gives full control and avoids per-message pricing at the cost of running the cluster yourself. Recommend the managed option unless the team has genuine Kafka-specific requirements and the operational capacity to run it well.
Structured elaboration. Five decision criteria:
- Operational overhead. Managed services eliminate broker provisioning, patching, and rebalancing operations; self-managed Kafka requires a team that understands partition rebalancing, ISR (in-sync replica) management, and broker capacity planning.
- Feature parity. Managed services vary in how closely they match Kafka's actual protocol and ecosystem. Kinesis and Pub/Sub are Kafka-like but not Kafka-compatible, so existing Kafka client code and tooling (Kafka Streams, a library for processing data as it continuously flows through Kafka; ksqlDB, which lets you write SQL directly against a stream instead of custom code; Kafka Connect, a set of pre-built connectors for moving data in and out of Kafka without hand-written integration code) will not work unchanged; MSK and Confluent Cloud run real Kafka, preserving full ecosystem compatibility.
- Ordering and delivery guarantees. All of these services provide per-partition (or per-shard) ordering, but exactly-once semantics and cross-partition ordering guarantees differ in detail between services, so verify the specific guarantee against your correctness requirements rather than assuming they are interchangeable.
- Scaling. Managed services generally auto-scale (Kinesis On-Demand mode, Pub/Sub) or scale with a support ticket and a few clicks (MSK); self-managed Kafka scaling requires manually adding brokers and rebalancing partitions, which is operationally delicate at high throughput.
- Cost predictability. Managed streaming is billed per-shard-hour or per-message, which is predictable at moderate volume but can become expensive at very high sustained throughput; self-managed Kafka's cost is dominated by compute and storage infrastructure, which can be cheaper at large, steady scale if the team already has the expertise to run it efficiently.
Worked example. A team building on AWS with no existing Kafka investment and a small platform team should default to Kinesis Data Streams or MSK Serverless: the operational savings alone typically outweigh the marginal cost difference, and neither requires committing to Kafka-specific tooling if the team has no existing dependency on it. A team migrating an existing, large Kafka-based system with deep dependencies on Kafka Streams and Kafka Connect should lean toward MSK or Confluent Cloud rather than Kinesis or Pub/Sub, since switching away from real Kafka would mean rewriting that tooling; in this case "managed vs self-managed" is really "managed Kafka vs self-managed Kafka," a narrower and lower-risk decision than replacing the whole streaming platform.
Trade-offs and pitfalls. The most common mistake is treating "managed streaming" as one interchangeable category: Kinesis and a managed Kafka service solve overlapping problems but are not drop-in replacements for each other's ecosystems. Also verify exactly-once semantics claims against your specific correctness requirements rather than assuming any managed service delivers the same guarantee as a properly configured self-managed Kafka cluster; the details of idempotent producers (a producer mode that stops a retried write from being counted twice if the original acknowledgment was lost) and transactional consumers (consumers that only see a group of related writes once every write in that group has committed, avoiding a partial view mid-transaction) vary by platform.
Propose a strategy to migrate BI workloads from an on-premise data warehouse to a managed cloud warehouse platform (such as Snowflake or Synapse). Address schema migration, the risk of query-performance regressions, cost implications, the training BI users and analysts will need, and how you would measure whether the migration succeeded.
Sample Answer
Direct answer. Migrating BI workloads from an on-premise warehouse to a managed cloud platform, whether the destination is Snowflake or Synapse, requires four coordinated workstreams: schema migration, performance validation, cost governance, and analyst training, sequenced so that regressions are caught before the business depends on the new platform.
Structured elaboration.
- Schema migration. Assess whether to lift-and-shift the existing schema as-is or take the opportunity to re-architect (for example, moving from a heavily normalized on-prem schema to a star schema better suited to the target platform's columnar engine). Lift-and-shift is faster and lower-risk short-term; re-architecture pays off longer-term but extends the migration timeline and adds validation surface area. The conversion surface differs meaningfully by target platform: Snowflake auto-manages physical layout through micro-partitions, so schema conversion is mostly SQL-dialect translation, while a Synapse dedicated SQL pool requires you to explicitly choose a distribution style (HASH, ROUND_ROBIN, or REPLICATE) and a clustered columnstore index per table during conversion, an extra design decision with no Snowflake equivalent that has real performance consequences if left as an afterthought.
- Query-performance regression risk. Query patterns tuned for the old platform's engine (index usage, join strategies, partitioning assumptions) do not automatically translate to the new platform's optimizer. Run the existing production query set against the new platform before cutover and flag any query whose latency regresses beyond an agreed threshold for manual tuning.
- Cost implications. Estimate the new platform's ongoing cost from a realistic sample of production query volume and data growth, not just current data size, since cloud warehouses bill differently (compute-and-storage-separated) than an on-prem warehouse's largely fixed hardware cost; build in a cost-monitoring dashboard from day one so an unexpected spike is caught early rather than discovered on the first invoice. The billing shape also differs by target: Snowflake's virtual warehouses auto-suspend and bill per-second while actually running a query, whereas a Synapse dedicated SQL pool reserves DWU-based capacity that keeps billing continuously until you explicitly pause it, so a Synapse migration needs an operational pause/resume discipline built into the cost plan that a Snowflake migration does not.
- Training. BI analysts accustomed to the on-prem tool's quirks (specific SQL dialect, specific performance characteristics, specific administrative workflows) need hands-on training before cutover, not just documentation; a short-format transition period running both platforms side by side lets analysts validate their own familiar reports against the new platform before it becomes the system of record. Budget training time differently by target: analysts coming from an on-prem SQL Server-flavored warehouse typically find Synapse's T-SQL dialect and SSMS-style tooling closer to their existing habits, while a move to Snowflake's SQL dialect and Snowsight interface is a bigger syntax and tooling jump, regardless of which platform is technically the better fit.
- Measuring success. Define success criteria before migration starts: query-latency parity (or improvement) across the core report set, cost within a defined budget band, and analyst-reported confidence in the new platform's numbers matching the old one during a parallel-run period.
Worked example. A BI team migrating from an on-prem warehouse ran the top 50 most-frequently-executed reports against the new platform during a two-week parallel-run period before cutover, comparing both results (to catch silent correctness regressions from a schema or join-logic difference) and latency (to catch performance regressions). Three reports showed silent numeric discrepancies traced to an implicit NULL-handling difference between the two platforms' aggregate functions, caught and fixed before any analyst relied on the new platform's numbers in a real decision; two reports were meaningfully slower on the new platform, both attributable to a missing distribution/clustering key equivalent to what the on-prem indexes had provided, and were fixed by adding the new platform's native performance features before cutover rather than after analysts started complaining.
Trade-offs and pitfalls. The most damaging failure mode in this kind of migration is a silent correctness regression, not a performance regression, since a slow report is annoying but a wrong number that nobody catches erodes trust in the whole platform once discovered. Budget the parallel-run comparison specifically to catch numeric discrepancies, not just latency, and do not declare the migration successful until analysts have validated their own familiar reports against the new platform themselves.
Compare Amazon Kinesis Data Streams with a self-managed Kafka cluster on EC2 (or a managed alternative like MSK) for a new real-time analytics product. Discuss scalability, latency, operational burden, durability guarantees, ecosystem tooling, cost, and vendor lock-in implications.
Sample Answer
Direct answer. Amazon Kinesis Data Streams is a fully managed, AWS-native streaming service with no cluster to run; a self-managed Kafka cluster on EC2 (or the managed MSK alternative) gives you the real Kafka protocol and ecosystem at the cost of more operational responsibility (self-managed) or a closer-to-Kafka managed option (MSK). For a new product with no existing Kafka dependency, Kinesis is usually the simpler starting point; MSK becomes the better choice once Kafka-specific ecosystem tools are required.
Structured elaboration.
- Scalability. Kinesis scales by adding shards (manually or via On-Demand mode's automatic scaling); Kafka scales by adding brokers and rebalancing partitions, which is more powerful at extreme scale but requires more expertise to execute safely, whether self-managed or via MSK.
- Latency. Both offer low, typically sub-second, end-to-end latency for well-provisioned streams; Kafka's design historically achieves slightly lower tail latency at very high throughput, though the gap has narrowed as Kinesis has matured.
- Operational burden. Kinesis has zero cluster operations. Self-managed Kafka on EC2 means your team owns broker provisioning, patching, partition rebalancing, and ZooKeeper/KRaft cluster health. MSK removes the cluster-operations burden while keeping the Kafka protocol.
- Durability guarantees. Both replicate data across multiple availability zones by default; the specific replication factor and consistency settings differ and should be verified against your durability requirements rather than assumed identical.
- Ecosystem tooling. Kafka's ecosystem is extensive and mature: Kafka Streams is a library for processing data as it continuously flows through Kafka, Kafka Connect is a set of pre-built connectors for moving data in and out of Kafka without hand-written integration code, ksqlDB lets you write SQL directly against a stream instead of custom code, and Schema Registry is a central service that enforces and versions the record format producers and consumers agree on. Kinesis has its own, smaller and AWS-specific tooling: Kinesis Data Analytics runs SQL or Flink-based processing directly against a stream, and the Kinesis Client Library (KCL) is a library that helps a consumer application reliably read from every shard in a stream.
- Cost. Kinesis is billed per shard-hour and per data volume; self-managed Kafka's cost is dominated by EC2 instance and storage cost, which can be cheaper at very large, steady scale for a team with the expertise to run it efficiently; MSK sits between the two, priced for the managed convenience.
- Vendor lock-in. Kinesis is AWS-proprietary; both self-managed Kafka and MSK use the open Kafka protocol, so application code is portable to any Kafka-compatible service, including a different cloud, with far less rework than migrating off Kinesis would require.
Worked example. A new real-time analytics product built entirely on AWS with no existing Kafka Connect pipelines or Kafka Streams applications to preserve should default to Kinesis: the team gets AWS-native integration (IAM, CloudWatch, Lambda triggers) with zero cluster management, which matters most in a new product's early stage when engineering time is scarcer than infrastructure cost. If the same team later needs multi-cloud portability, or needs to adopt an existing Kafka Connect connector for a source system with no Kinesis equivalent, migrating to MSK preserves the Kafka ecosystem without taking on full self-management.
Trade-offs and pitfalls. The most consequential trade-off is lock-in: choosing Kinesis for its simplicity is a legitimate call for a new product, but revisit that decision explicitly if the product later needs to run on another cloud or needs Kafka-specific tooling, since Kinesis application code does not port to Kafka without a rewrite of the client integration layer.
You are ingesting 10,000 events per second, averaging 2KB each, into a managed streaming service such as Kinesis Data Streams. Calculate how many shards you need, showing your assumptions and arithmetic, and describe how you would scale shard count up without losing data or disrupting consumers.
Sample Answer
Direct answer. At 10,000 events/second averaging 2KB each, you need 20 shards, and the binding constraint is throughput, not record count.
Structured elaboration. Each Kinesis shard has two independent write limits, and whichever one you hit first is the one that matters:
limit1=1,000 records/sec
limit2=1 MiB/sec
With a 2KB average record size, the throughput limit binds well before the record-count limit does. Convert the throughput limit into an equivalent records/sec figure at this record size:
records/sec before hitting the 1 MiB/sec cap=2 KB1×1024 KB=512 records/sec per shard
Since 512 records/sec is well below the 1,000 records/sec cap, throughput is the binding constraint per shard, not record count. Total required shard count:
shards=⌈512 events/sec per shard10,000 events/sec⌉=20
Cross-checking directly in raw bytes: total ingest is $10{,}000 \times 2\text{KB} = 20{,}000 \text{ KB/sec} \approx 19.53 \text{ MiB/sec}$, and $19.53 / 1 = 19.53$, which rounds up to 20 shards, matching the record-based calculation exactly (both approaches must agree, since they measure the same binding constraint two ways).
events_per_sec = 10_000
avg_kb = 2
bytes_per_sec = events_per_sec * avg_kb * 1024
mb_per_sec = bytes_per_sec / (1024 * 1024)
print(f"total throughput: {mb_per_sec:.2f} MiB/sec") # 19.53 MiB/sec
shard_mb_limit = 1.0
shard_record_limit = 1000
records_per_shard_before_mb_cap = (shard_mb_limit * 1024) / avg_kb
effective_capacity_per_shard = min(records_per_shard_before_mb_cap, shard_record_limit)
print(f"binding per-shard capacity: {effective_capacity_per_shard:.0f} records/sec") # 512
import math
shards_needed = math.ceil(events_per_sec / effective_capacity_per_shard)
print(f"shards needed: {shards_needed}") # 20
Running this script prints total throughput: 19.53 MiB/sec, binding per-shard capacity: 512 records/sec, and shards needed: 20, confirming both derivations.
Worked example: scaling shard count without losing data. To scale up, split individual shards (a shard-split operation) rather than tearing down and rebuilding the stream. A split takes one shard and divides its hash-key range into two child shards, each inheriting half the original's capacity; Kinesis keeps the parent shard readable until all its existing records have been consumed, so no data is lost during the transition. Well-behaved consumers using the Kinesis Client Library detect the parent shard's CLOSED status, finish draining it, then automatically discover and start consuming the new child shards, so a properly implemented consumer experiences no data loss and only a brief period of reduced parallelism while it catches up on the closing parent shard. Plan splits ahead of an anticipated growth event (do not wait until you are already throttling), since a split takes a small amount of time to propagate and briefly affects write availability on the shard being split.
Trade-offs and pitfalls. This calculation assumes traffic is spread evenly across shards, but an uneven partition-key distribution can create a hot shard that throttles well before the stream's aggregate 20-shard capacity is reached; monitor per-shard WriteProvisionedThroughputExceeded metrics, not just aggregate throughput, to catch this. Also budget headroom above the bare-minimum 20 shards, since traffic bursts above the 2KB average or above 10,000 events/sec will throttle a stream sized to the exact average; many teams provision 20-30% above the calculated minimum specifically to absorb normal variance without constant resharding.
A startup with an unpredictable query workload and a limited budget must choose between a serverless query service (such as Athena or BigQuery on-demand) and a provisioned cloud data warehouse (such as Redshift or a dedicated Synapse pool). Compare the trade-offs in cost predictability, performance for large joins, concurrency, and operational burden, and recommend which model fits this workload shape.
Sample Answer
Direct answer. A serverless query service (Athena, BigQuery on-demand) charges per byte scanned with no infrastructure to manage, which fits unpredictable, bursty workloads well; a provisioned warehouse (Redshift, a dedicated Synapse pool) reserves compute you pay for continuously, which fits steady, high-volume workloads better. For a startup with an unpredictable query pattern and a limited budget, the serverless model is usually the safer starting point.
Structured elaboration.
- Cost predictability. Serverless bills scale with usage, so a quiet month costs almost nothing, but an unexpectedly large or inefficient query can produce a cost spike with little warning. Provisioned capacity costs the same every month regardless of usage, which is predictable but wasteful if usage is low or spiky.
- Performance on large joins. A provisioned warehouse can be tuned (partitioning, sort/distribution keys, dedicated compute) to make large joins consistently fast. A serverless engine reading raw files typically re-scans the full dataset for every large join unless the data is well-partitioned, so performance is more variable and depends heavily on how the underlying files are laid out.
- Concurrency. Serverless engines generally scale to many simultaneous queries without you doing anything, since there is no shared cluster to contend for. A provisioned warehouse has a fixed pool of compute, so concurrent heavy queries can queue behind each other unless you have configured workload management.
- Operational burden. Serverless requires no cluster sizing, patching, or pause/resume decisions. A provisioned warehouse requires someone to right-size the cluster, monitor utilization, and decide when to scale up or down.
Worked example. A startup with three analysts running a handful of exploratory queries a day against a dataset that grows unpredictably should start serverless: at low query volume, the pay-per-byte-scanned cost is a fraction of what even the smallest provisioned cluster would cost sitting idle most of the day, and there is no capacity-planning burden for a two-person data team to carry. If that same startup grows to have dozens of analysts running the same set of dashboard queries hundreds of times a day against a stable, well-understood dataset, the calculus flips: a provisioned warehouse, with its data laid out and indexed specifically for those repeated queries, becomes cheaper per query and gives more predictable dashboard latency than continuing to pay per byte scanned on every refresh.
Trade-offs and pitfalls. The most common mistake is staying on the serverless model well past the point where usage has become steady and repetitive, since at high, predictable volume, provisioned capacity is almost always cheaper. The opposite mistake is over-provisioning a warehouse for a startup's earliest, lightest workload, which locks in cost the team does not yet need. Revisit the decision as usage grows rather than treating the initial choice as permanent; many teams end up running both, serverless for exploration and new datasets, provisioned for the small set of queries that run on a predictable, heavy schedule.
Unlock Full Question Bank
Get access to all 10 Cloud Data Platforms and Managed Services interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.