exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 2 question 55 discussion

Actual exam question from Microsoft's AZ-204
Question #: 55
Topic #: 2
[All AZ-204 Questions]

HOTSPOT
-

You develop a Python application for image rendering. The application uses GPU resources to optimize rendering processes.

You have the following requirements:

• The application must be deployed to a Linux container.
• The container must be stopped when the image rendering is complete.
• The solution must minimize cost.

You need to deploy the application to Azure.

Show Suggested Answer Hide Answer
Suggested Answer:

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
AlbertoBT
Highly Voted 1 year ago
ACI - Because the GPU usage. Kubernetes can manage ACIs but is not a 'compute target' and it will increment the cost. "The container instances in the group can access one or more NVIDIA Tesla GPUs while running container workloads such as CUDA and deep learning applications." https://learn.microsoft.com/en-us/azure/container-instances/container-instances-gpu Restart Policy - To stop the container after the execution (In fact is avoiding to restart it after a succeeded execution) "Set an appropriate restart policy for the container instance, depending on whether the command-line specifies a long-running task or a run-once task. For example, a restart policy of Never or OnFailure is recommended for a run-once task." https://learn.microsoft.com/en-us/azure/container-instances/container-instances-start-command#command-line-guidelines
upvoted 14 times
...
onlyforheros
Highly Voted 8 months, 3 weeks ago
Got it in exam on 13.03.2024. Score: 910. Answer ACI, restart policy
upvoted 10 times
...
J_obando13
Most Recent 2 weeks, 5 days ago
Got this in the exam today! May 15, 2025. Went most voted. 940/1000. 50 of 51 from examtopics. Cases Munson’s Pickles and Preserves Farm (7) and Fourth Coffee (3)
upvoted 1 times
...
jobolesonihal
8 months, 2 weeks ago
Azure Container Instance - Since scaling is not an requirement, the right choice would be to use ACI instead of ACA or Kubernetes.
upvoted 2 times
...
manopeydakon
11 months ago
To deploy a Python application for image rendering with the specified requirements on Azure, you can use Azure Container Instances (ACI). ACI provides an easy and cost-effective way to run containers in the cloud. Here are the options you can choose: Compute Value: Choose the ACI option for running your Linux container. Container Termination: Since you want the container to be stopped when the image rendering is complete to minimize cost, you can use the "Single" container group mode in Azure Container Instances. This mode is suitable for scenarios where you want to run a single container task and stop it when it's done. This command creates a single container instance (--restart-policy Never) and stops it when the image rendering is complete, minimizing cost. Adjust the resource limits (--cpu and --memory) based on your application's requirements.
upvoted 4 times
...
azrlm
11 months, 2 weeks ago
Will this question be on the exam?
upvoted 1 times
...
SachinV
1 year ago
As suggested ACI is preferred for one time or demand script and jobs execution whereas as ACA is preferred for deploying container continually running full lifecycle apps, I am leaning towards ACI.
upvoted 2 times
...
dddddd111
1 year ago
If I choose C# in the exam, will this question still appear?
upvoted 1 times
...
junkz
1 year, 1 month ago
given that AKS is not in the exam curriculum , only ACA and ACI are left. out of which, only ACI supports GPU (though still in preview). As for the container termination-> restart policy set to never should be true
upvoted 6 times
Schwopak
1 year ago
I agree with ACI Since its a new question the preview thing makes sense as well. source: https://learn.microsoft.com/en-gb/azure/container-instances/container-instances-overview
upvoted 1 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 ...