nerdexam
AmazonAmazon

SAP-C02 · Question #594

SAP-C02 Question #594: Real Exam Question with Answer & Explanation

Sign in or unlock SAP-C02 to reveal the answer and full explanation for question #594. The question stem and answer options stay visible for context.

Submitted by ricky.ec· Mar 6, 2026Continuous Improvement for Existing Solutions

Question

A financial services company runs a complex, multi-tier application on Amazon EC2 instances and AWS Lambda functions. The application stores temporary data in Amazon S3. The S3 objects are valid for only 45 minutes and are deleted after 24 hours. The company deploys each version of the application by launching an AWS CloudFormation stack. The stack creates all resources that are required to run the application. When the company deploys and validates a new application version, the company deletes the CloudFormation stack of the old version. The company recently tried to delete the CloudFormation stack of an old application version, but the operation failed. An analysis shows that CloudFormation failed to delete an existing S3 bucket. A solutions architect needs to resolve this issue without making major changes to the application's architecture. Which solution meets these requirements?

Options

  • AImplement a Lambda function that deletes all files from a given S3 bucket. Integrate this Lambda
  • BModify the CloudFormation template to provision an Amazon Elastic File System (Amazon EFS)
  • CModify the CloudF ormation stack to create an S3 Lifecycle rule that expires all objects 45
  • DModify the CloudFormation stack to attach a DeletionPolicy attribute with a value of Delete to the

Unlock SAP-C02 to see the answer

You've previewed enough free SAP-C02 questions. Unlock SAP-C02 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full SAP-C02 PracticeBrowse All SAP-C02 Questions