20+ practice questions focused on Resource Lifecycle Management — one of the most tested topics on the HashiCorp Certified: Terraform Authoring and Operations Professional (AWS provider) (AWS provider) exam. Each question includes a detailed explanation so you learn why the right answer is correct.
Start Resource Lifecycle Management PracticeYou 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?
Explanation: The create_before_destroy = true lifecycle meta-argument ensures that a new resource is created before the old one is destroyed, which is essential for maintaining capacity during a configuration change that requires a new launch template. In an Auto Scaling Group, this prevents downtime by ensuring the new launch template is in place and new instances are launched before the old ones are terminated. This meta-argument is specifically designed for scenarios where resource replacement must not cause service interruption.
You 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?
Explanation: replace_triggered_by = [aws_s3_object.lambda_code.key] will cause the Lambda function to be replaced whenever the S3 object's key changes. This directly ties the Lambda replacement to the S3 object key, which typically changes when the code is updated.
What is the purpose of the 'terraform state refresh' command?
Explanation: The 'terraform state refresh' command (or 'terraform refresh' in older versions) reads the current attributes of resources from the real-world infrastructure and updates the Terraform state file accordingly. It does not modify the actual infrastructure; it only reconciles the state with reality. This is useful when resources have been changed outside of Terraform, ensuring the state file accurately reflects the current environment before planning or applying changes.
You need to ignore changes to a specific index in a list of security group rules. How is this formatted in 'ignore_changes'?
Explanation: Terraform's 'ignore_changes' uses a special index syntax to target a specific element of a list attribute: 'ingress[0]' refers to the first element of the 'ingress' list. This is the documented format for ignoring a single indexed item rather than the entire attribute.
Which meta-argument is used to prevent a resource from being replaced when its configuration changes?
Explanation: The 'ignore_changes' lifecycle meta-argument tells Terraform to ignore specific attribute changes when computing a diff, so a configuration change to those attributes will not trigger a replacement or update. It is the only listed meta-argument that exists in Terraform's lifecycle block for this purpose.
+15 more Resource Lifecycle Management questions available
Practice all Resource Lifecycle Management questions1. Baseline your knowledge
Start with 10 questions to gauge your current understanding of Resource Lifecycle Management. This tells you whether you need a concept refresher or just practice.
2. Review every explanation
For each question — right or wrong — read the full explanation. Understanding why an answer is correct is more valuable than knowing the answer itself.
3. Focus on exam traps
Resource Lifecycle Management questions on the AWS provider frequently use trap wording. Look for subtle differences in answers that test your precision, not just general knowledge.
4. Reach 80% consistently
Do repeated sessions until you score 80%+ three times in a row. Then move to mixed-mode practice to test cross-topic recall under realistic conditions.
The exact number varies per candidate. Resource Lifecycle Management is tested as part of the HashiCorp Certified: Terraform Authoring and Operations Professional (AWS provider) (AWS provider) blueprint. Practicing with targeted Resource Lifecycle Management questions ensures you can handle any format or difficulty that appears.
Yes. Courseiva provides free AWS provider practice questions across all exam topics and domains. The platform includes topic-based practice, mock exams, missed-question review, bookmarked questions, and readiness tracking — no account required.
Difficulty is subjective, but Resource Lifecycle Management is a high-priority exam concept tested in multiple ways — direct recall, scenario analysis, and command-output interpretation. Consistent practice is the best way to build confidence.
Launch a full Resource Lifecycle Management practice session with instant scoring and detailed explanations.
Start Resource Lifecycle Management Practice →