📁 Sangam Dhakal - Portfolio v2.0 - Netscape Navigator 4.0
_
□
×

📚 .NET Interview Questions

1325 questions for senior .NET engineer interviews, each with a 30-second answer, the full answer, a deep dive, the follow-ups interviewers ask next, and real-world production problems.

Phase 14 — Authentication and Security

Securing .NET 10 applications: authentication with cookies, JWT, OAuth 2.0, OpenID Connect and Microsoft Entra ID; authorisation models; practical cryptography; the OWASP Top 10 in ASP.NET Core; and senior topics such as threat modelling, secrets, PII and supply chain security, with Australian privacy and ACSC context.

  1. Your ASP.NET Core API lets customers upload documents and images. What can go wrong with file uploads, and how do you build the endpoint securely? Cover size limits, validating content rather than trusting the extension or Content-Type, file names, storage outside the web root in Blob Storage with SAS, and malware scanning.

    Secure file upload in ASP.NET Core 10: request size limits, streaming, extension allow-lists plus magic-number checks, generated storage names, private Blob containers with short-lived user-delegation SAS, quarantine and malware scanning, and safe download headers.

    Mid-Level Security Senior Security Topics · 🔗 3 follow-ups · 🛠 1 real-world
  2. What is software supply chain security for a .NET team, and how do you protect your builds? Cover NuGet package source mapping and lock files, package signing and trusted signers, typosquatting and dependency confusion, SBOMs, and build provenance and attestations.

    Securing the .NET software supply chain: the attack paths (typosquatting, dependency confusion, compromised maintainers, poisoned builds), NuGet source mapping, lock files, signing and trusted signers, an internal feed, pinned actions, SBOMs and build provenance, mapped to SLSA and Australian expectations.

    Senior Theory Senior Security Topics · 🔗 3 follow-ups · 🛠 1 real-world
  3. Show how you set up dependency vulnerability scanning for a .NET 10 solution. Cover NuGetAudit during restore, dotnet list package --vulnerable, Dependabot, and how you fail the build according to a policy without blocking every developer on low-severity issues.

    Dependency vulnerability scanning in .NET 10: NuGetAudit settings (mode, level, sources, suppressions), turning NU1903/NU1904 into errors, dotnet list package --vulnerable with JSON output, Dependabot configuration, and a risk-based build policy with time-boxed exceptions.

    Mid-Level Coding Senior Security Topics · 🔗 3 follow-ups · 🛠 1 real-world
  4. You're the architect for a new .NET service on Azure for an Australian government agency (or a bank). Define its security baseline. What do the Essential Eight, the ISM and IRAP (or APRA CPS 234) require of you, and what do you decide for network isolation, identity, data protection, logging and monitoring, the delivery pipeline, and pen-testing cadence?

    Designing a security baseline for a regulated Australian .NET service: the Essential Eight, ISM and IRAP (or APRA CPS 234 and CPG 234), landing zones and network isolation, Entra identity and PIM, data classification and residency, centralised logging with Sentinel, a secure pipeline, and assurance through IRAP assessments and pen testing.

    Staff / Architect Architecture Senior Security Topics · 🔗 3 follow-ups · 🛠 1 real-world

🌐 Sangam's Webring

⏪ Previous 🏠 Main Next ⏩
💬 Chat with me