Chapter 4 · AZ-204: Developing Solutions for Microsoft Azure Develop Azure Compute Solutions

Azure Container Apps

20 practice questions · 5 marks weightage

Practice questions

  1. Question 1Q-73EBA6

    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?

    1. A.Enable external ingress and set the target port to 8080.
    2. B.Enable internal ingress and set the target port to 443.
    3. C.Disable ingress and expose port 8080 only in the container image.
    4. D.Enable external ingress and set the target port to 443, regardless of the port used by the process.
    See the answer and solution
  2. Question 2Q-26E64B

    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?

    1. A.Use single revision mode and increase the replica count of version 2.
    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.
    3. C.Create a separate container app for version 2 and configure both apps to use the same container port.
    4. D.Deploy version 2 as a new replica in the existing revision and configure autoscaling to 10 percent.
    See the answer and solution
  3. Question 3Q-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?

    1. A.Create a scheduled Container Apps job that runs once each day.
    2. B.Create a Container App with external HTTP ingress and scale it using HTTP concurrent requests.
    3. C.Create an event-driven Container Apps job with a Service Bus-based scaling rule.
    4. D.Create a continuously running Container App and manually increase its replica count whenever the queue grows.
    See the answer and solution
  4. Question 4Q-976CE5

    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?

    1. A.Store the connection string in the container image as an environment variable.
    2. B.Create an Azure Container Apps secret and reference it from the container's environment variable.
    3. C.Store the connection string in the container app's public URL.
    4. D.Place the connection string in the container startup command.
    See the answer and solution
  5. Question 5Q-8D2F0A

    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?

    1. A.Enable external ingress.
    2. B.Disable ingress completely.
    3. C.Enable internal ingress.
    4. D.Enable external ingress and require an application-level API key.
    See the answer and solution

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 free

Free to start · No credit card needed