← All insightsCareer

Pulumi interview questions, with answers

Nir Geier, CodeWizard · 24 November 2025 · 3 min read · Beginner

Preparing for a DevOps interview that covers Pulumi? These questions come up again and again - here are strong, concrete answers.

Q: What is Pulumi and why use it?

Pulumi lets you define cloud infrastructure using general-purpose languages (TypeScript, Python, Go, C#), bringing loops, functions, tests and IDE support to IaC while keeping a Terraform-like plan/apply model.

  • Use real languages with loops, functions and unit tests
  • Strong typing and IDE autocomplete for cloud resources
  • Reuse existing packages and testing frameworks

Q: What are the best practices you follow?

  • Keep programs declarative; push logic into tested helpers
  • Use pulumi config set --secret for encrypted config
  • Write unit tests with the language's normal test tools

Q: What mistakes have you seen?

  • Putting imperative logic with side effects in resource code
  • Leaking secrets into stack config without encryption
  • No unit tests despite using a real language

Q: Show a basic configuration

An S3 bucket defined in TypeScript.

typescript
import * as aws from "@pulumi/aws";

const assets = new aws.s3.BucketV2("assets", {
  bucket: "acme-assets",
  tags: { Environment: "prod" },
});

export const bucketName = assets.bucket;

Want senior help putting Pulumi to work - or a team bootcamp on it? CodeWizard runs Israel's largest DevOps community and embeds named senior engineers with a transparent hours log. Book a free consult or explore the Academy.

Like where this is going?

Get hands-on help from the engineers who write these posts.

Book a free consult