0
0
Azurecloud~20 mins

Log Analytics workspace in Azure - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Log Analytics Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
How does data retention affect a Log Analytics workspace?

In Azure Log Analytics workspace, what happens when you set the data retention period to 30 days?

AData retention period only affects the dashboard display, not the stored data.
BData is archived to cold storage after 30 days but remains queryable without extra cost.
CData older than 30 days is moved to a separate workspace automatically.
DData older than 30 days is automatically deleted from the workspace.
Attempts:
2 left
💡 Hint

Think about how retention policies manage storage costs and data lifecycle.

Configuration
intermediate
2:00remaining
Which configuration enables Azure Monitor to send logs to a Log Analytics workspace?

You want to collect virtual machine logs into a Log Analytics workspace. Which configuration must you enable?

ACreate a storage account and link it to the workspace.
BEnable Azure Backup on the virtual machines.
CInstall and configure the Azure Monitor agent on the virtual machines.
DSet up a virtual network peering between the VM and workspace.
Attempts:
2 left
💡 Hint

Think about how data collection agents work in Azure Monitor.

Architecture
advanced
3:00remaining
Designing a multi-region Log Analytics workspace architecture

You need to design a Log Analytics solution that collects logs from virtual machines in two Azure regions with minimal latency and high availability. Which architecture is best?

ACreate a single Log Analytics workspace in one region and configure all VMs to send logs there.
BCreate one Log Analytics workspace in each region and configure VMs to send logs to their local workspace.
CCreate a Log Analytics workspace in a third region and route logs from both regions there.
DUse Azure Storage accounts in each region to store logs and link them to a workspace.
Attempts:
2 left
💡 Hint

Consider latency and availability when choosing workspace locations.

security
advanced
2:00remaining
Controlling access to Log Analytics workspace data

Which Azure feature allows you to restrict who can read and query data in a Log Analytics workspace?

AAzure Role-Based Access Control (RBAC) with roles like Log Analytics Reader.
BAzure Policy to enforce workspace data encryption.
CAzure Firewall rules blocking unauthorized IP addresses.
DNetwork Security Groups (NSGs) applied to the workspace resource.
Attempts:
2 left
💡 Hint

Think about how Azure controls user permissions on resources.

Best Practice
expert
3:00remaining
Optimizing cost and performance for Log Analytics workspace queries

You notice slow query performance and high costs in your Log Analytics workspace. Which practice will best improve both?

AUse scoped queries with time filters and reduce the amount of data scanned.
BIncrease the workspace retention period to keep more data for analysis.
CRun queries more frequently to keep data cached and improve speed.
DDisable data collection from less critical resources to reduce data volume.
Attempts:
2 left
💡 Hint

Think about how query scope affects cost and speed.