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

HOTSPOT

-

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

You create an Azure Compute Gallery named ComputeGallery1 as shown in the Azure Compute Gallery exhibit. (Click the Azure Compute Gallery tab.)

In ComputeGallery1, you create a virtual machine image definition named Image1 as shown in the image definition exhibit. (Click the Image Definition tab.)

For each of the following statements, select Yes if the statement is true. Otherwise, select No,

NOTE: Each correct selection is worth one point.

    Correct Answer:

Discussion
mmarkiew

So many people here are making assumptions without actually testing or validating them. The answer is YYY - Tested in Lab. Neither the region, vCPU count, nor the VM generation had any impact on my ability to select a particular VM OS disk as a source for an image version.

mmarkiew

Steps I took via the Azure Portal: - Created a new VM in Central US. Per the Overview blade, VM generation = V2, vCPUs = 1. - Created a new Compute Gallery in West Europe. - Added a new VM image definition to the Compute Gallery exactly as per the definition in the question (East US, VM generation = V1, same recommended CPUs, etc.). When configuring the image version as part of the image VM image definition deployment, I had the option to switch between regions. I selected Central US, and was able to then select the OS disk from the Gen2 VM I created in Central US as the source for the image version. I was then able to successfully deploy the VM image definition along with the version.

LovelyGroovey

So, what is the logic here? Can you explain to us?

WeepingMaplte

Reference that Windows Server 2022 supports Generation 1. https://learn.microsoft.com/en-us/windows-server/virtualization/hyper-v/plan/should-i-create-a-generation-1-or-2-virtual-machine-in-hyper-v#windows-guest-operating-system-support

OscarFRItz

tested and this is correct!

KMLearn2

NYY image definition needs V1 generation, but vCPU and memory are only recommendations. Text from Azure Portal while creating image definition: "These recommendations are informational only, and do not constrain VM specification"

SgtDumitru

N-Y-N Box 1- NO: VM gen 2 is not directly supported for image definition with v1. Image & VM source regions doesn't match Box 2 - YES: VM generations matches, along with image & VM source region Box 3 - NO: VM generations matches, but image & VM source region doesn't https://learn.microsoft.com/en-us/azure/virtual-machines/shared-image-galleries?tabs=azure-cli#how-do-i-specify-the-source-region-while-creating-the-image-version

qqla83

Correct, i agree with SgtDumutru

Exilic

Can anyone confirm this answer?

Amir1909

No Yes No

nightowl159

NYN. Location does matter so only VM2 fits. The CPU is just a recommendation, not a requirement.

[Removed]

Tested in my lab as well and mmarkiew is correct. The answer is YYY, the VM generation, vCPU, location etc do not matter. We are just creating a snapshot of that disk as far as I understand it.

lahart99

NNY if you look at VM generation it's set to 1 then you look at amount of CPU allowed is 4-15 Which makes the answer NNY

lahart99

correction 4-16*

6Sam7

What is the correct answer?

AliNadheer

to me at the moment: N,N,Y seems like VM generation and location is important to consider. check this YT link. appreciate your thoughts. https://www.youtube.com/watch?v=AWK1GVXdAwI

AliNadheer

i meant to say the answer N,Y,N

ICTZaakwaarnemer

I think it should be NYN: VM1 has a different generation than the compute gallery. Using VMs of a different generation than the gallery can lead to compatibility issues and may not be supported, as the underlying hardware and virtualization technology can vary between different VM generations. VM2 matches the region and vm generation. While it's not strictly required to match the CPU recommendation, it's a best practice to use an image source with CPU settings that align well with your workload. If you anticipate using VM instances with varying CPU capabilities, consider testing the image source in different VM sizes to ensure it functions as expected. So in short words this isn't a deal breaker. VM3 is in a different region and compute gallery's are associated with the specific region you create them in. Cross-region operations or using a VM from one region as an image source for a Compute Gallery in another region may not be directly supported and can lead to complications in terms of data transfer and latency. Used ChatGPT as source.

iammousumi

what is the correct answer?

Learner2022

Does the location matter?

473d75d

Check against vCPU and VM Generation ==recommended vCPU (4-16) and Generation 1 1) VM1 = 8 vCPU; Gen 2 = NO because Gen required is 1; 2) VM2 = 2 vCPU; Gen 1 = NO because vCPU lower than recommended (4-16); 3) VM3= 12 vCPU; Gen 1= YES (vCPU between recommended and Gen 1)

conip

for 3) I love that description about region limitation: "In Region, select the region where you want the image created. In some cases, the source must be in the same region where the image is created. If you aren't seeing your source listed in later drop-downs, try changing the region for the image. You can always replicate the image to other regions later." https://learn.microsoft.com/en-us/azure/virtual-machines/image-version?tabs=portal%2Ccli2 so Y or N ?

adilkhan

chatgPT4: Statement 1: The operating system disk of VM1 can be used as a source for a version of Image1. VM1 has Generation 2, whereas Image1 requires Generation 1. Therefore, VM1 cannot be used. Statement 2: The operating system disk of VM2 can be used as a source for a version of Image1. VM2 is in the same region (East US) as the image definition and has Generation 1. Therefore, VM2 can be used. Statement 3: The operating system disk of VM3 can be used as a source for a version of Image1. VM3 has Generation 1, but it's located in West US, different from the image definition region (East US). Therefore, VM3 cannot be used.

Limobakry

generation and location is important VM2 ONLY