A developer has a single pre-production AWS account that runs an AWS SAM CloudFormation stack. They edited a Lambda function and added SNS topics and want to do a one-time deploy of these changes for testing without impacting the existing pre-production application used by the release pipeline. What should the developer do?
Choose an answer
Tap an option to check your answer.
Correct answer: Use the AWS SAM CLI to package and deploy the SAM application into a separate AWS account designated for a development environment..
Why this is the answer
Deploying to a separate development account is the best practice for testing changes without affecting the pre-production environment. This isolates the new features, ensuring the existing application remains stable for the release pipeline. Using the AWS SAM CLI to package and deploy to a dedicated development account provides a clean, isolated testing ground. Deploying directly to pre-production with a debug parameter risks unintended side effects. Creating a change set in pre-production and executing it elsewhere is illogical; change sets apply to the account they're created in. Updating the pre-production CloudFormation stack to point to another account is an unnecessary and complex way to achieve environment separation.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed