Courseiva

Microsoft Azure Fundamentals AZ-900 (AZ-900) — Questions 976981

981 questions total · 14pages · All types, answers revealed

Page 13

Page 14 of 14

976
MCQmedium

Which Azure feature provides Just-In-Time (JIT) VM access to reduce the attack surface of management ports?

A.Azure Bastion
B.JIT VM Access in Microsoft Defender for Cloud
C.Azure AD Privileged Identity Management
D.Azure Key Vault Certificate access
AnswerB

JIT VM Access in Microsoft Defender for Cloud is a network-security feature that creates time-limited rules in an NSG (and optionally Azure Firewall) to permit inbound traffic to a VM's management port — commonly 3389 for RDP or 22 for SSH — only from the requesting user's IP address. When the approved session ends or the configured duration expires, Defender for Cloud automatically reverts the rules, removing the port exposure. This shrinks the VM attack surface by ensuring management ports are closed at all other times and aligns with the principle of least-privilege network access.

Why this answer

Just-In-Time (JIT) VM access in Microsoft Defender for Cloud reduces the attack surface by locking down inbound traffic to VMs, only opening management ports (e.g., RDP port 3389 or SSH port 22) when requested and for a specific time window. This is the correct feature because it directly implements JIT access to management ports, as described in the question.

Exam trap

The trap here is confusing Azure Bastion (which provides persistent secure access) with JIT VM Access (which dynamically opens and closes ports on demand), as both relate to securing VM management but solve different problems.

How to eliminate wrong answers

Option A is wrong because Azure Bastion provides secure, seamless RDP/SSH connectivity to VMs over TLS without exposing public IP addresses, but it does not implement Just-In-Time access or dynamically open/close ports. Option C is wrong because Azure AD Privileged Identity Management (PIM) manages just-in-time privileged role assignments for Azure AD and Azure resources, not VM-level network port access. Option D is wrong because Azure Key Vault Certificate access manages certificate lifecycle and secrets, not network-level access control to VM management ports.

977
MCQmedium

A multinational company has multiple Azure subscriptions managed by different teams. The compliance team requires that all new virtual machines deployed in any subscription must have a specific tag (e.g., 'CostCenter') and must be deployed in approved regions only. They also want to automatically enforce these requirements without manual intervention. Which Azure service should the compliance team use to achieve this?

A.Azure Policy
B.Azure Role-Based Access Control (RBAC)
C.Azure Blueprints
D.Azure Management Groups
AnswerA

Correct. Azure Policy allows you to create, assign, and manage policies that enforce rules and effects over your resources. In this scenario, a policy can automatically add a required tag and restrict allowed regions when virtual machines are created.

Why this answer

Azure Policy is correct because it enables the compliance team to create, assign, and manage policies that enforce rules (like requiring a 'CostCenter' tag and restricting VM deployment to approved regions) across all subscriptions. Policies are evaluated during resource creation and can automatically deny or audit non-compliant resources, ensuring enforcement without manual intervention.

Exam trap

The trap here is that candidates often confuse Azure Policy (which enforces rules on resources) with Azure Blueprints (which packages policies, RBAC, and resources for environment setup), but Blueprints does not enforce compliance on its own.

Why the other options are wrong

B

Azure RBAC manages permissions to Azure resources (who can do what), but cannot enforce resource configuration like tags or approved regions. The question requires automatic enforcement of resource properties, which is a policy, not access control.

C

Azure Blueprints is used to orchestrate the deployment of resource templates and policy assignments, but it does not enforce compliance automatically; it requires manual deployment or updates. The question specifically asks for automatic enforcement without manual intervention, which is a core feature of Azure Policy.

D

Azure Management Groups organize subscriptions hierarchically but do not enforce resource-level rules like tagging or region restrictions. They lack the policy engine needed to automatically audit or enforce compliance requirements on deployed resources.

When would these options actually be correct?

B

A question asking: 'Which service should be used to grant a specific team permission to deploy virtual machines only in the West Europe region?' In that case, RBAC with a custom role that denies deployment outside that region would be correct.

C

A company wants to define a repeatable set of Azure resources (e.g., a network topology, policies, and RBAC assignments) that can be deployed together as a single package across multiple subscriptions. Azure Blueprints would be the correct answer because it packages artifacts like policies, role assignments, and resource templates into a blueprint that can be assigned and updated centrally.

D

A company needs to centrally manage compliance and access policies across multiple subscriptions by grouping them under a single management hierarchy. For example, applying a policy that restricts subscription creation to certain departments or delegating administrative permissions at the management group level.

Why candidates pick the wrong answer

B

Candidates may confuse enforcement of rules (Policy) with controlling who can perform actions (RBAC), especially when the requirement involves 'enforcing' something, which sounds like access control.

C

Candidates may confuse Blueprints with Policy because both involve compliance and governance. Blueprints can include policy definitions, leading to the mistaken belief that Blueprints alone can enforce rules automatically, when in fact the enforcement comes from the included policies.

D

Candidates may confuse Management Groups with Policy because both operate at scale across subscriptions. They might think grouping subscriptions is sufficient to enforce rules, overlooking that Management Groups themselves do not enforce resource configurations.

978
MCQmedium

A company's data engineering team needs to process CSV files that are uploaded to an Azure Blob Storage container. For each uploaded file, the team must run a custom Python script to clean and transform the data. The team wants a solution that automatically triggers the script upon file upload, does not require them to manage any virtual machines or containers, and charges only when code executes. Which Azure service should the team use?

A.Azure Logic Apps
B.Azure Functions
C.Azure Container Instances
D.Azure Batch
AnswerB

Azure Functions is a serverless compute service that supports multiple languages, including Python. It can be triggered by Azure Blob Storage events (e.g., a new blob created) to automatically run the function code. The consumption plan bills only for the execution time, and there is no infrastructure to manage. This matches all the requirements perfectly.

Why this answer

Azure Functions is the correct choice because it provides a serverless compute service that can be triggered directly by an HTTP request or a Blob Storage event (via an Event Grid subscription or a Blob trigger). This allows the custom Python script to execute automatically when a CSV file is uploaded, without provisioning or managing any virtual machines or containers. The consumption plan ensures you are charged only for the duration of code execution, meeting all stated requirements.

Exam trap

The trap here is that candidates often confuse Azure Logic Apps with Azure Functions because both can respond to blob uploads, but Logic Apps cannot natively execute arbitrary Python code without an intermediate service, and its pricing model charges per action execution rather than per compute time.

Why the other options are wrong

A

Azure Logic Apps is a low-code integration service that uses connectors and workflows, not custom Python scripts. The requirement to run a custom Python script makes Logic Apps unsuitable, as it does not natively execute arbitrary code.

C

Azure Container Instances requires managing containers (though simplified) and incurs costs for running containers even when idle, not just when code executes. It does not natively trigger on Blob Storage uploads without additional components like Event Grid.

D

Azure Batch requires managing a pool of compute nodes and is designed for large-scale parallel batch processing, not for event-driven, serverless execution triggered by file uploads. It does not charge only when code executes and involves more management overhead.

When would these options actually be correct?

A

A company needs to orchestrate a workflow that, upon file upload to Blob Storage, sends an email notification and copies the file to another container. The team wants a no-code solution with built-in connectors. In that case, Azure Logic Apps would be the correct answer.

C

A question where the team needs to run a custom Docker container for data processing, requires fast startup times, and wants to avoid managing underlying VMs but is okay with paying for container uptime (e.g., a batch processing job that runs for a few minutes).

D

A question where the team needs to run a large number of data processing tasks (e.g., thousands of CSV files) in parallel, with the ability to scale across many VMs, and they are willing to manage compute resources. For example: 'A company needs to process millions of image files using a custom tool, running on a cluster of VMs, with job scheduling and auto-scaling.'

Why candidates pick the wrong answer

A

Candidates may confuse Logic Apps' trigger-on-blob-upload capability with the ability to run custom code, not realizing Logic Apps is designed for workflow automation with pre-built connectors rather than executing arbitrary scripts.

C

Candidates may confuse 'serverless containers' with 'serverless functions', thinking Container Instances is serverless and can be triggered automatically, but it lacks built-in event-driven triggers and pay-per-execution pricing.

D

Candidates may confuse Azure Batch with serverless options because it can run custom scripts and is triggered by jobs, but they overlook its requirement for managing compute nodes and its cost model based on allocated VMs, not per execution.

979
MCQmedium

A company has an Azure subscription that contains production resources. The IT manager is concerned that a user who has the Contributor role might accidentally delete the entire subscription. The company wants a solution that prevents anyone from deleting the subscription, even users with the Owner role, while still allowing modifications to the resources inside the subscription. What should the administrator configure?

A.Assign a custom role-based access control (RBAC) role that denies the delete action for all users.
B.Configure an Azure Policy with the 'Deny' effect to block deletion of the subscription.
C.Apply a resource lock of type 'Delete' at the subscription level.
D.Apply a resource lock of type 'ReadOnly' at the subscription level.
AnswerC

This is correct. A 'Delete' lock prevents the subscription from being deleted but allows read and update operations on the resources inside. Resource locks apply to all users, including Owners, and can be set at subscription, resource group, or resource level. This directly meets the requirement to protect against accidental deletion while still allowing modifications.

Why this answer

A resource lock of type 'Delete' at the subscription level prevents any user, including those with the Owner role, from deleting the subscription. This lock overrides all RBAC permissions, ensuring that while modifications to resources inside the subscription are still allowed, the subscription itself cannot be removed. This directly addresses the IT manager's concern about accidental deletion.

Exam trap

The trap here is that candidates confuse Azure Policy (which governs resource configuration compliance) with resource locks (which protect against accidental deletion or modification at the management plane), leading them to choose Azure Policy instead of the correct lock type.

Why the other options are wrong

A

Custom RBAC roles cannot override the Owner role's permissions, and even if they deny delete, the Owner role can modify or remove the role assignment, so it does not prevent subscription deletion by an Owner.

B

Azure Policy with 'Deny' effect can block creation or modification of resources based on properties, but it cannot prevent the delete action on the subscription itself; subscription deletion is controlled by Azure RBAC and resource locks, not Azure Policy.

D

A 'ReadOnly' lock prevents all modifications to resources, including changes to configurations and data, which is too restrictive. The question requires allowing modifications to resources inside the subscription while only preventing deletion of the subscription itself.

When would these options actually be correct?

A

This option would be correct if the question asked for a solution to prevent a specific user (e.g., with Contributor role) from deleting a resource group or resource, but not the subscription, and the requirement was to use RBAC without affecting other users.

B

An administrator needs to enforce that all storage accounts in a subscription must use HTTPS only. Applying an Azure Policy with 'Deny' effect on the storage account resource type would block creation of non-compliant storage accounts.

D

A 'ReadOnly' lock at the subscription level would be correct in a scenario where the goal is to prevent any changes to all resources within the subscription, such as for a critical production environment that must remain static for auditing or compliance purposes.

Why candidates pick the wrong answer

A

Candidates may think that a custom role with explicit deny can block all users, including Owners, because they misunderstand that deny assignments in RBAC cannot override Owner permissions.

B

Candidates may confuse Azure Policy with resource locks, thinking that a 'Deny' effect can block any action including subscription deletion, because both are used to enforce restrictions.

D

Candidates may confuse 'ReadOnly' locks with 'Delete' locks, thinking that a read-only lock also prevents deletion, but they overlook that it blocks all modifications, not just deletion.

980
MCQhard

A company plans to use Azure Site Recovery to replicate on-premises virtual machines to Azure for disaster recovery. Due to regulatory restrictions, they cannot use the paired region and must replicate to a specific Azure region in the same continent. Can they select this non-paired region as the recovery target?

A.Yes, you can select any Azure region as the target for replication.
B.No, replication is only allowed to the paired region.
C.Yes, but only if both regions are within the same availability zone.
D.No, only to regions that are within the same geography.
AnswerA

Azure Site Recovery (ASR) gives you full control over the target region: when you configure replication, you can select any Azure region where ASR is available and that supports the required VM size and storage types. Microsoft recommends paired regions for automatic failover alignment and reduced latency, but this is a best practice, not a mandate. You can even replicate to a region outside your home geography, provided your subscription has access and you account for data residency policies.

Why this answer

Azure Site Recovery allows you to replicate on-premises virtual machines to any Azure region that supports the service, not just the paired region. The paired region is a default recommendation for cost and latency optimization, but it is not a mandatory requirement. Therefore, you can select a non-paired region as the recovery target as long as it is within the same continent and meets regulatory restrictions.

Exam trap

The trap here is that candidates often assume Azure's paired region is mandatory for disaster recovery replication, but Azure Site Recovery explicitly allows selection of any supported region, making paired regions a recommendation rather than a requirement.

Why the other options are wrong

B

Azure Site Recovery allows replication to any Azure region, not just the paired region. The paired region is a default recommendation but not a requirement.

C

Azure Site Recovery allows replication to any Azure region, not just within the same availability zone. Availability zones are within a single region, not across regions, so this option incorrectly restricts region selection.

D

Azure Site Recovery allows replication to any Azure region, not just those within the same geography. The 'same geography' restriction applies to data residency requirements for certain services, but not to Site Recovery replication targets.

When would these options actually be correct?

B

If the question specified that the company must use Azure Site Recovery's default settings and cannot modify the target region, then the recovery target would be limited to the paired region.

C

This option would be correct if the question asked about replicating virtual machines within the same Azure region for high availability, where Azure Site Recovery supports replication across availability zones in the same region.

D

If the question were about Azure SQL Database geo-replication or Azure Storage geo-redundant storage (GRS), which require paired regions within the same geography for automatic failover, then 'only to regions within the same geography' would be correct.

Why candidates pick the wrong answer

B

Candidates often confuse the default recommendation of paired regions with a hard requirement, especially since many Azure services use paired regions for redundancy.

C

Candidates may confuse availability zones with regions, thinking that cross-region replication is limited to zones, or they might mistakenly believe that Site Recovery requires both source and target to be in the same zone.

D

Candidates may confuse Site Recovery's flexibility with other Azure services that have geography-based restrictions, or they may overgeneralize data residency requirements to all disaster recovery scenarios.

981
MCQmedium

A company's finance team uses Azure Cost Management + Billing to monitor cloud spending. They want to configure a rule that sends an email notification to the finance team's distribution list when the monthly cost for resources tagged with Department=Marketing exceeds $10,000. Which Azure Cost Management feature should they configure?

A.Budget
B.Invoice
C.Cost analysis
D.Recommendations
AnswerA

In Azure Cost Management + Billing, a budget is a dedicated alerting construct that lets you define a spending limit at a chosen scope (such as a subscription or resource group) and set thresholds—both for actual costs and forecasted costs. When a threshold is crossed, Azure automatically sends an email notification to the specified recipients, making budgets the correct proactive tool for this scenario. Budgets can also be configured to trigger automation actions, but their core purpose is to monitor and alert on expenditure versus the defined limit.

Why this answer

Azure Budgets allow you to set cost or usage thresholds and configure alerts that trigger when spending reaches a specified percentage of the budget. In this scenario, the finance team can create a budget with a $10,000 threshold for the Department=Marketing tag, and configure an alert rule to send an email notification to the distribution list when costs exceed that amount.

Exam trap

The trap here is that candidates confuse the reporting capabilities of Cost analysis (which shows past spending) with the proactive alerting functionality of Budgets, leading them to select Cost analysis instead of Budget.

Why the other options are wrong

B

Invoice is a billing document that summarizes charges for a billing period; it does not support creating alert rules based on cost thresholds for specific tags.

C

Cost analysis provides historical data and visualizations of costs but does not support proactive alerting or automated email notifications based on cost thresholds.

D

Recommendations provide optimization suggestions to reduce costs, but they do not support configuring email alerts based on cost thresholds for specific tags.

When would these options actually be correct?

B

A company needs to download a PDF of their monthly charges for auditing purposes. They should use the Invoice feature in Cost Management + Billing to access and download invoices.

C

A question asks: 'Which Azure tool should be used to view a breakdown of current month spending by resource group and identify the top cost contributors?' In that scenario, Cost analysis is the correct feature for ad-hoc exploration and analysis of costs.

D

An organization wants to identify underutilized resources or get suggestions to reduce spending, such as rightsizing VMs or purchasing reserved instances. The question would ask: 'Which feature provides actionable insights to optimize cloud costs?'

Why candidates pick the wrong answer

B

Candidates may confuse 'Invoice' with cost monitoring because invoices show total costs, but they lack the alerting and filtering capabilities needed for this scenario.

C

Candidates may confuse cost analysis with budget alerts because both involve monitoring costs, but cost analysis is for reviewing past data, not setting proactive notifications.

D

Candidates may confuse recommendations with budget alerts because both relate to cost management, and recommendations are a prominent feature in Cost Management.

Page 13

Page 14 of 14