StaffCoder
.NET

ASP.NET Core Practice Exercises

.NET 10
12 modules · 48 challengesSign up
Modules12 modules · 48 challenges
Learn how the container builds your objects instead of you: registering an interface against its implementation, letting constructors receive what they need rather than calling new, resolving every implementation of one interface at once, and choosing the lifetime that makes state shared or fresh.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

4 challenges

Request Tracking Service Lifetimes

Sign up to unlock
33%3 of 9 solvedeasy
About this challenge

This problem covers choosing how long each service should live, so a counter shared by the whole application keeps counting while a value that belongs to one request starts fresh every time.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

Layered Discount Pricing API

Sign up to unlock
100%2 of 2 solvedeasy
About this challenge

This problem covers applying a chain of discount rules to a price one after another, with the rules coming from the container as a set rather than being listed by hand, and the order they were registered in deciding the order they apply.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

Order Service Constructor Graph

Sign up to unlock
100%1 of 1 solvedeasy
About this challenge

This problem covers letting the container build a whole chain of collaborating objects, so a service and everything beneath it arrives ready to use instead of being constructed by hand at the top.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

Notification Dispatch Center

STAR
Solving it completes the module
50%1 of 2 solvedeasy
About this challenge

This problem covers sending one message through every notification channel the application has, counting deliveries across the whole application while keeping each request's own details separate, and reporting what each channel did.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

About this path

DI, configuration, minimal APIs, validation, middleware and LINQ.

Practice ASP.NET Core by building the parts of a .NET 10 web API you touch every day, one concept at a time. Each challenge opens a .NET 10 project in a browser IDE, and its tests grade your code. The 6 live modules cover dependency injection and service lifetimes, configuration and the options pattern, minimal APIs and routing, model binding and validation, middleware and pipeline order, and LINQ over collections. Each one ends with a larger challenge that combines its pieces, such as a notification dispatch center, a task tracker API with route groups or a correlation ID pipeline. All 24 challenges are easy. You should be able to read and write basic C# before you start; no earlier ASP.NET Core experience is needed. Six more modules are scheduled, mostly with medium challenges: async, advanced dependency injection, options and feature flags, filters and error handling, EF Core, and authentication and authorization. Every module is open on a free account, and on every challenge you choose whether to work with AI agents, AI chat only, or no AI.

Frequently asked questions

9

What will I practice in this path?

12 modules: Dependency Injection, Configuration and Options, Minimal APIs and Routing, Model Binding and Validation, Middleware, LINQ and Collections, Async Fundamentals, Advanced Dependency Injection, Options and Feature Management, Middleware, Filters and Error Handling, EF Core Fundamentals and Authentication and Authorization.

How many ASP.NET Core exercises are there, and how hard are they?

48 exercises: 28 easy and 20 medium.

What does this path run on?

Challenges run on .NET 10.

Do I need to install anything?

No. Every challenge runs in a browser-based IDE with everything already set up, and your code is graded automatically against a test suite.

Is this ASP.NET Core or general C#?

ASP.NET Core. Every challenge is a piece of a .NET 10 web API. For C# language practice on its own, see the C# path.

Does it cover Entity Framework Core and authentication?

They’re scheduled, not live yet. EF Core Fundamentals and Authentication and Authorization (JWT and policies) come after async, advanced dependency injection, options and filters.

Can I read a challenge before signing up?

Yes. Every challenge has a public page with its full problem statement. Signing up lets you open it in the browser IDE and run the tests.

Is it free?

Yes. All 6 live modules are open on a free account, within the free plan’s weekly hour and monthly solution unlock.

Can I use AI while I solve a challenge?

Yes, if you want to. Each challenge lets you choose how to work: with AI agents, with AI chat only, or with no AI at all.

We use cookies that are necessary to run Staffcoder, and optional analytics cookies to see which pages get used. Analytics stays off unless you accept. Read our Cookie Policy.