Pulumi is a modern infrastructure as code (IaC) tool that simplifies cloud resource management. With its developer-friendly approach, Pulumi enables you to use familiar programming languages to define, deploy, and manage cloud infrastructure. This guide offers 30 multiple-choice questions (MCQs) divided by topic, covering essential Pulumi concepts like installation, features, and comparisons with other IaC tools. Perfect for beginners preparing for interviews or assessments!
1. Introduction to Pulumi
What is Pulumi primarily used for? a) Software testing b) Infrastructure management c) Cloud monitoring d) Data analysis
Which programming languages does Pulumi support? a) Python and JavaScript only b) Java, Python, and C++ c) Multiple languages like TypeScript, Python, and Go d) SQL and R
Pulumi integrates with which of the following cloud providers? a) AWS, Azure, Google Cloud b) DigitalOcean only c) On-premise data centers only d) None of the above
What type of tool is Pulumi classified as? a) Continuous Integration tool b) Infrastructure as Code tool c) Project management tool d) Virtualization tool
What is the main advantage of Pulumi compared to traditional IaC tools? a) Graphical user interface b) Use of real programming languages c) No need for cloud accounts d) Free for enterprise use
2. Key Features and Advantages
Which of the following is a key feature of Pulumi? a) Command-line only b) State stored locally c) Multi-cloud support d) Hardware resource allocation
How does Pulumi handle state management? a) Locally only b) Uses a centralized backend c) Requires manual tracking d) Doesn’t maintain state
Pulumi allows collaboration through which feature? a) Access Control Lists b) Cloud Logging c) Shared state storage d) Manual configuration
What is one advantage of using Pulumi over Terraform? a) Supports scripting with Bash b) Integrates directly with IDEs c) Offers immutable infrastructure d) Eliminates code completely
Pulumi offers support for which type of development? a) Front-end development only b) Cloud-native and serverless applications c) Database-only projects d) Local application deployment
3. Installing Pulumi CLI
Which command installs Pulumi on macOS using Homebrew? a) brew install pulumi b) npm install pulumi c) apt-get install pulumi d) yum install pulumi
What is required to install Pulumi CLI? a) Admin rights on the system b) A Pulumi account c) A valid license key d) All of the above
Which dependency is optional for Pulumi CLI? a) Node.js b) Python c) Terraform binary d) Docker
Where can Pulumi installation packages be found? a) Official Pulumi GitHub repository b) Cloud provider console c) Third-party forums d) Local system binaries
Which platform is Pulumi compatible with? a) Windows only b) Linux and macOS only c) All major operating systems d) Mobile devices
4. Pulumi Concepts: Stacks, Projects, State
In Pulumi, a stack represents: a) A collection of cloud resources b) A single server configuration c) A group of CLI commands d) Source code versioning
What does Pulumi use to manage infrastructure changes? a) Change tracking logs b) State files c) Static YAML templates d) Cloud provider configurations
A Pulumi project is best described as: a) A single script file b) A collection of stacks and configurations c) A predefined AWS setup d) A template for containerized apps
What is a primary use of state in Pulumi? a) Debugging scripts b) Storing configuration details c) Keeping track of resource deployments d) None of the above
Stacks in Pulumi can be used to: a) Define programming languages b) Manage different environments c) Build serverless apps only d) Test application performance
5. Comparing Pulumi to Terraform and Other Tools
Pulumi vs Terraform: Which is true? a) Pulumi uses HCL; Terraform uses Python b) Pulumi supports imperative programming c) Both support only AWS d) Terraform allows GUI development
Pulumi is more flexible because: a) It uses configuration files b) It is written in Java c) It supports modern programming languages d) It stores state locally
Terraform differs from Pulumi by: a) Not supporting multi-cloud setups b) Using declarative language exclusively c) Providing IDE support d) Being free of charge
What is a key similarity between Pulumi and Terraform? a) Both require a cloud account b) Both support scripting in JavaScript c) Both manage cloud resources via IaC d) Neither tracks state files
Which IaC tool focuses primarily on YAML templates? a) Pulumi b) Terraform c) AWS CloudFormation d) Chef
6. Setting Up Your First Pulumi Project
What command initializes a new Pulumi project? a) pulumi init b) pulumi create c) pulumi start d) pulumi setup
What file is critical for defining a Pulumi project? a) index.html b) package.json c) Pulumi.yaml d) config.json
Pulumi configurations can be stored in: a) GitHub repositories only b) Environment variables c) Custom JSON files only d) None of the above
Which command previews changes in Pulumi? a) pulumi deploy b) pulumi diff c) pulumi preview d) pulumi apply
After setting up a Pulumi project, how do you deploy resources? a) pulumi up b) pulumi down c) pulumi deploy d) pulumi save
Answers
QNo
Answer (Option with the text)
1
b) Infrastructure management
2
c) Multiple languages like TypeScript, Python, and Go