az-104 Practice Question 1730
Exam: az-104
Domain: Deploy and manage Azure compute resources
Topic: Create and configure containers
Difficulty: medium
Contoso Ltd is experiencing intermittent outages with their web application hosted in Azure App Service. They suspect that the issue might be related to the restart policy of the container instances. Which restart policy should you recommend to ensure that the application remains available even during short-term failures, while also minimizing the impact on users?
Answer Options
A
Always
B
OnFailure
C
None
D
Never
Correct Answer
B: OnFailure
Explanation
The correct answer is B, `OnFailure`. This restart policy will automatically restart the container instance only when it fails, ensuring that the application remains available without unnecessary restarts that could disrupt user experience. Option A, `Always`, would constantly restart the container, which could lead to performance degradation and user frustration. Option C, `None`, would not restart the container at all, potentially leaving the application in an unstable state if it crashes. Option D, `Never`, is not a valid restart policy in Azure Container Instances (ACI).