AZ-104 Exam QuestionsBrowse all questions from this exam

AZ-104 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.

Show Answer
Correct Answer:

Discussion

17 comments
Sign in to comment
mmarkiew
Oct 12, 2023

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
Oct 12, 2023

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
Mar 14, 2024

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

WeepingMaplte
May 1, 2024

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
Jul 2, 2024

tested and this is correct!

KMLearn2
Sep 4, 2023

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"

Exilic
Sep 1, 2023

Can anyone confirm this answer?

SgtDumitru
Dec 3, 2023

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
Apr 2, 2024

Correct, i agree with SgtDumutru

nightowl159
Sep 25, 2023

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

Amir1909
Mar 21, 2024

No Yes No

lahart99
Sep 6, 2023

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
Sep 6, 2023

correction 4-16*

[Removed]
Jan 2, 2024

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.

Learner2022
Sep 9, 2023

Does the location matter?

iammousumi
Oct 18, 2023

what is the correct answer?

ICTZaakwaarnemer
Oct 29, 2023

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.

AliNadheer
Dec 10, 2023

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
Dec 11, 2023

i meant to say the answer N,Y,N

6Sam7
Jan 23, 2024

What is the correct answer?

conip
Sep 16, 2023

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 ?

473d75d
Jul 11, 2024

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)

Limobakry
May 18, 2024

generation and location is important VM2 ONLY

adilkhan
Jun 25, 2024

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.