Microsoft AZ-305 Exam (page: 8)
Microsoft Designing Azure Infrastructure Solutions
Updated on: 12-Jan-2026

Viewing Page 8 of 42

You have an Azure subscription. The subscription contains a tiered app named App1 that is distributed across multiple containers hosted in Azure Container Instances.

You need to deploy an Azure Monitor monitoring solution for App1. The solution must meet the following requirements:

Support using synthetic transaction monitoring to monitor traffic between the App1 components.

Minimize development effort.

What should you include in the solution?

  1. Network Insights
  2. Application Insights
  3. Container insights
  4. Log Analytics Workspace insights

Answer(s): B

Explanation:

Application Insights provides other features including, but not limited to:
* Availability: Also known as synthetic transaction monitoring. Probe the external endpoints of your applications to test the overall availability and responsiveness over time.
* Etc.
Note: Synthetic monitoring is the use of software to simulate user interactions with a system. The data generated from the simulated transactions is then analyzed to evaluate how the system behaves.


Reference:



HOTSPOT (Drag and Drop is not supported)

You have an Azure subscription that contains the resources shown in the following table:



Log files from App1 are registered to App1Logs. An average of 120 GB of log data is ingested per day.

You configure an Azure Monitor alert that will be triggered if the App1 logs contain error messages.

You need to minimize the Log Analytics costs associated with App1. The solution must meet the following requirements:
Ensure that all the log files from App1 are ingested to App1Logs.

Minimize the impact on the Azure Monitor alert.

Which resource should you modify, and which modification should you perform? To answer, select the appropriate options in the answer area.

Note: Each correct selection is worth one point.

Hot Area:

  1. See Explanation section for answer.

Answer(s): A

Explanation:



Box 1: Workspace1
Resource

Box 2: Change to a commitment pricing tier
Modification

Commitment tiers
In addition to the pay-as-you-go model, Log Analytics has commitment tiers, which can save you as much as 30 percent compared to the pay-as-you-go price. With commitment tier pricing, you can commit to buy data ingestion for a workspace, starting at 100 GB per day, at a lower price than pay-as-you-go pricing. Any usage above the commitment level (overage) is billed at that same price per GB as provided by the current commitment tier.

Incorrect:
*Change to the Basic Logs data plan.
Would not support alerts.

Note: Azure Monitor Logs offers two log data plans that let you reduce log ingestion and retention costs and take advantage of Azure Monitor’s advanced features and analytics capabilities based on your needs:

The default Analytics log data plan provides full analysis capabilities and makes log data available for queries, Azure Monitor features, such as alerts, and use by other services. The Basic log data plan lets you save on the cost of ingesting and storing high-volume verbose logs in your Log Analytics workspace for debugging, troubleshooting, and auditing, but not for analytics and alerts.

* Set a daily cap
A daily cap would not guarantee that all log files are ingested.

Set daily cap on Log Analytics workspace
A daily cap on a Log Analytics workspace allows you to avoid unexpected increases in charges for data ingestion by stopping collection of billable data for the rest of the day whenever a specified threshold is reached.


Reference:

https://learn.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#commitment-tiers https://learn.microsoft.com/en-us/azure/azure-monitor/logs/daily-cap https://learn.microsoft.com/en-us/azure/azure-monitor/logs/basic-logs-configure



You have 12 Azure subscriptions and three projects. Each project uses resources across multiple subscriptions.

You need to use Microsoft Cost Management to monitor costs on a per project basis. The solution must minimize administrative effort.

Which two components should you include in the solution? Each correct answer presents part of the solution.

Note: Each correct selection is worth one point.

  1. budgets
  2. resource tags
  3. custom role-based access control (RBAC) roles
  4. management groups
  5. Azure boards

Answer(s): A,B


Reference:



HOTSPOT (Drag and Drop is not supported)

You have an Azure subscription that contains multiple storage accounts.

You assign Azure Policy definitions to the storage accounts.

You need to recommend a solution to meet the following requirements:

Trigger on-demand Azure Policy compliance scans.

Raise Azure Monitor non-compliance alerts by querying logs collected by Log Analytics.

What should you recommend for each requirement? To answer, select the appropriate options in the answer area.

Note: Each correct selection is worth one point.

Hot Area:

  1. See Explanation section for answer.

Answer(s): A

Explanation:



Box 1: Azure Command-Line Interface (CLI)
Trigger on-demand Azure Policy compliance scans.

On-demand evaluation scan
An evaluation scan for a subscription or a resource group can be started with Azure CLI, Azure PowerShell, a call to the REST API, or by using the Azure Policy Compliance Scan GitHub Action. This scan is an asynchronous process.

Box 2: Azure Activity logs
Raise Azure Monitor non-compliance alerts by querying logs collected by Log Analytics.

Azure Monitor logs
If you have a Log Analytics workspace with AzureActivity from the Activity Log Analytics solution tied to your subscription, you can also view non-compliance results from the evaluation of new and updated resources using simple Kusto queries and the AzureActivity table. With details in Azure Monitor logs, alerts can be configured to watch for non-compliance.


Reference:

https://learn.microsoft.com/en-us/azure/governance/policy/how-to/get-compliance-data



HOTSPOT (Drag and Drop is not supported)

You have an Azure subscription.

You plan to deploy five storage accounts that will store block blobs and five storage accounts that will host file shares. The file shares will be accessed by using the SMB protocol.

You need to recommend an access authorization solution for the storage accounts. The solution must meet the following requirements:

Maximize security.

Prevent the use of shared keys.

Whenever possible, support time-limited access.

What should you include in the solution? To answer, select the appropriate options in the answer area.

Note: Each correct selection is worth one point.

Hot Area:

  1. See Explanation section for answer.

Answer(s): A

Explanation:



Box 1: A shared access signature (SAS) and a stored access policy Blobs

See note below.

User delegation SAS
A user delegation SAS is secured with Microsoft Entra credentials and also by the permissions specified for the SAS. A user delegation SAS applies to Blob storage only.

A shared access signature can take one of the following two forms:

Ad hoc SAS.
When you create an ad hoc SAS, the start time, expiry time, and permissions are specified in the SAS URI. Any type of SAS can be an ad hoc SAS.

Service SAS with stored access policy. A stored access policy is defined on a resource container, which can be a blob container, table, queue, or file share. The stored access policy can be used to manage constraints for one or more service shared access signatures.
When you associate a service SAS with a stored access policy, the SAS inherits the constraints–the start time, expiry time, and permissions–defined for the stored access policy.

Note
A user delegation SAS or an account SAS must be an ad hoc SAS. Stored access policies are not supported for the user delegation SAS or the account SAS.

Box 2: Microsoft Entra credentials
File shares

User delegation SAS
A user delegation SAS is secured with Microsoft Entra credentials and also by the permissions specified for the SAS. A user delegation SAS applies to Blob storage only.

Note: A shared access signature (SAS) provides secure delegated access to resources in your storage account. With a SAS, you have granular control over how a client can access your data. For example:

What resources the client may access.

What permissions they have to those resources.

How long the SAS is valid.

Types of shared access signatures
Azure Storage supports three types of shared access signatures:

User delegation SAS

Service SAS

Account SAS


Reference:

https://learn.microsoft.com/en-us/azure/storage/common/storage-sas-overview



HOTSPOT (Drag and Drop is not supported)

You have an Azure subscription. The subscription contains 100 virtual machines that run Windows Server 2022 and have the Azure Monitor Agent installed.

You need to recommend a solution that meets the following requirements:

Forwards JSON-formatted logs from the virtual machines to a Log Analytics workspace

Transforms the logs and stores the data in a table in the Log Analytics workspace

What should you include in the recommendation? To answer, select the appropriate options in the answer area.

Note: Each correct selection is worth one point.

Hot Area:

  1. See Explanation section for answer.

Answer(s): A

Explanation:



Box 1: An Azure Monitor data collection endpoint
Forwards JSON-formatted logs from the virtual machines to a Log Analytics workspace

Data collection endpoints (DCEs) provide a connection for certain data sources of Azure Monitor.

Data sources that use DCEs
The following data sources currently use DCEs:

Azure Monitor Agent when network isolation is required
Logs ingestion API

Logs Ingestion API in Azure Monitor
The Logs Ingestion API in Azure Monitor lets you send data to a Log Analytics workspace using either a REST API call or client libraries. By using this API, you can send data to supported Azure tables or to custom tables that you create. You can even extend the schema of Azure tables with custom columns to accept additional data.

Basic operation
Your application sends data to a data collection endpoint (DCE), which is a unique connection point for your subscription. The payload of your API call includes the source data formatted in JSON. The call:

Specifies a data collection rule (DCR) that understands the format of the source data. Potentially filters and transforms the data for the target table. Directs the data to a specific table in a specific workspace. You can modify the target table and workspace by modifying the DCR without any change to the API call or source data.



Incorrect:
* A linked storage account for the Log Analytics workspace

Box 2: A KQL query
Transforms the logs and stores the data in a table in the Log Analytics workspace

Transformations in Azure Monitor allow you to filter or modify incoming data before it’s stored in a Log Analytics workspace. They are implemented as a Kusto Query Language (KQL) statement in a data collection rule (DCR).

Transformation structure
The KQL statement is applied individually to each entry in the data source. It must understand the format of the incoming data and create output in the structure of the target table. The input stream is represented by a virtual table named source with columns matching the input data stream definition. Following is a typical example of a transformation. This example includes the following functionality:

Filters the incoming data with a where statement
Adds a new column using the extend operator
Formats the output to match the columns of the target table using the project operator

Kusto

| where severity == “Critical”
| extend Properties = parse_json(properties)
| project
TimeGenerated = todatetime([“time”]),
Category = category,
StatusDescription = StatusDescription,
EventName = name,
EventId = tostring(Properties.EventId)


Reference:

https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/data-collection-endpoint-overview https://learn.microsoft.com/en-us/azure/azure-monitor/logs/logs-ingestion-api-overview https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/data-collection-transformations-structure



HOTSPOT (Drag and Drop is not supported)

You have five Azure subscriptions. Each subscription is linked to a separate Microsoft Entra tenant and contains virtual machines that run Windows Server 2022.

You plan to collect Windows security events from the virtual machines and send them to a single Log Analytics workspace.

You need to recommend a solution that meets the following requirements:

Collects event logs from multiple subscriptions

Supports the use of data collection rules (DCRs) to define which events to collect

What should you recommend for each requirement? To answer, select the appropriate options in the answer area.

Note: Each correct selection is worth one point.

Hot Area:

  1. See Explanation section for answer.

Answer(s): A

Explanation:



Box 1: Azure Event Grid

To collect the event logs:

Incorrect:
* Azure Lighthouse
Azure Lighthouse helps service providers efficiently build and deliver managed services.

Box 2: The Azure Monitor Agent
To support the DCRs:

You collect events and performance counters from virtual machines with Azure Monitor Agent.

You can define a data collection rule to send data from multiple machines to multiple Log Analytics workspaces, including workspaces in a different region or tenant. Create the data collection rule in the same region as your Log Analytics workspace.

How can I collect Windows security events by using Azure Monitor Agent? There are two ways you can collect Security events using the new agent, when sending to a Log Analytics workspace:

You can use Azure Monitor Agent to natively collect Security Events, same as other Windows Events. These flow to the ‘Event’ table in your Log Analytics workspace.
If you have Microsoft Sentinel enabled on the workspace, the security events flow via Azure Monitor Agent into the SecurityEvent table instead (the same as using the Log Analytics agent). This scenario always requires the solution to be enabled first.


Reference:

https://learn.microsoft.com/en-us/azure/azure-monitor/agents/data-collection-rule-azure-monitor-agent https://learn.microsoft.com/en-us/azure/event-grid/enable-diagnostic-logs-topic



HOTSPOT (Drag and Drop is not supported)

You have the Azure management groups shown in the following table.



You have the Azure subscriptions shown in the following table.



You have the virtual machines shown in the following table.




You have the resource groups shown in the following table.



You have the Azure policies shown in the following table.



You perform the following actions:

Assign PA1 to MG1.

Modify PA2 and configure the resource selector to include only Microsoft.Compute/virtualMachines in the

East US Azure region.
Modify PA3 and add an exclusion for Sub1.

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

Note: Each correct selection is worth one point.

Hot Area:

  1. See Explanation section for answer.

Answer(s): A

Explanation:



Box 1: No
No – PA1 will only evaluate the resources in Sub2.

PA1 is assigned to the MG1 management group.
Sub2 and Sub4 is in MG1.
PA1 will evaluated resources in Sub4 as well (though no further information is available on resources in Sub4).

Box 2: Yes
Yes – PA2 will evaluate all the virtual machines deployed to the East US region.

Modify PA2 and configure the resource selector to include only Microsoft.Compute/virtualMachines in the East US Azure region.

Box 3: No
No – PA3 will evaluate VM3.

Modify PA3 and add an exclusion for Sub1.
Sub1 includes VM3.



Viewing Page 8 of 42



Share your comments for Microsoft AZ-305 exam with other users:

Žarko 9/5/2023 3:35:00 AM

@t it seems like azure service bus message quesues could be the best solution
UNITED KINGDOM


Santhi 1/1/2024 8:23:00 AM

passed today.40% questions were new.litwere case study,lots of new questions on afd,ratelimit,tm,lb,app gatway.got 2 set series of questions which are not present here.questions on azure cyclecloud, no.of vnet/vms required for implimentation,blueprints assignment/management group etc
INDIA


T 7/28/2023 9:06:00 PM

this question is keep repeat : you are developing a sales application that will contain several azure cloud services and handle different components of a transaction. different cloud services will process customer orders, billing, payment, inventory, and shipping. you need to recommend a solution to enable the cloud services to asynchronously communicate transaction information by using xml messages. what should you include in the recommendation?
NEW ZEALAND


alaska 10/24/2023 5:48:00 AM

i scored 87% on the az-204 exam. thanks! i always trust
GERMANY


Chere 9/15/2023 4:21:00 AM

found it good
Anonymous