Detailed Answers
You need to set up access to provide a secret to webapp1 from an Azure Key Vault.
What is the most appropriate action?
A) Create a Private Endpoint for webapp1 and use secrets from kv-West.
B) Create a Managed Identity for webapp1 and use secrets from kv-East.
C) Create a Service Principal for webapp1 and use secrets from kv-Central.
D) Use a User Account for webapp1 and use secrets from all three key vaults.
B
Given the Bash script to create a resource group in Microsoft Azure, identify the missing line:
#!/bin/bash
az login --username --password examplePassword
# Missing line here
A) az group create --name MyResourceGroup --location eastus
B) create-az-resource-group --name MyResourceGroup
C) az resource new --group MyResourceGroup --location eastus
D) az group set --name MyResourceGroup --location eastus
A
Given the Bash script to list all VMs in a specific resource group, what is the missing line?
#!/bin/bash
az login
# Missing line here
A) az vm list --output table
,B) az vm list --resource-group MyResourceGroup --output table
C) list-az-vm --resource-group MyResourceGroup
D) az vm show --resource-group MyResourceGroup
B
This script is intended to delete a virtual network. What line completes the script correctly?
#!/bin/bash
az login --service-principal -u http://azure-cli-2020-04-01 --password {password} --tenant
{tenant}
# Missing line here
A) az network vnet delete --name MyVnet --resource-group MyResourceGroup
B) az vnet remove --name MyVnet --resource-group MyResourceGroup
C) delete-az-vnet --name MyVnet --resource-group MyResourceGroup
D) az network vnet destroy --name MyVnet --resource-group MyResourceGroup
A
In this script to update tags for a storage account, which line correctly completes the script?
#!/bin/bash
az login
# Missing line here
A) az storage account update --name mystorageaccount --resource-group MyResourceGroup --
set tags.CostCenter=Finance
B) update-az-storage --name mystorageaccount --tags CostCenter=Finance
C) az storage update --account-name mystorageaccount --tags "CostCenter=Finance"
D) az storage account tag --name mystorageaccount --tags "CostCenter=Finance"
A
Complete this script designed to retrieve the usage details of an Azure subscription. What is
the correct line to insert?
#!/bin/bash
az login
# Missing line here
,A) az account show --output table
B) az account usage-list
C) az account list-locations
D) az consumption usage list --output table
D
Given the PowerShell script to create a virtual network, what is the correct line to complete
the script?
Connect-AzAccount
# Missing line here
A) New-AzVirtualNetwork -Name MyVnet -ResourceGroupName MyResourceGroup -Location
"East US"
B) Create-AzVNet -VNetName MyVnet -ResourceGroup MyResourceGroup
C) Set-AzVirtualNetwork -VNetName MyVnet -ResourceGroup MyResourceGroup
D) Add-VirtualNetwork -Name MyVnet -ResourceGroup MyResourceGroup
A
Complete this script for updating a storage account with a new tag. What is the missing line?
Connect-AzAccount
# Missing line here
A) Update-AzStorageAccount -ResourceGroupName MyResourceGroup -Name MyStorage -Tag
@{ Department="Finance" }
B) Set-AzStorageAccount -ResourceGroupName MyResourceGroup -AccountName MyStorage
-Tags @{ Department="Finance" }
C) Modify-AzStorageAccount -Name MyStorage -Tags @{ Department="Finance" }
D) Tag-AzStorageAccount -ResourceGroupName MyResourceGroup -Name MyStorage -
NewTags @{ Department="Finance" }
B
This script is used to retrieve all VMs within a given subscription. Which line should be added
to complete the script?
Connect-AzAccount
# Missing line here
, A) Get-AzVM
B) List-AzVirtualMachine
C) Retrieve-AzVM -All
D) Show-AzVMList
A
For a script designed to delete a resource group, identify the correct line to complete it:
Connect-AzAccount
# Missing line here
A) Remove-AzResourceGroup -Name MyResourceGroup
B) Delete-AzResourceGroup -ResourceGroupName MyResourceGroup
C) Erase-AzResourceGroup -GroupName MyResourceGroup
D) Clear-AzResourceGroup -ResourceGroupName MyResourceGroup
A
Contoso University needs to set up a new group for their summer research project that
includes students, faculty, and external advisors. The group should facilitate resource sharing
and collaboration. Which type of group should you create in Microsoft Azure for this purpose?
A) Distribution Group
B) Office 365 Group
C) Security Group
D) Dynamic Distribution Group
B
The marketing team at Contoso Ltd., with a domain of contoso.com, requires a modification
where the team manager must approve any changes to group memberships. Which setting
should you configure to enforce this requirement?
A) Set group membership as "Dynamic Membership"
B) Enable "Owner Approval Required" for group memberships
C) Implement Conditional Access Policies
D) Configure group memberships as "Private"
B