SeniorCI/CD & DevOps for QA
What is infrastructure as code and how does it relate to test environments?
- IaC
- Terraform
- environment management
Answer it first, then compare. Nothing here is saved or scored.
Model answer
IaC defines infrastructure (servers, databases, networks) in version-controlled configuration files (Terraform, CloudFormation, Pulumi). For testing: (1) Reproducible environments, spin up identical test infrastructure on demand. (2) Environment parity - test environments match production configuration. (3) Self-service - QA can create/destroy environments without DevOps bottleneck. (4) Cost control - destroy environments when not in use. (5) Audit trail - all changes are reviewed and tracked in Git. Test environments should be defined in IaC alongside the application code.
What interviewers listen for
- Pipeline shapeYou design stages by failure cost and runtime budget, not by tool feature lists.
- Parallelisation craftYou can shard a real suite and explain the state-isolation choices you made.
- Quality gatesYou know which checks block merge, which warn, and why those defaults are correct.
- Shift-left fluencyYou talk about ownership transfer, not just earlier execution.