Contoso is deploying specialist agents to a new Azure Container Apps environment that uses the workload profiles environment type. The design has these requirements:
- The agents must reach an Azure Cosmos DB account through a private endpoint in Contoso's virtual network.
- All outbound traffic from the agents must be sent to Azure Firewall by a user-defined route (UDR).
- The environment must have no public endpoint, and it must not be possible to change it later so that it accepts traffic from the internet.
- IP address space in the virtual network is scarce, so the environment's dedicated subnet must be the smallest size the environment type supports.
How should you create the environment?
Create the workload profiles environment in , on a dedicated subnet of size , as .
- Blank 1: an existing virtual network (correct answer)
An existing virtual network is needed to reach resources behind private endpoints and to control outbound traffic through Azure Firewall. The default Azure network can communicate only with internet-accessible endpoints. The network type cannot be changed after the environment is created, so starting on the default network and switching later is not possible.
- Blank 2: /27 (correct answer)
/27 is the minimum required subnet size for a workload profiles environment, so it meets the smallest-subnet requirement. /23 works but is larger than needed. /28 is smaller than the stated minimum and is not supported.
- Blank 3: an internal environment with public network access set to Disabled (correct answer)
An internal environment has no public endpoint, and Disabled is its only supported public network access value, so it cannot later be opened to the internet. An external environment with Disabled is still created with an internet-accessible endpoint, and the setting can be changed after creation. An external environment with Enabled accepts public traffic.
Reaching a Cosmos DB private endpoint and forcing egress through Azure Firewall both depend on deploying into an existing virtual network, and that choice cannot be changed after creation. The workload profiles environment type supports UDRs and needs a dedicated subnet of at least /27, so /27 is the smallest valid size. An internal environment has no public endpoint and supports only Disabled for public network access, so it cannot later be made to accept internet traffic. An external environment with public access disabled would still have a public endpoint and could be re-enabled.
- Networking in an Azure Container Apps EnvironmentMicrosoft Learn