Your team needs to provision a resource that is not natively supported by AWS CloudFormation (e.g., a 3rd-party SaaS configuration). Which CloudFormation feature allows you to write custom logic in a Lambda function to handle the creation, update, and deletion of this resource?

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

Correct Answer: CloudFormation Custom Resources

Custom resources allow you to associate a Lambda function with a resource in a template, which CloudFormation invokes whenever the stack is created or updated....

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

Your team needs to provision a resource that is not natively supported by AWS CloudFormation (e.g., a 3rd-party SaaS configuration). Which CloudFormation feature allows you to write custom logic in a Lambda function to handle the creation, update, and deletion of this resource?

✓ Correct Answer & ExplanationScenario Based

Correct Answer

CloudFormation Custom Resources

Why This Answer Is Correct

Custom resources allow you to associate a Lambda function with a resource in a template, which CloudFormation invokes whenever the stack is created or updated.

📚 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.