Spacelift Interview Preparation Guide (2027)

A four-week Spacelift interview prep plan with 24 answered questions on stacks, runs, OPA policies, contexts, worker pools and drift detection.

Sep 18, 2025 - 15:57
Nov 14, 2026 - 02:25
 0  31
TOPICInterview Q & APractical guide
Spacelift Interview Preparation Guide (2027)

To prepare for a Spacelift interview, learn how Spacelift runs infrastructure as code through stacks and runs, how its Open Policy Agent policies control plans, approvals and triggers, how contexts and worker pools work, and how drift detection behaves. Then practise explaining one end-to-end workflow, from pull request to applied change, out loud.

This guide is a study plan plus 24 numbered questions with answers. It is meant as the starting point in our Spacelift series. When you have worked through it, move on to the Spacelift engineer interview questions and the scenario-based Spacelift questions. Concepts were checked against the Spacelift documentation in November 2026.

Key takeaways

  • Spacelift supports Terraform, OpenTofu, Terragrunt, Pulumi, AWS CloudFormation, Kubernetes and Ansible.
  • A stack connects a repository, a tool and its state. Runs come in three kinds: tracked runs that deploy, proposed runs that preview, and tasks that run one-off commands.
  • Policies are written in Rego for Open Policy Agent. Documented types include plan, approval, push, trigger, login, notification and intent policies. Access policies have been replaced by space access control.
  • Contexts hold reusable configuration such as environment variables and files. Blueprints create stacks from a template.
  • Drift detection only works on private worker pools. You schedule it with cron rules, and optional reconciliation starts a tracked run when drift is found.
  • We found no certification in Spacelift's documentation, so interviews test hands-on understanding.

A four-week study plan

Most candidates know Terraform already and need to learn how Spacelift changes the workflow around it. The plan below assumes a few hours a week and either access to a Spacelift account or careful reading of the documentation.

WeekFocusHands-on goal
1Stacks, runs, stateCreate a stack from a Git repo and apply a small Terraform or OpenTofu config
2PoliciesWrite a plan policy that warns on deletions and an approval policy for production
3Contexts, dependencies, modulesShare variables through a context, link two stacks, publish a module
4Workers and driftRead the private worker setup, schedule drift detection, practise scenario answers

Spend the last few days explaining each concept in under a minute. Interviewers often ask you to walk them through how you would set up Spacelift for a team, so rehearse that story with your own example: a network stack, an application stack depending on it, a policy that blocks risky changes and drift detection on production.

Core concepts

1. What is Spacelift?

Spacelift is a platform that runs infrastructure as code workflows. It connects to your Git repositories, runs plans and applies for supported tools, manages state if you want it to, and applies policies, approvals and integrations around those runs. Teams use it in place of running IaC from laptops or generic CI jobs.

2. Which tools does Spacelift support?

The documentation lists Terraform, OpenTofu, Terragrunt, Pulumi, AWS CloudFormation, Kubernetes and Ansible. In an interview, say which of these you have used with Spacelift and be honest about the rest.

3. What is a stack?

A stack is the central unit in Spacelift. It ties together a source repository and branch, a project directory, the IaC tool and its version, state, environment configuration and the policies that apply. Each environment of each component usually gets its own stack.

4. What kinds of runs are there?

A tracked run is a deployment: it plans and, after any required confirmation or approval, applies changes. A proposed run is a preview, typically triggered by a pull request, that plans without applying. A task runs an arbitrary command against the stack, useful for one-off operations such as importing a resource.

5. Should you let Spacelift manage state?

Spacelift offers state management, which saves setting up a separate backend and keeps state access behind Spacelift's permissions. Some teams prefer their own backend for portability or existing tooling. Either is defensible; explain who can read state and how it is backed up.

6. What is a context?

A context is a reusable bundle of configuration, such as environment variables and mounted files, that you attach to many stacks. Instead of repeating cloud region settings or shared credentials on every stack, you define them once and attach the context.

7. What are Blueprints?

Blueprints are templates for creating stacks. A platform team defines a blueprint with the correct settings, and other teams create new stacks from it by filling in a few inputs. They help keep new stacks consistent.

8. What are stack dependencies?

They let one stack depend on another so runs happen in the right order. For example, an application stack can depend on a network stack, so a change to the network finishes before the application stack runs. Practise explaining how outputs from one stack become inputs for another in your setup.

9. What is the module registry?

Spacelift has a module registry where teams publish reusable modules for their stacks to consume. Ask how the employer versions and tests modules there. Our guide to reusable Terraform modules covers module design itself.

Policies

10. What language are Spacelift policies written in?

Rego, the language of Open Policy Agent. Each policy type receives a structured input document for its decision point and returns a result that depends on the type: login, approval and push policies return true or false, while plan, task and initialization policies return a set of messages, with plan policies using deny and warn rules.

11. Name the policy types and what each controls.

Plan policies evaluate the planned changes and can deny or warn. Approval policies decide whether a run has enough approvals to proceed. Push policies decide how Git events map to runs, for example which pushes trigger tracked or proposed runs. Trigger policies start runs on other stacks after a run finishes. Login policies control who can sign in and with what role. Notification policies route notifications, and intent policies are a newer type listed in the documentation. Access policies used to govern stack access, but the documentation now says they have been replaced by space access control, so mention Spaces if asked. Check the current docs for any type before using it in production, since policy features change over time.

12. Give an example of a useful plan policy.

Deny any plan that deletes a database or storage resource unless a specific label is set on the stack, and warn when a plan changes more than a set number of resources. This catches accidental destructive changes before anyone approves them.

13. How would you require two approvals for production?

Write an approval policy that checks the stack's labels for a production marker and requires at least two approvals from members of a specific team before the run can be applied. Non-production stacks can pass with one or none.

14. How do push policies help monorepos?

In a monorepo, a push may only touch one directory. A push policy can check which files changed and only trigger runs for stacks whose project directory was affected, which avoids running every stack on every commit.

15. How do you test policies?

Write Rego unit tests with sample inputs, run them in CI, and attach new policies to non-production stacks first. Spacelift's policy workbench helps here: add a sample rule and Spacelift captures each sampled evaluation's input and result, which you can replay in the simulation panel. Only account administrators can use it, and it keeps recent evaluations for a limited time.

Workers and drift

16. What is a worker pool?

Workers execute runs. Spacelift provides public workers, and you can run private worker pools in your own infrastructure. The documentation describes Docker-based workers and Kubernetes workers for private pools.

17. Why run private workers?

They run inside your network, so they can reach private resources and use cloud identities you control without giving Spacelift's shared workers access. Some features also need them; drift detection is the main example.

18. How does drift detection work?

You create a drift detection schedule on a stack with one or more cron rules. At those times Spacelift runs a check to see whether real infrastructure differs from the code. The documentation states that drift detection only works on private workers.

19. What does reconciliation do?

If you enable it and drift is found, Spacelift triggers a tracked run to bring infrastructure back in line with the code. That run respects the stack's auto-deploy setting, so with auto-deploy off it waits for confirmation. Reconciliation does not trigger if the stack's head commit changed during the detection run. Without reconciliation, drifted resources still show in the resources view.

20. When would you leave reconciliation off?

When drift might be an intentional emergency fix that someone needs to fold back into code, or on stacks where an automatic apply could cause an outage. Alert on drift and let a person decide.

Scenarios

21. Walk through a change from pull request to production.

A developer opens a pull request. A push policy triggers a proposed run, and the plan appears on the pull request. A plan policy flags anything risky. After review and merge, a tracked run starts on the production stack. An approval policy requires the right approvals, then the change applies. Trigger policies or stack dependencies start dependent stacks afterwards.

22. A tracked run is stuck waiting. What do you check?

Whether it needs confirmation because auto-deploy is off, whether an approval policy is waiting for approvals, and whether a private worker is available to pick it up. Worker pool capacity and health are common causes when many stacks run at once.

23. Someone changed a security group in the console. How do you handle it?

Drift detection on the stack should flag it. Talk to the person to find out if the change was needed. If so, update the code and run it through review; if not, let reconciliation or a tracked run revert it. Then tighten console permissions.

24. How would you onboard fifty existing Terraform workspaces?

Group them by component and environment, create a blueprint for common settings, set up contexts for shared configuration, move or connect state carefully with proposed runs to confirm no changes, and attach policies before enabling auto-deploy. Do a pilot with a few low-risk stacks first.

Spacelift compared with running IaC in generic CI

Interviewers often ask why a team would pay for Spacelift instead of running terraform plan and apply in their existing CI. Have a balanced answer ready. Generic CI can run any command, but the team has to build everything around it: storing and locking state, showing plans on pull requests, deciding who may approve production applies, detecting drift, sharing configuration across many pipelines and running jobs inside private networks. Spacelift provides those pieces as features, with policies written in Rego so the rules are code that can be reviewed and tested.

The trade-off is another platform to learn, pay for and depend on. Small teams with a handful of stacks may be fine with generic CI and careful conventions. Teams with many stacks, several environments and compliance needs tend to get more value from a dedicated platform. If you have used both, describe a concrete moment where one approach helped or hurt, such as an approval rule that blocked a risky change, or a drift alert that caught a manual console edit.

Common mistakes in Spacelift interviews

Candidates often describe Spacelift as "Terraform CI" and stop there. Show that you understand what policies, approvals and drift detection add. Another mistake is claiming experience with every policy type; pick two you have written and explain them well. Finally, do not quote limits or pricing from memory. Spacelift's features change, so say you would check the current documentation.

It also helps to connect Spacelift to the wider workflow. Interviewers like candidates who can compare it with running Terraform from generic CI or with other IaC platforms, and who understand GitOps principles. Our guides on infrastructure as code tools and GitOps give that context, and the 200+ DevOps interview questions guide covers the rest of the stack. Our Terraform training page covers the IaC base that Spacelift builds on.

Frequently asked questions

Is there an official Spacelift certification?

We found no certification in Spacelift's documentation. Prepare for Spacelift as a hands-on interview topic.

What tools can Spacelift run?

Terraform, OpenTofu, Terragrunt, Pulumi, AWS CloudFormation, Kubernetes and Ansible, according to the Spacelift documentation.

What language are Spacelift policies written in?

Rego, the policy language of Open Policy Agent.

Does drift detection work on public workers?

No. The Spacelift documentation states that drift detection only works on private workers.

What is the difference between a tracked run and a proposed run?

A tracked run deploys changes after any confirmation or approval. A proposed run previews changes, usually for a pull request, without applying them.

What is a Spacelift context?

A reusable set of environment variables and files that you attach to many stacks instead of repeating configuration.

How long should I prepare for a Spacelift interview?

If you already know Terraform, about four weeks of part-time study and practice covers stacks, policies, contexts, workers and drift well enough to discuss them in depth.

References

Interested in learning more?Get a callback from our training advisors.

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Angry Angry 0
Sad Sad 0
Wow Wow 0
Mridul I am a passionate technology enthusiast with a strong focus on DevOps, Cloud Computing, and Cybersecurity. Through my blogs at DevOps Training Institute, I aim to simplify complex concepts and share practical insights for learners and professionals. My goal is to empower readers with knowledge, hands-on tips, and industry best practices to stay ahead in the ever-evolving world of DevOps.