Skip to main content
  1. Public practice questions
  2. AZ-900 Practice Exams | Azure Fundamentals
  3. Domain 2-Describe Azure architecture and services | AZ-900 Practice Exam | 399 Questions

Question 301 — Domain 2-Describe Azure architecture and services | AZ-900 Practice Exam | 399 Questions

Which of the following best describes a use case for Azure containers instead of virtual machines? (Select one answer).

  1. You need complete control over the OS and the ability to run custom configurations.

  2. You need to quickly deploy and scale multiple instances of a microservice without managing the OS.

  3. You need a full desktop environment accessible from different locations.

  4. You need to host a database that requires persistent storage and a stable OS environment.

Correct answers

  1. You need to quickly deploy and scale multiple instances of a microservice without managing the OS.

Explanations

Correct:
You need to quickly deploy and scale multiple instances of a microservice without managing the OS.
Containers are lightweight and designed for rapid deployment and scaling of applications. They allow developers to focus on their application code without worrying about the underlying operating system. This makes them ideal for microservices, where multiple instances may need to be spun up or down dynamically based on demand.

Wrong:

You need complete control over the OS and the ability to run custom configurations.
This is better suited for virtual machines, which provide full control over the operating system, allowing users to customize it as needed.

You need a full desktop environment accessible from different locations.
This is a use case for Azure Virtual Desktop or virtual machines, not containers. Containers are not designed to provide full desktop environments.

You need to host a database that requires persistent storage and a stable OS environment.
Databases requiring persistent storage and stable environments are typically hosted on virtual machines or managed database services like Azure SQL Database. Containers are not ideal for long-term, stable storage due to their ephemeral nature.