Interview Questions and Answers - Multi Topic
Azure DevOps Interview Q&A
1. What is Azure DevOps?
Azure DevOps is a cloud-based platform from Microsoft that provides a set of tools for software development including
source control, build pipelines, testing, and deployment.
2. What are the core services of Azure DevOps?
- Azure Repos (Version Control)
- Azure Pipelines (CI/CD)
- Azure Boards (Work Items, Kanban)
- Azure Test Plans (Testing Tools)
- Azure Artifacts (Package Management)
3. What is the difference between Build and Release pipelines?
Build pipelines compile and test your code, while Release pipelines deploy builds to environments like staging or
production.
4. How do you implement CI/CD in Azure DevOps?
By setting up YAML or classic pipelines for automated build, testing, and deployment on code push.
5. What is the use of YAML in Azure Pipelines?
YAML provides a configuration-as-code way to define CI/CD pipelines in a version-controlled file.
Interview Questions and Answers - Multi Topic
RxJS Operators in Angular (map, switchMap, mergeMap, catchError)
- map: Transforms each emitted value (like Array.map).
- switchMap: Cancels previous inner observable when a new value arrives.
- mergeMap: Flattens all inner observables concurrently.
- catchError: Catches errors and allows fallback logic.
Example: search API call on input keypress using switchMap to avoid race conditions.
Interview Questions and Answers - Multi Topic
Middleware in .NET Core 8
- Types: Built-in, Third-party, Custom.
- Custom Middleware: Create a class with `Invoke` or `InvokeAsync`, inject via `UseMiddleware` in Program.cs.
- Bulk Generation: Use a script to register 1000+ DI middlewares (not recommended for production).
Example:
public class LoggingMiddleware {
private readonly RequestDelegate _next;
public LoggingMiddleware(RequestDelegate next) => _next = next;
public async Task InvokeAsync(HttpContext context) {
Console.WriteLine("Request Path: " + context.Request.Path);
await _next(context);
}
Interview Questions and Answers - Multi Topic
Difference Between const and readonly in C#
- const: Compile-time constant, static by default, must be initialized where declared.
- readonly: Runtime constant, can be assigned in constructor.
Example:
const int Max = 100;
readonly int id = 101; // valid in constructor
Interview Questions and Answers - Multi Topic
Difference between Observable and Promise in Angular
- Observable: Lazy, cancellable, supports multiple values.
- Promise: Eager, not cancellable, supports only one value.
Use Observable for HTTP calls and reactive forms; Promise for simple one-time async operations.