What Azure resources should you deploy for persistent storage for …

Computers and Technology Questions

You plan to create an Azure Container Instance named container1 that will use a Docker image named image1. You need to ensure that container1 has persistent storage. Which Azure resources should you deploy for the persistent storage? a) An Azure Container Registry b) An Azure Storage Account and a File Share c) An Azure Storage Account and a Blob Container d) An Azure SQL Database

Short Answer

To set up persistent storage for an Azure Container Instance, first create an Azure Storage Account, then establish an Azure File Share to utilize the SMB protocol for cloud-based file sharing. Finally, configure your Azure Container Instance to access the File Share for reliable data storage.

Step-by-Step Solution

Step 1: Deploy an Azure Storage Account

To begin ensuring persistent storage for your Azure Container Instance, create an Azure Storage Account. This account acts as a unique namespace for all your stored data in Azure. Within this storage account, every object you save is assigned an address derived from the storage account’s name, making it easily accessible.

Step 2: Create an Azure File Share

Next, establish an Azure File Share within the Storage Account. This feature provides a cloud-based file sharing solution that leverages the Server Message Block (SMB) protocol. By using Azure File Share, you can create file shares that are accessible from your container instances, thus ensuring data persistence even when the container is restarted or recreated.

Step 3: Configure your Azure Container Instance

Finally, set up your Azure Container Instance, named container1, to utilize the created Azure File Share. By doing this, your container will be able to access persistent storage seamlessly. To summarize, the integration of the Azure Storage Account and File Share will provide reliable and long-lasting data storage for your containerized applications.

Related Concepts

Azure Storage Account

A unique namespace in azure for stored data, providing access through an address based on its name.

Azure File Share

A cloud-based file sharing solution using the server message block (smb) protocol, allowing access from container instances for data persistence.

Azure Container Instance

A service to run containers in azure that can leverage azure file share for persistent storage, ensuring data remains accessible across restarts or recreations.

Scroll to Top