概念 · CLF-C02 の発展
Lifecycle rules
The order, timing and filters of lifecycle rules decide how much you save and what you pay in fees.
このレッスンはまだ翻訳されていないため、英語で表示しています。
クラウドプラクティショナーで学んだこと
- A rule moves objects to cheaper classes as they age.
- A rule can also delete objects after a set time.
- Rules apply to a whole bucket or to a part of it.
A typical aging path for logs.
Transition
- What it does
- Moves objects to a colder class
- Example
- Standard-IA at 30 days
Expiration
- What it does
- Deletes current objects
- Example
- Delete after 7 years
Noncurrent versions
- What it does
- Deletes old versions
- Example
- Keep the newest 3
Abort uploads
- What it does
- Removes unfinished upload parts
- Example
- After 7 days
| Action | What it does | Example |
|---|---|---|
| Transition | Moves objects to a colder class | Standard-IA at 30 days |
| Expiration | Deletes current objects | Delete after 7 years |
| Noncurrent versions | Deletes old versions | Keep the newest 3 |
| Abort uploads | Removes unfinished upload parts | After 7 days |
1 / 2
Transition
- What it does
- Moves objects to a colder class
- Example
- Standard-IA at 30 days
Expiration
- What it does
- Deletes current objects
- Example
- Delete after 7 years
Noncurrent versions
- What it does
- Deletes old versions
- Example
- Keep the newest 3
| Action | What it does | Example |
|---|---|---|
| Transition | Moves objects to a colder class | Standard-IA at 30 days |
| Expiration | Deletes current objects | Delete after 7 years |
| Noncurrent versions | Deletes old versions | Keep the newest 3 |
2 / 2
Abort uploads
- What it does
- Removes unfinished upload parts
- Example
- After 7 days
| Action | What it does | Example |
|---|---|---|
| Abort uploads | Removes unfinished upload parts | After 7 days |
概要
Objects move down a waterfall, from warmer to colder classes. They never move back up by a rule. Standard to Standard-IA or One Zone-IA needs at least 30 days after creation. A rule cannot move an object to Standard-IA or One Zone-IA until it is 30 days old. For other early moves, S3 allows it, but you still pay for the rest of the minimum period.
Objects under 128 KB are not moved by default, because every transition is a billed request and the saving is tiny. Add an object size filter if you want them moved.
概要
Expiration deletes current objects. In a versioned bucket it adds a delete marker, so you also need a rule for noncurrent versions: delete them after a number of days, or keep only the newest few. Add a rule that aborts incomplete multipart uploads, because their parts bill until removed. Filter any rule by prefix, tags or size.
覚えること
- Standard to Standard-IA or One Zone-IA: at least 30 days after creation.
- Leaving a class before its minimum period still bills the rest of it.
- Each transition is a billed request. Skip tiny objects.
- Versioned bucket: add a noncurrent version rule or old versions keep billing.
覚えること
- Abort incomplete multipart uploads, for example after 7 days.
- Scope rules by prefix, tag or size, so logs and media follow different paths.
試験では
- “Logs are read for a month, kept for seven years, cost matters” points to a lifecycle rule that archives and later expires them.
- “Storage keeps growing in a versioned bucket” points to a noncurrent version expiration rule.
- “Failed large uploads still cost money” points to a rule that aborts incomplete multipart uploads.
混同しやすいもの
- Choosing an S3 storage classPick the class from the access pattern, then check minimum storage period, minimum size and read fee.
Amazon S3 GlacierRetrieval tiers and times decide which archive class fits, and a restore request is how you read an archived object.
AWS BackupCross-Region and cross-account copies, Vault Lock, point-in-time recovery, and when to use backup instead of replication.
ほかのタスクにも登場
このタスクの内容 · 4.1
- Choosing an S3 storage class
S3 Glacier
- Lifecycle rules
- S3 cost levers
- EBS cost choices
- EFS and FSx cost choices
- Storage auto scaling
- Choosing a data migration service
- Cost allocation tags
Cost Explorer
Budgets
Cost and Usage Reports
- Multi-account billing
Organizations
Backup
- Choosing object, file or block
- S3 request and transfer performance
EBS
EFS
FSx
Storage Gateway
DataSync
Transfer Family
Snow Family
- Data transfer cost design
S3