0Pricing
AWS for Backend Developers (EC2, S3, RDS, Lambda) · درس

سياسات دورة حياة S3 وفئات التخزين

تعلّموا كيفية استخدام فئات تخزين S3 وقواعد دورة الحياة لنقل البيانات تلقائيًا إلى مستويات أقل تكلفة وتقليل تكاليف التخزين بمرور الوقت.

سياسات دورة حياة S3 وفئات التخزين درس مجاني في AWS for Backend Developers (EC2, S3, RDS, Lambda) على CoddyKit. هذا هو الدرس 4 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في AWS for Backend Developers (EC2, S3, RDS, Lambda)، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة AWS for Backend Developers (EC2, S3, RDS, Lambda) 4 دروس في المجموع.

بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.

Why Storage Classes Exist

Not all data is accessed equally. Recent uploads may be read constantly, while year-old logs are rarely touched.

S3 storage classes let you match storage cost to access frequency.

S3 Standard

S3 Standard is the default: high durability, low latency, frequent access. It is the most expensive per GB but cheapest per request.

Great for active, hot data.

Infrequent Access Tiers

Standard-IA and One Zone-IA cost less per GB but charge a retrieval fee. Use them for data accessed monthly, not daily.

  • Standard-IA spans multiple AZs
  • One Zone-IA is cheaper but single-AZ

Intelligent-Tiering

S3 Intelligent-Tiering automatically moves objects between access tiers based on usage patterns, for a small monitoring fee. Perfect when access patterns are unpredictable.

Glacier Archive Tiers

For archives you rarely read:

  • Glacier Instant Retrieval — milliseconds, cheap storage
  • Glacier Flexible Retrieval — minutes to hours
  • Glacier Deep Archive — cheapest, hours to retrieve

What Is a Lifecycle Policy?

A lifecycle policy is a set of rules that automatically transition objects to cheaper classes or delete them after a set age, with zero manual work.

A Sample Lifecycle Rule

This rule moves objects to Standard-IA after 30 days, to Glacier after 90, and deletes them after 365 days.

{
  'Rules': [{
    'ID': 'archive-logs',
    'Status': 'Enabled',
    'Transitions': [
      {'Days': 30, 'StorageClass': 'STANDARD_IA'},
      {'Days': 90, 'StorageClass': 'GLACIER'}
    ],
    'Expiration': {'Days': 365}
  }]
}

Applying the Policy

Attach the lifecycle configuration to a bucket via the CLI.

aws s3api put-bucket-lifecycle-configuration \
  --bucket my-logs \
  --lifecycle-configuration file://lifecycle.json

Filtering by Prefix or Tag

Rules can target a subset of objects using a prefix (like logs/) or object tags, so different data types get different lifecycles.

Versioning and Cleanup

In versioned buckets, lifecycle rules can also expire old non-current versions and clean up incomplete multipart uploads, preventing silent cost growth.

Choosing the Right Class

Quick guide:

  • Daily access → Standard
  • Unknown pattern → Intelligent-Tiering
  • Monthly access → Standard-IA
  • Rare archive → Glacier tiers

Quick Check

Test your storage knowledge.

Recap

You learned S3 cost optimization:

  • Storage classes match cost to access frequency
  • Intelligent-Tiering auto-optimizes unknown patterns
  • Glacier tiers archive cold data cheaply
  • Lifecycle policies automate transitions and deletion

Set it once and S3 quietly lowers your bill over time.

الأسئلة الشائعة

هل درس «سياسات دورة حياة S3 وفئات التخزين» مجاني؟

نعم — نص درس «سياسات دورة حياة S3 وفئات التخزين» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة AWS for Backend Developers (EC2, S3, RDS, Lambda)، انتقل إلى CoddyKit PRO. تتضمن دورة AWS for Backend Developers (EC2, S3, RDS, Lambda) 4 دروس في المجموع.

ماذا ستتعلم في «سياسات دورة حياة S3 وفئات التخزين»؟

تعلّموا كيفية استخدام فئات تخزين S3 وقواعد دورة الحياة لنقل البيانات تلقائيًا إلى مستويات أقل تكلفة وتقليل تكاليف التخزين بمرور الوقت. تتمرن على AWS for Backend Developers (EC2, S3, RDS, Lambda) مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.

هل أحتاج إلى خبرة سابقة لأبدأ AWS for Backend Developers (EC2, S3, RDS, Lambda)؟

لا تُشترط خبرة سابقة. AWS for Backend Developers (EC2, S3, RDS, Lambda) على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 4 من أصل 4.

كم من الوقت يستغرق درس «سياسات دورة حياة S3 وفئات التخزين»؟

معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.

هل يمكنني كتابة وتشغيل أكواد في درس AWS for Backend Developers (EC2, S3, RDS, Lambda) هذا؟

نعم. كل درس في AWS for Backend Developers (EC2, S3, RDS, Lambda) يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.

جميع الدروس في هذه الدورة

  1. النسخ المتماثل لـ S3 عبر المناطق
  2. استضافة المواقع الثابتة على S3
  3. إشعارات أحداث S3
  4. سياسات دورة حياة S3 وفئات التخزين
← العودة إلى AWS for Backend Developers (EC2, S3, RDS, Lambda)