test 9 Flashcards
A team member has created a point to site VPN connection between a computer named “WorkstationA” and an Azure Virtual Network. Another point to site VPN connection needs to be created between the same Azure Virtual Network and a computer named “WorkstationB”. The VPN client package was generated and installed on “WorkstationB”.
You need to ensure you can create a successful point to site VPN connection. You decide to export and install the client certificate on “WorkstationB”
Would this solution fulfil the requirement?
A. Yes
No
A. Yes
Would Virtual Machines launched in the “CertGlobal-client” virtual network automatically get registered in the private domain of CertGlobals.local?
Yes
No
Yes
A company has setup an Azure subscription and a tenant. They want to ensure that only Virtual Machines of a particular SKU size can be launched in their Azure account. They decide to implement Role Based access policies
Does this fulfil the requirement?
A. Yes
B. No
B. No
Why “No” is correct:
RBAC (Role-Based Access Control) is not the right tool for restricting VM SKU sizes
RBAC only controls WHO can access resources and what actions they can perform
RBAC cannot enforce specific resource configurations or properties
The correct tool for this requirement would be Azure Policy
Here’s why RBAC won’t work for this requirement:
RBAC limitations:
Only controls permissions and access rights
Cannot restrict specific resource properties
Doesn’t enforce resource standards
Cannot limit VM sizes or SKUs
What should be used instead:
Azure Policy is the correct solution
Azure Policy can restrict VM SKU sizes
Can enforce compliance across the subscription
Can prevent creation of non-compliant VMs
Azure Policy benefits for this scenario:
Can define allowed VM sizes
Enforces standards across the organization
Prevents creation of non-compliant resources
Provides audit capabilities
A company has setup an Azure subscription and a tenant. They want to ensure that only Virtual Machines of a particular SKU size can be launched in their Azure account. They decide to implement Azure policies
Does this fulfil the requirement?
A. Yes
B. No
A. Yes
A company plans to use Azure Network watcher to perform the following tasks
“Find out if a network security rule is preventing a network packet from reaching a virtual machine hosted in an Azure virtual network”
“Find out if there is outbound connectivity between an Azure virtual machine and an external host”
Which of the following network watcher feature would you use for the following requirement?
” Find out if a network security rule is preventing a network packet from reaching a virtual machine hosted in an Azure virtual network”
IP Flow Verify
Next Hop
Packet Capture
Traffic Analysis
IP Flow Verify
Your company currently has a Site-to-Site connection with an Azure Virtual Private network. The VPN device that is allocated on the on-premise side is going to undergo a change in its public IP address. You have to ensure the Site-to-Site VPN connection continues to work after the change.
Which of the following steps would you need to carry out after the change in the public IP address on the on-premise VPN device ensuring minimum connection downtime?Choose 3 answers from the options given below
A. Remove the VPN connection
B. Stop the VPN connection
C. Modify the local gateway IP address
D. Modify the VPN gateway address
E. Recreate the VPN connection
F. Start the VPN connection
The correct answers are:
B. Stop the VPN connection [1]
C. Modify the local gateway IP address
F. Start the VPN connection
Let’s analyze each option:
CORRECT ANSWERS:
B. Stop the VPN connection
Correct because you need to stop the connection before making changes
Prevents connection errors during the modification
Ensures clean transition to new configuration
Minimizes potential issues during the update
C. Modify the local gateway IP address
Correct because this is the main change needed
The local gateway represents your on-premises VPN device
Updates the Azure configuration to point to the new public IP
Essential step to reflect the new on-premises VPN device IP
F. Start the VPN connection
Correct because after modifications, you need to restart the connection [2]
Establishes connection with new configuration
Completes the update process
Restores the Site-to-Site connectivity
INCORRECT ANSWERS:
A. Remove the VPN connection
Incorrect because removing the connection is unnecessary
Would cause longer downtime
Would require complete reconfiguration
More disruptive than necessary
D. Modify the VPN gateway address
Incorrect because the Azure VPN gateway address isn’t changing
Only the on-premises device IP is changing
Would cause unnecessary complications
Not related to the on-premises IP change
E. Recreate the VPN connection
Incorrect because recreation isn’t necessary
Would cause longer downtime
More complex than needed
Simple modification is sufficient
A company is planning on using the Azure Import/Export service to move data out of their Azure Storage account. Which of the following service could be used when defining the Azure Export job?
A. BLOB storage
B. File storage
C. Queue storage
D. Table storage
he correct answer is:
A. BLOB storage
Why A (BLOB storage) is correct:
Azure Import/Export service is specifically designed to work with Blob storage [1]
It supports exporting data from Blob storage to physical drives
Can handle large-scale data transfer from Blob storage
Perfect for scenarios requiring offline data transfer
Supports both block blobs and page blobs
Why other options are incorrect:
B. File storage
Incorrect because Azure Import/Export service doesn’t support File storage
File storage uses SMB protocol which isn’t compatible with Import/Export service
Cannot directly export data from Azure Files using Import/Export service [2]
Would need to copy to Blob storage first if export is needed
C. Queue storage
Incorrect because Queue storage is for messaging between application components
Not designed for bulk data transfer
Import/Export service doesn’t support Queue storage
Queue storage is for transient data, not bulk storage
D. Table storage
Incorrect because Table storage is not supported by Import/Export service
Table storage is for structured NoSQL data
Cannot directly export Table storage using Import/Export service
Not designed for bulk data transfer scenarios
You have an Azure virtual machine based on the Windows Server 2016 image. You implement Azure backup for the virtual machine. You want to restore the virtual machine by using the Replace existing option.
Which of the following needs to be done first before you go ahead and replace the virtual machine using the Azure Backup option?
A. Create a custom image
B. Stop the virtual machine
C. Allocate a new disk
D. Enable encryption on the disk
The correct answer is:
B. Stop the virtual machine
Why B (Stop the virtual machine) is correct:
The VM must be stopped before performing a restore with “Replace existing” option
This ensures data integrity during the restore process
Prevents any active writes or changes to the VM during restoration
Required to avoid potential data corruption
Ensures all system states are consistent during the restore
Why other options are incorrect:
A. Create a custom image
Incorrect because creating an image is not required for restore
Backup already contains the necessary VM data
Would be redundant since backup contains complete VM state
Not related to the restore process requirements
C. Allocate a new disk
Incorrect because new disk allocation isn’t needed
“Replace existing” option uses existing disk infrastructure
The restore process manages disk requirements automatically
Not a prerequisite for VM restore
D. Enable encryption on the disk
Incorrect because encryption is not required for restore
Can restore both encrypted and unencrypted VMs
Encryption status doesn’t affect restore process
Not a prerequisite for using “Replace existing” option
You have an Azure subscription named CertGlobalstaging. Under the subscription, you go ahead and create a resource group named CertGlobals-rg.
You then go ahead and create an Azure policy based on the “Not allowed resources types” definition. Here you define the parameters as Microsoft.Network.virtualNetworks as the not allowed resource type. You assign this policy to the Tenant Root Group.
Would you be able to create a virtual machine in the CertGlobals-rg resource group?
Yes
No
No
Here since the policy is applied at the Tenant Root Group, it would be applied to all subscriptions and resource groups. And since virtual networks are allowed for the creation of virtual machines, you won’t be able to create the virtual machines.
Your company has setup a storage account in Azure as shown below
The company needs to only allow connections to the storage account from an IP address range of 51.107.2.0 to 51.107.2.255. From which of the following section of the storage account would you modify to fulfil this requirement?
A. Firewall and virtual networks
B. Advanced security
C. Soft Delete
D. Lifecycle Management
A. Firewall and virtual networks
A team has setup Log Analytics for a virtual machine named demovm. They are running the following query in the Log Analytics Workspace
Perf
| where ObjectName == “Processor” and CounterName == “% Processor Time”
| where TimeGenerated between (startofweek(ago(9d)) .. endofweek(ago(2d)))
| summarize avg(CounterValue) by Computer, bin(TimeGenerated, 5min)
| render timechart
If a query is run on Monday, then the query will return events from the last
A. 1 day
B. 7 days
C. 8 days
D. 14 days
The correct answer is D. 14 days.
Here’s why:
Breakdown of the Query:
Time Range (TimeGenerated clause):
kql
Copy code
TimeGenerated between (startofweek(ago(9d)) .. endofweek(ago(2d)))
ago(9d): Refers to 9 days ago from the current time when the query is run.
startofweek(ago(9d)): Adjusts to the beginning of the week 9 days ago (typically Sunday or Monday, depending on regional settings).
ago(2d): Refers to 2 days ago from the current time.
endofweek(ago(2d)): Adjusts to the end of the week 2 days ago (typically Saturday or Sunday).
This means the query fetches data starting from the beginning of the week 9 days ago to the end of the week 2 days ago.
Example for a Monday:
If the query is run on a Monday, the time range will include:
Start: Beginning of the week 9 days ago (the previous Sunday).
End: End of the week 2 days ago (the most recent Saturday).
This covers two full weeks of data (14 days):
Week 1: From the start of the week 9 days ago (Sunday) to the end of that week (Saturday).
Week 2: From the start of the following week to the end of the week 2 days ago.
Why Other Answers Are Incorrect:
A. 1 day:
Incorrect because the query explicitly spans a range across multiple days.
B. 7 days:
Incorrect because the query spans two weeks, not just one.
C. 8 days:
Incorrect because the query does not just span from 9 days ago to 2 days ago. It considers entire weeks, resulting in a 14-day span.
Why D. 14 days is Correct:
The query is designed to fetch data for two full weeks (14 days) because of the use of startofweek and endofweek. It ensures the time range includes complete weeks starting from the week 9 days ago to the week 2 days ago.
A team has setup Log Analytics for a virtual machine named demovm. They are running the following query in the Log Analytics Workspace
Perf
| where TimeGenerated between (startofweek(ago(9d)) .. endofweek(ago(2d)))
| summarize avg(CounterValue) by Computer, bin(TimeGenerated, 5min)
| render timechart
In which of the below format will the data be displayed?
A. table that has 2 columns
B. table that has 3 columns
C. graph that has the Computer values on the Y axis
D. graph that has the avg(CounterValue) values on the Y axis
D. graph that has the avg(CounterValue) values on the Y axis
Explanation:
The query ends with the statement:
kql
Copy code
render timechart
render timechart: This specifies that the query results will be visualized as a timechart (graph).
In a timechart:
The X-axis represents time (bin(TimeGenerated, 5min) groups the data into 5-minute intervals).
The Y-axis represents the summarized average value of CounterValue (avg(CounterValue)).
Since the query calculates the average (avg(CounterValue)) and groups it by time and Computer, the Y-axis will display the avg(CounterValue) values for each computer over time.
Why Other Answers Are Incorrect:
A. table that has 2 columns:
Incorrect because the query does not use a tabular rendering method like render table or a simple summarize without rendering.
Additionally, the query groups by two fields (Computer and TimeGenerated), which results in more than 2 columns.
B. table that has 3 columns:
Incorrect because the query renders a graph (timechart), not a table.
While the intermediate result might have columns (e.g., Computer, TimeGenerated, avg(CounterValue)), the final visualization is a graph.
C. graph that has the Computer values on the Y axis:
Incorrect because the Computer field is not a numerical value. Instead, it is used to differentiate lines or series on the graph. Multiple computers may have their own lines, but the Y-axis will always display numerical avg(CounterValue) values.
As an IT admin you have to develop scripts that need to be used to add data disks to an existing virtual machine. Below is the incomplete script
$diskset = Slot1
Location = “EastUS”
CreateOption = “Empty”
DiskSizeGB = 128
$data = Slot2
ResourceGroupName = “CertGlobal-rg”
DiskName = “disknew”
Disk = $diskset
$CertGlobalvm = Slot3 -ResourceGroupName “CertGlobal-rg” -Name “demovm”
$CertGlobalvm= Slot4 -VM $CertGlobalvm -Name “datadisk” -CreateOption Attach -ManagedDiskId $data.Id -Lun 1
Slot5 -ResourceGroupName “CertGlobal-rg” -VM $CertGlobalvm
Which of the following would go into Slot1?
New-AzDisk
New-AzDiskConfig
Add-AzVMDataDisk
Set-AzDisk
New-AzDiskConfig
Which of the following would go into Slot2?
A. New-AzDisk
B. New-AzDiskConfig
C. Add-AzVMDataDisk
D. Set-AzDisk
A. New-AzDisk
Which of the following would go into Slot3?
Set-AzVM
UpdateAzVM
Get-AzVM
New-AzVM
Get-AzVM
Which of the following would go into Slot4?
New-AzDisk
New-AzDiskConfig
Add-AzVMDataDisk
Set-AzDisk
Add-AzVMDataDisk
Which of the following would go into Slot5?
Set-AzVM
Update-AzVM
Get-AzVM
New-AzVM
Update-AzVM
A company currently has the following networks defined in Azure
Name Address space
CertGlobal-vnet1 10.1.0.0/16
CertGlobal-vnet2 10.2.0.0/16
CertGlobal-vnet3 10.3.0.0/16
All virtual networks are hosting virtual machines with varying workloads. A virtual machine named “CertGlobal-detect” hosted in CertGlobal-vnet2. This virtual machine will have an intrusion detection software installed on it. All traffic on all virtual networks need to be routed via this virtual machine. You need to complete the required steps for implementing this requirement You are going to create the virtual network peering connection for all of the virtual networks.
Which of the following is important to set for the virtual network peering connection?
Set the virtual network deployment model as Classic
Set the virtual network access settings as Disabled
Set the forwarded traffic settings as Enabled
Enable “Allow gateway transit”
Set the forwarded traffic settings as Enabled