SMASH Manuela Cortés Granados · Technical evaluation questions
SMASH P-169 · Interview preparation

Technical Evaluation Questions — .NET 8 / Angular 13+

Eleven interview questions derived from the P-169 must-haves: Angular architecture from scratch, RxJS fundamentals and reactive patterns, state management, reactive forms, multi-layer .NET 8 APIs, OIDC/OAuth 2.0 security implemented in ASP.NET Core, relational and NoSQL data design, testing and CI/CD, and container-based production support. Each question includes what the interviewer is actually probing, a structured answer, and the follow-ups to expect.

11 questions English Angular 13+ RxJS State management Reactive forms .NET 8+ EF Core / Dapper SQL / NoSQL Testing / CI-CD Docker / Kubernetes OAuth 2.0 / OIDC

IndexJump to any question · anchor links work per question

  1. Angular architecture from scratch: modules, lazy loading, guards, interceptors
  2. RxJS: type-ahead search without backend flooding or leaked subscriptions
  3. Multi-layer .NET 8 API: DI, layering, EF Core vs Dapper
  4. Authentication and authorization with OAuth 2.0 / OpenID Connect
  5. Production incident in Docker/Kubernetes, and AI-assisted code review
  6. Definition of RxJS: observable sequences, core building blocks, when not to use it
  7. State management: service + signals, component store, or NgRx
  8. Reactive forms: custom validators, cross-field rules, reusable controls
  9. Relational modelling, indexing and query tuning; when NoSQL instead
  10. Testing strategy and CI/CD gates with Git and Azure DevOps
  11. OAuth 2.0 and OpenID Connect in ASP.NET Core: validation, policies, ownership

How to read this page. Answers are collapsed by default: read the question, think your own answer, then expand to compare. The wording in the Question block is the phrasing an interviewer would typically use; each answer is written in the candidate's own voice, first person, and is meant to be spoken in 60–120 seconds with the code sketch used only as a whiteboard aid.

0 of 11 answers expanded

The eleven questionsTechnical depth mapped to the job description

Q1 Angular architecture Lazy loading · guards · interceptors

How do you structure a new Angular application from scratch with at least five feature modules?

Question: “This role sets up Angular applications from scratch and works on apps with at least five modules. Walk me through your initial architecture: folder layout, routing with lazy loading, and where guards, interceptors, and shared code live. Why that structure?”
What is being probed: whether the structure is a habit or a decision. The interviewer listens for a clear dependency rule (feature isolation, no cross-feature imports), a bootstrapping sequence (routing first, then auth, then design system), and the ability to explain trade-offs instead of listing folders.
Show answer · architecture diagram, dependency rule, routing, guards, interceptors, state, quality gates, follow-ups

I start from the boundaries of the domain, not from the framework. Before writing code I list the business capabilities the product sells — for this client that would be dashboard, shipments, billing, reports, admin — and each capability becomes one lazily loaded feature. Everything that is not a capability goes into three technical buckets: core/ (singletons), shared/ (stateless reuse), layout/ (the shell). The rule that makes the structure real is a dependency rule a reviewer can enforce in a pull request: features may import from core and shared; shared never imports a feature; core imports neither.

Angular application architecture: bootstrap, shell, router, lazy features, core, shared and the HTTP chain Bootstrap loads the runtime configuration and registers the global error handler, the shell renders the layout with the router outlet, the root router lazily loads five independent feature chunks, the features may import the shared UI kit and the core singletons but never each other, and every HTTP call passes through an ordered interceptor chain before reaching the API. index.html → main.ts bootstrapApplication(AppComponent, appConfig) Runtime configuration assets/config.json · APP_INITIALIZER before first render Global error handler correlation id · logging · telemetry Shell · AppComponent + LayoutComponent header · breadcrumbs · sidenav · toast host · <router-outlet> owns layout and session chrome only — never feature data Root router · app.routes.ts one lazy entry per capability · canMatch checks the role before the chunk is downloaded · canActivate after it loads features/dashboard chunk A · default route routes · state · data · ui eager (first paint) features/shipments chunk B · lazy routes · state · data · ui own guard + resolver features/billing chunk C · lazy + role routes · state · data · ui canMatch: billing-admin features/reports chunk D · lazy routes · state · data · ui heavy libs isolated here features/admin chunk E · lazy + role routes · state · data · ui never imported by features may import may import core/ — singletons, instantiated once auth (OIDC · PKCE) · guards · interceptors · config tokens · telemetry provided in root · no UI components · no feature imports a second instance here means a duplicated session or token refresh shared/ — stateless and reusable ui kit · directives · pipes · form validators · table abstractions no providers · no HTTP · no business vocabulary if it needs data it is a container, and containers are feature code HttpClient · interceptor chain (request order, response reversed) AuthToken → RefreshOn401 → Retry(idempotent) → CorrelationId → ErrorNormalizer order is a design decision: the refresh must sit inside the token interceptor to replay with the new token REST API / BFF ProblemDetails · versioned · idempotent writes authorisation is enforced here too, never only in the guard singleton stateless reuse lazy feature chunk lazy load allowed dependency forbidden import
Figure 1. The five decisions that define the structure: what the shell owns, where routing becomes enforceable, how a feature is isolated as its own chunk, what may depend on what, and the only place where HTTP leaves the application.

The dependency rule, written down

A folder diagram is decoration unless it comes with a rule and a way to fail the build when the rule breaks. This is the table I put in the repository's README or ARCHITECTURE.md:

ImporterMay import core/May import shared/May import another feature
core/—NoNo
shared/Only tokens and types—No
features/<x>YesYesNo — move the contract to core/
app shellYesYesOnly through a lazy route, never by importing internals

Enforcement is cheap if it exists from day one: @typescript-eslint with no-restricted-imports patterns, or dependency-cruiser with a forbidden rule, plus a CI step that fails on a violation. A written rule that only lives in a wiki is a rule that lasts until the first Friday deadline.

1 · Bootstrap: what happens before the first pixel

  1. index.html loads main.ts. With standalone bootstrapping the entry point is one call: bootstrapApplication(AppComponent, appConfig).
  2. Runtime configuration is loaded before render — an APP_INITIALIZER (or provideAppInitializer in newer versions) fetches assets/config.json with the API base URL and feature flags. That is what lets the same built artefact be promoted from QA to production instead of rebuilding per environment.
  3. The global ErrorHandler is registered before any route resolves, so a failure in a resolver is reported with the same shape as a failure in a click handler.
  4. The shell renders: header, navigation, breadcrumbs, toast host and a single <router-outlet>. The shell never fetches feature data; it owns layout and session chrome.
  5. The initial route is the only feature that can be part of the main chunk. Everything else waits for the user to navigate.

2 · Routing is the architecture

The root router declares the shell and one entry per capability. Two guard types do different jobs and it is worth being precise about them, because the difference is measurable in kilobytes: canMatch runs before the lazy chunk is downloaded, canActivate runs after it loads. A role check belongs in canMatch, otherwise an unauthorised user downloads the module they will never see.

// app.routes.ts — the shell declares features, never their internals
export const routes: Routes = [
  { path: '', pathMatch: 'full', redirectTo: 'dashboard' },
  {
    path: 'dashboard',
    loadChildren: () => import('./features/dashboard/dashboard.routes').then(m => m.DASHBOARD_ROUTES),
    canActivate: [authGuard]
  },
  {
    path: 'shipments',
    loadChildren: () => import('./features/shipments/shipments.routes').then(m => m.SHIPMENTS_ROUTES),
    canMatch: [roleMatchGuard(['ops', 'pricing'])],   // Angular 14+: no chunk download for the wrong role
    canActivate: [authGuard],
    resolve: { reference: referenceDataResolver }
  },
  {
    path: 'billing',
    loadChildren: () => import('./features/billing/billing.routes').then(m => m.BILLING_ROUTES),
    canMatch: [roleMatchGuard(['billing-admin'])],
    data: { title: 'Billing' }
  },
  { path: '**', component: NotFoundComponent }
];

Three decisions around routing that I make at setup rather than later:

  • Preloading strategy. PreloadAllModules is fine for five small features; with heavy reporting or mapping libraries I use a custom strategy that preloads only the routes the current user's role can reach, and never on a metered connection.
  • Route-level providers. A feature declares its own service instances (providers: [ShipmentStore]) so leaving the route disposes them. That is the cheapest way to avoid leaks in a long-lived SPA.
  • Titles, scroll and breadcrumbs come from router events once, in the shell, not from each component.

3 · Guards: four jobs, four places

GuardQuestion it answersWhere it lives
canMatchDoes this route exist for this user at all?Root, next to the lazy entry
canActivateMay this user enter this screen?Feature route
canDeactivateCan the user leave with unsaved work?On the form route
resolveWhat data does the screen need to render once?Feature route

Two details that separate a working guard from a bug report: a guard must complete (first(), take(1) or a promise) because an observable that emits twice cancels and re-runs navigation; and a guard is a UX boundary, not a security boundary — the API authorises every request again, because the browser is the user's machine.

4 · The interceptor chain is ordered on purpose

// app.config.ts — order is a design decision, not an accident
provideHttpClient(
  withInterceptors([
    authTokenInterceptor,      // 1. attach the bearer token
    refreshOn401Interceptor,   // 2. refresh once, then replay the request
    retryIdempotentInterceptor,// 3. retry GETs with backoff, never POSTs
    correlationIdInterceptor,  // 4. one id per request, echoed in the response
    errorNormalizerInterceptor // 5. map ProblemDetails to a domain error
  ])
)

For a request the array reads top-down; for the response it unwinds bottom-up. That is why the refresh sits inside the token interceptor: the replayed request has to pass through it again to pick up the new token. And it is why error normalisation is last — every failure, including a failed refresh, arrives at the same shape and the same toast.

5 · State: local first, shared only when it is shared

  • Component state — signals or plain fields. Most of the state in a business application is this.
  • Feature state — a service provided at the feature route, holding the list, the filters and the selected record. It dies when the user leaves the feature.
  • Cross-feature state — a small facade in core/ with an explicit interface: session, permissions, tenant, reference data. Features subscribe to it; they do not reach into each other.
  • A store (NgRx, ComponentStore) only when there is real need: optimistic updates, undo, many actors over the same data, or devtools as a requirement. A store introduced "for consistency" in a five-module app usually becomes the place where every feature is coupled to every other.

6 · The folder tree I would actually create

src/
  app/
    core/                      singletons — no UI, no feature imports
      auth/                    oidc client, token storage, session facade
      http/                    api client, interceptors, problem-details mapping
      guards/                  auth.guard.ts · role-match.guard.ts · unsaved.guard.ts
      config/                  runtime config loader + InjectionTokens
      telemetry/               ErrorHandler, logger, correlation id
    shared/                    stateless and reusable
      ui/                      button, table, empty-state, badge, dialog
      directives/              clickOutside, autofocus, hasPermission
      pipes/                   weight, money, timeAgo
      forms/                   validators, ControlValueAccessor controls
    layout/                    shell: header, sidenav, breadcrumbs, outlet
    features/
      dashboard/               routes.ts · state/ · data/ · ui/
      shipments/               routes.ts · state/ · data/ · ui/
      billing/                 routes.ts · state/ · data/ · ui/
      reports/                 routes.ts · state/ · data/ · ui/
      admin/                   routes.ts · state/ · data/ · ui/
    app.routes.ts              root routes — one lazy entry per capability
    app.config.ts              providers: http, router, interceptors, initializers
  assets/config.json           runtime configuration, not build-time
  environments/                build defaults only, never secrets

Inside a feature the four folders are the same everywhere, so a developer who knows one feature knows all five: routes.ts (entry and guards), data/ (HTTP calls and DTO mapping), state/ (signals or store), ui/ (smart containers and dumb components). Consistency across features is worth more than a perfect internal layout in one of them.

7 · Quality gates that exist before the first feature

  • TypeScript strict — strict: true, noImplicitAny, strictTemplates in tsconfig. Retrofitting strictness into a five-module app costs weeks; adopting it at ng new costs nothing.
  • Lint with boundaries — ESLint + Prettier, plus the import rule from the table above, plus no-floating-promises (an unawaited HTTP call is a silent defect).
  • Bundle budgets in angular.json: a warning at 500 kB initial and an error at 1 MB. Budgets turn "the app feels slow" into a red build on the pull request that caused it.
  • Tests in three layers — unit for pipes, validators and pure functions; component tests with a host component for the shared UI; Playwright for the two or three flows that move money.
  • CI order — install → lint → typecheck → unit → build → e2e → publish artefact. The build is the artefact that gets promoted; nothing is rebuilt per environment.

8 · Rendering and configuration choices made at setup

SPA by default; SSR plus hydration when first paint or SEO matters, and then the rule that no component touches window, document or localStorage directly — isPlatformBrowser, Renderer2 and injected abstractions instead, or the build starts failing in prerender. Configuration lives in assets/config.json loaded at runtime; secrets never enter the SPA at all, because everything shipped to the browser is public.

9 · When the application outgrows one project

One application is the right answer until roughly five to eight features, or until two teams need independent release cadence. At that point the same boundaries become an Nx workspace with libraries (ui, data-access, one lib per feature) and enforced module tags — not because monorepos are fashionable, but because the dependency rule I wrote on day one is already the shape of the libraries, and moving is mechanical instead of a rewrite.

10 · What actually breaks at five modules

SymptomUsual causeFix
Main bundle grows every sprintA heavy component imported eagerly through a barrel fileBudgets in CI, no barrel re-export of heavy modules, lazy route for the heavy screen
Two sessions, two token refreshesAuth provided in a shared module imported by two lazy featuresSingletons only in core/ or providedIn: 'root'
Circular imports, build order surprisesFeatures importing each other's servicesMove the contract to core/, expose a facade, emit events
Navigation runs twiceA guard returning an observable that emits more than oncefirst()/take(1), and test the guard in isolation
Slow first paint after a deployEverything preloaded, or a stale service worker caching old chunksRole-aware preloading, versioned cache, hard refresh strategy

11 · The first two weeks, in order

  1. Days 1–2 — repository, strict TypeScript, ESLint with boundaries, Prettier, CI pipeline, bundle budgets.
  2. Days 3–4 — shell, layout, router skeleton with five lazy stubs, 404 page, route titles.
  3. Days 5–6 — authentication (OIDC + PKCE), guards, interceptor chain, error normalisation, session facade.
  4. Days 7–8 — design tokens and the first shared components: button, table, empty state, form field.
  5. Days 9–10 — one vertical slice end to end (shipments): route, data layer, state, screens, tests, e2e.

That order matters because each step makes the next one cheaper: the shell gives every feature a place to live, authentication removes the excuse to hardcode a user, and one finished vertical slice becomes the template the other four copy.

Strong signal: the candidate states a rule that a reviewer could enforce in code review (“features never import features”) and connects each folder to a runtime consequence (chunk size, singleton lifetime, guard timing) rather than only to tidiness.
Likely follow-ups: When would you skip feature modules and use standalone components? · How do you prevent a shared module from becoming a dumping ground? · What breaks if a guard returns an Observable that emits twice? · How do you share state between two lazily loaded features? · How do you stop a lazy chunk from being downloaded by a role that cannot use it? · What would you put in core/ and what would you refuse to put there? · How do you test that the dependency rule still holds?
Q2 RxJS Reactive forms · memory

Build a type-ahead search that hits the API on every keystroke — and explain how you keep it clean.

Question: “A user types in a search box and results must update as they type, calling a REST endpoint. Show me how you would implement it with RxJS. Then tell me how you make sure the component does not leak subscriptions or show stale results.”
What is being probed: operator fluency and, more importantly, an understanding of cancellation and lifecycle. The stale-response problem is the real test: a candidate who debounces but does not cancel will sometimes render the answer to an older keystroke.
Show answer · pipeline, operator choice, leaks, follow-ups

The stream comes from the form control, not from a DOM event, so validation and the request share one source of truth. The pipeline is: debounce to reduce requests, drop repeats, ignore empty input, cancel the in-flight request, and recover from errors without killing the stream.

readonly results$ = this.searchControl.valueChanges.pipe(
  debounceTime(300),
  map(term => (term ?? '').trim()),
  distinctUntilChanged(),
  filter(term => term.length === 0 || term.length >= 2),
  tap(() => this.loading.set(true)),
  switchMap(term => term.length === 0
    ? of([])
    : this.searchService.search(term).pipe(
        catchError(() => of([]))            // fail the request, not the stream
      )),
  finalize(() => this.loading.set(false))
);

switchMap is the important choice: it unsubscribes from the previous inner observable, so a slow response for “ang” can never overwrite the fresh response for “angular”. If the requirement changed to “run every search, do not cancel”, the operator changes to mergeMap; if it must ignore new input while one request runs, exhaustMap. Choosing between them is the actual answer to the question.

On leaks: the template consumes results$ through the async pipe, which unsubscribes automatically; I only subscribe manually when I need a side effect, and then the subscription is tied to the component lifecycle — takeUntilDestroyed(this.destroyRef) on Angular 16+, or the Subject<void> + takeUntil pattern on Angular 13/14. I avoid nested subscribe calls entirely, because they hide both the cancellation and the error path.

For repeated reads across components I add shareReplay({ bufferSize: 1, refCount: true }) so the same request is not duplicated, and I keep the HTTP layer thin: the service returns the raw payload, the component maps to view state.

Strong signal: the candidate immediately names the stale-response risk and picks the operator by the required concurrency semantics, not by habit; and can explain refCount and why an unhandled catchError inside switchMap would terminate the outer stream.
Likely follow-ups: Difference between mergeMap, concatMap, and exhaustMap in this exact UI? · How would you add retry with backoff without retrying 4xx? · When is a BehaviorSubject the wrong state container? · How do you test this pipeline deterministically?
Q3 .NET 8 Layering · DI · EF Core

Lay out a multi-layer .NET 8 API — and justify EF Core versus Dapper.

Question: “The job requires multi-layered .NET applications with clear separation between API, business, and data access, plus dependency injection and an ORM. How do you organise the solution, how do you choose service lifetimes, and when do you reach for Dapper instead of EF Core?”
What is being probed: whether “layers” means folders or dependency direction. The lifetime question is the classic trap (a scoped DbContext captured by a singleton); the ORM question separates people who have tuned a query from people who have only used the default behaviour.
Show answer · layers, DI lifetimes, EF Core vs Dapper, follow-ups

I keep four projects and one rule: dependencies point inward. Api depends on Application; Application defines the interfaces it needs; Infrastructure implements them; Domain depends on nothing. The API project contains controllers or endpoints, filters, middleware, and the composition root — nothing else. Business rules live in Application and never see HttpContext or DbContext types.

// Application: the port. No EF Core reference leaks into business code.
public interface IInvoiceRepository
{
    Task<Invoice?> GetAsync(Guid id, CancellationToken ct);
    Task<PagedResult<InvoiceSummary>> ListAsync(InvoiceFilter filter, CancellationToken ct);
}

// Infrastructure: the adapter. EF Core for writes, Dapper for reporting reads.
internal sealed class InvoiceRepository : IInvoiceRepository
{
    private readonly BillingDbContext _db;      // scoped
    private readonly IDbConnectionFactory _sql; // scoped connection factory

    public async Task<Invoice?> GetAsync(Guid id, CancellationToken ct) =>
        await _db.Invoices
                 .AsNoTracking()
                 .Include(i => i.Lines)
                 .FirstOrDefaultAsync(i => i.Id == id, ct);
}
  • Lifetimes. DbContext and repositories are scoped — one per request, so change tracking stays coherent. Stateless services (token validation, clock, mappers) are singleton. I treat a singleton that takes a scoped dependency as a defect, and I verify with ValidateScopes and ValidateOnBuild enabled outside production so the container fails at startup instead of at 3 a.m.
  • EF Core by default for aggregates, writes, and anything that benefits from tracking, migrations, and LINQ composability. AsNoTracking on every read path, projection to DTOs with Select instead of loading entities, keyset pagination instead of Skip/Take on large tables, and ExecuteUpdateAsync for bulk changes.
  • Dapper for read models: dashboards, exports, and joins across five tables where hand-written SQL is shorter, faster, and easier to profile than the generated plan. The rule I state out loud is “EF Core for behaviour, Dapper for reporting”, so the team does not end up with two competing write paths.

Cross-cutting behaviour goes in middleware or filters, not in every action: a global exception handler that returns ProblemDetails, request validation with FluentValidation, correlation IDs, and async all the way down with CancellationToken passed from the endpoint to the query so an abandoned request stops consuming a connection.

Strong signal: the candidate talks about dependency direction and captive dependencies without prompting, and gives a concrete trigger for Dapper (reporting read model) rather than “when EF is slow”.
Likely follow-ups: How do you handle a transaction that spans two repositories? · Where does validation belong? · How do you detect an N+1 in production? · What is your migration strategy for a zero-downtime deploy?
Q4 Security OAuth 2.0 · OIDC

Secure an Angular SPA and a .NET API with OpenID Connect — end to end.

Question: “We need authentication and authorization using OAuth 2.0 / OpenID Connect. Describe the flow you would implement for a browser application calling our own API, where the tokens live, and how the API validates and enforces permissions.”
What is being probed: whether the candidate knows the difference between authenticating and authorizing, whether they would put a client secret in a SPA (a common and serious answer), and whether permissions are enforced server-side rather than by hiding buttons.
Show answer · PKCE flow, token handling, API policies, follow-ups

Authorization Code with PKCE. The SPA is a public client: no client secret, no implicit flow, no password grant. The SPA redirects to the identity provider, comes back with a code, exchanges it for an access token and an ID token, and keeps the access token in memory — not in localStorage, because any script on the page could read it. A silent renewal (iframe or refresh token with rotation, depending on the provider) keeps the session alive, and the ID token is used only to read identity claims, never to authorize an API call.

On the API side, validation is delegated to the framework and never hand-rolled:

builder.Services
    .AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
    .AddJwtBearer(o =>
    {
        o.Authority = "https://login.example.com/tenant";   // discovery document drives key rotation
        o.Audience  = "billing-api";
        o.TokenValidationParameters = new TokenValidationParameters
        {
            ValidateIssuer = true, ValidateAudience = true,
            ValidateLifetime = true, ValidateIssuerSigningKey = true,
            ClockSkew = TimeSpan.FromSeconds(30)
        };
        o.MapInboundClaims = false;                          // keep original claim names
    });

builder.Services.AddAuthorization(o =>
{
    o.AddPolicy("invoices:write", p => p
        .RequireAuthenticatedUser()
        .RequireClaim("scope", "invoices.write"));           // scopes from the token
});

Authorization is policy-based and lives next to the endpoint, so a new route cannot be added without a decision: [Authorize(Policy = "invoices:write")]. Roles from the token are convenient but coarse; for tenant isolation I also verify the resource's owner claim against the caller, otherwise a valid token for tenant A can read tenant B by changing an id — the most common real vulnerability in this pattern.

Remaining pieces: CORS restricted to the known front-end origins with credentials only where needed; no tokens in logs; refresh-token rotation with reuse detection; short access-token lifetimes; and, when the SPA can be served behind the same site, the BFF pattern so the browser only holds an HttpOnly cookie and the server holds the tokens.

Strong signal: PKCE and “no secret in the browser” stated unprompted, plus server-side ownership checks. A candidate who mentions hiding routes in Angular as a security control is showing a front-end-only mental model.
Likely follow-ups: Access token versus ID token — which one does the API trust? · How do you handle logout across SPA and API? · What changes if the API is called by a machine instead of a user? · How do you test that a 403 path actually returns 403?
Q5 Operations Docker · Kubernetes · AI review

p95 latency tripled after a deploy. Diagnose it — and tell me how you use AI tools without outsourcing judgement.

Question: “You are on support and get an alert: p95 latency on the main API tripled ten minutes after a deployment. Walk me through your first thirty minutes. The role also expects Docker, Kubernetes, and AI-assisted development — how do those fit into your diagnosis and your code review?”
What is being probed: operational maturity under time pressure: stabilise first, then diagnose, then prevent recurrence. The AI part tests whether tooling is used as an accelerator with a verification step, or as an authority.
Show answer · triage order, Kubernetes checks, AI review gates, follow-ups

First I protect users, then I investigate. The correlation with a deployment is strong enough that the fastest mitigation is usually to roll back or shift traffic to the previous revision, because a five-minute rollback is cheaper than a thirty-minute root cause with users affected. Only after the bleeding stops do I ask why.

  1. Scope it. Is it one endpoint, one tenant, one node pool, or everything? Compare the p95 curve against the deploy timestamp and against request volume — a latency rise that tracks traffic is saturation, one that does not is a code or dependency change.
  2. Check the platform before the code. In Kubernetes: pod restarts and readiness-probe failures, CPU throttling against the limits, memory pressure and OOM kills, HPA not scaling because the metric is wrong, and DNS or connection-pool exhaustion toward the database.
  3. Check the released diff. New query without an index, an Include that turned one query into forty, a synchronous call added to a hot path, a cache removed “temporarily”, or an interceptor retrying requests and doubling load.
  4. Use telemetry, not intuition. Distributed traces to find the span that grew — API, database, or a third-party call — and structured logs keyed by correlation id so the slow requests can be sampled individually.

Container hygiene is designed in, not debugged later: a slim multi-stage image, non-root user, pinned base tags, configuration from environment or a secret store rather than the image, and distinct liveness (is the process alive?) and readiness (can it serve?) endpoints — conflating them is what turns a slow dependency into a restart loop. And deployment-wise, rolling updates with a maxUnavailable that leaves capacity, so a bad revision never removes the good one before it is proven.

On AI-assisted development: I use it where it compresses low-judgement work — reading a stack trace, summarising a pod's logs, drafting a repository method, proposing test cases for an edge condition — and I treat its output as a draft from a fast junior colleague. Three non-negotiables: the diff is reviewed line by line before it is committed, every generated query is checked against the execution plan, and nothing merges without a test that fails when the fix is removed. The judgement about blast radius and data safety stays with the engineer; that is exactly the part the tool cannot own.

Then the part interviewers rarely hear: a short blameless postmortem — timeline, contributing factors, the one alert or check that would have caught it earlier, and an owner with a date. If a query regression caused it, the action is an index plus a performance test in CI, not “be more careful”.

Strong signal: mitigation before diagnosis, platform-level checks before code-level guesses, and a concrete follow-through (index, test, alert). On AI, the candidate names a verification gate rather than either rejecting the tools or trusting them.
Likely follow-ups: How would you prove the rollback is safe for in-flight requests? · What would you instrument first if you had no tracing? · Give me a case where AI-generated code was wrong and you caught it. · How do you keep a postmortem from becoming a blame exercise?
Q6 RxJS fundamentals Definition · Observable · operators

What is RxJS, and what problem does it actually solve?

Question: “Before we go deeper into reactive code — define RxJS for me. What is it, what are its core building blocks, and why would a team use it instead of promises and event listeners?”
What is being probed: precision of the definition and correct vocabulary. A candidate who says “it's the library Angular uses for HTTP” has used RxJS but does not own the model; the interview then usually moves to what happens on unsubscribe, or to the difference between a cold and a hot observable.
Show answer · definition, building blocks, cold vs hot, when not to use it

RxJS — Reactive Extensions for JavaScript — is a library for composing asynchronous and event-based programs by using observable sequences. Its own documentation states the intent precisely: it treats “the best of the Observer pattern, the Iterator pattern and functional programming with collections” as one model, so that any stream of values over time — an HTTP response, keystrokes, a WebSocket feed, a timer — is handled with the same vocabulary: a source, a set of transformations, and a subscription that can be cancelled.

The distinction that makes the definition useful is push versus pull. A function or an iterator is pull-based: the consumer decides when to ask, and gets one value (or iterates on demand). An Observable is push-based: it emits zero to many values over time and signals termination on one of three channels — next, error, complete. A Promise is a degenerate case of the same idea: exactly one value, not cancellable, no repeated emissions.

The building blocks an interviewer expects to hear named:

  • Observable — a lazy blueprint of a producer. Nothing runs until someone subscribes; each subscription gets its own execution of a cold source.
  • Observer — the consumer contract: next, error, complete.
  • Subscription — the handle that represents a running execution. unsubscribe() is first-class cancellation, which is the main practical reason RxJS exists in a UI.
  • Operators — pure functions that take an Observable and return a new one (map, filter, debounceTime, switchMap, catchError). They do not execute anything by themselves; they describe the pipeline.
  • Subject — an Observable that is also an Observer, used for multicasting. BehaviorSubject holds a current value (state), ReplaySubject replays history, AsyncSubject emits only the last value.
  • Scheduler — controls when emissions are delivered (time-based operators, and virtual time in tests).

Cold versus hot is the consequence of that laziness: a cold Observable creates a new producer per subscriber (two subscriptions to the same HTTP call mean two requests), while a hot Observable shares one external producer (a DOM event, a socket), so late subscribers miss earlier values unless the stream is replayed or shared.

// Pull: the consumer asks, once, and cannot cancel
const value = await fetchOne();

// Push: the producer decides when values arrive; the pipeline is declarative
const clicks$ = fromEvent(button, 'click').pipe(
  debounceTime(250),
  scan(count => count + 1, 0),
  takeUntilDestroyed()
);

const sub = clicks$.subscribe({
  next: count => render(count),
  error: err => report(err),
  complete: () => log('stream finished')
});

sub.unsubscribe();   // stops the producer — no boolean flag, no race

Concretely, it solves four problems that otherwise leak into component code as ad-hoc flags: composition of several asynchronous sources into one result, cancellation of in-flight work, time as a first-class input (debounce, throttle, retry with backoff, timeout), and error recovery inside the stream rather than around it.

And the part that shows judgement: when not to use it. A single request with no cancellation, retry or combination requirement is clearer with async/await or firstValueFrom. Simple component state is often clearer as an Angular signal. The heuristic I state is “RxJS for streams and orchestration, signals for state, promises where there is exactly one value and no cancellation”.

Strong signal: the definition names observable sequences and push vs pull, the six building blocks are correct, cancellation is given as the practical driver, and the candidate can say when RxJS is unnecessary.
Likely follow-ups: Difference between Subject and BehaviorSubject in a shared service? · What does shareReplay({ refCount: true }) change about a cold HTTP stream? · Why does an operator not run until subscription? · Where does RxJS still make sense if the app uses signals?
Q7 State management Signals · BehaviorSubject · NgRx

Choose a state management approach for a five-module Angular application.

Question: “State management is in the requirements. On a five-module Angular app, how do you decide between local component state, a service with a BehaviorSubject, Angular signals, and a full store like NgRx? Give me the decision rule, not the library names.”
What is being probed: whether the candidate has paid the maintenance cost of an over-engineered store. The expected shape is an escalation ladder with explicit triggers, plus comfort with immutability and change detection.
Show answer · escalation ladder, immutability, derived state, testing

I escalate in four levels and only move up when a stated trigger is met.

  1. Component state — anything only one screen needs. No service, no abstraction; a signal or a plain property is enough.
  2. Feature service — state shared by components inside one feature: a root- or feature-scoped service exposing a read-only signal or an asObservable(), with mutations behind methods. This covers most of a five-module app, and it is where I start.
  3. Component store / feature store — when a feature has several independent async sources, needs effects, or its state is genuinely complex (wizard flows, editors, optimistic updates). Scoped to the feature, discarded with it.
  4. NgRx or an equivalent global store — when state is cross-feature and long-lived (session, cart, permissions), several unrelated actors mutate it, or the team needs a single auditable action log with devtools time travel. That is the real trigger: many writers plus auditability, not “the app is big”.

Two rules apply at every level. First, updates are immutable — always a new reference — so OnPush and signal-based change detection stay correct; mutation in place is the most common source of “the UI doesn't update” bugs. Second, derived state is computed, never stored: totals, filtered lists and permissions are computed() or selectors, so they cannot drift out of sync with their source.

@Injectable({ providedIn: 'root' })
export class CartStore {
  private readonly _items = signal<readonly CartItem[]>([]);
  readonly items = this._items.asReadonly();
  readonly total = computed(() =>
    this._items().reduce((sum, i) => sum + i.price * i.quantity, 0));

  add(item: CartItem): void {
    this._items.update(list => [...list, item]);   // new reference, OnPush-safe
  }
  remove(id: string): void {
    this._items.update(list => list.filter(i => i.id !== id));
  }
}

I also keep server data out of the store unless it is genuinely shared: the HTTP service owns the cache (with a TTL or an invalidation call), and the component owns the view model. Duplicating server entities into a store is how teams end up reconciling two sources of truth by hand.

On the cost side: NgRx adds actions, reducers, effects, selectors and facades — worth it when the audit trail and the discipline pay for themselves, expensive when a feature needs one boolean. I say that out loud in the interview because choosing the smaller tool is a decision, not a gap.

Strong signal: an explicit trigger for the store (multiple writers + auditability), immutable updates tied to change detection, derived state as computed, and a stated boundary between server cache and client state.
Likely follow-ups: How do you prevent a shared service from becoming a global variable? · Signals versus BehaviorSubject — what actually changes for the component? · How would you test this store? · How do you handle optimistic updates and rollback?
Q8 Reactive forms Validators · reusable controls

Build a typed reactive form with cross-field rules and a reusable control.

Question: “Walk me through a complex form: cross-field validation, an asynchronous check against the API, and one field that must be reused in three places. How do you keep the validation logic out of the template and testable?”
What is being probed: fluency with reactive forms beyond FormGroup basics — validator composition, where group-level rules belong, the ControlValueAccessor contract, and whether validation is treated as a domain rule or as template markup.
Show answer · typed forms, validators, CVA, testability

I build the model first with typed forms (FormBuilder with non-nullable controls on Angular 14+), because the type of the form tells you what the template is allowed to read. Cross-field rules live on the group, not on a single control — a validator on one control cannot see its siblings, which is why teams end up with duplicated comparisons in the markup.

const rangeValidator: ValidatorFn = (group: AbstractControl): ValidationErrors | null => {
  const from = group.get('from')?.value;
  const to = group.get('to')?.value;
  return from != null && to != null && from > to ? { rangeInverted: true } : null;
};

this.form = this.fb.group({
  from: [null as Date | null, Validators.required],
  to: [null as Date | null, Validators.required],
  email: ['', [Validators.required, Validators.email], [this.uniqueEmailValidator]]
}, { validators: rangeValidator });

For the asynchronous check (an email that must not already exist), the validator returns an Observable that must complete, debounces its own input, and maps errors to null instead of throwing, so a failed request does not lock the form. I keep it out of the control's updateOn hot path by using updateOn: 'blur' for that field.

For the field reused in three places, I write a ControlValueAccessor: it is the only supported way to make a custom component behave like a form control — including validation state, disabled state, and ngModel-style binding. The contract is four methods plus the provider registration; everything else (masking, formatting, currency) stays inside the component.

@Component({
  selector: 'app-money-input',
  templateUrl: './money-input.component.html',
  providers: [{
    provide: NG_VALUE_ACCESSOR,
    useExisting: forwardRef(() => MoneyInputComponent),
    multi: true
  }]
})
export class MoneyInputComponent implements ControlValueAccessor {
  writeValue(value: number | null): void { this.text = value == null ? '' : value.toFixed(2); }
  registerOnChange(fn: (v: number | null) => void): void { this.onChange = fn; }
  registerOnTouched(fn: () => void): void { this.onTouched = fn; }
  setDisabledState(isDisabled: boolean): void { this.disabled = isDisabled; }
}

Presentation stays declarative: one error-message component that maps control.errors keys to messages, so the template contains no validation logic, and markAllAsTouched() on submit so the user sees the errors that already exist. Submission is guarded by form.valid, but the server is still the authority — client validation is a UX feature, not a security control.

Testability is the reason for all of this: validators are pure functions tested directly, the CVA is tested through its host form with TestBed, and the group rules are tested without rendering anything. Template-driven forms are fine for two-field filters; they are the wrong tool the moment rules span fields.

Strong signal: group-level validators, async validator lifecycle (must complete, debounced, errors not thrown), correct CVA contract, and validation kept out of the template.
Likely follow-ups: Why must an async validator complete? · How do you validate a FormArray of dynamic rows? · What does updateOn change, and when would you use it? · How do you surface server-side field errors on the right control?
Q9 Data SQL tuning · NoSQL modelling

A report query got slow. Tune it — and tell me when this data belongs in MongoDB instead.

Question: “You have two years with SQL Server or PostgreSQL and at least one with a NoSQL database. A reporting query that used to take 200 ms now takes four seconds. How do you approach indexes and the query itself? And when would you have modelled this in MongoDB instead?”
What is being probed: method rather than folklore. “Add an index” is not an answer; reading the plan, sargability, composite column order and write-cost trade-offs are. The NoSQL half tests whether the choice follows the access pattern.
Show answer · plan reading, index design, N+1, document modelling

I start with the plan, not with an index. The actual execution plan tells me whether the cost is a scan, a bad join order, a sort spilling to disk, or a cardinality estimate that is wrong because statistics are stale. The second question is what changed: data volume, a new filter, a parameter that hits a different plan (parameter sniffing), or a query that became an N+1 after a refactor.

Then the query itself. A predicate is only index-friendly if it is sargable: wrapping the column in a function or a cast (WHERE YEAR(CreatedAt) = 2026, WHERE CAST(Id AS varchar) = @id) forces a scan even when the index exists; rewriting it as a range restores the index. The same applies to leading wildcards and to OR across different columns.

Index design follows the shape of the query: equality columns first, then the range, then the sort, and the selected columns either in the key or in an INCLUDE to make it covering. Every index is a write cost and a maintenance cost, so I add the one the plan needs rather than one per column.

-- Query: latest paid orders of a customer, newest first
SELECT Id, Total, Currency, CreatedAt
FROM   Orders
WHERE  CustomerId = @customerId
  AND  Status     = 'Paid'
  AND  CreatedAt >= @from
ORDER  BY CreatedAt DESC;

-- Covering index: equality, equality, range, then the sort direction
CREATE INDEX IX_Orders_Customer_Status_CreatedAt
  ON Orders (CustomerId, Status, CreatedAt DESC)
  INCLUDE (Total, Currency);

For the ORM side I watch the same failure from a different angle: an Include chain that produces a cartesian explosion, lazy loading firing inside a loop, or Skip/Take on a large offset. The fixes are projection to a DTO, AsSplitQuery where it applies, and keyset pagination. And for a report that is read ten thousand times a day and written once, a pre-aggregated table or a cache is cheaper than any index.

Relational or document? I choose by access pattern. This invoice/order data is relational: several entities, invariants enforced across them, ad-hoc reporting and aggregates that change shape — a normalised model with joins is exactly right. MongoDB earns its place when the aggregate is read and written as one document, the shape varies per record (catalogues, form submissions, device payloads), and the access pattern is “fetch the whole thing by key”. Modelling is then by query: embed what is always read together, reference what is unbounded or shared, and accept deliberate duplication because there are no joins to reconcile it — the application owns consistency instead of the database.

What I do not do is treat NoSQL as a default. Multi-entity transactions, constraints, and reporting across dimensions are still where relational engines are strongest, and moving a report there means giving up the guarantee that pays for it.

Strong signal: plan first, sargability and composite column order explained with a real query, write cost acknowledged, and the NoSQL decision argued from the access pattern (aggregate shape, read-by-key) rather than from scale claims.
Likely follow-ups: How do you find an N+1 in production? · What would you do about parameter sniffing? · When is denormalising the relational schema the right call? · How do you migrate a document model when the shape changes?
Q10 Quality Testing · Azure DevOps

How do you test a full-stack feature, and what gates does the pipeline enforce?

Question: “Unit tests and peer code reviews are part of the role, and so are Git and Azure DevOps. Take a feature that spans the Angular UI and a .NET API: what do you test at each level, what runs in the pipeline, and what actually blocks a merge?”
What is being probed: whether testing is a strategy or a ritual. The strongest answers name what they deliberately do not test, use real infrastructure for integration tests, and describe gates that a person cannot bypass.
Show answer · test pyramid, integration with containers, pipeline gates, review focus

I test where the risk is, and I keep the pyramid honest. Most tests are unit tests over logic that has no framework in it: domain rules in Application (xUnit, FluentAssertions), pure validators, mappers, and RxJS pipelines with marble testing so timing and cancellation are deterministic. Angular components get TestBed tests for the behaviour a user can observe — validation messages, disabled states, emitted events — not for internal method calls.

Integration tests carry the weight that unit tests cannot: the API through WebApplicationFactory against a real database in a container (Testcontainers), so migrations, SQL, constraints and the actual EF Core mapping are exercised. That is where the defects that reach production usually live. A handful of end-to-end tests (Playwright or Cypress) cover the two or three journeys the business cannot afford to break — login, checkout, the report the client asks about — and nothing more, because E2E suites are the most expensive thing to keep green.

What I deliberately do not do: assert on private methods, mock the database into meaninglessness, or chase a coverage number. Coverage is a signal for finding untested branches, never a target — a suite at 85% that passes when the feature is broken is worse than one at 60% that fails.

# azure-pipelines.yml — the gates that block a merge
trigger:
  branches: { include: [ main ] }

stages:
  - stage: ci
    jobs:
      - job: build_and_test
        steps:
          - script: dotnet restore && dotnet build --configuration Release
          - script: dotnet test ./tests --logger trx --collect "Code Coverage"
          - script: npm ci && npm run lint
          - script: npm run test -- --watch=false --browsers=ChromeHeadless
          - script: npm run build -- --configuration production
          - task: PublishTestResults@2
            inputs: { testResultsFormat: VSTest, testResultsFiles: '**/*.trx' }

On Git and Azure DevOps: trunk-based with short-lived branches, protected main that requires a green build plus at least one review, small pull requests, and build artifacts promoted between environments instead of rebuilt. Branch policies are what make the gates real — a pipeline nobody can bypass is a gate; a pipeline that can be skipped is a suggestion.

In review I look for, in this order: correctness on the unhappy path (nulls, empty lists, timeouts, concurrency), security (authorization on the new endpoint, input validation, no secrets), data safety (migrations, transactions, destructive updates), test quality (does the new test fail if the fix is reverted?), and only then readability. Formatting and naming are automated — spending review attention there is a waste of the reviewer's scarcest resource.

Strong signal: integration tests against real infrastructure, deterministic RxJS tests, an explicit “what I don't test”, and gates enforced by branch policy rather than by discipline.
Likely follow-ups: How do you test an interceptor that retries on 401? · What do you do with a flaky test? · How do you keep integration tests fast enough to run on every PR? · Which single test would you keep if you could keep only one?
Q11 Security OAuth 2.0 · OIDC · ASP.NET Core

How do you implement authentication and authorization with OAuth 2.0 and OpenID Connect in a .NET API?

Question: “The must-haves ask for OAuth 2.0 or OpenID Connect. Suppose the identity provider already exists and our API has to accept its tokens. How do you wire that in ASP.NET Core, and how do you decide what a caller is allowed to do?”
What is being probed: whether you know that the API never authenticates anybody — it validates tokens issued elsewhere — and whether authorisation is modelled as scopes, policies and resource checks rather than as one role string. The follow-ups are usually about 401 versus 403, token lifetime, and what happens when the signing keys rotate.
Show answer · flows, JwtBearer setup, policies, ownership, refresh, testing, failure modes

“Authentication is delegated: my API never sees a password. It validates a signed access token, builds a ClaimsPrincipal, and then decides per operation and per resource. OpenID Connect adds the identity layer on top of OAuth 2.0 — the ID token tells the client who the user is, the access token tells my API what that user may do.”

1. Which flow, chosen by client type

ClientFlowWhy
Angular SPAAuthorization Code + PKCE, no client secretThe browser cannot keep a secret; PKCE protects the code exchange. Implicit is dead.
Service to serviceClient credentialsNo user involved; the token represents the application, not a person.
SPA with strict cookie policyBFF: cookie session at the edge, tokens server-sideNothing sensitive in the browser; also solves CSRF/XSS token theft. Costs a server component.

In the SPA the tokens live in memory (an angular-auth-oidc-client or similar library), never in localStorage, and renewal happens with a rotating refresh token or a silent iframe depending on the provider. The API stays stateless: no session store, no matter which flow produced the token.

2. Wiring the API: validate, do not reimplement

// Program.cs — the API validates tokens; the identity provider issues them
builder.Services
  .AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
  .AddJwtBearer(options =>
  {
      options.Authority = builder.Configuration["Auth:Authority"];   // https://id.example.com
      options.Audience  = builder.Configuration["Auth:Audience"];    // "rts-api"
      options.RequireHttpsMetadata = true;
      options.MapInboundClaims = false;          // keep sub / scp / roles exactly as issued
      options.TokenValidationParameters = new TokenValidationParameters
      {
          ValidateIssuer           = true,
          ValidateAudience         = true,
          ValidateLifetime         = true,
          ValidateIssuerSigningKey = true,
          ClockSkew                = TimeSpan.FromSeconds(30),
          NameClaimType            = "name",
          RoleClaimType            = "roles",
          ValidTypes               = new[] { "at+jwt" }   // access token, not the ID token
      };
  });

Three lines carry most of the risk. Authority plus JwtBearer means the signing keys are fetched from the provider's JWKS endpoint and re-fetched when kid changes, so rotation is not an incident. MapInboundClaims = false stops the handler renaming sub to a legacy URI, which is the classic reason a claim “disappears”. And ValidTypes rejects an ID token being replayed as an access token — two token types, two audiences, two purposes.

3. Authorisation: scopes first, then resource

builder.Services.AddAuthorization(options =>
{
    options.AddPolicy("cargo.write", policy => policy
        .RequireAuthenticatedUser()
        .RequireClaim("scope", "cargo.write"));
});

app.MapPost("/v1/shipments", async (
    CreateShipmentRequest request,
    ClaimsPrincipal user,
    IShipmentService service,
    CancellationToken ct) =>
{
    var tenant = user.FindFirstValue("tenant_id")
        ?? throw new InvalidOperationException("token without tenant");

    var created = await service.CreateAsync(tenant, request, ct);
    return Results.Created($"/v1/shipments/{created.Awb}", created);
})
.RequireAuthorization("cargo.write");

A scope answers “may this client call this operation at all”. It never answers “may this user touch this record”: that is a resource check, and it belongs in the handler or in an IAuthorizationHandler:

public sealed class SameTenantHandler
    : AuthorizationHandler<SameTenantRequirement, Shipment>
{
    protected override Task HandleRequirementAsync(
        AuthorizationHandlerContext context,
        SameTenantRequirement requirement,
        Shipment shipment)
    {
        if (context.User.FindFirstValue("tenant_id") == shipment.TenantId)
        {
            context.Succeed(requirement);
        }
        return Task.CompletedTask;
    }
}

The rule I keep: authorise the operation with a policy, authorise the record with an ownership check. A role check alone is how two customers end up reading each other's shipments with a valid token. And no business rule is decided from a claim that the client could have influenced: the token says who and which tenant, the database says what is theirs.

4. The permission model, in three layers

  • Scopes — coarse, per client and per API surface: cargo.read, cargo.write, billing.admin. Stable, few, documented in the OpenAPI.
  • Roles or groups — mapped from the provider (or from a groups claim), used for screen-level access and for the UI's menu, mirrored by a policy on the API.
  • Resource attributes — tenant, owner, lane, cost centre. Checked in the handler against data, never carried as a token claim the caller can mint.

A permission list that changes weekly does not belong in a token that lives 30 minutes; it belongs in a table the API reads, with the token carrying identity, tenant and coarse scope only.

5. 401 or 403, and other things that get misdiagnosed

SymptomReal causeFix
Valid token rejected with 401Audience or issuer mismatch, or the ID token sent instead of the access tokenLog the WWW-Authenticate error, align Audience, check ValidTypes
Claim exists in the token but not in UserMapInboundClaims renaming it, or the claim is an array and read as a stringMapInboundClaims = false, FindAll instead of FindFirst
403 when the user “is an admin”Role claim type differs from RoleClaimType, or the policy requires a scope the client never requestedAlign RoleClaimType; request the scope in the SPA configuration
Works locally, fails after a deployClock skew, or the provider rotated keys and a hardcoded certificate is in config30 s skew, JWKS via Authority, no certificate in the repo

Also worth saying out loud: the API logs sub, client_id, scope and correlation id on a denied request, and never the token itself. “Who was refused and for what” is the first question in any audit.

6. Testing it without a real identity provider

  • Policy tests — build a ClaimsPrincipal by hand and assert the handler succeeds or fails; no HTTP involved.
  • Integration tests — WebApplicationFactory with a test authentication handler that emits a principal per scenario (right scope, wrong tenant, expired), so the endpoint contract is tested without a network round trip to the provider.
  • One end-to-end test against a real token from a containerised provider, because the thing most likely to break is the configuration, not the code.

Authorisation is a business rule with a security consequence, so it deserves the same tests as a pricing rule — and the tests read like the policy: an analyst with cargo.write from tenant A cannot book into tenant B.

Strong signal: the candidate separates the three concerns unprompted — token validation is configuration, authorisation is policy, ownership is data — and mentions key rotation, MapInboundClaims or the 401/403 distinction as things they have actually debugged.
Likely follow-ups: Where do you store tokens in a SPA? · How do you revoke access before the token expires? · What changes if the client is a desktop app or a partner integration? · How do you support multiple tenants with one API? · What would you do if the identity provider is unavailable at startup?

Evaluation rubricWhat a strong answer contains, per question

QuestionMust containWeak answer sounds like
Q1 · Architecture A folder rule tied to a runtime consequence; lazy loading at feature boundaries; interceptor order explained; explicit bootstrap decisions (preloading, strict mode). Listing folders and saying “modules keep things organised”.
Q2 · RxJS Cancellation via switchMap; stale-response risk named; error handling that does not kill the stream; a declared teardown strategy. Debounce only, plus “I unsubscribe in ngOnDestroy” with no mechanism.
Q3 · .NET layering Dependency direction; lifetime correctness; EF Core tuning shown through concrete options; a stated Dapper boundary. “Three-tier architecture” with no rule about who may reference whom.
Q4 · Security Authorization Code + PKCE; no secret in the browser; server-side token validation; ownership checks beyond roles. Implicit flow, tokens in localStorage, or route guards presented as security.
Q5 · Operations Mitigate, then diagnose; platform checks before code guesses; readiness versus liveness; AI used with an explicit verification gate. Debugging in production first, or accepting generated code because it compiles.
Q6 · RxJS definition Observable sequences; push vs pull; Observable, Observer, Subscription, operators, Subject, Scheduler named correctly; cold vs hot; a stated case where RxJS is unnecessary. “RxJS is the library Angular uses for HTTP”, or an operator list with no underlying model.
Q7 · State An escalation ladder with explicit triggers; immutable updates tied to change detection; derived state computed; a boundary between server cache and client state. A store by default, or global state kept in a service “just in case”.
Q8 · Forms Group-level cross-field validators; async validator that completes and debounces; full ControlValueAccessor contract; validation absent from the template. Validation duplicated in markup, or a custom field that only works with ngModel.
Q9 · Data Plan reading; sargable predicates; composite index order and covering columns; index write cost; NoSQL chosen from the aggregate and access pattern. “Add an index to every filtered column”, or NoSQL justified only by volume.
Q10 · Testing & CI Test pyramid with real infrastructure behind integration tests; deterministic async tests; gates enforced by branch policy; review focused on risk, not formatting. Coverage percentage as the goal, or manual QA as the only gate.
Q11 · OAuth 2.0 / OIDC Token validation as configuration (authority, audience, valid types, JWKS rotation); scopes for operations and policies for access; ownership checks in the handler; 401 versus 403 explained; tests for the denied paths. “I would use JWT and put the role in the token”, with no mention of audience, scopes or resource checks.
Scope note. These ten preparation questions are written from the public P-169 job description; they are not the client's actual interview script and no confidentiality is implied. Questions 1–5 cover architecture, platform and security; 6–10 cover language fundamentals, state, forms, data and quality. New questions are appended as the process advances, keeping this page the single index for the technical track.