Ravindra BagaleCourses & study guides मराठी Track your progress

Ravi Sir's Cards › AWS

AWS Cloud

Scheduled cleanup job

Seed four rows in a dedicated lab table. Two are old enough to qualify for cleanup. Set a 30-second Lambda timeout and MODE=preview. Expect 4 scanned, 2 eligible, 0 deleted and complete=true. Try flag mode first. The handler follows LastEvaluatedKey and checks createdAt before changing a row. Add the legacy UTC rule only after preview. Remove its target and delete lab resources after practice.

Scheduled cleanup job. Seed four rows in a dedicated lab table. Two are old enough to qualify for cleanup. Set a 30-second Lambda timeout and MODE=preview. Expect 4 scanned, 2 eligible, 0 deleted and complete=true. Try flag mode first. The handler follows LastEvaluatedKey and checks createdAt before changing a row. Add the legacy UTC rule only after preview. Remove its target and delete lab resources after practice.
Scheduled cleanup job · Download PNG
Read card text

What this card says

Test data

Seed four rows in a dedicated lab table. Two are old enough to qualify for cleanup.

Preview

Set a 30-second Lambda timeout and MODE=preview. Expect 4 scanned, 2 eligible, 0 deleted and complete=true.

Safe mutation

Try flag mode first. The handler follows LastEvaluatedKey and checks createdAt before changing a row.

Schedule

Add the legacy UTC rule only after preview. Remove its target and delete lab resources after practice.

Open the lesson

See all AWS revision cards