Interview's MateKubernetes
Interview's Mate

Kubernetes

K8s · Workloads · GitOps · Cloud

Visualizer

DSA Visualizer
All 32 lessons
Custom Playground
Try your own examples

Learning

System Design
31 architecture topics
SQL Learning
160 foundations → production topics
AI Engineering
160 LLM → backend topics
Data Science
160 Python → MLOps topics
Data Engineer
160 SQL → streaming topics
Docker
160 Docker learning topics
Kubernetes
160 K8s fundamentals → cloud
Java LearnSoon
Coming soon
Python Learn
Interview Q&A & internals
JavaScript Learn
Closures, async & DOM Q&A
Tech Learn
Search, practise & track Q&A
AI DSA Practice
Solve coding problems
Theme
Home
Kubernetes topics
Lesson 158/ 160
08. Cluster Administration & Managed Cloud Kubernetes

Platform Engineering: Building Internal Developer Platforms (Backstage + Crossplane)

Build IDPs that abstract Kubernetes with Backstage portals and Crossplane APIs.

AdvancedBackstage · Crossplane · IDP3 quiz questions
Practice DevOps Q&A
In plain wordsDiagramTheoryStep by stepWhen to use itInterview cluesMistakes to avoidQuiz (3)Practice

In plain words

Backstage is the front desk catalog, and Crossplane is the back-office fulfillment API that turns a developer's approved form into infrastructure. The simple Kubernetes rule is: Backstage presents a developer portal and catalog, while Crossplane exposes platform APIs as Composite Resources whose compositions create Kubernetes or cloud infrastructure.

Think of it like…

Backstage is the front desk catalog, and Crossplane is the back-office fulfillment API that turns a developer's approved form into infrastructure.

Where you’ve seen it

During a controlled maintenance window, the platform operator runs kubectl get xrd,composition,claim -A; backstage-catalog list | head. Expected evidence: Backstage presents a developer portal and catalog, while Crossplane exposes platform APIs as Composite Resources whose compositions create Kubernetes or cloud infrastructure. If the run instead shows this symptom, stop and restore the last known state: Publishing a portal entry without RBAC, quotas, or lifecycle ownership creates a button that can provision unsafe resources, and Crossplane deletion policy can erase cloud state unexpectedly.

Words you’ll hear

Backstage
For this lesson, Backstage is the controlling idea: Backstage presents a developer portal and catalog, while Crossplane exposes platform APIs as Composite Resources whose compositions create Kubernetes or cloud infrastructure.
Crossplane
Crossplane is the checkpoint; run kubectl get xrd,composition,claim -A; backstage-catalog list | head and inspect the owner chain. Publishing a portal entry without RBAC, quotas, or lifecycle ownership creates a button that can provision unsafe resources, and Crossplane deletion policy can erase cloud state unexpectedly.
IDP
IDP is the outcome to preserve; the cost is explicit: Internal platforms shorten delivery through golden paths, but abstractions hide dependencies and become critical software products needing SLOs and support.
Verification evidence
The evidence command is kubectl get xrd,composition,claim -A; backstage-catalog list | head. It connects the declaration to this behavior: Build IDPs that abstract Kubernetes with Backstage portals and Crossplane APIs.

Visual diagram

Loading interactive diagram

Theory & deep dive

How Backstage reaches the intended state

Build IDPs that abstract Kubernetes with Backstage portals and Crossplane APIs. Backstage presents a developer portal and catalog, while Crossplane exposes platform APIs as Composite Resources whose compositions create Kubernetes or cloud infrastructure.

The concrete checkpoint is kubectl get xrd,composition,claim -A; backstage-catalog list | head; compare the Backstage owner, Crossplane state, and IDP outcome instead of treating YAML acceptance as proof.

Verify Crossplane, not only object creation

Run kubectl get xrd,composition,claim -A; backstage-catalog list | head after the change and correlate the result with Events and the owning object. Backstage presents a developer portal and catalog, while Crossplane exposes platform APIs as Composite Resources whose compositions create Kubernetes or cloud infrastructure.

Key takeaway: Backstage is implemented only when this invariant remains observable: Backstage presents a developer portal and catalog, while Crossplane exposes platform APIs as Composite Resources whose compositions create Kubernetes or cloud infrastructure.

Crossplane: failure boundary and production cost

Publishing a portal entry without RBAC, quotas, or lifecycle ownership creates a button that can provision unsafe resources, and Crossplane deletion policy can erase cloud state unexpectedly. The prerequisite contract is concrete: Backstage presents a developer portal and catalog, while Crossplane exposes platform APIs as Composite Resources whose compositions create Kubernetes or cloud infrastructure.

Internal platforms shorten delivery through golden paths, but abstractions hide dependencies and become critical software products needing SLOs and support. A safe design limits blast radius, records the last good configuration, and uses kubectl get xrd,composition,claim -A; backstage-catalog list | head as a deterministic rollback checkpoint.

Recover from Crossplane drift

Capture the current state with kubectl get xrd,composition,claim -A; backstage-catalog list | head, then correct the controlling manifest rather than patching a child object; the relevant divergence signal is specific: Publishing a portal entry without RBAC, quotas, or lifecycle ownership creates a button that can provision unsafe resources, and Crossplane deletion policy can erase cloud state unexpectedly.

Key takeaway: Accept the trade-off consciously: Internal platforms shorten delivery through golden paths, but abstractions hide dependencies and become critical software products needing SLOs and support.

How it works, step by step

Step 1 of 4
Platform planner

1. Plan the lifecycle boundary

Inventory versions, capacity, state, backups, and ownership in a reversible plan: Backstage presents a developer portal and catalog, while Crossplane exposes platform APIs as Composite Resources whose compositions create Kubernetes or cloud infrastructure.

Backstage contract → owned state
Key numbers at this step
Goal
Build IDPs that abstract Kubernetes with Backstage portals and Crossplane APIs.
Owner
Backstage

When to use it & trade-offs

What it is

Build IDPs that abstract Kubernetes with Backstage portals and Crossplane APIs. Backstage presents a developer portal and catalog, while Crossplane exposes platform APIs as Composite Resources whose compositions create Kubernetes or cloud infrastructure.

Why it matters: Publishing a portal entry without RBAC, quotas, or lifecycle ownership creates a button that can provision unsafe resources, and Crossplane deletion policy can erase cloud state unexpectedly. The invariant at risk is specific: Backstage presents a developer portal and catalog, while Crossplane exposes platform APIs as Composite Resources whose compositions create Kubernetes or cloud infrastructure. The quickest fact check before changing the design is kubectl get xrd,composition,claim -A; backstage-catalog list | head.

When to reach for it

  • Use Backstage to enforce this invariant: Backstage presents a developer portal and catalog, while Crossplane exposes platform APIs as Composite Resources whose compositions create Kubernetes or cloud infrastructure.
  • Use Crossplane evidence from kubectl get xrd,composition,claim -A; backstage-catalog list | head in reviews and incident timelines. Build IDPs that abstract Kubernetes with Backstage portals and Crossplane APIs.
  • Choose the managed cloud or platform service route only when this cost is justified by governance or scale: Internal platforms shorten delivery through golden paths, but abstractions hide dependencies and become critical software products needing SLOs and support.

When to avoid or be careful

  • Avoid assuming Backstage is complete after YAML submission; the required behavior is concrete: Backstage presents a developer portal and catalog, while Crossplane exposes platform APIs as Composite Resources whose compositions create Kubernetes or cloud infrastructure.
  • Avoid treating the next symptom as random; check the owner and state with kubectl get xrd,composition,claim -A; backstage-catalog list | head first: Publishing a portal entry without RBAC, quotas, or lifecycle ownership creates a button that can provision unsafe resources, and Crossplane deletion policy can erase cloud state unexpectedly.
  • Avoid adopting a heavier platform wrapper before measuring its cost: Internal platforms shorten delivery through golden paths, but abstractions hide dependencies and become critical software products needing SLOs and support.

Native, manual, and managed paths for Backstage

Repeatable infrastructure control
Best for: Build IDPs that abstract Kubernetes with Backstage portals and Crossplane APIs. A concrete incident check is kubectl get xrd,composition,claim -A; backstage-catalog list | head.

Strengths: Backstage presents a developer portal and catalog, while Crossplane exposes platform APIs as Composite Resources whose compositions create Kubernetes or cloud infrastructure.

Watch out: Internal platforms shorten delivery through golden paths, but abstractions hide dependencies and become critical software products needing SLOs and support. Recovery must also recognize this signal: Publishing a portal entry without RBAC, quotas, or lifecycle ownership creates a button that can provision unsafe resources, and Crossplane deletion policy can erase cloud state unexpectedly.

Manual cluster mutation
Best for: Quickly testing the Crossplane assumption with kubectl get xrd,composition,claim -A; backstage-catalog list | head; the expected invariant is: Backstage presents a developer portal and catalog, while Crossplane exposes platform APIs as Composite Resources whose compositions create Kubernetes or cloud infrastructure.

Strengths: kubectl get xrd,composition,claim -A; backstage-catalog list | head gives immediate feedback without first building a platform layer.

Watch out: A manual change can hide drift, and unlike Backstage, it does not make this symptom self-documenting: Publishing a portal entry without RBAC, quotas, or lifecycle ownership creates a button that can provision unsafe resources, and Crossplane deletion policy can erase cloud state unexpectedly.

Managed cloud or platform service
Best for: Teams that need IDP integrated with guardrails; the evidence path is kubectl get xrd,composition,claim -A; backstage-catalog list | head.

Strengths: Platform controls can wrap this exact behavior in policy or dashboards: Backstage presents a developer portal and catalog, while Crossplane exposes platform APIs as Composite Resources whose compositions create Kubernetes or cloud infrastructure.

Watch out: The added platform ownership buys value at this cost: Internal platforms shorten delivery through golden paths, but abstractions hide dependencies and become critical software products needing SLOs and support.

Interview signals & numbers to know

When this topic comes up

  • Interview anchor: Backstage presents a developer portal and catalog, while Crossplane exposes platform APIs as Composite Resources whose compositions create Kubernetes or cloud infrastructure.
  • Trace Backstage to IDP through Crossplane; the invariant is: Backstage presents a developer portal and catalog, while Crossplane exposes platform APIs as Composite Resources whose compositions create Kubernetes or cloud infrastructure.
  • Recognize the symptom: Publishing a portal entry without RBAC, quotas, or lifecycle ownership creates a button that can provision unsafe resources, and Crossplane deletion policy can erase cloud state unexpectedly.
  • Justify the cost: Internal platforms shorten delivery through golden paths, but abstractions hide dependencies and become critical software products needing SLOs and support.
  • Verify with kubectl get xrd,composition,claim -A; backstage-catalog list | head instead of only inspecting YAML.

Benchmarks & rules of thumb

2 -
platform halves: portal experience and provisioned control
1 -
composed claim needs ownership and deletion policy
0 -
developer self-service should bypass policy or cost limits

Common mistakes & follow-ups

Common interview mistakes

  • Debugging only the child object misses the Backstage owner contract: Backstage presents a developer portal and catalog, while Crossplane exposes platform APIs as Composite Resources whose compositions create Kubernetes or cloud infrastructure.
  • Ignoring this telltale condition leads to unrelated changes: Publishing a portal entry without RBAC, quotas, or lifecycle ownership creates a button that can provision unsafe resources, and Crossplane deletion policy can erase cloud state unexpectedly.
  • Repeating kubectl get xrd,composition,claim -A; backstage-catalog list | head without an owner for remediation wastes retry cost. Internal platforms shorten delivery through golden paths, but abstractions hide dependencies and become critical software products needing SLOs and support.

Likely interviewer follow-ups

  • How would API output and runtime evidence prove this behavior: Backstage presents a developer portal and catalog, while Crossplane exposes platform APIs as Composite Resources whose compositions create Kubernetes or cloud infrastructure?
  • Which owner object, logs, and Events would you inspect for this symptom-Publishing a portal entry without RBAC, quotas, or lifecycle ownership creates a button that can provision unsafe resources, and Crossplane deletion policy can erase cloud state unexpectedly-?
  • At what threshold would this cost become unacceptable: Internal platforms shorten delivery through golden paths, but abstractions hide dependencies and become critical software products needing SLOs and support?
Interview tip: Interview sequence: state the invariant, run kubectl get xrd,composition,claim -A; backstage-catalog list | head, name the failure, then justify the cost. Invariant: Backstage presents a developer portal and catalog, while Crossplane exposes platform APIs as Composite Resources whose compositions create Kubernetes or cloud infrastructure. Failure: Publishing a portal entry without RBAC, quotas, or lifecycle ownership creates a button that can provision unsafe resources, and Crossplane deletion policy can erase cloud state unexpectedly. Cost: Internal platforms shorten delivery through golden paths, but abstractions hide dependencies and become critical software products needing SLOs and support.

Knowledge check

Loading quiz

Put it into practice

Practice related interview Q&A

Apply Platform Engineering: Building Internal Developer Platforms (Backstage + Crossplane) with generative AI interview Q&A and hands-on practice.

Open DevOps Q&A →Tech Learn Q&A
Previous topic
CKA, CKAD & CKS Certification Exam Roadmap & Tips
Next topic
Capstone 1: Deploying a Highly Available Microservices Stack with Helm, Ingress & TLS