In ASP.NET Core, the _________ directory is conventionally used to store static files.

  • Content
  • Static
  • Assets
  • Resources
In ASP.NET Core, the "wwwroot" directory is conventionally used to store static files such as CSS, JavaScript, images, and other client-side assets.

What is the primary purpose of CI/CD in the context of software deployment?

  • Automate and streamline software delivery
  • Test software for security vulnerabilities
  • Write code for software features
  • Debug software issues
CI/CD stands for Continuous Integration and Continuous Deployment. Its primary purpose is to automate and streamline the software delivery process. It involves building, testing, and deploying software automatically, ensuring rapid and reliable software releases.

You're tasked with developing a system where the user's account gets temporarily locked after 5 consecutive failed login attempts. Which ASP.NET Core Identity feature would you utilize?

  • Two-Factor Authentication
  • Account Lockout
  • Claims-Based Authorization
  • Social Authentication
To implement the requirement of temporarily locking user accounts after a specified number of consecutive failed login attempts, you would utilize the Account Lockout feature provided by ASP.NET Core Identity. This feature allows you to configure the maximum number of failed attempts and the duration of the lockout.

In the context of Azure, _________ App Service is a fully managed platform for building, deploying, and scaling web apps.

  • Web
  • Azure
  • Microsoft
  • Azure Web
In the context of Microsoft Azure, Azure App Service is a fully managed platform for building, deploying, and scaling web applications. It provides a platform-as-a-service (PaaS) environment for web app hosting.

Which mechanism does ASP.NET Core Identity primarily use to facilitate two-factor authentication?

  • SMS Authentication Codes
  • Email Authentication Codes
  • TOTP (Time-Based One-Time Passwords)
  • Biometric Authentication
ASP.NET Core Identity primarily uses TOTP (Time-Based One-Time Passwords) for facilitating two-factor authentication. TOTP generates short-lived authentication codes that are valid for a short period, adding an extra layer of security beyond just passwords.

In a scenario where the production database and development database are out of sync, what steps might you take with respect to Identity migrations?

  • Generate a script to synchronize schemas manually
  • Roll back migrations in production
  • Apply migrations from development to production
  • Ignore the issue and proceed
When production and development databases are out of sync, generating a script to synchronize schemas manually is a common approach. This script can be reviewed and executed to bring the production database up to date without risking data loss. Rolling back migrations in production is generally not advisable. Applying development migrations to production without caution can lead to data loss or inconsistencies. Ignoring the issue can result in unexpected behavior.

Configuration data in ASP.NET Core can come from various sources like environment variables, command-line arguments, and __________.

  • JSON files
  • Configuration providers
  • In-memory databases
  • Web services
In ASP.NET Core, configuration data can be obtained from various sources using configuration providers. These providers can read data from environment variables, command-line arguments, JSON files, XML files, and more. So, the correct answer is "Configuration providers."

Which tool among the following is primarily a command-line tool for .NET operations?

  • Visual Studio
  • .NET CLI
  • JetBrains Rider
  • Eclipse
.NET CLI (Command-Line Interface) is a command-line tool primarily used for .NET operations. It allows developers to perform tasks like building, testing, and publishing .NET applications directly from the command line, making it a versatile tool for developers who prefer command-line interfaces.

What purpose does the .NET Core CLI serve in ASP.NET Core development?

  • It's used for ordering food online
  • It helps in managing NuGet packages
  • It provides a command-line interface for creating, building, and managing ASP.NET Core projects
  • It's a design pattern in software development
The .NET Core CLI (Command-Line Interface) plays a crucial role in ASP.NET Core development. It allows developers to interact with their projects through the command line, facilitating tasks like project creation, building, testing, and running. It's a powerful tool for automating development tasks and managing ASP.NET Core projects efficiently.

Which of the following is a containerization tool that can be used with ASP.NET Core for deployment?

  • Docker
  • Jenkins
  • Kubernetes
  • Git
Docker is a popular containerization tool that can be used with ASP.NET Core for deployment. Docker containers encapsulate the application and its dependencies, making it easy to deploy and run consistently across different environments.