Scenario: You are using AWS OpsWorks for Chef to manage your application servers. You want to run a specific recipe only when a new instance 'Joins' the stack. Which lifecycle event should you use?

Direct Answer (Verified)Reviewed by Sunny (Senior Cloud Engineer)

Correct Answer: Setup

The 'Setup' event occurs on new instances after they have booted and the agent has been installed....

📋Part of AWS Certified DevOps Engineer – Professional (DOP-C02) · AWS Certification Practice
Real Exam ScenarioScenario Based

Scenario: You are using AWS OpsWorks for Chef to manage your application servers. You want to run a specific recipe only when a new instance 'Joins' the stack. Which lifecycle event should you use?

✓ Correct Answer & ExplanationScenario Based

Correct Answer

Setup

Why This Answer Is Correct

The 'Setup' event occurs on new instances after they have booted and the agent has been installed.

📚 What This Question Tests

This question evaluates your knowledge of Scenario Based — a core concept tested in AWS Certified DevOps Engineer – Professional (DOP-C02). Understanding Scenario Based is essential for designing scalable, secure, and cost-effective cloud architectures. Mastery of this topic will help you answer scenario-based questions confidently on exam day.