exam questions

Exam AZ-304 All Questions

View all questions & answers for the AZ-304 exam

Exam AZ-304 topic 5 question 33 discussion

Actual exam question from Microsoft's AZ-304
Question #: 33
Topic #: 5
[All AZ-304 Questions]

You need to recommend a solution to deploy containers that run an application. The application has two tiers. Each tier is implemented as a separate Docker
Linux-based image. The solution must meet the following requirements:
✑ The front-end tier must be accessible by using a public IP address on port 80.
✑ The backend tier must be accessible by using port 8080 from the front-end tier only.
✑ Both containers must be able to access the same Azure file share.
✑ If a container fails, the application must restart automatically.
✑ Costs must be minimized.
What should you recommend using to host the application?

  • A. Azure Kubernetes Service (AKS)
  • B. Azure Service Fabric
  • C. Azure Container instances
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
Azure Container Instances enables a layered approach to orchestration, providing all of the scheduling and management capabilities required to run a single container, while allowing orchestrator platforms to manage multi-container tasks on top of it.
Because the underlying infrastructure for container instances is managed by Azure, an orchestrator platform does not need to concern itself with finding an appropriate host machine on which to run a single container.
Azure Container Instances can schedule both Windows and Linux containers with the same API.
Orchestration of container instances exclusively
Because they start quickly and bill by the second, an environment based exclusively on Azure Container Instances offers the fastest way to get started and to deal with highly variable workloads.
Reference:
https://docs.microsoft.com/en-us/azure/container-instances/container-instances-overview https://docs.microsoft.com/en-us/azure/container-instances/container-instances-orchestrator-relationship

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
arseyam
Highly Voted 4 years, 5 months ago
Azure Container Instances is the correct answer. It has networking controls (public, private) and supports Restart policies set to "OnFailure" by default.
upvoted 36 times
...
nicksu
Highly Voted 3 years, 10 months ago
I would say that when microsoft tells to use two containers - it would nearly always be the ACI, when there should be more containers or kind of orchestration, then it would be the AKS
upvoted 28 times
...
syu31svc
Most Recent 3 years, 7 months ago
"two tiers" so 2 containers would do C is the answer
upvoted 5 times
...
poplovic
3 years, 7 months ago
ACI is correct. 1. Linux so we can use container group 2. Azure file share is very simple in ACI there is an example in MS doc https://docs.microsoft.com/en-us/azure/container-instances/container-instances-container-groups
upvoted 3 times
...
leo_az300
3 years, 8 months ago
answer is correct. 2 containers in one Azure container group. xpose port 80. port 8080 is only for internal use. Both container can access Azure File Share in Azure container Group. Set up Restart Policy to OnFailure. Cost is less than other 2 options.
upvoted 3 times
...
ArifUK
4 years, 4 months ago
if anyone is interested, here's a comparison between ACI And AKS.
upvoted 4 times
MumbaiIndians
4 years, 4 months ago
bhai link toh dalta ??
upvoted 4 times
...
milind8451
4 years, 3 months ago
https://tutorialsdojo.com/azure-container-instances-aci-vs-azure-kubernetes-service-aks/
upvoted 4 times
...
VincentZhang
3 years, 7 months ago
You should use AKS if you need full container orchestration, such as service discovery across multiple containers, automatic scaling, and coordinated application upgrades.
upvoted 1 times
...
...
jhoomtv
4 years, 4 months ago
Given Answer is correct: https://docs.microsoft.com/en-us/azure/container-instances/container-instances-overview Persistent storage; To retrieve and persist state with Azure Container Instances, we offer direct mounting of Azure Files shares backed by Azure Storage. Secondly has restart policy; https://docs.microsoft.com/en-us/azure/container-instances/container-instances-restart-policy
upvoted 4 times
...
gcpjay
4 years, 5 months ago
The given answer is correct, but the reasoning is inadequate. We can have group both the container in an Azure Container Instance group and both can access the same Azure File share. https://docs.microsoft.com/en-us/azure/container-instances/container-instances-container-groups
upvoted 6 times
...
BoxMan
4 years, 6 months ago
Pretty certain it is correct with C. The item about "restart automatically" is what AKS/Orchestrators do and ACI doesn't. "Azure Container Instances enables a layered approach to orchestration, providing all of the scheduling and management capabilities required to run a single container, while allowing orchestrator platforms to manage multi-container tasks on top of it." from: https://docs.microsoft.com/en-us/azure/container-instances/container-instances-orchestrator-relationship
upvoted 1 times
BoxMan
4 years, 6 months ago
A not C, my bad. AKS.
upvoted 1 times
RandomUser
4 years, 6 months ago
The documentation likes to contradict: https://docs.microsoft.com/de-de/azure/container-instances/container-instances-restart-policy "When you create a container group in Azure Container Instances, you can specify one of three restart policy settings." Always , Never, OnFailure
upvoted 3 times
...
RandomUser
4 years, 6 months ago
"If a container fails, the application must restart automatically." Not sure this requirement makes sense when taken literally, but in that case we'd reach a scenario that ACI can't handle. (Not sure AKS can but I see more chances over there.)
upvoted 1 times
arseyam
4 years, 5 months ago
ACI supports restart policy (by default is set to "OnFailure"). https://docs.microsoft.com/en-us/azure/container-instances/container-instances-restart-policy
upvoted 5 times
...
levo017
4 years, 3 months ago
AKS support container auto restart. Actually anything that 'orchestrate' container support container auto restart. But the answer is ACI for cost reason.
upvoted 1 times
...
...
...
...
tmurfet
4 years, 6 months ago
Example points the way: https://docs.microsoft.com/en-us/azure/container-instances/container-instances-container-groups
upvoted 3 times
...
manderda
4 years, 7 months ago
Why is Azure Service Fabric not possible?
upvoted 1 times
ForYEO
4 years, 6 months ago
pricy, same as AKS
upvoted 3 times
...
...
Tos_123
4 years, 7 months ago
A Based on Microsoft AKS is the recommended solution for Linux containers https://docs.microsoft.com/en-us/dotnet/architecture/modernize-with-azure-containers/modernize-existing-apps-to-cloud-optimized/choosing-azure-compute-options-for-container-based-applications
upvoted 1 times
Remco
4 years, 7 months ago
I think Azur Container Instances is the better choice here. Also based on the article you are referring to. The deciding factor is costs. If there was some kind of elasticity in the question then I would agree with you. The article states that AKS is recommended for LINUX in case of micro services and that means having elasticity.
upvoted 5 times
SHABS78
4 years, 6 months ago
I believe it could be ACI
upvoted 4 times
...
...
...
Az_Sasi
4 years, 8 months ago
Why not AKS? https://docs.microsoft.com/en-us/azure/container-instances/container-instances-overview For scenarios where you need full container orchestration, including service discovery across multiple containers, automatic scaling, and coordinated application upgrades, we recommend Azure Kubernetes Service (AKS).
upvoted 3 times
ArifUK
4 years, 4 months ago
says 'Cost must be minimized'. besides, the bells and whistles that come with AKS is not a requirement in the given scenario. ACI is just fine.
upvoted 4 times
...
Ragdoll
4 years, 8 months ago
ACI is cheaper than AKS. In this case, both solutions can be used technically, but cost efficiency has to be considered as well.
upvoted 9 times
...
...
MaoLi
4 years, 8 months ago
“Azure Container Service will be retired on January 31, 2020, and is no longer recommended for new resources." go with AKS
upvoted 4 times
StressiOlli
4 years, 6 months ago
You have no clue.
upvoted 10 times
...
Florent44
4 years, 8 months ago
Azure Container Instance is not the same thing as Azure Container Service so in this case the answer is ACI with container group : https://docs.microsoft.com/en-us/azure/container-instances/container-instances-container-groups
upvoted 17 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago