Chapter 4 · AZ-204: Developing Solutions for Microsoft Azure Develop Azure Compute Solutions
Azure Container Apps
20 practice questions · 5 marks weightage
Practice questions
- Question 1Q-73EBA6See the answer and solution
You deploy an Azure Container App whose web process listens on container port 8080. Users on the internet must access the application through the HTTPS endpoint provided by Azure Container Apps. Which ingress configuration should you use?
- A.Enable external ingress and set the target port to 8080.
- B.Enable internal ingress and set the target port to 443.
- C.Disable ingress and expose port 8080 only in the container image.
- D.Enable external ingress and set the target port to 443, regardless of the port used by the process.
- Question 2Q-26E64BSee the answer and solution
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 validation, and keep 90 percent on version 1. Which approach should you use?
- A.Use single revision mode and increase the replica count of version 2.
- B.Use multiple revision mode, deploy version 2 as a new revision, and assign traffic weights of 90 percent and 10 percent to the two revisions.
- C.Create a separate container app for version 2 and configure both apps to use the same container port.
- D.Deploy version 2 as a new replica in the existing revision and configure autoscaling to 10 percent.
- Question 3Q-04E784See the answer and solution
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.
- D.Create a continuously running Container App and manually increase its replica count whenever the queue grows.
- Question 4Q-976CE5See the answer and solution
An Azure Container App needs a database connection string. The connection string must not be stored in the container image or supplied as plaintext in the application configuration. What should you do?
- A.Store the connection string in the container image as an environment variable.
- B.Create an Azure Container Apps secret and reference it from the container's environment variable.
- C.Store the connection string in the container app's public URL.
- D.Place the connection string in the container startup command.
- Question 5Q-8D2F0ASee the answer and solution
You have two Azure Container Apps in the same Container Apps environment. One app provides an internal API that must be callable by other apps in the environment but must not be accessible from the public internet. Which ingress configuration should you use for the API app?
- A.Enable external ingress.
- B.Disable ingress completely.
- C.Enable internal ingress.
- D.Enable external ingress and require an application-level API key.
15 more questions on Azure Container Apps
Sign up free to practise the full chapter. Questions you get wrong come back until you've mastered them.
Start practising freeFree to start · No credit card needed