Observability and Monitoring Architecture Questions
Building visibility into infrastructure and services: metrics, logs, and traces, dashboards and alerting, SLIs/SLOs, and the design of an observability stack. Covers instrumenting systems for actionable signal, reducing alert noise, and diagnosing production issues from telemetry. Infrastructure-wide observability, distinct from network-specific monitoring.
Design a set of guardrails, at the instrumentation, ingestion, and query layers, that prevent cardinality explosions before they happen rather than reacting to one after the fact. How would you automatically detect a metric that's about to blow up cardinality, and decide whether to throttle it, reject it, or aggregate it away?
Sample Answer
Guardrails have to exist at all three layers because each one catches a different failure mode. Instrumentation-layer guardrails prevent bad label design from ever shipping; ingestion-layer guardrails catch what slips through in real time before it damages the shared backend; query-layer guardrails contain the blast radius of whatever cardinality already exists.
The three layers
flowchart LR
A[Instrumentation: SDK label schema] --> B[Ingestion: cardinality meter]
B --> C{Growth above threshold?}
C -->|no| D[Accept]
C -->|yes| E{Decision}
E -->|reduce signal value| F[Aggregate away]
E -->|protect budget, keep signal| G[Throttle]
E -->|hard limit exceeded| H[Reject]
D --> I[Query Layer]
F --> I
G --> I
- Instrumentation layer: require a metric schema/template before a new metric name can ship (declared label keys and, ideally, an expected cardinality bound per key); flag or reject at code-review/CI time any label key with an obviously unbounded domain (request IDs, raw user IDs, full URLs with path parameters unreplaced).
- Ingestion layer: maintain a live, low-memory estimate of distinct series per metric/tenant so growth can be detected within minutes, not after the backend already OOMs.
- Query layer: enforce query-time cost limits (max series a single query can touch, regex-predicate cost estimation) so that even cardinality that did get ingested can't be turned into a denial-of-service against shared query compute.
Detecting a metric about to blow up
The right tool is a HyperLogLog (HLL) sketch per metric name (or per metric x tenant), because it estimates distinct-count cardinality in fixed, small memory regardless of how many series actually exist. HLL's standard error and memory cost are both direct functions of its precision parameter $p$, where the sketch has $m = 2^p$ registers:
RSE=m1.04,memory≈86m bytes (6-bit registers)import math
for p in (10, 14):
m = 2 ** p
se = 1.04 / math.sqrt(m)
mem = m * 6 / 8
print(p, m, se, mem)
Result: p=10 gives 1,024 registers, 3.25% standard error, 0.77 KB memory; p=14 gives 16,384 registers, 0.81% standard error, 12.29 KB memory. Running one p=14 sketch per metric name across even 10,000 distinct metric names costs about 123 MB of memory total, cheap enough to keep live for every metric in the system, which is what makes real-time growth detection practical.
With a live baseline and a rolling-window estimate, growth-rate detection is a simple ratio check: if a metric's baseline series count is 5,000 and a 10-minute window shows 500,000, that's a 100x growth ratio against a chosen threshold of, say, 5x, which trips the guardrail well before the metric reaches an operationally dangerous size.
Deciding throttle vs. reject vs. aggregate
| Signal | Action | Why |
|---|---|---|
| Growth is gradual and the metric is below the hard tenant quota | Accept, but flag for the owning team | No immediate risk; early warning is enough |
Growth is caused by one specific label key going unbounded (e.g., request_id added to a previously-bounded metric) | Aggregate away: drop or bucket that one label key, keep the rest of the series | Preserves most of the signal's value; this is usually a mistake, not malice, and the metric is still useful without the offending label |
| Growth is broad-based and close to the tenant's hard quota, but the metric still has legitimate value | Throttle: apply sampling or rate-limit new series admission | Buys time and protects the shared backend without discarding an entire signal outright |
| Growth exceeds a hard ceiling with no clear single offending label | Reject: refuse new series for that metric until the owner fixes it | Protects everyone else sharing the backend; a soft response at this point is not enough |
A useful mechanism for the "which label is the culprit" question: if a metric normally has a bounded combinatorial cardinality (e.g., endpoint × status × pod = 50 × 6 × 500 = 150,000 possible series, computed by multiplying each label's distinct-value count) and observed cardinality is far above that bound, the excess growth is coming from a label outside that expected set, and the ingestion layer can pinpoint it by comparing per-label-key distinct-value growth rates rather than only the aggregate metric-level count.
Trade-offs and pitfalls
- A pure hard-reject policy at the ingestion layer is the easiest to build and the worst for reliability: it turns a labeling mistake in one service into a total metrics outage for that service (including its SLO-relevant metrics), which is why aggregate-away and throttle need to exist as intermediate responses.
- HLL is probabilistic; at low precision (small $p$) the standard error is large enough that near-threshold decisions can flap. Pick $p$ based on how close to the threshold you need confident decisions, not just "the default."
- Guardrails without an audit trail (which decision was applied, to which metric, when) make it impossible to tell a team why their metric got throttled, which erodes trust in the guardrail system and encourages people to route around it (e.g., renaming a metric to dodge a quota).
- The instrumentation-layer guardrail is the cheapest one to enforce and the one most often skipped; catching an unbounded label at CI time costs nothing compared to catching it after it has already damaged the shared backend.
Design multi-region telemetry ingestion that supports low-latency local queries in each region as well as global long-term analytics, while respecting data-residency constraints that keep certain telemetry from leaving its region. How would replication, federation, and query routing work, and how would you avoid excessive data duplication and egress cost?
Sample Answer
Direct answer
Keep raw telemetry in the region where it was generated and serve local dashboards directly from that regional store. For global, long-term analytics, replicate only pre-aggregated rollups (never raw points) to a central aggregate store over a star topology, and give the query router two paths: a fast local read for single-region queries, and a scatter-gather federated read that fans a query out to each owning region and merges results when a global view needs residency-locked data that was never centrally copied. This bounds egress to the size of the summaries instead of the raw stream and keeps residency-restricted series from ever leaving their region.
Structured elaboration
Regional tier (per region):
- Ingest agents write to a regional durable log, then into a regional time-series store that serves local dashboards at full resolution.
- A residency tag is attached to every series at ingest time (
region_locked: true/false). Locked series are excluded from every export path, full stop, not just the raw one. - A rollup exporter runs on a fixed schedule (for example every 5 minutes), producing one summary record per series per window (count, sum, min, max, and a mergeable percentile sketch), and ships only unlocked series.
Global tier:
- A single global aggregate store receives rollups from every region over a star topology (each region ships once, to one destination), not a full mesh where every region replicates to every peer.
- The global store answers cross-region and long-retention analytics directly when the requested series are present there.
Federated query router:
- Classifies each incoming query as local (single region, recent window) or global (spans regions, or requests residency-locked series that never left home).
- Local queries route straight to the regional store; the router adds nothing but auth and residency checks.
- Global queries against unlocked series read the global aggregate store.
- Global queries that touch locked series cannot be answered centrally: the router issues parallel subqueries to each owning region, applies the same aggregation the caller asked for at the region, and merges the partial (already-aggregated) results at the router. Raw data still never crosses the region boundary; only the small aggregated answer does.
flowchart LR
subgraph RegionA[Region A]
A1[Ingest + Raw Store]
end
subgraph RegionB[Region B]
B1[Ingest + Raw Store]
end
subgraph RegionC[Region C]
C1[Ingest + Raw Store]
end
A1 -- unlocked rollups --> G[(Global Aggregate Store)]
B1 -- unlocked rollups --> G
C1 -- unlocked rollups --> G
Q[Federated Query Router] -- local query --> A1
Q -- local query --> B1
Q -- local query --> C1
Q -- global query, unlocked --> G
Q -- global query, locked: scatter-gather --> A1
Q -- global query, locked: scatter-gather --> B1
Avoiding duplication: rollups replace raw fan-out, the star topology replaces mesh replication, and locked series are excluded from export entirely rather than exported-then-filtered (filtering after export would already have paid the egress cost).
Worked example
Assume 4 regions, each with S=50,000 active series scraped every 15s (4 samples/series/minute), so each region ingests r=200,000 raw samples/minute:
rawSamplesPerDay=200,000×1440=288,000,000At braw=24 bytes/sample (delta-encoded, compressed), one region's raw volume is:
Vraw=288,000,000×24 bytes=6.912 GB/dayNaive approach (full raw replication, mesh topology, R=4 regions):
Each region ships its full raw stream to the other R−1=3 peers:
This design (5-minute rollups, star topology to one global store):
Each series produces one rollup record every 5 minutes; broll=200 bytes (count, sum, min, max, t-digest fragment):
Reduction:
EgressrollupEgressnaive=11.5282.944=7.2×This 7.2x comes from two independent effects that both matter and are worth naming separately in the room: dropping the mesh fan-out for a star topology accounts for a factor of (R−1)=3, and collapsing 15s raw resolution into 5-minute summaries accounts for the remaining ≈2.4×. Neither alone gets you there; a star topology with raw replication still ships 3x too much data, and rollups alone don't help if every region still fans out to every peer.
Trade-offs & pitfalls
| Choice | Wins | Costs |
|---|---|---|
| Star topology to one global store | Egress scales with R, not R(R−1) | Single logical destination is a availability/scaling focal point; needs its own HA design |
| Rollup-only export | Cuts payload size, hides raw values from cross-region transit | Loses raw-point debugging for incidents that need cross-region correlation past the rollup window |
| Scatter-gather for locked series | True zero-export compliance | Global queries touching locked series pay per-region round-trip latency and can't be served from a warm cache the way unlocked-series queries can |
Common wrong turns: exporting raw data and filtering residency at the query layer instead of at the export layer (the compliance violation already happened by the time it's filtered); treating "aggregate before export" as a privacy control by itself without also tagging and hard-blocking locked series (an aggregate over a locked series is still a residency violation if it lets someone infer region-specific values); and building the mesh topology by default because it's the naive extension of single-region replication, when a star to one global sink is both cheaper and simpler to reason about for compliance audits.
Architect a multi-tenant observability platform that enforces strict performance isolation, so a noisy tenant can't degrade service for everyone else. Cover logical versus physical isolation, per-tenant ingestion shards or queues, query-level QoS, billing-aware quotas, and how you'd migrate a tenant from shared to dedicated resources if they outgrow the shared tier.
Sample Answer
Default to logical isolation (shared infrastructure with hard per-tenant quotas and QoS enforcement) for the bulk of tenants, and offer physical isolation (dedicated shards or node pools) as an explicit, metered upgrade path for tenants whose usage or SLA requirements outgrow what shared quotas can safely guarantee. The isolation model and the migration path are two sides of the same design.
Architecture
flowchart LR
A[Tenant Requests] --> B[Ingress: Auth and RBAC]
B --> C[Per-Tenant Shard / Queue]
C --> D[Shared Ingestion Pool]
C --> E[Dedicated Ingestion Pool]
D --> F[Query Gateway: QoS Scheduler]
E --> F
F --> G[Shared Query Compute]
F --> H[Dedicated Query Compute]
I[Billing / Quota Manager] --> B
I --> F
- Logical isolation: per-tenant partitions/queues on shared compute, enforced with token-bucket rate limits at ingress and query-time concurrency caps; cheapest, and sufficient for the majority of tenants whose usage is well within their quota most of the time.
- Physical isolation: dedicated shard, node pool, or account for a tenant; strongest guarantee, but the operational and cost overhead of running fully separate infrastructure per tenant doesn't scale to hundreds of tenants, so it has to be selective.
- Query-level QoS: priority classes (interactive dashboard queries vs. batch/backfill queries), per-tenant concurrency limits, and admission control that sheds low-priority load before it degrades everyone; this is what actually prevents a noisy tenant's expensive query from starving others on shared compute, since ingestion isolation alone doesn't protect the read path.
- Billing-aware quotas: map each tenant's plan tier to a concrete ingest-rate and query-concurrency quota; soft-limit warnings before hard throttling, and an explicit overdraft/pay-as-you-go path rather than a silent hard cutoff. Retention is part of the same per-tenant contract, not a platform-wide constant: a tenant's plan tier should set its own retention window (e.g., 7 days on a shared/basic tier vs. 90 days on a dedicated tier), enforced as tenant-scoped TTL policy in the storage layer so one tenant's longer retention SLA doesn't force everyone else to pay for the same window.
Sizing the admission-control headroom
The core quantitative question for logical isolation is: how much burst capacity can the shared pool actually absorb before a legitimate burst from one tenant risks starving others? Take a platform with total ingest capacity $C = 2{,}000{,}000$ samples/sec shared across $N = 500$ tenants, where baseline quotas are provisioned to consume a target fraction $u$ of total capacity (leaving headroom for bursts), and tenants are allowed to burst up to $m\times$ their baseline:
baselinetenant=NuC,bursttenant=m⋅baselinetenantIf a fraction $f$ of tenants burst simultaneously while the rest sit at baseline, total load must stay under capacity:
f⋅N⋅m⋅baselinetenant+(1−f)⋅N⋅baselinetenant≤CSubstituting $\text{baseline}_{\text{tenant}} = uC/N$ and simplifying:
uC(1+(m−1)f)f≤C≤m−1u1−1With $u = 0.6$ (provision baseline to consume 60% of capacity, leaving 40% headroom) and $m = 5$ (allow a 5x burst):
C, N, u, m = 2_000_000, 500, 0.6, 5
baseline = (u * C) / N # 2,400 samples/sec/tenant
burst = m * baseline # 12,000 samples/sec/tenant
f_max = (1/u - 1) / (m - 1) # 0.1667
max_bursting = f_max * N # 83.3 tenants
Result: baseline quota is 2,400 samples/sec/tenant, burst allowance is 12,000 samples/sec/tenant, and up to about 16.7% of tenants (roughly 83 of 500) can burst simultaneously at 5x without exceeding total capacity. Plugging $f_{max}$ back into the original inequality confirms it lands exactly at capacity (2,000,000 samples/sec), which is the check that the derivation is self-consistent. This is the number that should actually drive the admission controller's global burst budget, not a guess: if more than ~83 tenants try to burst at once, the controller has to start denying or queuing burst requests rather than granting them all.
Migrating a tenant from shared to dedicated
- Trigger: sustained usage consistently near quota (not just occasional bursts), or an explicit SLA purchase requiring guaranteed isolation.
- Provision dedicated shard/node pool ahead of cutover.
- Dual-write or replicate the tenant's recent data into the new dedicated shard while it's still live on the shared pool.
- Cut over routing at the control plane (ingress rules keyed on tenant ID) once the dedicated shard is caught up; this should be a routing change, not a data migration event, so it can be near-zero-downtime.
- Decommission the tenant's shared-pool footprint after a verification window, and keep the cutover reversible in case the dedicated shard has an unexpected issue.
Trade-offs and pitfalls
- Sizing baseline quotas at $u$ close to 1.0 (using nearly all capacity for guaranteed baseline) leaves almost no burst headroom, which defeats the purpose of a shared pool; the $u$ vs. burst-headroom trade-off above should be an explicit, revisited decision, not a default.
- Query-level QoS is often skipped because ingestion isolation feels like "the isolation problem," but an expensive ad-hoc query from one tenant can degrade shared query compute even when every tenant's ingestion is perfectly isolated; both paths need protection independently.
- A migration path that isn't reversible (no fallback if the dedicated shard has a problem post-cutover) turns a capacity upgrade into a risk event; always keep the shared-pool footprint alive through a verification window.
- Billing-aware quotas without a clear soft-limit warning stage turn every quota breach into a support ticket; the graduated response (warn, throttle, then hard-limit) matters as much as the quota number itself.
Design an immutable, auditable provenance trail that links a deployed model artifact to the telemetry recorded at inference time, so an investigation can be reproduced later. What metadata would you fingerprint and store (dataset snapshot, commit hash, config), how would you attach it to traces and logs without bloating every span, and what's your retention policy for the provenance data itself?
Sample Answer
Direct answer
Fingerprint every deployed model as a composite hash (weights, container digest, git commit, dataset snapshot ID, config) and register that fingerprint once, immutably, in a provenance registry at deploy time. At inference, attach only a small reference, a model_version_token, plus an input checksum and timestamp to each trace span and log line, never the full metadata block. Reproducing an investigation means resolving the token through the registry to get the full fingerprint, then re-materializing the dataset snapshot and re-running inference in the pinned environment.
What to fingerprint and store
- Artifact fingerprint: SHA-256 of the serialized model weights/graph.
- Build fingerprint: container image digest, dependency lockfile hash, framework/runtime versions.
- Source fingerprint: git commit hash, repo path, and (if deploying from an uncommitted patch, which should be discouraged but happens) a patch ID.
- Data fingerprint: dataset snapshot ID from the feature store or data lake, including the sampling seed used to build it, so the exact training data is reconstructable, not just referenced by a mutable name.
- Config: hyperparameters, preprocessing pipeline spec, and the model's declared input/output schema.
- All of this is composed into one immutable registry record, and that record's content-addressed ID is what gets minted as the short
model_version_tokenattached to inference traffic.
Attaching provenance without bloating every span
The naive approach, inlining the full metadata block (dataset ID, commit hash, config hash, environment digest) into every span, scales the span-storage cost with inference volume times metadata size, and that metadata is redundant across every inference from the same deployed model version. Instead, attach only {model_version_token, input_checksum, timestamp} to each span/log; the token is a lookup key into the registry, not a copy of the registry entry. The registry itself grows only with the number of distinct model versions deployed, not the number of inferences.
Worked example
Assume the serving system handles 500 inferences/sec.
spans/day=500×86,400=43,200,000Token-based reference approach: model_version_token (36-char UUID) + input_checksum (64-char SHA-256 hex) + timestamp (20-char ISO8601) ≈120 bytes of values, plus an assumed 80 bytes of attribute-key overhead, for 200 bytes/span:
Full-inline approach (assume a full provenance JSON block, all fingerprint fields plus a short eval-metrics summary, is ≈1,200 bytes/span):
overhead/day=43,200,000×1,200 bytes=51,840,000,000 bytes=51.84 GB/day Reduction=8.6451.84=6.0×Token-based indirection cuts the per-inference span overhead by 6x compared to inlining full provenance on every span, which is the concrete answer to "without bloating every span."
Registry cost, for comparison: assume the org deploys roughly 50 distinct model versions/month across all models, and each registry record (including eval report references) is ≈5 KB:
registry growth=50×5 KB=250 KB/month≈3 MB/yearThe registry itself is negligible; essentially all of the storage cost lives in the per-inference reference overhead (8.64 GB/day, roughly 259 GB/month at 30 days), confirming that token size is what to optimize, not registry design.
flowchart LR
Artifact[Model Artifact] --> Fingerprint[Fingerprint Service]
Fingerprint --> Registry[Immutable Provenance Registry]
Registry --> Deploy[Deploy: mint model_version_token]
Deploy --> Middleware[Inference Middleware]
Middleware --> Span[Trace Span + token + checksum]
Middleware --> Log[Structured Log + token]
Span --> Backend[Trace Backend]
Investigator[Investigator] --> Registry
Registry --> Reproduce[Reproducibility Sandbox]
Retention policy
The per-inference reference (token, checksum, timestamp) rides along with the rest of the trace's attributes under the same operational retention/tiering policy as other span data, since on its own it's small and disposable once a trace ages out. The registry record it points to is treated differently: kept for a dedicated model-risk audit retention window (commonly multi-year, driven by regulatory or internal audit policy rather than operational usefulness), independent of how long the raw trace survives, since an investigation may start long after the originating trace has aged out of hot or warm storage. As long as the token and its registry record both still exist, the model side of an investigation is reproducible even if the raw trace itself is gone; only the specific input that triggered the trace would then need to come from wherever the input checksum can still be resolved (e.g. a retained, compliance-tagged input log), which is a separate retention decision from the model provenance itself.
Trade-offs and pitfalls
- Fingerprinting from an uncommitted patch (a common shortcut during rapid iteration) breaks reproducibility outright; the source fingerprint has to make an unclean deploy state visible and discouraged, not silently allowed.
- A mutable "current model version" pointer instead of a content-addressed registry ID would make historical provenance ambiguous the moment a version gets updated in place; immutability at the registry level is what makes a token minted six months ago still resolve to exactly the model that was actually running then.
- Storing only a token and checksum means reproducing an investigation depends on the dataset snapshot still being materializable from the feature store; if the feature store's own retention doesn't match the model-provenance retention window, "reproducible" investigations quietly stop being reproducible past that point, and that mismatch needs to be an explicit, reviewed policy decision, not an accident.
- The 6x span-overhead reduction from token-based indirection is worth it at this inference volume, but for a much lower-traffic model (a few inferences/minute) the full-inline approach's extra bytes barely matter, and the added indirection (a registry lookup on every investigation) may not be worth the complexity; this is a volume-dependent design choice, not a universal rule.
Design the telemetry data model for a long-running batch job or data pipeline: job-level SLIs (throughput, success rate, lag), task-level metrics, and asset-level lineage. How would you use correlation IDs and idempotency so that retries and partial failures get attributed to the right job run instead of double-counted or lost?
Sample Answer
Direct answer
Use three correlation identifiers with distinct scopes: job_id for the logical run, task_instance_id for a specific task within it, and attempt_id for a specific retry of that task, and put them in the right telemetry signal for their cardinality. Metrics get labeled only by low-cardinality dimensions like task_name (a fixed, small set), while job_id/task_instance_id/attempt_id live on trace spans and structured logs, which are built to handle high-cardinality identifiers. A durable idempotency ledger keyed on job_id + task_name makes retries and partial failures attribute correctly instead of double-counting or getting lost.
Identifier design
job_id: one per logical run of the pipeline (a specific execution of "yesterday's ETL," not the pipeline definition itself).task_instance_id: one per task within that run, stable across retries of the same task.attempt_id: increments on each retry of atask_instance_id.- All three propagate together through logs, trace spans, and lineage events, so any of the three signals can be joined against the others for a given execution.
Why the label placement matters: cardinality
Cardinality here means the number of distinct label-value combinations a metric can produce; each distinct combination is a separate time series the metrics backend has to store and index. A metric labeled by something that's unique per job run (like task_instance_id) creates a brand-new time series on every single run, forever, which is exactly the failure mode metrics backends are not built for.
Metrics: aggregate counters/histograms keyed only by task_name (a fixed set, e.g. 50 distinct task names), plus a small number of other genuinely low-cardinality dimensions like environment or region. Never job_id, task_instance_id, or attempt_id as a metric label.
Traces: one root span per job_id, child spans per task attempt, with job_id, task_instance_id, attempt_id as span attributes (not labels that create new series). Trace backends are designed for exactly this kind of high-cardinality attribute.
Logs: structured JSON logs carrying the same identifiers, for full-detail debugging of a specific run.
Lineage: events keyed by asset_id, carrying job_id as a join key back to the run.
Idempotency and retry attribution
- A durable status store records terminal outcomes keyed by
job_id + task_name(notattempt_id), written via compare-and-swap. A retried attempt that races with an already-succeeded prior attempt loses the CAS and cannot double-apply its effect. - Job-level SLIs (success rate, throughput) are computed from terminal status only, not from every attempt. A task that fails twice and succeeds on the third attempt counts once, as a success, in the job-level SLI; the retry history is visible in traces/logs for debugging, but doesn't pollute the aggregate metric.
- Partial failures (some tasks in a job succeed, others don't) are recorded per-
asset_idin the lineage stream, so a downstream consumer can tell exactly which outputs are trustworthy even if the overall job is marked failed.
Worked example
Assume N=10,000 job runs/day, each with T=50 tasks.
If a metric were (incorrectly) labeled by task_instance_id:
Against a typical metrics-backend active-series budget (illustrative figure of 1,000,000 active series for a shared cluster), this single pipeline alone would consume roughly half the entire budget every single day, and it never stops growing since task_instance_id values never repeat.
Labeled correctly by task_name instead:
The correct label placement isn't a minor optimization, it's the difference between a metrics backend that stays healthy indefinitely and one that degrades daily as more job runs accumulate.
flowchart LR
JobRun[Job Run: job_id] --> Task[Task Attempt: task_name + attempt_id]
Task --> IdemStore[Idempotency Store: CAS by job_id + task_name]
Task --> Metrics[Metrics: labeled by task_name only]
Task --> Trace[Trace Span: job_id + task_instance_id attrs]
Task --> Lineage[Lineage Event: asset_id + job_id]
IdemStore --> Finalizer[Job Finalizer: terminal SLI]
Metrics --> Finalizer
Lineage --> Catalog[Data Catalog]
Trade-offs and pitfalls
- The most common mistake in batch-job telemetry is putting a per-run identifier directly on a metric label because it's convenient for a one-off debugging query; it's cheap the first time and catastrophic at scale, exactly because cardinality growth is invisible until the backend is already struggling.
- Attempt-level metrics (per-attempt counters) are still useful for detecting retry storms or flaky tasks, but they should be aggregated at
task_namegranularity (a counter incremented per attempt, not a new series per attempt), keeping the diagnostic value without the cardinality cost. - Idempotency keyed on
job_id + task_nameassumes tasks within a job have stable, unique names; a pipeline that dynamically generates task names (e.g. embedding a partition key in the name) reintroduces the same cardinality and idempotency problems this design was built to avoid, so dynamic task naming needs its own bounded-cardinality scheme. - Computing SLIs from terminal status only is correct for "did the job ultimately succeed," but it can mask a job that's technically succeeding while burning through an unhealthy number of retries; that's why attempt-count needs its own aggregated signal (task-level, not job-level) even though it isn't the primary SLI.
Unlock Full Question Bank
Get access to all 24 Observability and Monitoring Architecture interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.