Skip to Content

AZ-104: Mastering Azure App Deployment Virtual Machines vs. Containers

Explore the advantages of virtual machines and containers in Azure app deployment, from complete isolation with VMs to seamless software consistency with Docker containers, ensuring optimal performance for your online retail site.

You’re working on the app deployment and management strategy for your company’s online retail site. You’re reviewing a few scenarios as part of the implementation planning.

  • The Admin team has requested input about where containers on Windows can be more advantageous than virtual machines.
  • You’re examining features of Azure Container Instances to support site-related apps hosted on-premises in Azure to share hardware resources, network usage, and storage volumes.
  • The development team needs a container implementation that can ensure software always runs the same locally and in the cloud.

Question 1

Why should you select virtual machines over containers for your configuration?

A. Virtual machines run the user mode portion of an operating system and can be tailored to contain just the needed services for your app.
B. Virtual machines provide complete isolation from the host operating system and other virtual machines.
C. Virtual machines use Azure Disks for local storage for a single node.

Answer

B. Virtual machines provide complete isolation from the host operating system and other virtual machines.

Explanation

Azure containers only provide lightweight isolation from the host.

A is incorrect. Virtual machines run a complete operating system including the kernel.
C is incorrect. Virtual machines use a virtual hard disk (VHD) for local storage for a single virtual machine.

Question 2

Which of the following options is a feature of Azure Container Instances?

A. Container Instances require several minutes to load.
B. Container Instances use Azure Blob Storage for retrieve and persist state.
C. Billing for Container Instances occurs when containers are in use.

Answer

C. Billing for Container Instances occurs when containers are in use.

Explanation

Organizations are only billed when their Container Instances are in use.

A is incorrect. Container Instances launch in seconds and that’s an advantage over virtual machines.
B is incorrect. Container Instances use Azure Files file shares to retrieve and persist state.

Question 3

What implementation ensures container software runs the same locally and in the cloud on Azure?

A. Docker
B. Container groups
C. Container Instances

Answer

A. Docker

Explanation

Docker guarantees that containerized software always runs the same locally on Windows or Linux, and in the cloud on Azure.

B is incorrect. Using container groups in Azure Container Instances doesn’t guarantee that your containerized software always runs the same.
C is incorrect. Azure Container Instances doesn’t guarantee that containerized software always runs the same.

Microsoft Azure Administrator AZ-104 certification exam practice question and answer (Q&A) dump with detail explanation and reference available free, helpful to pass the Microsoft Azure Administrator AZ-104 exam and earn Microsoft Azure Administrator AZ-104 certification.