Your company plans to deploy a stateful application named App1 to Azure Container Instances. App1 requires two containers that must be deployed to the same container group.
You need to implement a persistent storage solution that is accessible simultaneously from both containers.
What should you use? Select only one answer.
A. Azure Blobs
B. Azure Disk
C. Azure Files
D. Azure Table
C
技巧:排除明顯錯(cuò)誤選項(xiàng),在沒有明顯錯(cuò)誤的選項(xiàng)中選擇最合理的選項(xiàng)。
本題需要為在 Azure Container Instances 中部署的有狀態(tài)應(yīng)用程序 App1 找到一個(gè)合適的持久存儲解決方案,該解決方案需要能夠被同一個(gè)容器組中的兩個(gè)容器實(shí)例同時(shí)隨機(jī)訪問。
A. 不正確。Azure Blob 存儲。Azure Blob 存儲主要用于存儲大量的非結(jié)構(gòu)化數(shù)據(jù),如文本或二進(jìn)制文件。它不支持直接掛載到容器作為文件系統(tǒng),因此不適合需要文件系統(tǒng)級訪問的場景。
B. 不正確。Azure 磁盤。Azure磁盤提供持久性磁盤存儲,可以用于 Azure 虛擬機(jī)。但是Azure Container Instances不支持直接掛載 Azure 磁盤。
C. 正確。Azure文件。Azure 文件提供完全托管的文件共享服務(wù),可以在云中或本地通過SMB協(xié)議掛載。它支持多個(gè)客戶端或容器實(shí)例同時(shí)掛載同一個(gè)文件共享,非常適合需要共享存儲的場景,可以滿足題目中兩個(gè)容器同時(shí)訪問同一存儲的需求。
D. 不正確。Azure 表存儲。Azure表存儲是一種NoSQL數(shù)據(jù)存儲,用于存儲結(jié)構(gòu)化數(shù)據(jù)。
它不提供文件系統(tǒng)級別的訪問,不支持需要掛載文件系統(tǒng)或共享存儲的場景。