Skip to content

AZ-305 · Domain 1: Design identity, governance, and monitoring solutions · 27% of the exam

Task 1.1: Design solutions for logging and monitoring

Choosing where logs and metrics go and how long they stay: Log Analytics workspace design, diagnostic settings and data collection rules, routing to storage, Event Hubs or a SIEM, and Azure Monitor tools for applications, VMs, containers and networks.

Study it

  • Log Analytics workspace design, table plans and retention

    Lesson coming

  • Routing logs: diagnostic settings, data collection rules, Event Hubs and storage

    Lesson coming

  • Monitoring applications, VMs, containers and networks with Azure Monitor

    Partly covered by: CloudWatch, Alarms & X-Ray, Observability Basics, Tracing a Request

Sample questions

Try each one before opening the answer. Every option is explained, with the Microsoft documentation page that proves it.

Question 1 · choose 1

A retailer runs workloads in West Europe and East US. Regulators require that operational logs from European resources are stored only in Europe. A central operations team must be able to query logs from both regions, and you want as few workspaces as possible to manage. How should you design the Log Analytics workspaces?

  1. AOne workspace in East US that collects logs from both regions
  2. BOne workspace for each application in each region
  3. COne workspace in each of the two regions, queried together by the central team
  4. DA storage account in each region, filled by data export rules from one central workspace
Show the answer and why
  • AOne workspace in East US that collects logs from both regions

    Incorrect

    A single East US workspace would store European operational logs outside Europe, which breaks the location requirement.

  • BOne workspace for each application in each region

    Incorrect

    Per-application workspaces also keep data in region, but they multiply the workspaces to manage without meeting any extra requirement.

  • COne workspace in each of the two regions, queried together by the central team

    Correct

    Each workspace resides in one region, so a European workspace keeps European data in Europe, and the team can query across workspaces.

  • DA storage account in each region, filled by data export rules from one central workspace

    Incorrect

    Data would first land in the single workspace's region, and exported blobs can't be queried with log queries the way a workspace can.

The workspace design guidance treats the Azure region as a criterion: each workspace lives in one region, and compliance rules about data location can require a workspace per region. A query can reference several workspaces, so a central team still gets one view.

Question 2 · choose 1

Auditors want two years of subscription control-plane events (who created, changed or deleted resources), and analysts must query them with KQL alongside resource logs. Nothing is configured today. What should you recommend?

  1. AA longer retention value on the activity log blade of the subscription
  2. BAn activity log diagnostic setting to a workspace with two-year retention
  3. CA monthly CSV download of the activity log to a file share
  4. DMicrosoft Entra audit logs streamed to an event hub and kept by the SIEM for two years
Show the answer and why
  • AA longer retention value on the activity log blade of the subscription

    Incorrect

    The activity log's own retention isn't configurable; longer storage comes from sending it to a destination.

  • BAn activity log diagnostic setting to a workspace with two-year retention

    Correct

    The activity log keeps events for 90 days; a diagnostic setting sends them to a workspace, where retention can be set and KQL works.

  • CA monthly CSV download of the activity log to a file share

    Incorrect

    Manual downloads aren't queryable with KQL and depend on someone remembering to run them.

  • DMicrosoft Entra audit logs streamed to an event hub and kept by the SIEM for two years

    Incorrect

    Entra audit logs record directory changes, not Azure resource operations in a subscription.

Azure keeps activity log entries for 90 days. To keep them longer and analyze them with other monitoring data, create a diagnostic setting that sends the activity log to a Log Analytics workspace and set the table retention to meet the audit period.

Question 3 · choose 2

Resource logs from Azure SQL Database and Key Vault must reach a third-party SIEM that reads from a streaming endpoint, and must also be archived for seven years in a write-once form that nobody can alter, at the lowest cost. Which two destinations should the diagnostic settings use? (Choose TWO.)

  1. AA Log Analytics workspace whose tables use the Analytics plan
  2. BAn Azure Event Hubs namespace
  3. CThe Azure Monitor metrics database of each resource
  4. DA storage account container with a locked time-based retention policy
  5. EAn Azure Data Explorer cluster named as the setting's destination
Show the answer and why
  • AA Log Analytics workspace whose tables use the Analytics plan

    Incorrect

    A workspace doesn't keep the logs in a write-once state that nobody can alter, which the archive requires.

  • BAn Azure Event Hubs namespace

    Correct

    Event Hubs is the diagnostic setting destination for streaming logs to external systems such as a third-party SIEM.

  • CThe Azure Monitor metrics database of each resource

    Incorrect

    Metrics aren't a destination for resource logs in a diagnostic setting.

  • DA storage account container with a locked time-based retention policy

    Correct

    A storage destination is the low-cost archive, and a locked time-based retention policy keeps the blobs in a WORM state.

  • EAn Azure Data Explorer cluster named as the setting's destination

    Incorrect

    Azure Data Explorer isn't one of the diagnostic setting destinations; it would need its own ingestion pipeline.

A diagnostic setting can send resource logs to a Log Analytics workspace, a storage account, an event hub and supported partner solutions. Event Hubs feeds the external SIEM; storage is the cheap long-term archive, and immutable storage with a locked time-based retention policy makes it write once, read many.

Question 4 · choose 1

2,000 Windows Server VMs send all Security events to a workspace, and ingestion costs are too high. The security team needs only six event IDs, and no event of those six may be lost. You must cut ingestion without touching each VM by hand. What should you recommend?

  1. AAzure Monitor Agent with a data collection rule using XPath filters
  2. BA daily cap on the workspace set below the current ingestion volume
  3. CA diagnostic setting on each VM resource that sends its logs to the workspace
  4. DVM insights enabled on every VM with the default data collection rule
Show the answer and why
  • AAzure Monitor Agent with a data collection rule using XPath filters

    Correct

    A data collection rule can use XPath queries to collect only the listed event IDs, and one rule can be associated with many VMs.

  • BA daily cap on the workspace set below the current ingestion volume

    Incorrect

    A daily cap stops collecting data when it's reached, so the required events would be lost for the rest of the day.

  • CA diagnostic setting on each VM resource that sends its logs to the workspace

    Incorrect

    A VM's diagnostic setting covers platform data, not the guest operating system's event logs, and it has no event ID filter.

  • DVM insights enabled on every VM with the default data collection rule

    Incorrect

    VM insights collects performance data; it doesn't filter the Security event log.

Azure Monitor Agent collects guest data according to data collection rules. A rule for Windows events can use XPath queries to keep only specific event IDs, which lowers ingestion while keeping every needed event, and it's associated with machines at scale.

Question 5 · choose 1

An order system runs as five services on App Service and Azure Functions. When a checkout is slow, developers must follow the single request across every service, see dependency calls and their durations, and find the failing component. What should you recommend?

  1. ADiagnostic settings that send each app's platform logs to one workspace
  2. BApplication Insights for every service, instrumented with OpenTelemetry
  3. CAzure Monitor metric alerts on the response time of each app
  4. DResource change analysis in Azure Resource Graph for the five apps
Show the answer and why
  • ADiagnostic settings that send each app's platform logs to one workspace

    Incorrect

    Platform logs from each resource aren't correlated into one request across services, and they don't time each dependency call.

  • BApplication Insights for every service, instrumented with OpenTelemetry

    Correct

    Application Insights collects requests, dependencies and traces and correlates them across services into one end-to-end transaction.

  • CAzure Monitor metric alerts on the response time of each app

    Incorrect

    An alert can show that an app is slow but not which call inside the request is slow.

  • DResource change analysis in Azure Resource Graph for the five apps

    Incorrect

    Change analysis lists resource changes; it doesn't trace a request through the services.

Application Insights, the application performance monitoring feature of Azure Monitor, uses OpenTelemetry to collect requests, dependencies, exceptions and traces, and its transaction view follows one operation across components.

Question 6 · choose 1

The network team must record allowed and denied IP flows for every workload in 30 virtual networks, including traffic that no NSG evaluates, and see top talkers and blocked flows on a map. You're designing the solution today. What should you recommend?

  1. ANSG flow logs on every network security group
  2. BConnection monitor tests between every pair of subnets
  3. CPlatform metrics of each virtual network sent to a workspace
  4. DVirtual network flow logs with traffic analytics
Show the answer and why
  • ANSG flow logs on every network security group

    Incorrect

    NSG flow logs are retiring on September 30, 2027 and no longer support new creation; they also miss traffic no NSG evaluates.

  • BConnection monitor tests between every pair of subnets

    Incorrect

    Connection monitor runs synthetic tests between endpoints; it doesn't record the real traffic flowing through the networks.

  • CPlatform metrics of each virtual network sent to a workspace

    Incorrect

    Metrics give counts and volumes, not a record of each flow with its source, destination and decision.

  • DVirtual network flow logs with traffic analytics

    Correct

    Virtual network flow logs record flows at the network level, whether or not an NSG applies, and traffic analytics visualizes them.

Virtual network flow logs capture IP traffic at the virtual network level and address limitations of NSG flow logs, which retire on September 30, 2027 and can't be created anymore. Traffic analytics processes the flow logs into maps and insights.

Question 7 · choose 1

A bank's virtual networks have no internet egress. VMs and apps in them must send logs to Log Analytics workspaces and telemetry to Application Insights, and analysts must query the data, all over private IP addresses. What should you recommend?

  1. AAn Azure Monitor Private Link Scope connected to a private endpoint in the network
  2. BA separate private endpoint created on each Log Analytics workspace and Application Insights resource
  3. CService endpoints for Microsoft.Insights on the VM subnets
  4. DDiagnostic settings that send the logs to a storage account first
Show the answer and why
  • AAn Azure Monitor Private Link Scope connected to a private endpoint in the network

    Correct

    A private link scope groups the workspaces and components behind one private endpoint for ingestion and queries over private IPs.

  • BA separate private endpoint created on each Log Analytics workspace and Application Insights resource

    Incorrect

    Azure Monitor resources connect through a private link scope rather than individual private endpoints per workspace.

  • CService endpoints for Microsoft.Insights on the VM subnets

    Incorrect

    Service endpoints don't give Azure Monitor a private IP in the network, and these networks have no internet path.

  • DDiagnostic settings that send the logs to a storage account first

    Incorrect

    Diverting to storage doesn't get the data into the workspaces or Application Insights privately.

Azure Monitor uses an Azure Monitor Private Link Scope (AMPLS): you add workspaces and Application Insights components to the scope and connect it to a private endpoint, so ingestion and queries use private IPs.

Question 8 · choose 1

The operations team wants an email and a Teams message whenever an Azure service incident, planned maintenance or health advisory affects the services and regions it uses, without building its own checks. What should you recommend?

  1. AService Health alerts for those services and regions, sent to an action group
  2. BMetric alerts on the CPU usage of every VM
  3. CAn Azure Status page bookmark checked each morning
  4. DAvailability tests in Application Insights for each app, alerting the team when one fails
Show the answer and why
  • AService Health alerts for those services and regions, sent to an action group

    Correct

    Service Health alerts fire on service issues, planned maintenance and advisories for chosen services and regions and notify an action group.

  • BMetric alerts on the CPU usage of every VM

    Incorrect

    CPU alerts report load on your VMs, not Azure-wide incidents or maintenance.

  • CAn Azure Status page bookmark checked each morning

    Incorrect

    The public status page shows broad outages only and needs someone to look at it.

  • DAvailability tests in Application Insights for each app, alerting the team when one fails

    Incorrect

    Availability tests detect that an app is down, not that Azure has announced an incident or planned maintenance.

Azure Service Health gives a personalized view of service issues, planned maintenance and health advisories for the services and regions you use, and Service Health alerts send them to action groups.

Question 9 · choose 1

Platform engineers run 15 AKS clusters and already know PromQL and Grafana. They want Prometheus metrics from all clusters with no Prometheus servers to operate, long retention, and shared Grafana dashboards with Microsoft Entra sign-in. What should you recommend?

  1. AA self-hosted Prometheus server and Grafana inside each cluster
  2. BAzure Monitor managed service for Prometheus with Azure Managed Grafana
  3. CDiagnostic settings on each cluster sending control plane logs to a workspace
  4. DAzure Monitor workbooks built from the platform metrics of each cluster
Show the answer and why
  • AA self-hosted Prometheus server and Grafana inside each cluster

    Incorrect

    Self-hosted servers are what the engineers don't want to operate, and retention depends on cluster storage.

  • BAzure Monitor managed service for Prometheus with Azure Managed Grafana

    Correct

    Managed Prometheus collects and stores cluster metrics with no servers to run, and Managed Grafana hosts dashboards with Entra sign-in.

  • CDiagnostic settings on each cluster sending control plane logs to a workspace

    Incorrect

    Control plane resource logs aren't the Prometheus metrics from workloads and nodes that the dashboards need.

  • DAzure Monitor workbooks built from the platform metrics of each cluster

    Incorrect

    Workbooks aren't Grafana dashboards, and platform metrics don't include the Prometheus metrics the team queries with PromQL.

Azure Monitor managed service for Prometheus scrapes and stores Prometheus metrics in an Azure Monitor workspace, queryable with PromQL. Azure Managed Grafana is a managed Grafana instance with Entra authentication that uses it as a data source.

Practise domain 1 →Practise all domains →