📁 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.

Senior Security Topics

Threat modelling, secrets management and Key Vault, least privilege, secure logging, PII handling, Australian privacy law, secure file upload, supply chain security and dependency vulnerability scanning.

  1. How would you run a privacy impact assessment alongside a threat model for a feature that collects new personal information, and what does LINDDUN add to STRIDE?
    Mid-Level Theory Senior Security Topics
  2. What evidence would you need to show the OAIC that a leaked credential did not result in an eligible data breach, and what would you change if your logs couldn't provide it?
    Senior RealWorldScenario Senior Security Topics
  3. Why is running EF Core migrations with Database.Migrate() at application start-up a least-privilege problem, and how do you run them instead?
    Mid-Level Theory Senior Security Topics
  4. A critical NuGet advisory affects a transitive package and no fixed version of the parent package exists yet. What do you do?
    Mid-Level Coding Senior Security Topics
  5. What is threat modelling? Walk me through STRIDE and data flow diagrams, explain when in the delivery cycle you would do it, and how you would run a lightweight version inside a normal sprint for a new feature.

    Threat modelling for .NET teams: the four questions, data flow diagrams and trust boundaries, STRIDE per element, ranking and tracking threats, and a 60-minute in-sprint version.

    Mid-Level Theory Senior Security Topics Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  6. How do you manage secrets in a .NET 10 application? What counts as a secret, how do Azure Key Vault and managed identity fit together, and how do developers work locally without any secrets in the repository?

    Secrets management fundamentals: what is and isn't a secret, Key Vault with managed identity and DefaultAzureCredential, the configuration provider, user secrets locally, removing secrets entirely with identity-based access, and rotation basics.

    Intermediate Theory Senior Security Topics Β· πŸ”— 3 follow-ups
  7. A developer pushed a commit containing a production Azure SQL connection string with a password, and an Azure Storage account key, to the team's GitHub repository. Walk me through what you do, in what order: containment, cleaning history, deciding whether it is a notifiable data breach, and making sure it can't happen again.

    Incident response for a leaked secret: rotate first, assess access through logs, purge history correctly, decide on NDB notification under the Privacy Act, and prevent recurrence with push protection, managed identity and rotation runbooks.

    Senior RealWorldScenario Senior Security Topics Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  8. How do you apply least privilege to a .NET service running in Azure with an Azure SQL database? Cover managed identities and RBAC scopes, database roles and permissions, just-in-time admin access with PIM, and what the ACSC Essential Eight expects for administrative privileges.

    Least privilege end to end: one managed identity per workload, narrow RBAC roles at the smallest scope, contained database users with only the grants they need, separate migration identities, PIM for humans, and the Essential Eight 'restrict administrative privileges' strategy.

    Mid-Level Theory Senior Security Topics Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  9. Your .NET system stores customers' names, dates of birth, addresses, driver's licence numbers and Medicare numbers. How do you handle this personal information securely? Cover data classification, minimisation, encryption at rest and in transit, masking, data residency in Australia, and retention.

    PII handling in a .NET and Azure system: classifying data, collecting less, TDE plus Always Encrypted or application-level encryption for identifiers, masking and redaction, access logging, keeping data in Australia East/Southeast, and retention and deletion under APP 11.

    Mid-Level Security Senior Security Topics Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  10. As a senior engineer in Australia, what do you need to know about privacy law? Explain the Privacy Act 1988 and the Australian Privacy Principles, the Notifiable Data Breaches scheme, the recent reforms, when GDPR also applies, and what actually changes in the way you design and build systems.

    Privacy law for engineers in Australia: who the Privacy Act covers, the APPs that shape design (APP 1, 3, 5, 6, 8, 11, 12, 13), the NDB scheme, the 2024 amendments and the 2026 Tranche 2 draft, GDPR for EU users, and the engineering practices that follow.

    Senior Theory Senior Security Topics Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  11. 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
  12. 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
  13. 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
  14. 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