Az104 final test
Topic 1
Start-ADSyncSyncCycle -PolicyType Initial PowerShell cmdlet
.Run the Set-AzureStaticVNetIP PowerShell cmdlet
- To invite using Powershell one should use the
"New-AzureADMSInvitation"
cmdlet. - From Azure PowerShell, run the
Set-AzMarketplaceTerms
cmdlet - Assign the User administrator administrative role to AdminUser1.
- From the Directory role blade, modify the directory role
- You purchase 10 Azure AD Premium P2 licenses for the tenant.
- From the Licenses blade of Azure AD, assign a license
- Deploy the IT Service Management Connector (ITSM)
- add a user named admin1@contoso.com as an administrator on all the computers that will be joined to the Azure AD domain.
- A. Device settings from the Devices blade
Event | search "error"
Event | where EventType == "error"
search in (Event) "error"
- You need to ensure that Admin1 can invite the external partner to sign in to the Azure AD tenant.
- A. From the Users settings blade, modify the External collaboration settings.
- You need to create a name server (NS) record for the zone
- Create an NS record named research in the adatum.com zone.
- You need to ensure that records created in the contoso.com zone are resolvable from the internet.
- Modify the NS records in the DNS domain registrar.
- You have a domain name of contoso.com registered at a third-party registrar.
- Add a custom name
- Add a record to the public contoso.com DNS zone
- Verify the domain
- You need to grant user management permissions to a local administrator in each office.
- B. administrative units
- The subscription is linked to a hybrid Azure Active Directory (Azure AD) tenant that contains a security group named Group1.
- A. Enable Active Directory Domain Service (AD DS) authentication for storage1.
- Can't assign policy to VM1, can't exclude policy from Tenant root group
- You can clone an in-built Azure role,
- You CANNOT clone in-built Azure AD role
- Blob storage (hierarchical namespace): Microsoft Entra ID & SAS
- File storage: SAS only
- Microsoft 365 group (Security Disabled) - You cannot assign licenses to security-disabled groups.
- Azure table storage:
- General-purpose v2 (GPv2) accounts, General-purpose v1 (GPv1) accounts,
- Azure blob storage:
- General-purpose v2 (GPv2) accounts, General-purpose v1 (GPv1) accounts, and Blob storage accounts.
- Access Control (IAM)
- Shared access signatures (SAS) We need temp access for App2, so we need to use SAS.
- synchronize the files in the file share named data to an on-premises server
- Register Server1
- Install the Azure File Sync agent on Server1
- Create a sync group
azcopy make 'https://mystorageaccount.blob.core.windows.net/vmimages'
- ZRS currently supports standard general-purpose v2, FileStorage and BlockBlobStorage storage account types.
- Server instance that requires persistent storage.
- A. Azure Files
- Premium file shares => FileStorage account.
- Archive access: Blob Storage and General Purpose v2 (GPv2) accounts.
- The SAS token is not supported in mounting Azure File share currently, it just supports the Azure storage account key.
- The lifecycle management feature is available in all Azure regions for (GPv2) accounts, blob storage accounts, block blobs storage accounts, and Azure Data Lake Storage Gen2 accounts.
- The SMB protocol requires TCP port 445 to be open
- Access policy can set retention policy.
azcopy copy D:\folder1 https://contosodata.blob.core.windows.net/public --recursive
Topic 2
- If you define more than one action on the same blob, lifecycle management applies the least expensive action to the blob.
- Only storage accounts that are configured for LRS, GRS, or RA-GRS support moving blobs to the archive tier.
- The archive tier isn't supported for ZRS, GZRS, or RA-GZRS accounts.
- Conditions can be added to Containers and Queues.
- Default routing tier to Internet Routing / Encryption type
- View only specific blobs based on blob index tags
- A. a role assignment condition
- The encryption scope in Azure Storage is available for Azure Blob / Data Lake Gen2 storage
- Azure Disk Encryption for volume encryption.
- Creating a key vault.
- Select Azure Disk Encryption for volume encryption.
- Linux doesn't support storage Explorer
- Azure Storage Account Contributor role can't access the file share
- You create an Azure Log Analytics workspace and configure the data settings.
- You install the Microsoft Monitoring Agent on VM1.
- You create an alert in Azure Monitor and specify the Log Analytics workspace as the source
- You need to ensure that when the scale set virtual machines are provisioned, they have web server components installed.
- A. Upload a configuration script
- D. Modify the extensionProfile section of the Azure Resource Manager template
- To install kubectl locally, use the
az aks install-cli
command. - Upload a configuration to Azure Automation State Configuration
- Compile a configuration into a node configuration
- Check the compliance status of the node.
- To migrate a VM from a VNET to another VNET. The only option is to delete the VM and redeploy it using a new NIC and NIC connected to VNET2
- You need to configure cluster autoscaler for AKS1.
- B: The az aks command.
- D: Azure portal.
-
Monitor the metrics and the logs of VM1.
- Linux Diagnostic Extension (LAD) 3.0
-
New-AzResource - creates an Azure resource
- New-AzResourceGroupDeployment - adds a deployment to an existing resource group.
- Use New-AzDeployment for deploying resources at the subscription level.
New-AzSubscriptionDeployment
: used to deploy resources at the subscription level
- Multi-container groups currently support only Linux containers.
- Azure Firewall supports standard SKU public static IPv4 addresses. ( Regional)
- Windows: (Azure Container Instances / Azure App Service)
- Linux: ACI / APS / Azure Container Apps
- You need to move the adatum.com zone to an Azure DNS zone in Subscription1.
- A. Azure CLI
- Basic Load Balancer: Backend pool endpoints for Virtual machines in a single availability set or virtual machine scale set.
- Standard Load Balancer: Any virtual machines or virtual machine scale sets in a single virtual network
- ensure that VM1 can be created in an Availability Zone.
- A. Use managed disks
- C. Availability options
- Export the client certificate from Computer1 and install the certificate on Computer2.
- IP flow verify: Identify a security rule that prevents a network packet from reaching an Azure virtual machine.
- Connection troubleshoot: Validate outbound connectivity from an Azure virtual machine to an external host.
- You need to ensure that you can add VM1 and VM2 to the backend pool of LB1.
- Solution: You create two Standard SKU public IP addresses and associate a Standard SKU public IP address to the network interface of each virtual machine
- You need to ensure that you can add VM1 and VM2 to the backend pool of LB1.
- Solution: You disassociate the public IP address from the network interface of VM2.
- You can only attach virtual machines that are in the same location and on the same virtual network as the LB. Virtual machines must have a standard SKU public IP or no public IP.
Topic 3
- PolicyBased Basic VPN Gateway does not support Point-to-Site connectivity
- So the existing policy-based VNG must be deleted so you can create a route based VPN
- Inspect all the network traffic from VM1 to VM2 for a period of three hours.
- From Azure Network Watcher, you create a packet capture.
- You need to load balance HTTPS connections to vm1 and vm2 by using lb1.
- Remove the Public IP addresses from vm1 and vm2
- create a backend pool and health probes.
- Create a load balancer rule.
- You need to connect site1 and site2 by using an Azure Virtual WAN.
- Create a virtual WAN
- Create virtual Hub
- Create VPN sites
- Connect a VPN site to a virtual hub
- VM1 has default rules which denies any port open for inbound rules
- VPN gateway supports only Dynamic IP (a basic SKU and a dynamic IP address assignment)
- Connection monitor resource: A region-specific Azure resource
- You need to ensure that inbound user traffic uses the Microsoft point-of-presence (POP) closest to the user's location.
- C. Routing preference
- Ensure that Bastion1 can support 100 concurrent SSH users.
- D. Upgrade Bastion1 to the Standard SKU
- From Device1, you need to establish a Remote Desktop connection to VM1.
- Upgrade Bastion1 to the Standard SkU.
- From Bastion1, select Native Client Support.
- From Azure CLI on Device1, run a network bastion rdp.
- Enable multi-user authorization (MAU) for Vault1.
- A resource guard
- The Remote Desktop Connection client (mstscexe) can onlu support standard Bastion.
- Need to be able to configure DNS name label scope reuse for Azure container Instance.
- B. the public networking type
- Bastion host: Subnet size must be /26 or larger (/25, /24 etc.).
- Public IP: Standard SKU with a static allocation
- ensure that container(windows) can be configured to use private networking
- Change: OS Type
- Private networking is not supported for Windows containers.
- With a two-gate policy, administrators don't have the ability to use security questions
- Billing / Security / Authentication / Application administrator
- Monitor the latency between your on-premises network and the virtual machines.
- C. Network Performance Monitor
- You are creating an alert rule in Azure Monitor to notify an administrator when an error is logged in the System event log of VM1.
- Centrally monitor user activity across all the subscriptions.
- D. Azure Log Analytics workspace
- Identify unattached disks that can be deleted.
- D. From Azure Cost Management, view Advisor Recommendations
- You need to back up Disk2 by using Azure Backup.
- 1- Create an Azure backup vault.
- 2- Create a backup policy and configure the backup
- 3- Configure a managed identity
- Create an activity log alert in Azure Monitor?
- A. a resource, a condition, and an action group
- All the virtual machines only communicate with Azure Monitor through VNet1.
- C. an Azure Monitor Private Link Scope (AMPLS)
- Blob containers are backed up to Azure Backup vaults
- Azure Files are backed up to Azure Recovery Services vaults
- Type of query used for data resource in DCR
- B. XPath
- Use Connection Monitor to identify network latency between VM1 and DC1.
- D. an Azure Monitor agent extension
- Use Traffic Analytics in Azure Network Watcher to monitor virtual machine traffic.
- A. a Log Analytics workspace
- E. a Data Collection Rule (DCR) in Azure Monitor
- Container1 with tier: Can be created in storage2 (storagev2) and Blobstorage.
- Share with tier: Can be created in storage2 (storagev2) only
- Replication: storagev2 only
- move the blueprint files to Azure.
- Use Azure Storage Explorer to copy the files.
Get-AzRoleDefinition -name "Reader" |ConvertTo-Json
- B. dynamic groups and conditional access policies