Exam AZ-104 All QuestionsBrowse all questions from this exam
Question 471

HOTSPOT

-

You have an Azure subscription that contains the virtual networks shown in the following table.

The subnets have the IP address spaces shown in the following table.

You plan to create a container app named contapp1 in the East US Azure region.

You need to create a container app environment named con-env1 that meets the following requirements:

• Uses its own virtual network.

• Uses its own subnet.

• Is connected to the smallest possible subnet.

To which virtual networks can you connect con-env1, and which subnet mask should you use? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

    Correct Answer:

Discussion
Kuikz

Its VNET 3 only and /23 So we need a /23 mask, this means 512 IPs I am a total newbie with this so i tried to find out what the possible IP Ranges are: - VNET 1 10.1.128.0/23 = 10.1.128.0 - 10.1.129.255 (512 IPs) - Sub 1 10.1.128.0/24 = 10.1.128.0 - 10.1.128.255 (256) -> Not enough IPs available - VNET 2 192.168.0.0/16 = 192.168.0.0-192.168.255.255 - Sub21 192.168.0.0 /17 = 192.168.0.0 - 192.168.127.255 - Sub22 192.168.128.0/17 = 192.168.128.0 - 192.168.255.255 -> The subnets take out the whole range of VNET 2 - VNET 3 172.16.0.0/16 = 172.16.0.0 - 172.16.255.255 - Sub3 172.16.1.0/24 = 172.16.1.0 - 172.16.1.255 -> VNET 3 still has most of the range for a /23 available. For example we could make the following /23 subnet: 172.16.2.0/23 = 172.16.2.0 - 172.16.3.255 Please correct me if i am wrong!

ducklaorange

Your reasoning sounds correct to me. But its a very silly question, having to number crunch IP subnets like this is a CCNA.

josola

Azure manages its own networking environment, so yes the required knowledge should be akin to CCNA.

trferreiraBR

VNET 3 only and /23. Why? According to Microsoft - Consumption only environment - Container Apps. It needs a subnet with IPs in Range 512. -/23 is the minimum subnet size required for virtual network integration. -The Container Apps runtime reserves a minimum of 60 IPs for infrastructure in your VNet. The reserved amount may increase up to 256 addresses as apps in your environment scale. Reference: https://learn.microsoft.com/en-us/azure/container-apps/networking?tabs=azure-cli#consumption-only-environment

bhadrisn

Your explanation is right but selected answer is wrong. /23 is the subnet size to be used. This gives answer for second box. And for the first box, from the given conditions, you choose, VNET2, because, /23 size is available only in subnet 21 and subnet 22. but subnet 21 and 23 is only attached to VNET2. So, answer for first box is VNET2

bhadrisn

Ok, my assumption is wrong. I thought we have to use only from the above subnets, but after reading the question correctly, i had another thought of which VNETs has space and to which VNET we can have the environment allocated. So, it should be VNET3 as it has space. VNET2 space is not available.

Novia

the Answer should be BOX 1 VNET 1 or VNET3 only BOX2 /24 we have subnet mask either /24 or /17 from all subnets. the question did not say you can create a new subnet! therefore, /24 is the samllest subnet you can CHOOSE from the two. Both VNET1 and VNET 3 have the subnets with mask /24

1828b9d

This question was in exam 01/03/2024

RonZhong

Q1: VNET 1 & VNET 3 Q2: /24 from Subnet1 or Subnet 3 (bigger than /27 & /23 as required below) Container Apps has two different environment types, which share many of the same networking characteristics with some key differences. 1. Workload profiles environment: /27 is the minimum subnet size required for virtual network integration. 2. Consumption only environment: /23 is the minimum subnet size required for virtual network integration.

RonZhong

Link here: https://learn.microsoft.com/en-us/azure/container-apps/networking?tabs=azure-cli

jacksparrowtabali

container apps need at least 512 IP addresses: 1- Vnet 1 does not have enough the remaining from subnet 1 will be 256. 2-Vnet2 the is full equipied and we do not have any IPs available 3- Vnet3 is having 65536 IPs and only equipied with 512 IPs so we still have so much space to host our ( /23) app container. answer Vnet3 and /23

Ni22

6/13/24 on exam

Nickybambi

what's the answer?

Razoir

To meet the requirements of creating a container app environment named con-env1 that uses its own virtual network, its own subnet, and is connected to the smallest possible subnet, you should connect con-env1 to vnet1 and use subnet1 with the smallest subnet mask available. The available options are: vnet1: 10.1.128.0/23, subnet1: 10.1.128.0/24 vnet2: 192.168.0.0/16, subnet21: 192.168.0.0/17 vnet3: 172.16.0.0/16, subnet3: 172.16.1.0/24 So, the correct options are: Connect con-env1 to vnet1 Use the subnet subnet1 with the subnet mask 10.1.128.0/24

PTark

VNET3 and /23

MRL110

You're the only one who seems to have understood the question correctly.

MRL110

I meant one of the very few.

[Removed]

VNet1 and VNet3 only have one subnet, that meets the first requirement. They both use /24 and that is the smallest subnet mask in chart 2, meeting the third requirment.

hfk2020

Vnet1 only since that only has the subnet/23

Mnguyen0503

I agree that the minimum subnet is /23, so that will make vnet3 the only option with /16 address space. Pay attention to the requirements with own vnet and own subnet. Since vnet 1 has exactly /23 and it has already use the portion of it for subnet 1, there's no available address space to support another /23. You will need to size up to anything larger or equal to /22. So answer is vnet 3 and /23.

Mnguyen0503

In addition, vnet2 is no go because all of its address space is filled up by subnet 21 and 22

o0o0

But any /23 that you will make from VNET3 will contain subnet3 (which is /24) and therefore the requirement of it own subnet will be broken.

Mnguyen0503

Nope. 172.16.2.0/23 doesn't contain 172.16.1.0/24. You underestimated how big a /16 network is. That's a class B network easy

Amir1909

- VNet3 only - 23

vish9

s per the following link /27 is the minimum subnet required https://learn.microsoft.com/en-us/azure/container-apps/networking?tabs=workload-profiles-env%2Cazure-cli#consumption-only-environment Hence all three VNets can be used because those are bigger than /27. To keep the subnet smallest we should use /26 prefix.

ovas

Why not VNET1 and VNET3? Because the question asks for a smaller subnet, and the smaller subnet has a subnet mask of 24

GreenTick

VNET1, VNET2, and VNET3. /28. it can use all VNETs, because it's located in the same region. the subnets listed are the VNET's subnet, the maximum available range to use. the requirement is to create the smallest subnet, The smallest supported IPv4 subnet is /29, and the largest is /2 (using CIDR subnet definitions). IPv6 subnets must be exactly /64 in size https://learn.microsoft.com/en-us/azure/virtual-network/virtual-networks-faq /29 is not in the list, so the next one will be /28.

GreenTick

correction VNET1 and VNET3 only and /28 VNET2 (/16) has been used completely ( 2 x /17).

kam1122

Wt is the correct answer......

AAlmani

Given Ans is correct: -BOX 1 VNET1 or VNET2 or VNET3 -BOX2 /26 https://learn.microsoft.com/en-us/azure/container-apps/networking?tabs=workload-profiles-env%2Cazure-cli

hfk2020

Environment selection Container Apps has two different environment types, which share many of the same networking characteristics with some key differences. Environment type Description Supported plan types Workload profiles Supports user defined routes (UDR) and egress through NAT Gateway. The minimum required subnet size is /27. Consumption, Dedicated Consumption only Doesn't support user defined routes (UDR) and egress through NAT Gateway. The minimum required subnet size is /23. Consumption Answer is 23 https://learn.microsoft.com/en-us/azure/container-apps/networking?tabs=azure-cli

ValB

You seem to suggest that /27 as minimum is wrong and it must be /23? Why?