CS FundamentalsHardProduct-company DevOps interview
A team uses Terraform. Someone changes a security-group rule by hand in the cloud console. What is this called, and what happens at the next terraform plan?
- A. Rollback; Terraform ignores manual changes
- B. Configuration drift; the plan shows a difference and applying it restores the declared state
- C. Blue-green switching; Terraform creates a second environment
- D. Immutable infrastructure; nothing can change
Correct answer: B. Configuration drift; the plan shows a difference and applying it restores the declared state
Declarative IaC compares desired state with real state. Manual edits create drift, which plan reveals and apply reverts - one reason console changes are discouraged.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- How many of these are among the four DORA key metrics of software delivery performance: (1) deployment frequency, (2) lead time for…
- A blue-green deployment keeps two identical production environments and switches the router from blue (old) to green (new). Which…
- A database server is upgraded from 8 to 32 vCPUs to handle more load, while a stateless web tier grows from 4 to 12 identical instances…
- A product page is served using cache-aside with a 10-minute TTL. An admin updates a price in the database, and for several minutes some…
- A service spreads 6 instances across 3 availability zones in one region (2 per zone) and needs at least 4 instances running to handle peak…
- A test in the CI suite passes and fails randomly on the same commit because it depends on timing. Developers have started re-running…