Companies / HashiCorp HIGH-SCALE PRODUCT & INFRASTRUCTURE
HashiCorp SRE / Platform Engineer interview questions HashiCorp builds Terraform, Vault, Consul and Nomad, and interviews for the depth its own tools demand. State handling, provider behaviour, locking and drift are treated as engineering problems rather than command syntax. Since the move of Terraform to the BUSL license and the fork that became OpenTofu, candidates are also expected to discuss licensing and governance without getting partisan about it.
Company-specific hiring details on this page are retained preparation notes and have not been verified claim by claim for your role and location. Confirm round structure, timing and tool rules with your recruiter.
28 questions tagged16 concepts to master4 core topicsrole: SRE / Platform Engineer
The HashiCorp SRE / Platform Engineer interview process Partial public data Reported outline of the HashiCorp SRE / Platform Engineer interview experience. These stages and timings are retained preparation notes, not a confirmed schedule.
Role Infrastructure Engineer, Solutions and Platform Engineer
1 Recruiter screen Background and which product area.
2 Technical screen Terraform beyond syntax: state semantics, backends, locking, drift and module boundaries.
3 Loop: infrastructure design Multi-account or multi-cloud governance, policy as code, and how teams deploy independently without stepping on each other.
4 Loop: secrets and identity Dynamic secrets, lease and renewal behaviour, and rotating a credential many services hold.
5 Loop: coding Go for engineering roles, scripting for solutions roles.
6 Loop: values The company publishes its principles and interviews against them.
WHAT THEY'RE EVALUATING
› Explains why count causes a destroy and recreate that for_each avoids› Discusses the BUSL and OpenTofu split as a governance question, not a loyalty test› Designs state isolation before designing modulesThese retained details have not been verified claim by claim against dated sources for your role, level and location. Round order, duration and tool policies may differ. Confirm them with your recruiter before planning around this outline; an official careers link alone does not substantiate every detail above.
Practice questions tagged for HashiCorp Company tags are editorial preparation labels, not evidence that these questions were asked by the employer.
28 questions · 15 unlocked for you
01
Walk me through terraform init, plan, apply and destroy. What is each one actually doing? ▼ easy New HashiCorp Amazon & AWS Infosys unlocked
Four commands, and the interesting one is plan, because it is the only point where you see the three-way comparison Terraform is actually making before anything changes.
03
count versus for_each in Terraform: when does list ordering cause a destroy and recreate? ▼ hard ★ Essential HashiCorp Google Amazon 3 notes & comments unlocked
The Terraform question that actually filters. Everyone knows both meta-arguments exist; the answer is about how state addresses resources, and why an index is a fragile key.
04
Name three things in the Terraform state file, and explain why it is a security artifact rather than a cache. ▼ medium ★ Essential HashiCorp JPMorgan Chase Accenture 3 notes & comments unlocked
Everyone can say state maps config to reality. The follow-up that separates candidates is what else is in the file, and what that means for who may read it.
05
Two engineers run terraform apply against the same backend at the same time. What happens? ▼ medium HashiCorp Accenture Infosys 2 notes & comments unlocked
Everyone answers state locking. The follow-up is what happens when locking is not configured, and what you do with a stale lock at 2am, which is where the answer gets real.
08
One Terraform module tree, three environments. How do you lay out state so a production apply can never touch anything else? ▼ medium HashiCorp Accenture Infosys unlocked
State layout needs an access boundary. Separate environment credentials and restrict who can assume them; a directory name cannot contain a mistaken apply.
09
Five hundred resources were built by hand over three years and must come under Terraform. Walk me through importing them without breakage. ▼ hard ★ Essential HashiCorp Accenture IBM unlocked
The services-market question that decides who can actually run a migration. Import is the easy part; the hard parts are resource-for-resource fidelity and proving the first plan is empty.
10
Resources keep changing outside Terraform and plans show surprises weeks later. How do you detect drift early, and who may change things? ▼ hard HashiCorp Salesforce Goldman Sachs unlocked
Drift is a governance problem wearing a tooling costume. Detection is easy; the scored content is attribution (who changed it and why) and the policy decision that most teams avoid making.
11
When does duplicated Terraform code deserve extraction into a module, and how do you version modules so consumers do not break? ▼ medium ★ Essential HashiCorp Accenture Infosys unlocked
Extract too early and you maintain a wrapper nobody thanks you for. Here is the extraction trigger, the semver contract that maps onto Terraform surfaces, and the parallel-release path for breaking changes.
13
An apply ran in an order that broke the deploy. How does Terraform decide ordering, and where does depends_on fit? ▼ medium HashiCorp Flipkart Uber unlocked
Everyone recites that depends_on forces ordering. The stronger half of the answer is the graph you never see: implicit edges from references, why file layout orders nothing, and what explicit edges cost.
14
You spot a local-exec provisioner in a production Terraform module. Make the case for keeping or killing it. ▼ easy HashiCorp TCS Infosys unlocked
HashiCorp calls provisioners a last resort and expects you to say why in concrete terms: tainted resources, invisible drift, SSH reachability. Then name what replaces each legitimate use.
15
Pick and defend a remote state backend for a 40-engineer platform. Compare the realistic options. ▼ medium HashiCorp Goldman Sachs Accenture unlocked
The table is half the answer. The other half is who holds credentials, who repairs a stuck lock at night, and why the boring option usually wins until RBAC demands grow teeth.
16
Trace a database password from your Terraform pipeline to the resource. Where can it leak, and what closes each hole? ▼ hard ★ Essential JPMorgan Chase Goldman Sachs Razorpay unlocked
sensitive = true stops the echo, not the storage. The complete answer walks the value through git, plan artifacts, state, and provider side effects, naming which mitigation closes which leak.
17
Design the CI checks for a Terraform repository. What runs at each stage, and what can each check never catch? ▼ hard GitLab Atlassian Netflix unlocked
A green plan is evidence, not proof. Build the pyramid: lint in seconds, policy on every PR, real-cloud verification only where shared modules and money justify the burn.
18
A routine change wants to replace a production resource. How do Terraform updates become replacements, and what controls that? ▼ medium HashiCorp Flipkart Swiggy unlocked
One ForceNew attribute turns an edit into a destroy. Know the schema mechanics, the four lifecycle levers, and why create_before_destroy trades downtime for name collisions.
19
An apply planned to destroy and recreate the production database. Which lifecycle arguments belonged on that resource? ▼ medium ★ Essential Razorpay Amazon & AWS HashiCorp ○ sign in
Three lifecycle arguments influence replacement and drift handling: create_before_destroy, prevent_destroy, and ignore_changes. Each earns its place through an incident story, and each has a failure mode that is worth naming before you reach for it.
23
Should our Terraform runs move from Jenkins agents to a managed platform like HCP Terraform? ▼ medium GitLab Atlassian HashiCorp ○ sign in
Managed platforms sell governance, not execution: locked state with RBAC, plans on every pull request, and audit logs. Price them per resource under management against the engineering hours self-hosting quietly burns.
28
Some teams moved to OpenTofu after the license change. What actually differs, and how do you stay portable? ▼ easy GitLab Cloudflare Red Hat ○ sign in
OpenTofu is the Linux Foundation fork of Terraform 1.5 under MPL, drop-in compatible for most code, with distinct features such as native state encryption. Removed blocks and provider mocking also exist in Terraform. Portability survives by pinning version floors and testing both binaries in CI.
29
A resource was deleted by hand in production and every plan now wants to recreate it. Walk me through safe state surgery. ▼ hard ★ Essential JPMorgan Chase Walmart Global Tech Infosys ◆ premium
state rm, import, moved and removed blocks each treat a different wound. The commands are the easy part. What makes the operation safe is the backup, lock and plan ritual wrapped around touching production state.
34
A team wants to generate Terraform from YAML so non-engineers can ship infrastructure. Where do you agree, and where does it rot? ▼ easy HashiCorp Meta Apple ◆ premium
Generation works when the inputs are genuinely data and dies when YAML grows loops. The line between encoding decisions and writing a worse programming language is where these interviews are actually scored.
40
A Terraform module passes every mocked test, but its first real apply fails. What did the tests prove, and what would you add? ▼ hard HashiCorp GitLab Databricks ◆ premium
A mock can confirm that a module requests private storage while missing the IAM denial that stops creation. Separate configuration contracts from provider behavior, and make the costly tests deliberate.
39
Every Kubernetes pod runs a pause container nobody deployed. Why does it exist? ▼ easy Microsoft HashiCorp Cloudflare ◆ premium
It sounds like trivia and screens for something real: whether you understand that a pod is a shared namespace boundary with an owner, not just a group of containers.
48
Why do Terraform modules and application artifacts need different versioning disciplines? ▼ medium HashiCorp Accenture Salesforce ◆ premium
Application redeployment and module downgrades both require current-state checks. The asymmetry that forces expand-contract discipline and plan-reviewed upgrades instead of promote-and-rollback pipelines.
39
The secrets manager blipped for ten minutes overnight, and applications restarting hours later are still failing. Explain the cascade. ▼ medium Salesforce JPMorgan Chase Stripe ◆ premium
The outage window closed, but every process born since then still tries to fetch secrets at boot with nothing to fall back on. Why restarts keep reopening an incident that already ended.
02
What does a secrets manager like Vault give you that an encrypted environment variable does not? ▼ easy New HashiCorp JPMorgan Chase SAP unlocked
Encryption is the part people focus on and the least interesting part. What you are buying is short-lived credentials, a revocation path and an audit trail, none of which an environment variable can give you.
29
Two pods both believed they held the lock, so the nightly job ran twice. Design locking that survives stalls, pauses, and clock lies. ▼ expert ★ Essential HashiCorp Uber Cloudflare ◆ premium
Leases prevent dead holders but not overlapping ones. The staff-level answer is fencing tokens and a candid account of why quorum lock services without downstream checks are still probabilistic.
30
Database passwords sit in env files on two hundred VMs and nobody has rotated them in years. Design the fix that holds permanently. ▼ hard HashiCorp JPMorgan Chase Red Hat ◆ premium
This is a machine identity problem wearing a secrets costume. Candidates who start at encryption miss that authentication of the caller and delivery mechanics are the real design space.
33
Design config distribution to fifty thousand VMs: versioned bundles, staged rollouts, and rollback that actually works. ▼ hard Netflix Google Meta ◆ premium
Drawing an agent that polls a server is the easy third. The interview is about partial applies, fleet-versus-world state, and why rollback must be a pointer flip, never a reverse edit.
45
Half your team's Terraform is now written by an assistant. What changes about how you run reviews and pipelines? ▼ hard HashiCorp GitLab GitHub 2 notes & comments ◆ premium
Generated infrastructure code is plausible, fluent and confidently wrong in specific ways. The volume goes up, the reviewer attention per line goes down, and the controls that used to be optional stop being optional.
More practice for HashiCorp applicants Additional exercises from the topics selected for this guide. Choose those that match your job description.
8 questions · 8 unlocked for you
01
Design a highly available three-tier application on AWS. What actually fails, and what does each layer of redundancy buy? ▼ easy New Amazon & AWS Accenture Infosys unlocked
Multi-AZ is the answer and the reason matters more than the acronym. Each tier fails differently, and the database is the one where high availability means a failover with a real gap, not zero interruption.
04
Azure Load Balancer, Application Gateway, Front Door: which one, and why are there three? ▼ easy New Microsoft Infosys TCS unlocked
One is layer 4 and regional, one is layer 7 and regional, one is layer 7 and global. Answer on those two axes and the choice makes itself, including when you need two of them together.
14
Walk me through hardening a server, from fresh install to production-ready. ▼ easy IBM Accenture TCS unlocked
Experienced answers are ordered and verifiable: minimal base, benchmark applied as code, identity and exposure next, then continuous proof it stayed that way. Checklists recited out of order are the tell.
02
How is an Azure environment organised? Explain tenants, management groups, subscriptions and resource groups. ▼ easy New Microsoft Accenture Infosys unlocked
Four levels, and the two that matter operationally are the subscription, where quotas and billing live, and the resource group, which is the unit you delete. Getting the boundaries wrong is expensive to unpick later.
03
How should an app running in Azure authenticate to other Azure services without storing a secret? ▼ easy New Microsoft Accenture SAP unlocked
Service principal with a client secret is the answer people give and the one that leaves a credential in a config file. Managed identity is the same object with the secret handled by the platform.
04
SAST, DAST, SCA and IAST: where does each belong in a pipeline, and what can none of them see? ▼ medium JPMorgan Chase Goldman Sachs Razorpay 2 notes & comments unlocked
Easy to define and easy to fail. The scoring half is where each gate sits, what it does to build time, and the honest admission of what the whole set misses.
08
SBOM, SLSA and Sigstore all address supply chain security. What does each one actually prove? ▼ hard ★ Essential Google GitLab JPMorgan Chase 2 notes & comments unlocked
Three terms that get used interchangeably and answer three different questions. The one that makes them operational is the admission rule at the end: no provenance, no deploy.
10
You inherit 300 cloud accounts and thousands of roles. How do you get to least privilege without breaking production? ▼ hard ★ Essential Amazon & AWS JPMorgan Chase Goldman Sachs unlocked
Everyone endorses least privilege; few can describe how they would measure over-permission across a fleet. The scoring answer names the evidence source, the tiered remediation, and the break-glass hatch that makes it survivable.
Study topics for HashiCorp applicants Our topic selections, ordered easy to hard within each track.
Concepts behind the practice questions Study the mechanisms used in the exercises. Foundational concepts are public, core concepts require a free account, and advanced concepts require Premium.
🏗️ DECLARATIVE INFRASTRUCTURE🛡️ SECURITY IN THE PIPELINE🧰 PLATFORM & CLOUD ECONOMICSWhere to apply, and official HashiCorp resources Straight from HashiCorp: open roles and the company's own hiring guidance. Prep here, then apply there.
External links to HashiCorp's own pages. Roles and processes change; always confirm on the official site.
HASHICORP INTERVIEW FAQ
What is the HashiCorp SRE / Platform Engineer interview process? ▲
Infrastructure Engineer, Solutions and Platform Engineer. Stages: Recruiter screen → Technical screen → Loop: infrastructure design → Loop: secrets and identity → Loop: coding → Loop: values. Key focus: Explains why count causes a destroy and recreate that for_each avoids. Compiled from public reports; loops change over time, so confirm the exact rounds with your recruiter.
How deep does Terraform questioning go? ▼
Past syntax. Expect state file semantics and why it must be protected, remote backends with locking, when count causes a destroy and recreate that for_each would have avoided, import and state moves, and how you detect drift on a schedule rather than by accident.
Will they ask about OpenTofu and the license change? ▼
Often, and the question is really about judgement. A good answer explains that Terraform moved to BUSL 1.1 in 2023, that OpenTofu forked from the last MPL release and is now a Linux Foundation project, and what that means for a company choosing a direction today.
What Vault topics come up? ▼
Dynamic secrets over static ones, authentication methods and identity, lease and renewal behaviour, unseal and recovery design, and how you rotate a credential that two hundred services hold without an outage.
Walk into your HashiCorp SRE / Platform Engineer interview ready Six months with every answer open, easy through expert, and the whole concept curriculum with them. Paid once, nothing renews. The first 18 answers in each topic are readable without an account.
Or create a free account to unlock more free answers per topic.
Other SRE / Platform Engineer interviews to prep Companies whose loops test the same tracks as HashiCorp's.
Independent and not affiliated with HashiCorp. All trademarks belong to their owners.