This browser cannot save progress. You can continue here, but your answers may be lost when you leave.
Topic 35 · Final exam
Final exam
Mixed multiple-choice questions from every topic.
40 quiz
How to use it: Treat this as a cumulative review of earlier chapters: answer independently, explain your choice, then use the explanation to find a lesson to revisit. Questions mix fundamentals and engineering situations, so read the constraints before choosing.
Before you start: Study the earlier chapters, or use the questions to find gaps. Review each missed answer in its topic and retry later. The score is a learning self-check, not a readiness certificate, hiring prediction or validated measure of ability.
Select a term with a dotted underline for its meaning, then continue reading from the same place.
Attempt all 40 questions without references first, stating your reasoning before revealing explanations. Revisit the topic identified in each incorrect answer, explain the idea aloud or try a small example, then retry later. Use the result to guide revision, rather than as a certification or prediction of a hiring decision.
Test yourself
Quiz answers and completed-topic marks are saved in this browser; they do not sync across devices.
Score: 0 / 0
Assigning one class variable to another normally copies what?
Topic 02: reference-type assignment copies the reference; both variables can refer to the same object.
Which statement about .NET garbage collection is correct?
Topic 03: manages unreachable managed memory; using and Dispose provide deterministic resource cleanup. Reachable objects can still be unintentionally retained.
What is the main scalability benefit of async I/O in ASP.NET Core?
Topic 04: awaiting incomplete allows the thread to serve other work; it does not guarantee a faster individual request.
An EF query calls ToList before applying a filter. What is the likely consequence?
Topic 05: materialization executes the query; a later -to-Objects filter works in memory. Filter before ToList where appropriate.
Which feature is part of C# 14?
Topic 06: extension members are a C# 14 feature. Primary constructors arrived in C# 12; Lock arrived with 9 and C# 13.
Which middleware relationship is required when protecting an endpoint with user policies?
Topic 07: authentication establishes identity; authorization evaluates permission. Pipeline order matters.
An operation is accepted for background processing but not finished. Which response fits?
Topic 08: 202 acknowledges acceptance, not completion. Provide a status resource or another explicit follow-up mechanism.
Which is usually appropriate for an EF Core query returning entities only for display?
Topic 09: read-only entity queries can avoid tracking overhead. Tracking may be intentional for subsequent updates.
What is a normal trade-off of adding a database index?
Topic 10: an index supports particular access patterns and adds storage and write maintenance. Inspect execution plans.
What should primarily guide a NoSQL document model?
Topic 11: versus references depends on reads, writes, growth and consistency, not the database label alone.
Two buyers can read the same stock value before either writes. What protects the invariant?
Topic 12: an unprotected read-then-write can lose updates or oversell. Enforce the atomically at the authoritative store.
In relational algebra, which operation selects rows matching a predicate?
Topic 13: σ selects rows; π selects attributes. A WHERE predicate corresponds to selection.
Why might a modular monolith be a reasonable starting architecture?
Topic 14: a modular monolith combines logical boundaries with simpler operations. Use explicit contracts and measured reasons for extracting services.
Which pattern fits interchangeable payment-calculation algorithms behind one contract?
Topic 15: Strategy encapsulates interchangeable algorithms. Without actual variation, a direct method may be clearer.
What is the safest approach to a refactor intended to preserve behavior?
Topic 16: refactoring preserves behavior. Small changes and suitable checks make deviations easier to detect.
What does a transactional outbox persist atomically with a business change?
Topic 17: the records publication intent in the same database . Later delivery may repeat, so consumers need .
What is a cache stampede?
Topic 18: simultaneous misses can overload the source. Single-flight loading, expiry jitter and deliberate refresh policies can help.
A JWT is valid, but the requested order belongs to someone else. What is needed?
Topic 19: validity does not grant access to every resource. Check ownership and permissions.
What most directly links spans across services in a distributed trace?
Topic 20: propagated context links operations in one journey; logs alone are not a distributed trace.
Which test best checks provider-specific transaction and SQL behavior?
Topic 21: and semantics require the actual provider. In-memory substitutes can hide differences.
What helps a rolling deployment tolerate old and new application instances together?
Topic 22: expand the , migrate consumers, then remove old structures after all consumers have moved.
What remains your responsibility when using a managed cloud database?
Topic 23: managed services shift some operations to the provider, but access, configuration and recovery requirements remain shared responsibilities.
What does TLS primarily protect for an HTTPS connection?
Topic 24: protects transport. It does not replace authorization or secure storage and logging.
What do threads in one process generally share?
Topic 25: shared memory enables communication but requires synchronization; each thread has its own stack.
What is the purpose of an anti-corruption layer around a legacy integration?
Topic 26: a translation boundary protects the domain from external assumptions. Network failures and mapping correctness still need testing.
Which is a useful acceptance criterion?
Topic 27: an acceptance criterion describes verifiable behavior, rather than a slogan or unjustified implementation choice.
What is the usual average lookup complexity of a well-distributed hash table?
Topic 28: average O(1) depends on hashing and load assumptions; collisions and implementation affect worst cases.
Why does the standard two-pointer pair-sum technique require sorted input?
Topic 29: order justifies pointer movement. Include sorting cost when the input is not already sorted.
Where must authorization constrain a RAG answer?
Topic 30: exclude forbidden evidence before context construction, and also secure citations, tools and caches.
What is the strongest review basis for an AI-generated change?
Topic 31: confidence and appearance are not evidence. Link behavior to the spec and suitable checks.
What is a limitation of autoscaling stateless APIs?
Topic 32: more instances can increase connections and downstream pressure. Measure bottlenecks and protect capacity.
Which behavioral answer is strongest?
Topic 33: organizes genuine evidence; it does not justify inventing experience or metrics.
Which type is usually appropriate for decimal currency calculations?
Topic 02: decimal suits decimal monetary arithmetic, but still requires currency, range and rounding rules.
Can two EF Core queries safely run concurrently on the same DbContext?
Topic 04: is not thread-safe. Async and AsNoTracking do not make concurrent operations safe.
An idempotency key is reused with a different payment payload. What should happen?
Topic 08: scope the key and associate it with a payload fingerprint. Reusing it must not silently change the operation.
Which change fixes SQL injection from interpolated values passed to FromSqlRaw?
Topic 09: parameters separate values from syntax; tracking settings and exception handling do not prevent injection.
A client request times out during an external charge. Which conclusion is valid?
Topic 17: a failed response does not prove the external effect failed. Resolve it through provider-aware recovery.
Which approach is appropriate for public observability data?
Topic 20: observability should support diagnosis without becoming a secret store. Transport success is separate from behavioral correctness.
What does valid JSON Schema output from an LLM still require?
Topic 30: a controls structure; values, sources and actions can still be incorrect or unauthorized.
A singleton captures a scoped DbContext. Which review finding is correct?
Topic 31: dependency lifetimes must fit usage. A long-lived worker creates a scope or separate context per unit of work.