Distributed Transaction-QA :👈 👉:NET-Core-Native-AOT-QA

ASP.NET Interview Questions 51 to 70

Q51. What is ASP.NET Core 10?

ASP.NET Core 10 is the web framework included with .NET 10 for building APIs, web applications, microservices, and real-time applications. .NET 10 is an LTS release.

Q52. What is the major improvement in Minimal APIs?

ASP.NET Core 10 introduces built-in validation support through AddValidation(), allowing validation attributes and IValidatableObject to be used with Minimal API request models.

Q53. What is AddValidation()?

AddValidation() registers the services required for built-in Minimal API validation.

Q54. What is Server-Sent Events?

SSE is a server-to-client communication mechanism that sends multiple events over a single HTTP connection.

Q55. What is the difference between SSE and SignalR?

SSE provides one-way communication from server to client. SignalR supports real-time two-way communication and can use WebSockets when available.

Q56. What is JSON Patch?

JSON Patch is a standard format defined by RFC 6902 that describes operations for modifying JSON documents.

Q57. What changed in JSON Patch in .NET 10?

A new implementation based on System.Text.Json was introduced, providing a modern alternative to the older Newtonsoft.Json-based implementation.

Q58. What is OpenAPI?

OpenAPI is a standard specification for describing HTTP APIs, including endpoints, parameters, request bodies, responses, and security requirements.

Q59. What is Native AOT?

Native AOT compiles application code into native machine code during publishing, reducing dependence on runtime JIT compilation.

Q60. What is new in ASP.NET Core memory management?

Built-in memory pools can automatically evict unused memory blocks during idle or low-load periods.

Q61. What is PipeReader?

PipeReader is an API for reading data from sequences of buffers. ASP.NET Core 10 uses improved System.Text.Json PipeReader support for JSON request processing.

Q62. What is new in Blazor reconnection?

The Blazor Web App template includes a ReconnectModal component and improved reconnection state notifications.

Q63. Does ASP.NET Core 10 support Minimal API validation for records?

Yes. Validation attributes can be applied to record types and their properties.

Q64. Does Native AOT support every .NET library?

No. Libraries that depend on unsupported dynamic code generation or reflection patterns may require changes or may not be compatible.

Q65. How do you upgrade an application to .NET 10?

Install the .NET 10 SDK, update the target framework to net10.0, update compatible packages, review breaking changes, run tests, and deploy after staging verification.

Q66. What is Dependency Injection in ASP.NET Core?

Dependency Injection is a technique in which a class receives its required dependencies from an external container instead of creating them internally. ASP.NET Core provides a built-in DI container for registering and resolving services.

Q67. What is the difference between IoC and DI?

IoC is a broader principle that transfers control to an external mechanism. DI is a technique used to implement IoC by supplying dependencies from outside a class.

Q68. What are the three DI lifetimes in ASP.NET Core?

  • Transient: A new instance is created for every resolution.
  • Scoped: One instance is created per DI scope.
  • Singleton: One instance is shared for the lifetime of the root service provider.

Q69. What is the difference between Transient and Scoped?

Transient creates a new instance each time it is resolved. Scoped creates one instance per scope, so multiple consumers in the same HTTP request generally receive the same instance.

Q70. What is the difference between Scoped and Singleton?

Scoped creates one instance per scope, while Singleton creates one instance shared across all scopes belonging to the same root service provider.

🔙
Distributed Transaction-QA :👈 👉:NET-Core-Native-AOT-QA