Practice AWS provider Resource Lifecycle Management questions with full explanations on every answer.
Start practicing
Resource Lifecycle Management — choose a session length
Free · No account required
Click any question to see the full explanation and answer options, or start a focused practice session above.
You need to ensure that an AWS Auto Scaling Group maintains capacity during a configuration change that requires a new launch template. Which lifecycle meta-argument should you use?
2When using 'create_before_destroy', what is a common side effect that may cause the plan to fail?
3You are managing a production database instance. You want to ensure that if a developer accidentally removes the resource block from the Terraform configuration, Terraform will refuse to destroy the database. How do you implement this?
4Which command is used to move a resource from one state file to another, commonly used when refactoring modules?
5You have an AWS Lambda function that should be replaced whenever the source code S3 object changes. How do you trigger this replacement specifically based on the S3 object key change?
6A resource has an attribute 'tags' that is managed by an external script. You want Terraform to ignore any changes made to 'tags' after the initial creation. How should you configure the 'lifecycle' block?
7You have defined a resource and set 'prevent_destroy = true'. If you perform a 'terraform destroy', what will happen?
8You want to remove a resource from Terraform management without destroying the actual AWS resource. Which command accomplishes this?
9Where are lifecycle meta-arguments placed within a Terraform configuration?
10Which of the following is a valid lifecycle meta-argument in Terraform?
11What is the purpose of the 'terraform state refresh' command?
12If you use 'ignore_changes = [tags]', and you manually change the tags in the AWS Console, what will happen during the next 'terraform plan'?
13You need to ensure that a resource is always recreated if an associated data source value changes. Which meta-argument supports this?
14What happens if you set 'ignore_changes = all' in a resource lifecycle block?
15You have two resources, A and B. You want B to be replaced whenever A is updated. How do you configure B?
16Why might someone use 'prevent_destroy = true' on a database resource while allowing it on smaller web server instances?
17When refactoring code, you rename a resource in your configuration. What happens if you run 'terraform plan' without updating the state?
18Which file stores the mapping between your Terraform configuration and the real-world infrastructure?
19You need to ignore changes to a specific index in a list of security group rules. How is this formatted in 'ignore_changes'?
20What is the primary risk of relying solely on 'create_before_destroy' without considering dependency chains?
21When a resource is marked as 'tainted', what is the expected outcome of the next 'terraform apply'?
22Which meta-argument is used to prevent a resource from being replaced when its configuration changes?
23If a user wants to ensure that a resource's lifecycle is managed by Terraform but wants to bypass the 'prevent_destroy' protection, what is the best approach?
24When using 'replace_triggered_by', what happens if the referenced resource is deleted?
25Which THREE of the following are valid lifecycle meta-arguments?
26Which THREE of these are reasons to use the 'ignore_changes' lifecycle meta-argument?
27Which THREE of the following are true regarding 'create_before_destroy'?
28Which TWO of the following accurately describe the behavior of 'terraform state rm'?
29Which THREE of the following are consequences of drifting from the Terraform state?
30Which TWO of the following are valid ways to handle a resource that has become 'tainted'?
31Which TWO actions can be taken to resolve issues where a resource must be replaced, but 'prevent_destroy' is enabled?
32Which TWO factors must be considered when using 'replace_triggered_by' with multiple resources?
33Which THREE of the following are true about 'lifecycle' blocks?
34Which TWO of the following are limitations of 'ignore_changes'?
The Resource Lifecycle Management domain covers the key concepts tested in this area of the AWS provider exam blueprint published by HashiCorp. Courseiva provides free domain-focused practice, mock exams, missed-question review, and readiness tracking across all AWS provider domains — no account required.
The Courseiva AWS provider question bank contains 34 questions in the Resource Lifecycle Management domain. Click any question to see the full explanation and answer breakdown.
Start with a 10-question focused session to identify your baseline accuracy in this domain. Read every explanation — even for questions you answer correctly — to understand the reasoning. Once you score consistently above 80%, move to a 20–30 question session to confirm depth before moving to the next domain.
Yes — the session launcher on this page draws questions exclusively from the Resource Lifecycle Management domain. Choose 10, 20, 30, or 50 questions for a focused session, or click individual questions to review them one by one.
Save your results, see per-domain analytics, and get readiness scores — free, for every certification.
Sign Up FreeFree forever · Every certification included