📝 Section Review: Security

اہم نکاتKey TakeawaysKey Takeaways

خود جانچ (مشق)Self-Check (Practice)Self-Check (Practice)

یہ مشقی سوالات ہیں، امتحانی سوالات نہیں۔These are practice questions, not exam questions.These are practice questions, not exam questions.

❓ Stateful یا stateless: سیکیورٹی گروپ؟ (پریکٹس سوال)Stateful ya stateless: Security Group? (practice sawal)Stateful or stateless: Security Group? (practice question)

Stateful — جواب والی ٹریفک خودکار allow ہوتی ہے۔ مثلاً ان باؤنڈ پورٹ 80 کھول دیں تو response خود واپس آتا ہے۔Stateful — jawab wali traffic khudkar allow hoti hai. Masalan inbound port 80 khol dein to response khud wapas aata hai.Stateful — return traffic is automatically allowed. Example: open inbound port 80 and the response flows back automatically.

❓ Stateful یا stateless: NACL؟ (پریکٹس سوال)Stateful ya stateless: NACL? (practice sawal)Stateful or stateless: NACL? (practice question)

Stateless — ہر سمت کے لیے الگ رول چاہیے۔ مثلاً ویب ٹریفک کے لیے ان باؤنڈ پورٹ 80 اور آؤٹ باؤنڈ ephemeral پورٹس 1024-65535 دونوں allow ہوں۔Stateless — har simt ke liye alag rule chahiye. Masalan web traffic ke liye inbound port 80 AUR outbound ephemeral ports 1024-65535 dono allow hon.Stateless — each direction needs its own rule. Example: for web traffic, allow inbound port 80 AND outbound ephemeral ports 1024–65535.

❓ کون سا سب نیٹ لیول پر لگتا ہے؟ (پریکٹس سوال)Kaun sa subnet level par lagta hai? (practice sawal)Which operates at the subnet level? (practice question)

NACLs سب نیٹ لیول پر لگتی ہیں (سب نیٹ کے تمام انسٹنسز پر)؛ سیکیورٹی گروپس انسٹنس/ENI لیول پر لگتے ہیں۔NACLs subnet level par lagti hain (subnet ke tamam instances par); Security Groups instance/ENI level par lagtay hain.NACLs apply at the subnet level (all instances in the subnet); Security Groups apply at the instance/ENI level.

❓ DENY رولز کون سا سپورٹ کرتا ہے؟ (پریکٹس سوال)DENY rules kaun sa support karta hai? (practice sawal)Which one supports DENY rules? (practice question)

NACLs میں DENY رولز نمبروں کے ساتھ ہوتے ہیں (سب سے چھوٹا نمبر جیتتا ہے)؛ سیکیورٹی گروپس میں صرف ALLOW ہوتا ہے۔NACLs mein DENY rules numbers ke saath hotay hain (sab se chhota number jeet-ta hai); Security Groups mein sirf ALLOW hota hai.NACLs support DENY rules with numbers (lowest number wins); Security Groups only support ALLOW.