المصطلحات اللي تحتها خط منقّط تقدر تضغط عليها لمعرفة معناها، وترجع تكمل من نفس مكانك.
إجابات الاختبار وعلامات إكمال المحاور بتتحفظ على المتصفح ده، ومش بتتنقل لأجهزة تانية.
النتيجة: 0 / 0 إعادة
Assigning one class variable to another normally copies what?
A deep copy of every field The entire object A reference to the same object A new immutable record
المحور 02 : assignment للـ reference type بينسخ المرجع؛ الاتنين ممكن يشاوروا لنفس object .
Which statement about .NET garbage collection is correct?
It closes every file immediately when a method returns It reclaims unreachable managed objects; resource cleanup still needs explicit lifetime handling It makes IDisposable unnecessary It prevents all memory leaks
المحور 03 : GC للـ managed memory ؛ using وDispose للتنظيف في وقت معروف. object لسه reachable ممكن يفضل محتجز.
What is the main scalability benefit of async I/O in ASP.NET Core?
It avoids holding a thread while awaiting I/O It makes DbContext thread-safe It makes each database query use more CPU cores It removes network latency
المحور 04 : await مع I/O غير مكتمل بيسمح بتحرير الـ thread ؛ مش بيضمن سرعة الطلب الواحد.
An EF query calls ToList before applying a filter. What is the likely consequence?
Rows are materialized first and the later filter runs in memory An index is automatically added The filter is guaranteed to run in SQL Deferred execution continues unchanged
المحور 05 : materialization بتنهي query الحالية. حط الفلتر القابل للترجمة قبل ToList لتقليل الداتا.
Which feature is part of C# 14?
System.Threading.Lock was first introduced Primary constructors were first introduced Extension blocks supporting extension properties and static extension members async and await were first introduced
المحور 06 : extension members من C# 14 . primary constructors من C# 12 ، وLock من .NET 9 مع C# 13 .
Which middleware relationship is required when protecting an endpoint with user policies?
Exception handling must run after every endpoint has completed Authentication establishes identity before authorization evaluates access CORS replaces authentication Authorization should establish the user before authentication
المحور 07 : authentication يحدد الهوية، وauthorization يفحص السماح. ترتيب الـ pipeline بيأثر على السلوك.
An operation is accepted for background processing but not finished. Which response fits?
204 proving the job completed 301 to mean processing failed 401 to mean queued 202 Accepted with a way to check status
المحور 08 : 202 قبول، مش إثبات نجاح التنفيذ. عرّف status resource أو آلية متابعة واضحة.
Which is usually appropriate for an EF Core query returning entities only for display?
AsNoTracking when updates are not intended SaveChanges after every row read A singleton DbContext Parallel queries on one context
المحور 09 : read-only entity queries تستفيد من إلغاء tracking . لو هتعدل entities بالـ context ، tracking ممكن يكون مقصود.
What is a normal trade-off of adding a database index?
Some reads improve, but storage and write maintenance increase Transactions stop being necessary All writes become free Every query uses it automatically
المحور 10 : index يساعد access patterns معينة، ويحتاج مساحة وصيانة مع الكتابة. افحص execution plan .
What should primarily guide a NoSQL document model?
Choosing the newest product Avoiding all duplicate data at any cost Copying relational tables exactly Access patterns, consistency needs, document growth and update boundaries
المحور 11 : embedding وreferences قرار حسب القراءة والكتابة والحجم والاتساق، مش اسم التقنية بس.
Two buyers can read the same stock value before either writes. What protects the invariant?
A read replica An atomic conditional update or suitable transaction/concurrency control A longer cache TTL A browser check alone
المحور 12 : read ثم write من غير حماية ممكن يعمل lost update أو overselling . افرض القاعدة ذريًا عند مصدر الحقيقة.
In relational algebra, which operation selects rows matching a predicate?
Selection σ Cartesian product × Projection π Union ∪ regardless of predicates
المحور 13 : σ بتختار الصفوف، وπ بتختار الأعمدة. في SQL شرط WHERE قريب من selection .
Why might a modular monolith be a reasonable starting architecture?
It requires every module to share all internals It can preserve clear boundaries with simpler deployment and local transactions It guarantees unlimited scale It eliminates all module boundaries
المحور 14 : modular monolith يوازن الفصل المنطقي وبساطة التشغيل. استخدم contracts واضحة، وقِس قبل استخراج service .
Which pattern fits interchangeable payment-calculation algorithms behind one contract?
Observer for replacing every method call Prototype for database transactions Strategy, when actual algorithm variation exists Singleton solely because algorithms exist
المحور 15 : Strategy بيفصل خوارزميات قابلة للتبديل. لو مفيش اختلاف حقيقي، method مباشرة ممكن تكون أوضح.
What is the safest approach to a refactor intended to preserve behavior?
Change requirements and structure together without noting it Assume cleaner-looking code is equivalent Use small steps with relevant behavior checks Rename every file first
المحور 16 : refactoring يحافظ على السلوك. تغييرات صغيرة واختبارات مناسبة بتسهّل اكتشاف الانحراف.
What does a transactional outbox persist atomically with a business change?
A global transaction across HTTP services The intent to publish an event A guarantee no consumer can fail The remote provider's entire database
المحور 17 : outbox بتسجل intent في نفس DB transaction ؛ النشر لاحقًا وممكن يتكرر، فالمستهلك idempotent .
What is a cache stampede?
A database transaction rollback A CDN changing HTTP versions A cache hit with zero latency Many requests rebuilding the same expired or missing value simultaneously
المحور 18 : expiry مشتركة ممكن تضرب المصدر. single-flight وjitter وrefresh policies تقلل المشكلة حسب التصميم.
A JWT is valid, but the requested order belongs to someone else. What is needed?
Only HTTPS Only CORS Resource-level authorization for the authenticated user Only a stronger signing algorithm
المحور 19 : صحة الـ token مش تصريح لقراءة كل resource . افحص ownership والصلاحيات.
What most directly links spans across services in a distributed trace?
Setting all logs to Error Using the same log filename Propagation of trace context such as traceparent Removing request identifiers
المحور 20 : trace context بيربط العمليات في رحلة واحدة؛ logs لوحدها مش distributed trace .
Which test best checks provider-specific transaction and SQL behavior?
A test of private helper names An integration test against the actual database engine A formatter check A mock returning a fixed list
المحور 21 : semantics بتاعة SQL والـ transactions محتاجة provider حقيقي؛ in-memory أو mock ممكن يخبّي الاختلاف.
What helps a rolling deployment tolerate old and new application instances together?
Running unreviewed destructive migrations on every startup Disabling readiness checks Dropping required columns before deploying code Backward-compatible expand-and-contract schema changes
المحور 22 : وسّع schema الأول، وانقل الاستخدام تدريجيًا، واحذف القديم بعد ما كل المستهلكين يسيبوه.
What remains your responsibility when using a managed cloud database?
Installing the database engine's patches and replacing failed physical disks Nothing related to security Only setting database firewall rules; application identity and permissions are handled automatically Data access, configuration, application correctness and verifying recovery requirements
المحور 23 : managed service بتنقل جزء من التشغيل للمزوّد، لكن المسؤوليات المشتركة لسه محتاجة فهم وإعداد صحيح.
What does TLS primarily protect for an HTTPS connection?
Correctness of every business calculation Authorization to every order All data after it is decrypted and logged Confidentiality and integrity in transit, with server authentication when validated
المحور 24 : TLS يحمي النقل؛ مش بديل لـ authorization أو حماية logs والـ storage .
What do threads in one process generally share?
No memory at all The exact same stack A separate operating-system process per method The process address space, while each thread has its own stack
المحور 25 : مشاركة memory بتسهّل التواصل وبتخلق احتياج للتزامن؛ كل thread له stack خاص.
What is the purpose of an anti-corruption layer around a legacy integration?
To copy legacy terminology throughout the domain To translate external contracts and isolate their assumptions To eliminate the need to test mappings To guarantee the legacy service never fails
المحور 26 : طبقة ترجمة بتحمي domain من تفاصيل النظام الخارجي؛ فشل الشبكة وصحة mappings لسه محتاجين اختبار.
Which is a useful acceptance criterion?
A repeated cancellation returns the same successful outcome without releasing stock twice Apply a familiar design pattern without checking whether it fits Create many interfaces Use a newer framework version even if behavior changes
المحور 27 : acceptance criterion بيصف سلوك قابل للتحقق، مش شعار أو اختيار implementation غير مبرر.
What is the usual average lookup complexity of a well-distributed hash table?
O(1) in every case, including identical hash codes O(n) even when the hash table is well distributed O(1), with worse cases still possible Always O(log n) with no assumptions
المحور 28 : average O(1) مع hash distribution وحمل مناسبين؛ collisions وتفاصيل implementation ممكن تغير أسوأ حالة.
Why does the standard two-pointer pair-sum technique require sorted input?
It makes the array immutable Moving a pointer then changes the candidate sum in a predictable direction It makes all pairs unique automatically It removes integer overflow
المحور 29 : الترتيب هو اللي يبرر تحريك الطرف المناسب. sorting تكلفته تتحسب لو input مش مترتب.
Where must authorization constrain a RAG answer?
After drafting the answer but before returning it to the caller During retrieval before unauthorized text reaches context Only in a request asking the model to hide forbidden data Through response filtering without checking retrieved source permissions
المحور 30 : الـ context مايدخلوش محتوى غير مسموح. افحص كمان الـ citations والأدوات والـ cache .
What is the strongest review basis for an AI-generated change?
A detailed explanation of the change from the model Only a successful formatter run Acceptance criteria, an inspected diff and independent relevant verification A clean build without reviewing behavior or the diff
المحور 31 : الثقة وشكل الكود مش دليل؛ اربط السلوك بالمواصفة وباختبارات مناسبة.
What is a limitation of autoscaling stateless APIs?
It removes downstream rate limits It can increase load on a database that remains the bottleneck It automatically shards all tables It guarantees instant scaling with no warm-up
المحور 32 : زيادة instances ممكن تزود connections وتضغط dependencies ؛ قِس bottleneck واحمِ السعة.
Which behavioral answer is strongest?
A story copied from another engineer A real event with clear responsibility, actions, outcome and learning A claim that teammates caused every problem A list of adjectives with no example
المحور 33 : STAR بينظم دليل حقيقي، مش بيبرر اختراع خبرة أو أرقام.
Which type is usually appropriate for decimal currency calculations?
string for every arithmetic operation double because 0.1 is exactly representable in binary float because fewer bytes always means better accuracy decimal with explicit currency and rounding rules
المحور 02 : decimal مناسب لحسابات عشرية مالية؛ لسه لازم قواعد currency والتقريب والمدى.
Can two EF Core queries safely run concurrently on the same DbContext?
Yes, if wrapped in Task.Run Yes, if both are async No; use separate contexts or execute them sequentially Yes, if AsNoTracking is used
المحور 04 : DbContext مش thread-safe . async وAsNoTracking مش تصريح بتزامن العمليات عليه.
An idempotency key is reused with a different payment payload. What should happen?
Return an unrelated customer's result Ignore the key whenever the amount changes Reject the conflicting reuse according to the API contract Silently perform the second charge
المحور 08 : اربط المفتاح بالـ scope وبـ payload fingerprint ؛ نفس المفتاح مش تصريح لتغيير معنى العملية.
Which change fixes SQL injection from interpolated values passed to FromSqlRaw?
Catch Exception and return an empty list Escape quote characters manually before concatenating values into SQL Wrap the interpolated SQL in a transaction Use a parameterizing API or explicit SQL parameters
المحور 09 : الـ parameters تفصل القيم عن SQL syntax ؛ AsNoTracking وcatch مش حماية من injection .
A client request times out during an external charge. Which conclusion is valid?
The outcome may be unknown and needs idempotency and reconciliation A second charge without a key is always safe The database rollback refunded the charge The provider definitely did nothing
المحور 17 : failure في الرد مش دليل إن side effect ماحصلش. التحقق من الـ provider ضروري.
Which approach is appropriate for public observability data?
Use successful HTTP status as proof every answer is correct Remove all correlation IDs Log every token, password and customer message by default Capture useful structured context while redacting secrets and limiting sensitive retention
المحور 20 : observability لازم تساعد التشخيص من غير ما تتحول لمخزن أسرار. نجاح النقل منفصل عن صحة السلوك.
What does valid JSON Schema output from an LLM still require?
Business validation, evidence checks and authorization for actions Acceptance of every generated citation No further checks Automatic permission to call every tool
المحور 30 : schema بتضبط الشكل، لكن القيم والمصادر والإجراءات ممكن تكون غلط أو غير مسموحة.
A singleton captures a scoped DbContext. Which review finding is correct?
It is a captive dependency; align lifetimes or create a scope per operation It is safe if the model generated it Only add ConfigureAwait(false) Make the context static to fix the lifetime
المحور 31 : lifetime لازم يتناسب مع الاستخدام. worker طويل العمر ينشئ scope أو context مستقل لكل unit of work .