Courseiva
Resource Lifecycle ManagementhardMultiple ChoiceObjective-mapped

AWS provider Resource Lifecycle Management Practice Question

You have two resources, A and B. You want B to be replaced whenever A is updated. How do you configure B?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

In resource B, set lifecycle { replace_triggered_by = [resource_a] }

Using replace_triggered_by in B's lifecycle block, referencing resource A, forces the replacement of B when A changes.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • In resource B, set lifecycle { create_before_destroy = [resource_a] }

    Why it's wrong here

    create_before_destroy does not accept resource references.

  • In resource A, set lifecycle { triggers = [resource_b] }

    Why it's wrong here

    This is not valid syntax.

  • In resource B, set lifecycle { replace_triggered_by = [resource_a] }

    Why this is correct

    This is the correct usage of the trigger.

  • In resource B, set depends_on = [resource_a]

    Why it's wrong here

    depends_on manages ordering, not lifecycle replacement.

About these practice questions

This AWS provider question is part of Courseiva's 193-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed August 2026 · checked against the official HashiCorp exam blueprint

This AWS provider practice question is part of Courseiva's free HashiCorp certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AWS provider exam.