All fields

“.NET CLI” in Information Technology

118 questions across 5 technologies.

Information Technology

118 questions in 5 technologies

#QuestionTechnologyTopicLevel
1What is the dotnet CLI, and what are some of its most commonly used commands? .NET › .NET CLI, SDK & Project Structure (csproj).NET.NET CLI, SDK & Project Structure (csproj)Beginner
2How do you add, remove, and list NuGet package references using the dotnet CLI? .NET › .NET CLI, SDK & Project Structure (csproj).NET.NET CLI, SDK & Project Structure (csproj)Intermediate
3What is the .NET SDK, and how does it differ from the .NET Runtime? .NET › .NET CLI, SDK & Project Structure (csproj).NET.NET CLI, SDK & Project Structure (csproj)Beginner
4What is the structure and purpose of a .csproj file in a modern SDK-style .NET project? .NET › .NET CLI, SDK & Project Structure (csproj).NET.NET CLI, SDK & Project Structure (csproj)Intermediate
5How do global.json files pin a specific .NET SDK version for a project or repository? .NET › .NET CLI, SDK & Project Structure (csproj).NET.NET CLI, SDK & Project Structure (csproj)Intermediate
6How do you call an existing ASP.NET Core minimal API or controller endpoint from a Blazor WebAssembly component using HttpClient? ASP.NET Core › Blazor Integration with ASP.NET CoreASP.NET CoreBlazor Integration with ASP.NET CoreIntermediate
7What does `dotnet new` do, and how do you list available project templates? .NET › .NET CLI, SDK & Project Structure (csproj).NET.NET CLI, SDK & Project Structure (csproj)Beginner
8What does the `dotnet watch` command do, and how does it speed up local development? .NET › .NET CLI, SDK & Project Structure (csproj).NET.NET CLI, SDK & Project Structure (csproj)Beginner
9How do project references (<ProjectReference>) differ from package references, and how do they affect build order? .NET › .NET CLI, SDK & Project Structure (csproj).NET.NET CLI, SDK & Project Structure (csproj)Advanced
10How would you implement a simple HTTP server (not just a client) using the lightweight com.sun.net.httpserver.HttpServer class bundled with the JDK, without a full framework like Spring? Java › Java Networking & HTTP ClientJavaJava Networking & HTTP ClientAdvanced
11What is the fundamental difference between .NET (formerly .NET Core) and .NET Framework? .NET › .NET vs .NET Framework.NET.NET vs .NET FrameworkBeginner
12Should a brand-new .NET project in 2026 ever target .NET Framework instead of modern .NET? .NET › .NET vs .NET Framework.NET.NET vs .NET FrameworkBeginner
13What is the modern java.net.http.HttpClient (introduced in Java 11), and how does it improve on the older HttpURLConnection for making HTTP requests? Java › Java Networking & HTTP ClientJavaJava Networking & HTTP ClientBeginner
14How does target framework moniker (TFM) selection, like net8.0 or net8.0-windows, affect what a project can do? .NET › .NET CLI, SDK & Project Structure (csproj).NET.NET CLI, SDK & Project Structure (csproj)Intermediate
15What is .NET Standard, and why is it less relevant now compared to a few years ago? .NET › .NET vs .NET Framework.NET.NET vs .NET FrameworkIntermediate
16How does packages.config differ from PackageReference, and which is used in Framework versus modern .NET projects? .NET › .NET vs .NET Framework.NET.NET vs .NET FrameworkIntermediate
17Can .NET Framework and modern .NET applications be run side by side on the same machine, and how does that work? .NET › .NET vs .NET Framework.NET.NET vs .NET FrameworkIntermediate
18How does language version support differ between .NET Framework and modern .NET, specifically regarding C# language features? .NET › .NET vs .NET Framework.NET.NET vs .NET FrameworkIntermediate
19What is the java.net.Socket and ServerSocket class pair, and how would you implement a basic TCP client-server communication using them at a lower level than HttpClient? Java › Java Networking & HTTP ClientJavaJava Networking & HTTP ClientIntermediate
20What are Minimal APIs in ASP.NET Core, and when would you choose them over traditional MVC controllers? .NET › ASP.NET Core Middleware & Request Pipeline.NETASP.NET Core Middleware & Request PipelineIntermediate
21What is the release cadence and Long-Term Support (LTS) model for modern .NET, and how does it differ from Framework's release history? .NET › .NET vs .NET Framework.NET.NET vs .NET FrameworkAdvanced
22How would you implement a WebSocket client using java.net.http.WebSocket for real-time, bidirectional communication, and how does its event-driven Listener interface work? Java › Java Networking & HTTP ClientJavaJava Networking & HTTP ClientAdvanced
23What is a .sln (solution) file, and how does it relate to .csproj project files? .NET › .NET CLI, SDK & Project Structure (csproj).NET.NET CLI, SDK & Project Structure (csproj)Intermediate
24What is the difference between framework-dependent deployment (FDD) and self-contained deployment (SCD)? .NET › .NET CLI, SDK & Project Structure (csproj).NET.NET CLI, SDK & Project Structure (csproj)Intermediate
25What is the difference between dotnet build, dotnet publish, and dotnet run? .NET › .NET CLI, SDK & Project Structure (csproj).NET.NET CLI, SDK & Project Structure (csproj)Advanced
26What are MSBuild properties and items, and how do they control the build process? .NET › .NET CLI, SDK & Project Structure (csproj).NET.NET CLI, SDK & Project Structure (csproj)Advanced
27What is Directory.Build.props, and how does it help manage shared MSBuild settings across multiple projects in a repository? .NET › .NET CLI, SDK & Project Structure (csproj).NET.NET CLI, SDK & Project Structure (csproj)Advanced
28What is Native AOT (Ahead-of-Time) compilation, and what are its benefits and constraints? .NET › .NET CLI, SDK & Project Structure (csproj).NET.NET CLI, SDK & Project Structure (csproj)Advanced
29What is CORS, and why does an ASP.NET Core API need to explicitly configure it for browser-based clients on a different origin? ASP.NET Core › CORS (Cross-Origin Resource Sharing)ASP.NET CoreCORS (Cross-Origin Resource Sharing)Beginner
30How do you generate and use a strongly-typed gRPC client in a .NET application to call a gRPC service? ASP.NET Core › gRPC ServicesASP.NET CoregRPC ServicesIntermediate
31How does ASP.NET Core decide which output format to use when a client's Accept header lists multiple acceptable types with quality values (q-values)? ASP.NET Core › Content Negotiation & Output FormattersASP.NET CoreContent Negotiation & Output FormattersIntermediate
32How does ASP.NET Core determine the original client IP address and scheme (HTTP/HTTPS) when running behind a reverse proxy that terminates TLS and forwards requests, given the app only sees the proxy's connection? ASP.NET Core › Hosting Models: Kestrel, IIS & Reverse ProxiesASP.NET CoreHosting Models: Kestrel, IIS & Reverse ProxiesIntermediate
33How would you generate a client SDK automatically from an ASP.NET Core API's OpenAPI specification? ASP.NET Core › API Documentation with Swagger/OpenAPIASP.NET CoreAPI Documentation with Swagger/OpenAPIAdvanced
34How would you implement mutual TLS (mTLS) authentication in ASP.NET Core, where the server also validates a client-presented certificate? ASP.NET Core › HTTPS, Certificates & Transport SecurityASP.NET CoreHTTPS, Certificates & Transport SecurityAdvanced
35How do minimal API endpoint filters (IEndpointFilter) compare to traditional middleware for cross-cutting logic? .NET › ASP.NET Core Middleware & Request Pipeline.NETASP.NET Core Middleware & Request PipelineAdvanced
36What is an assembly in .NET, and what does it contain? .NET › Assemblies & NuGet.NETAssemblies & NuGetBeginner
37What is NuGet, and what problem does it solve for .NET developers? .NET › Assemblies & NuGet.NETAssemblies & NuGetBeginner
38What is the typical CI/CD pipeline structure for a .NET application? .NET › CI/CD, Publishing & Deployment.NETCI/CD, Publishing & DeploymentBeginner
39What are the official .NET Docker base images, and what's the difference between the sdk, aspnet, and runtime image variants? .NET › Docker & Containerization.NETDocker & ContainerizationBeginner
40What is the Generic Host in .NET, and what problem does it standardize across different application types? .NET › Generic Host.NETGeneric HostBeginner
41How do you configure a GitHub Actions workflow to build, test, and publish a .NET application? .NET › CI/CD, Publishing & Deployment.NETCI/CD, Publishing & DeploymentIntermediate
42How do you version and tag Docker images for a .NET application as part of a CI/CD pipeline? .NET › CI/CD, Publishing & Deployment.NETCI/CD, Publishing & DeploymentIntermediate
43How do third-party DI containers like Autofac integrate with ASP.NET Core's built-in DI abstractions? .NET › Dependency Injection.NETDependency InjectionIntermediate
44How does a multi-stage Dockerfile reduce the final image size for a .NET application, and what does each stage typically do? .NET › Docker & Containerization.NETDocker & ContainerizationIntermediate
45How does .dockerignore improve Docker build performance and image cleanliness for .NET projects? .NET › Docker & Containerization.NETDocker & ContainerizationIntermediate
46How do you configure a .NET application inside a container to listen on the correct port, and what does ASPNETCORE_URLS control? .NET › Docker & Containerization.NETDocker & ContainerizationIntermediate
47How does the IExceptionHandler interface (introduced in .NET 8) provide a more structured alternative to the UseExceptionHandler lambda approach? .NET › Global Exception Handling & Middleware.NETGlobal Exception Handling & MiddlewareIntermediate
48How do you define a gRPC service contract using Protocol Buffers (.proto files), and how does code generation work in a .NET project? .NET › gRPC Services.NETgRPC ServicesIntermediate
49What is the purpose of a multi-stage Dockerfile for .NET applications, and how does it reduce final image size? .NET › CI/CD, Publishing & Deployment.NETCI/CD, Publishing & DeploymentAdvanced
50What is Native AOT's benefit for containerized .NET applications specifically, beyond the general startup time improvement? .NET › Docker & Containerization.NETDocker & ContainerizationAdvanced
51How would you optimize a Docker image build for a solution with multiple .NET projects sharing common dependencies, to maximize layer cache reuse? .NET › Docker & Containerization.NETDocker & ContainerizationAdvanced
52How do third-party DI containers like Autofac integrate with ASP.NET Core's built-in DI abstractions, and why would a team choose one? ASP.NET Core › Dependency InjectionASP.NET CoreDependency InjectionAdvanced
53How do you use the Clipboard and Share APIs? .NET MAUI › Device Features & Essentials.NET MAUIDevice Features & EssentialsIntermediate
54How do you use the Clipboard and Share APIs? .NET MAUI › Device Features & Essentials.NET MAUIDevice Features & EssentialsIntermediate
55What HTTP caching headers (Cache-Control, ETag) can a client and CDN use, and how do they relate to server-side caching strategies? .NET › Caching (In-Memory, Distributed & Redis).NETCaching (In-Memory, Distributed & Redis)Intermediate
56What is gRPC-Web, and why is it needed for calling gRPC services directly from a browser-based JavaScript client? .NET › gRPC Services.NETgRPC ServicesIntermediate
57Why is it important to validate a server's TLS certificate when making outbound HttpClient calls to external services, and what's the risk of disabling certificate validation? ASP.NET Core › HTTPS, Certificates & Transport SecurityASP.NET CoreHTTPS, Certificates & Transport SecurityIntermediate
58How do you configure CORS to expose custom response headers to client-side JavaScript using Access-Control-Expose-Headers? .NET › CORS & Cross-Origin Resource Sharing.NETCORS & Cross-Origin Resource SharingAdvanced
59How do you handle exceptions that occur during response streaming, after the response has already partially started sending to the client? .NET › Global Exception Handling & Middleware.NETGlobal Exception Handling & MiddlewareAdvanced
60What HTTP status code should an API return when it cannot produce a response in any format the client's Accept header requests? ASP.NET Core › Content Negotiation & Output FormattersASP.NET CoreContent Negotiation & Output FormattersBeginner
61How do you register and use HttpClient with IHttpClientFactory in MAUI? .NET MAUI › Dependency Injection & Services.NET MAUIDependency Injection & ServicesIntermediate
62How do you register and use HttpClient with IHttpClientFactory in MAUI? .NET MAUI › Dependency Injection & Services.NET MAUIDependency Injection & ServicesIntermediate
63How do you communicate API version deprecation to clients using response headers? .NET › API Versioning.NETAPI VersioningIntermediate
64What HTTP status code and response should an API return when a client requests a version that no longer exists or was never supported? .NET › API Versioning.NETAPI VersioningIntermediate
65What is the OAuth 2.0 Client Credentials flow, and when is it used instead of the Authorization Code flow? .NET › Authentication & Authorization (Identity, JWT, OAuth).NETAuthentication & Authorization (Identity, JWT, OAuth)Intermediate
66How should a global exception handler differentiate between exceptions that should return specific client-facing details versus exceptions that should always show a generic message? .NET › Global Exception Handling & Middleware.NETGlobal Exception Handling & MiddlewareIntermediate
67How would you version a gRPC service's contract while maintaining backward compatibility with existing clients? .NET › gRPC Services.NETgRPC ServicesIntermediate
68How does client-side load balancing work for gRPC when calling a service with multiple backend instances, without a dedicated load balancer? .NET › gRPC Services.NETgRPC ServicesIntermediate
69How do you configure a sunset date for a deprecated API version so clients receive a clear removal timeline? ASP.NET Core › API VersioningASP.NET CoreAPI VersioningIntermediate
70What is the difference between AuthorizeAttribute's behavior returning 401 versus 403, and what determines which one a client receives? ASP.NET Core › AuthorizationASP.NET CoreAuthorizationIntermediate
71What is the [Produces] attribute, and how does it restrict which content types a specific action can return regardless of what the client's Accept header requests? ASP.NET Core › Content Negotiation & Output FormattersASP.NET CoreContent Negotiation & Output FormattersIntermediate
72How do you configure CORS to expose custom response headers (like X-Total-Count for pagination) to client-side JavaScript? ASP.NET Core › CORS (Cross-Origin Resource Sharing)ASP.NET CoreCORS (Cross-Origin Resource Sharing)Intermediate
73How should a global exception handler differentiate between exceptions meant for client-facing details versus exceptions that should always show a generic message? ASP.NET Core › Error HandlingASP.NET CoreError HandlingIntermediate
74How do you stream a large file back to the client as a download response without loading the entire file into memory first? ASP.NET Core › File Uploads & Streaming Large FilesASP.NET CoreFile Uploads & Streaming Large FilesIntermediate
75How do you validate an uploaded file's actual content type (not just its client-supplied extension or Content-Type header) to prevent malicious file uploads? ASP.NET Core › File Uploads & Streaming Large FilesASP.NET CoreFile Uploads & Streaming Large FilesIntermediate
76How would you design exception handling middleware to support internationalized (localized) error messages returned to clients in different languages? .NET › Global Exception Handling & Middleware.NETGlobal Exception Handling & MiddlewareAdvanced
77What are the four types of gRPC service methods (unary, server streaming, client streaming, bidirectional streaming), and when is each appropriate? .NET › gRPC Services.NETgRPC ServicesAdvanced
78How do you document and test webhook or callback endpoints (server-initiated calls to a client-registered URL) in OpenAPI 3.1? ASP.NET Core › API Documentation with Swagger/OpenAPIASP.NET CoreAPI Documentation with Swagger/OpenAPIAdvanced
79How do you combine multiple version reader strategies (e.g., both URL segment AND header) to give clients flexibility in how they specify a version? ASP.NET Core › API VersioningASP.NET CoreAPI VersioningAdvanced
80How do you handle exceptions that occur during response streaming, after the response has already partially started sending to the client? ASP.NET Core › Error HandlingASP.NET CoreError HandlingAdvanced
81How would you design exception handling to support internationalized (localized) error messages returned to different clients in their preferred language? ASP.NET Core › Error HandlingASP.NET CoreError HandlingAdvanced
82How would you implement upload progress reporting to a client during a large file upload, given HTTP doesn't natively provide this? ASP.NET Core › File Uploads & Streaming Large FilesASP.NET CoreFile Uploads & Streaming Large FilesAdvanced
83How do the four gRPC method types (unary, server streaming, client streaming, bidirectional streaming) differ, and when would you use each? ASP.NET Core › gRPC ServicesASP.NET CoregRPC ServicesAdvanced
84How would you design a gRPC-based service to gracefully handle protobuf schema evolution (adding/removing fields) without breaking existing deployed clients? ASP.NET Core › gRPC ServicesASP.NET CoregRPC ServicesAdvanced
85What is the difference between continuous integration (CI) and continuous deployment/delivery (CD)? .NET › CI/CD, Publishing & Deployment.NETCI/CD, Publishing & DeploymentBeginner
86What is CIL (Common Intermediate Language), and what role does it play between source code and execution? .NET › CLR & Runtime.NETCLR & RuntimeBeginner
87How does NuGet resolve version conflicts when two packages depend on different versions of the same transitive dependency? .NET › Assemblies & NuGet.NETAssemblies & NuGetIntermediate
88How do you create and publish your own NuGet package from a class library project? .NET › Assemblies & NuGet.NETAssemblies & NuGetIntermediate
89What is the difference between a NuGet package's dependency group targeting different frameworks, and why do multi-targeted packages need this? .NET › Assemblies & NuGet.NETAssemblies & NuGetIntermediate
90What is a NuGet lock file (packages.lock.json), and what problem does it solve for reproducible builds? .NET › Assemblies & NuGet.NETAssemblies & NuGetIntermediate
91What are NuGet package sources, and how do you configure a project to pull packages from a private/internal feed alongside NuGet.org? .NET › Assemblies & NuGet.NETAssemblies & NuGetIntermediate
92How does Blazor WebAssembly's initial load performance compare to Blazor Server, and what techniques mitigate WASM's larger download size? .NET › Blazor (Server & WebAssembly).NETBlazor (Server & WebAssembly)Intermediate
93What is the purpose of separate build and release pipelines (or stages), and why shouldn't you rebuild the application for each deployment environment? .NET › CI/CD, Publishing & Deployment.NETCI/CD, Publishing & DeploymentIntermediate
94What is the difference between dotnet publish's --self-contained and framework-dependent options in the context of container image builds? .NET › CI/CD, Publishing & Deployment.NETCI/CD, Publishing & DeploymentIntermediate
95What is JIT (Just-In-Time) compilation, and how does it differ from ahead-of-time (AOT) compilation? .NET › CLR & Runtime.NETCLR & RuntimeIntermediate
96What is user secrets (dotnet user-secrets), and why should it only be used for local development, never production? .NET › Configuration & Options.NETConfiguration & OptionsIntermediate
97How does the command-line configuration provider let you override settings via arguments when running an application? .NET › Configuration & Options.NETConfiguration & OptionsIntermediate
98What is the difference between Host.CreateApplicationBuilder and the older Host.CreateDefaultBuilder? .NET › Generic Host.NETGeneric HostIntermediate
99What is the role of IHostLifetime, and how does it differ across console applications, Windows Services, and containers? .NET › Generic Host.NETGeneric HostIntermediate
100What is user secrets (dotnet user-secrets), and why should it be used only for local development, never production? ASP.NET Core › Configuration & Options PatternASP.NET CoreConfiguration & Options PatternIntermediate
101How does the command-line configuration provider let you override settings via arguments when running an application, and what's its precedence? ASP.NET Core › Configuration & Options PatternASP.NET CoreConfiguration & Options PatternIntermediate
102What is Central Package Management (CPM) in NuGet, and how does Directory.Packages.props centralize version control? .NET › Assemblies & NuGet.NETAssemblies & NuGetAdvanced
103How does semantic versioning apply to NuGet packages, and what do version range operators like [1.0,2.0) mean? .NET › Assemblies & NuGet.NETAssemblies & NuGetAdvanced
104Why does copying only the .csproj file before the rest of the source code in a Dockerfile improve build caching? .NET › Docker & Containerization.NETDocker & ContainerizationAdvanced
105What is a container health check (HEALTHCHECK instruction), and how does it differ from a Kubernetes liveness/readiness probe? .NET › Docker & Containerization.NETDocker & ContainerizationAdvanced
106How do EF Core migrations work, and what is the recommended workflow for applying them safely in production? .NET › Entity Framework Core & Data Access.NETEntity Framework Core & Data AccessAdvanced
107How would you build a console application that supports both interactive command execution and long-running hosted service behavior using the Generic Host? .NET › Generic Host.NETGeneric HostAdvanced
108How does the Generic Host's DI container differ from a full-featured third-party container in terms of the features it deliberately omits? .NET › Generic Host.NETGeneric HostAdvanced
109How do you call a REST API in MAUI? .NET MAUI › Networking & APIs.NET MAUINetworking & APIsBeginner
110How do you call a REST API in MAUI? .NET MAUI › Networking & APIs.NET MAUINetworking & APIsBeginner
111How do you implement resilient HTTP calls (retries, timeouts) in MAUI? .NET MAUI › Networking & APIs.NET MAUINetworking & APIsIntermediate
112How do you implement resilient HTTP calls (retries, timeouts) in MAUI? .NET MAUI › Networking & APIs.NET MAUINetworking & APIsIntermediate
113How do you configure gRPC to work correctly when hosted behind a reverse proxy or load balancer, given gRPC's reliance on HTTP/2? ASP.NET Core › gRPC ServicesASP.NET CoregRPC ServicesIntermediate
114What is certificate pinning, and why is it generally discouraged for typical web API scenarios despite its security benefits? ASP.NET Core › HTTPS, Certificates & Transport SecurityASP.NET CoreHTTPS, Certificates & Transport SecurityIntermediate
115How do you implement authentication token refresh transparently for API calls? .NET MAUI › Networking & APIs.NET MAUINetworking & APIsAdvanced
116How do you implement authentication token refresh transparently for API calls? .NET MAUI › Networking & APIs.NET MAUINetworking & APIsAdvanced
117How would you implement deadline/timeout propagation across a chain of gRPC calls to prevent cascading resource exhaustion when a downstream service is slow? ASP.NET Core › gRPC ServicesASP.NET CoregRPC ServicesAdvanced
118How would you set a per-check timeout to prevent one slow or hanging dependency check from blocking the entire /health endpoint response indefinitely? ASP.NET Core › Health ChecksASP.NET CoreHealth ChecksAdvanced