ASP.NET Core Basics
418: I'm a Teapot
Separation of Concerns
Works on My Machine
Too Many Requests
100

The entry point file for configuring an ASP.NET Core application

What is Program.cs?

100

This HTTP header describes the media type of the request body

What is Content-Type?

100

This construct defines a set of methods or properties without providing an implementation

What is an interface?

100

The .NET package manager

What is NuGet?

100

This metric measures how many requests a system can handle over time

What is throughput?

200

These components are executed in order and can inspect, modify, or short-circuit an HTTP request before it reaches an endpoint

200

This HTTP status code is used when a resource already exists during creation

What is 409 Conflict?

200

This pattern is often used to separate presentation logic from business logic in web applications

200

A test that validates multiple components working together

What is an integration test?

200

This metric measures the time it takes to handle a single request

What is latency?

300

This type of service is created only once for the lifetime of the application

300

A value extracted from the URL path rather than the query string

What is a route parameter?

300

This pattern abstracts data access behind an interface, allowing swapping storage implementations without changing business logic

300
A fake dependency used to control test behavior

What is a mock?

300

This resiliency pattern limits concurrent access to a dependency

What is a bulkhead?

400

This ASP.NET Core feature allows services to be registered once and resolved automatically at runtime

400

This HTTP status code indicates the server cannot fulfill the request's media type

What is 415 Unsupported Media Type?

400

This design pattern creates objects without exposing instantiation logic, allowing higher-level code to depend on abstractions rather than concrete types

400

The pipeline stage that runs tests automatically

400

This resiliency pattern enforces an upper time limit on an operation

What is a timeout policy?

500

Injecting this lifetime into a singleton can cause runtime failures or unexpected behavior

500

A property of HTTP methods where repeated calls produce the same result

500

Splitting read operations from write operations to improve clarity and scalability is an example of this architectural approach

What is CQRS (Command Query Responsibility Segregation)


https://learn.microsoft.com/en-us/azure/architecture/patterns/cqrs

500

A failure caused by a shared state between separate tests

What is a lack of test isolation (test pollution)?

500

This condition occurs when failures in one service propagate to others