πŸ”

AZ-104 β€” questions

Page 11 of 18 Β· 350 total questions.

Topic 4 Β· Question 302

You have an Azure subscription that contains three virtual machines named VM1, VM2, and VM3. All the virtual machines are in an availability set named AVSet1. You need to scale up VM1 to a new virtual machine size, but the intended size is unavailable. What should you do first?

  • ACreate a proximity placement group.
  • BDeallocate VM1. (correct answer)
  • CConvert AvSet1 into a managed availability set.
  • DShut down VM3 and VM3.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Deallocate VM1.

Topic 4 Β· Question 306

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. You have an Azure container registry named Registry1 that contains an image named image1. You receive an error message when you attempt to deploy a container instance by using image1. You need to be able to deploy a container instance by using image1. Solution: You set Admin user to Enable for Registry1. Does this meet the goal?

  • AYes (correct answer)
  • BNo
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Yes.

Topic 4 Β· Question 308

You have an Azure subscription. You plan to deploy the Azure container instances shown in the following table. Which instances can you deploy to a container group?

Exhibit 1 for question 308
  • AInstance1 only
  • BInstance2 only
  • CInstance1 and Instance2 only
  • DInstance3 and Instance4 only (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Instance3 and Instance4 only.

Topic 4 Β· Question 310

You have an Azure subscription that has the public IP addresses shown in the following table. You plan to deploy an Instance of Azure Firewall Premium named FW1. Which IP addresses can you use?

Exhibit 1 for question 310
  • AIP2 only
  • BIP1 and IP2 only (correct answer)
  • CIP1, IP2, and IP5 only
  • DIP1, IP2, IP4, and IP5 only
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: IP1 and IP2 only.

Topic 4 Β· Question 314

You plan to create the Azure web apps shown in the following table. What is the minimum number of App Service plans you should create for the web apps?

Exhibit 1 for question 314
  • A1
  • B2 (correct answer)
  • C3
  • D4
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: 2.

Topic 4 Β· Question 316

You have an Azure App Service app named App1 that contains two running instances. You have an autoscale rule configured as shown in the following exhibit. For the Instance limits scale condition setting, you set Maximum to 5. During a 30-minute period, App1 uses 80 percent of the available memory. What is the maximum number of instances for App1 during the 30-minute period?

Exhibit 1 for question 316
  • A2
  • B3
  • C4
  • D5 (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: 5.

Topic 4 Β· Question 317

You have an Azure AD tenant named contoso.com. You have an Azure subscription that contains an Azure App Service web app named App1 and an Azure key vault named KV1. KV1 contains a wildcard certificate for contoso.com. You have a user named [email protected] that is assigned the Owner role for App1 and KV1. You need to configure App1 to use the wildcard certificate of KV1. What should you do first?

  • ACreate an access policy for KV1 and assign the Microsoft Azure App Service principal to the policy.
  • BAssign a managed user identity to App1. (correct answer)
  • CConfigure KV1 to use the role-based access control (RBAC) authorization system.
  • DCreate an access policy for KV1 and assign the policy to User1.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Assign a managed user identity to App1.

Topic 4 Β· Question 318

You have an Azure subscription. You plan to deploy the resources shown in the following table. You need to create a single Azure Resource Manager (ARM) template that will be used to deploy the resources. Which resource should be added to the dependsOn section for VM1?

Exhibit 1 for question 318
  • AVNET1
  • BNIC1 (correct answer)
  • CIP1
  • DNSG1
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: NIC1.

Topic 4 Β· Question 319

You have an Azure subscription. You create the following Azure Resource Manager (ARM) template named Template.json. You need to deploy Template.json. Which PowerShell cmdlet should you run from Azure Cloud Shell?

Exhibit 1 for question 319
  • ANew-AzSubscriptionDeployment (correct answer)
  • BNew-AzManagementGroupDeployment
  • CNew-AzResourceGroupDeployment
  • DNew-AzTenantDeployment
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: New-AzSubscriptionDeployment.

Topic 4 Β· Question 320

You have an Azure subscription that contains a resource group named RG1. You plan to create a storage account named storage1. You have a Bicep file named File1. You need to modify File1 so that it can be used to automate the deployment of storage1 to RG1. Which property should you modify?

  • Akind
  • Bscope (correct answer)
  • Csku
  • Dlocation
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: scope.

Topic 4 Β· Question 321

You have an Azure subscription that contains the resources shown in the following table. You need to configure a proximity placement group for VMSS1. Which proximity placement groups should you use?

Exhibit 1 for question 321
  • AProximity2 only
  • BProximity1, Proximity2, and Proximity3
  • CProximity1 only (correct answer)
  • DProximity1 and Proximity3 only
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Proximity1 only.

Topic 4 Β· Question 323

You have an Azure subscription named Subscription1 that contains the resources shown in the following table. You create virtual machines in Subscription1 as shown in the following table. You plan to use Vault1 for the backup of as many virtual machines as possible. Which virtual machines can be backed up to Vault1?

Exhibit 1 for question 323Exhibit 2 for question 323
  • AVM1 only
  • BVM3 and VMC only
  • CVM1, VM2, VM3, VMA, VMB, and VMC
  • DVM1, VM3, VMA, and VMC only (correct answer)
  • EVM1 and VM3 only
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: VM1, VM3, VMA, and VMC only.

Topic 4 Β· Question 324

You have an Azure subscription that contains an Azure container registry named ContReg1. You enable the Admin user for ContReg1. Which username can you use to sign in to ContReg1?

  • Aroot
  • Badmin
  • Cadministrator
  • DContReg1 (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: ContReg1.

Topic 4 Β· Question 325

You have an Azure subscription. You plan to create an Azure container registry named ContReg1. You need to ensure that you can push and pull signed images for ContReg1. What should you do for ContReg1?

  • AEnable encryption by using a customer-managed key.
  • BCreate a connected registry.
  • CAdd a token.
  • DEnable content trust. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Enable content trust.

Topic 4 Β· Question 326

You plan to deploy several Azure virtual machines that will run Windows Server 2022 in a virtual machine scale set by using an Azure Resource Manager template. You need to ensure that NGINX is available on all the virtual machines after they are deployed. What should you use?

  • AAzure Custom Script Extension (correct answer)
  • BDeployment Center in Azure App Service
  • CMicrosoft Entra Application Proxy
  • Dthe Publish-AzVMDscConfiguration cmdlet
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Azure Custom Script Extension.

Topic 4 Β· Question 327

You have an Azure subscription. You plan to deploy a container. You need to recommend which Azure services can scale the container automatically. What should you recommend?

  • AAzure Container Apps only
  • BAzure Container Instances only
  • CAzure Container Apps or Azure App Service only (correct answer)
  • DAzure Container Instances or Azure App Service only
  • EAzure Container Apps, Azure Container Instances, or Azure App Service
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Azure Container Apps or Azure App Service only

Explanation

Azure App Service is a fully managed platform for hosting web apps and APIs with built-in scaling and patching. Azure Container Apps runs containers serverlessly with built-in autoscaling and scale-to-zero.

Topic 4 Β· Question 329

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. You have an Azure container registry named Registry1 that contains an image named image1. You receive an error message when you attempt to deploy a container instance by using image1. You need to be able to deploy a container instance by using image1. Solution: You assign the AcrPull role to ACR-Tasks-Network for Registry1. Does this meet the goal?

  • AYes
  • BNo (correct answer)
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: No.

Topic 4 Β· Question 330

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. You have an Azure container registry named Registry1 that contains an image named image1. You receive an error message when you attempt to deploy a container instance by using image1. You need to be able to deploy a container instance by using image1. Solution: You select Use dedicated data endpoint for Registry1. Does this meet the goal?

  • AYes
  • BNo (correct answer)
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: No.

Topic 4 Β· Question 331

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. You have an Azure container registry named Registry1 that contains an image named image1. You receive an error message when you attempt to deploy a container instance by using image1. You need to be able to deploy a container instance by using image1. Solution: You create a private endpoint connection for Registry1. Does this meet the goal?

  • AYes
  • BNo (correct answer)
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: No.

Topic 4 Β· Question 332

You have a Standard Azure App Service plan named Plan1. You need to ensure that Plan1 will scale automatically when the CPU usage of the web app exceeds 80 percent. What should you select for Plan1?

  • AAutomatic in the Scale out method settings
  • BRules Based in the Scale out method settings (correct answer)
  • CPremium P1 in the Scale up (App Service plan) settings
  • DStandard S1 in the Scale up (App Service plan) settings
  • EManual in the Scale out method settings
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Rules Based in the Scale out method settings.

Showing questions 201–220 of 350 Β· Page 11 of 18