I. .NET Core & C#
Dependency Injection:
Explain the DI container in .NET Core. How do you register a service with a scoped lifetime?
Follow-up: What are the differences between Singleton, Scoped, and Transient lifetimes?
Middleware & Pipeline:
Describe the request pipeline in ASP.NET Core. How would you create custom middleware for logging?
API Development:
How do you implement JWT authentication in a .NET Core Web API?
Code Task: Write a controller action for a RESTful POST endpoint that validates model state.
Performance & Security:
How do you prevent SQL injection in .NET Core?
What is the
async/await
pattern? Explain deadlock risks and mitigation.
Advanced C#:
Explain the differences between
IEnumerable
,ICollection
, andIList
.When would you use a
record
vs. aclass
?
II. Angular (TypeScript/HTML/CSS)
Component Lifecycle:
Describe Angular’s
ngOnInit
vs.ngAfterViewInit
. When would you usengOnChanges
?
State Management:
How do you manage state in Angular without external libraries? Explain
BehaviorSubject
andasync
pipe.Scenario: Share data between sibling components.
RxJS & Observables:
Convert a promise-based HTTP call to an Observable. How do you handle errors using
catchError
?Explain operators:
switchMap
vs.mergeMap
.
Performance Optimization:
How do you implement lazy loading for modules?
What is change detection strategy? When to use
OnPush
?
Directives & Pipes:
Create a custom structural directive. How do you create a pure vs. impure pipe?
III. Azure Cloud Services
App Services & Deployment:
How do you deploy an Angular/.NET Core app to Azure App Service?
Explain deployment slots and blue-green deployment.
Azure SQL & Cosmos DB:
Compare Azure SQL Database with Cosmos DB. When would you choose one over the other?
How do you secure database connections using Managed Identities?
Serverless & Integration:
Describe a use case for Azure Functions in a microservices architecture.
How do you use Azure Service Bus for decoupling services?
Storage Solutions:
When would you use Azure Blob Storage vs. Azure Table Storage?
How do you implement CDN for static assets?
Monitoring & DevOps:
Configure Application Insights for an Angular/.NET app. What metrics would you track?
Set up CI/CD pipelines in Azure DevOps (YAML vs. classic editor).
IV. SQL & Database Design
Query Optimization:
Optimize a slow-running query with multiple joins. How do indexes improve performance?
Scenario: Diagnose deadlocks in SQL Server.
Database Design:
Design schema for an e-commerce system (products, orders, users).
Explain normalization vs. denormalization trade-offs.
Advanced SQL:
Write a query to find duplicates in a table.
Compare
INNER JOIN
,LEFT JOIN
, andCROSS APPLY
.
Transactions & ACID:
Implement a transaction in T-SQL. How do you handle rollbacks?
What is isolation level
READ COMMITTED SNAPSHOT
?
Azure SQL Specifics:
How do you configure geo-replication?
Explain DTU vs. vCore purchasing models.
V. Full Stack Architecture & Scenarios
System Design:
Design a scalable file-upload service using Angular, .NET Core, and Azure Blob Storage.
How would you secure API endpoints using OAuth 2.0?
Microservices:
Compare monolithic vs. microservices architectures. When is microservices overkill?
How do you manage inter-service communication (gRPC vs. REST)?
Caching Strategies:
Implement Redis caching in .NET Core for a high-read endpoint.
Cache invalidation approaches for dynamic data.
Testing:
Write a unit test for an Angular service using Jasmine.
Mock dependencies in a .NET Core controller with Moq.
Troubleshooting:
Debug a CORS issue between Angular and .NET Core API.
Diagnose latency in an Azure-deployed app.
VI. Behavioral & Problem-Solving
Conflict Resolution:
Describe a time you disagreed with a technical decision. How did you handle it?
Learning & Adaptability:
How do you stay updated with Angular/.NET/Azure changes? Share a recent skill you learned.
Code Review:
What key issues do you look for in a PR (e.g., security, performance)?
Tips for Interviewers:
Coding Exercises:
Frontend: Build a reactive Angular form with validation.
Backend: Create a .NET Core API with pagination and filtering.
Azure Scenario: Design a cost-optimized architecture for a traffic-spiky application.
SQL Challenge: Optimize a 10-table join query and suggest indexing strategies.
No comments:
Post a Comment