Azure Container Apps · AZ-204: Developing Solutions for Microsoft Azure Develop Azure Compute Solutions
A workload must process messages from an Azure Service Bus queue. Each execution should run a finite containerized task, and the workload should scal…
Practice question from Azure Container Apps (AZ-204: Developing Solutions for Microsoft Azure Develop Azure Compute Solutions), with the correct answer and a step-by-step solution.
hard · MCQ · Q-04E784
A workload must process messages from an Azure Service Bus queue. Each execution should run a finite containerized task, and the workload should scale based on queued messages. It does not expose an HTTP endpoint and should not run continuously when the queue is empty. Which Azure Container Apps solution is most appropriate?
- A.Create a scheduled Container Apps job that runs once each day.
- B.Create a Container App with external HTTP ingress and scale it using HTTP concurrent requests.
- C.Create an event-driven Container Apps job with a Service Bus-based scaling rule.Correct answer
- D.Create a continuously running Container App and manually increase its replica count whenever the queue grows.
Solution
An event-driven Container Apps job is designed for finite workloads triggered by events such as messages in a Service Bus queue. Its event-based scaling rule can create job executions as the backlog changes, while avoiding an always-running HTTP service.
More from Azure Container Apps
- You deploy an Azure Container App whose web process listens on container port 8080. Users on the internet must access the application throu…
- You run version 1 of an API in an Azure Container App. You want to deploy version 2, send 10 percent of requests to version 2 for validatio…
- An Azure Container App needs a database connection string. The connection string must not be stored in the container image or supplied as p…
- You have two Azure Container Apps in the same Container Apps environment. One app provides an internal API that must be callable by other a…
Practise more Develop Azure Compute Solutions
Sign up free for adaptive practice on this chapter, with instant feedback and hints on every question.
Start practising freeFree to start · No credit card needed