Your team is using AWS CodePipeline to deploy a multi-account application. You want to ensure that a production deployment only occurs if a security scan (SAST) in the staging account passes. How can you implement this cross-account approval and gating mechanism?

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

Correct Answer: Use a CodePipeline custom action that invokes an AWS Lambda function in the security account to verify results and then call 'PutApprovalResult'.

Custom actions and Lambda functions allow for complex cross-account logic and gating based on external metrics or scan results....

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

Your team is using AWS CodePipeline to deploy a multi-account application. You want to ensure that a production deployment only occurs if a security scan (SAST) in the staging account passes. How can you implement this cross-account approval and gating mechanism?

✓ Correct Answer & ExplanationScenario Based

Correct Answer

Use a CodePipeline custom action that invokes an AWS Lambda function in the security account to verify results and then call 'PutApprovalResult'.

Why This Answer Is Correct

Custom actions and Lambda functions allow for complex cross-account logic and gating based on external metrics or scan results.

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