Question 400
The Terraform change owner at Brightside Cloud Works seeks a verifiable outcome for: A configuration creates the same resource block manually twenty times for a variable number of application replicas. Which controlled check would validate the remediation?
Explanation
Correct Answer
Changing desired replica inputs alters only the expected instance count or keys in the plan. This directly verifies the corrective action: Use count or for_each appropriately to generate repeatable resource instances from stable inputs. The measured result specifically addresses the failure at Brightside Cloud Works: A configuration creates the same resource block manually twenty times for a variable number of application replicas.
Incorrect Answers
The dependency graph orders the instance after the access policy during the controlled plan/apply. This evidence would validate a DIFFERENT correction: Use an explicit depends_on when no usable data reference expresses the real dependency. That different correction addresses: A compute instance refers to an access policy only by a literal name and Terraform may create it before the policy exists. It does not establish that the Brightside Cloud Works issue has been corrected: A configuration creates the same resource block manually twenty times for a variable number of application replicas. The relevant measured outcome is: Changing desired replica inputs alters only the expected instance count or keys in the plan.
A second plan against unchanged configuration and infrastructure proposes no unnecessary new resources. This evidence would validate a DIFFERENT correction: Use Terraform's declarative resource definitions and plan/apply reconciliation instead of imperative replay of creation commands. That different correction addresses: An operator treats Terraform as a one-time shell script and expects it to replay every creation command identically on each run. It does not establish that the Brightside Cloud Works issue has been corrected: A configuration creates the same resource block manually twenty times for a variable number of application replicas. The relevant measured outcome is: Changing desired replica inputs alters only the expected instance count or keys in the plan.
The bucket is tracked by one responsible state and downstream plans do not fight over its settings. This evidence would validate a DIFFERENT correction: Assign a single owner state for the object and let other teams consume its outputs or a read-only lookup. That different correction addresses: An operator imports the same remote bucket into two independent root states to share responsibility between teams. It does not establish that the Brightside Cloud Works issue has been corrected: A configuration creates the same resource block manually twenty times for a variable number of application replicas. The relevant measured outcome is: Changing desired replica inputs alters only the expected instance count or keys in the plan.