SAP-C02 · Question #83
SAP-C02 Question #83: Real Exam Question with Answer & Explanation
The correct answer is B: Configure an S3 Lifecycle object expiration rule that is based on the contract's expiration date. B - You can expire objects in S3 based on the prefix. Since movies are stored under their own prefixes in S3, you can delete both current and previous versions of the objects. C - Conditional deletes are useful for deleting items only if specific conditions are met. If those cond
Question
A media company uses Amazon DynamoDB to store metadata for its catalog of movies that are available to stream. Each media item Contains user-facing content that concludes a description of the media, a list of search tags, and similar data. In addition, media items include a list of Amazon S3 key names that relate to movie files. The company stores these movie files in a single S3 bucket that has versioning enable. The company uses Amazon CloudFront to serve these movie files. The company has 100, 000 media items, and each media item can have many different S3 objects that represent different encodings of the same media S3 objects that belong to the same media item are grouped together under the same key prefix, which is a random unique ID Because of an expiring contract with a media provider, the company must remove 2.000 media Items. The company must completely delete all DynamoDB keys and movie files on Amazon S3 that are related to these media items within 36 hours The company must ensure that the content cannot be recovered. Which combination of actions will meet these requirements? (Choose two.)
Options
- AConfigure the dynamoDB table with a TTL field. Create and invoke an AWS Lambda function to
- BConfigure an S3 Lifecycle object expiration rule that is based on the contract's expiration date
- CWrite a script to perform a conditional delete on all the affected DynamoDB records
- DTemporarily suspend versioning on the S3 bucket. Create and invoke an AWS Lambda function
- EWrite a script to delete objects from Amazon S3 Specify in each request a
Explanation
B - You can expire objects in S3 based on the prefix. Since movies are stored under their own prefixes in S3, you can delete both current and previous versions of the objects. C - Conditional deletes are useful for deleting items only if specific conditions are met. If those conditions are met, DynamoDB performs the delete. Running a script to perform this one-time action is completely acceptable.
Community Discussion
No community discussion yet for this question.