nerdexam
Microsoft

AZ-204 · Question #502

You are developing several microservices to run on Azure Container Apps. External HTTP ingress traffic has been enabled for the microservices. The microservices must be deployed to the same virtual ne

The correct answer is D. Use a single environment for all containers.. To deploy multiple microservices to the same virtual network and Log Analytics workspace in Azure Container Apps, all microservices must reside within a single Container Apps environment.

Submitted by hassan_iq· Mar 30, 2026Develop Azure compute solutions

Question

You are developing several microservices to run on Azure Container Apps. External HTTP ingress traffic has been enabled for the microservices. The microservices must be deployed to the same virtual network and write logs to the same Log Analytics workspace. You need to deploy the microservices. What should you do?

Options

  • AEnable single revision mode.
  • BUse a separate environment for each container.
  • CUse a private container registry image and single image for all containers.
  • DUse a single environment for all containers.
  • EEnable multiple revision mode.

How the community answered

(50 responses)
  • A
    8% (4)
  • B
    2% (1)
  • C
    16% (8)
  • D
    70% (35)
  • E
    4% (2)

Why each option

To deploy multiple microservices to the same virtual network and Log Analytics workspace in Azure Container Apps, all microservices must reside within a single Container Apps environment.

AEnable single revision mode.

Enabling single revision mode controls how revisions of a *single* container app are managed, not the deployment of *multiple* microservices to shared network/logging resources.

BUse a separate environment for each container.

Using a separate environment for each container would result in each microservice having its own dedicated virtual network and Log Analytics workspace, contradicting the requirement to share these resources.

CUse a private container registry image and single image for all containers.

Using a private container registry image and a single image for all containers relates to image source and reusability, not the deployment configuration for shared network or logging.

DUse a single environment for all containers.Correct

An Azure Container Apps environment is directly associated with a single virtual network and a single Log Analytics workspace. Deploying all microservices into one environment ensures they share these common infrastructure components, meeting the specified requirements.

EEnable multiple revision mode.

Enabling multiple revision mode controls how revisions of a *single* container app are managed for blue/green deployments or traffic splitting, not the deployment of *multiple* microservices to shared network/logging resources.

Concept tested: Azure Container Apps Environment shared resources

Source: https://learn.microsoft.com/en-us/azure/container-apps/environments

Topics

#Azure Container Apps#environment#virtual network#Log Analytics

Community Discussion

No community discussion yet for this question.

Full AZ-204 Practice