Microsoft AZ-305 (Designing Microsoft Azure Infrastructure Solutions) Practice Test 15

Question 140

An IT team is migrating an entire VMware-based application stack and wants to retain VMware operations and tools rather than convert every guest to native Azure VMs immediately. What service fits?

  1. Azure App Service
  2. Azure VMware Solution
  3. Azure Functions
  4. Azure Batch

Explanation

Correct Answer

B:

AVS provides a managed VMware SDDC environment hosted on Azure infrastructure, preserving familiar hypervisor and operations patterns.

Incorrect Answers

A:

App Service would require replatforming server workloads into managed applications rather than maintaining VMware virtual machines.

C:

Functions requires code decomposition into triggered units rather than retaining existing virtual machines and VMware toolchains.

D:

Batch targets parallel jobs and is not a VMware datacenter replacement for existing multi-VM stacks.

Question 141

An Azure Function uses its managed identity to request a Key Vault secret, but Key Vault returns a 403 authorization error. The identity has been enabled correctly and the vault uses the Azure RBAC permission model. What should the architecture team change?

  1. Assign the function's managed identity a narrow Key Vault secret data-plane role at the required scope
  2. Disable the managed identity and put a long-lived client secret into Function App settings
  3. Give the application Azure subscription Reader and assume this grants Key Vault secret values
  4. Create a public DNS CNAME for the vault without changing identity permissions

Explanation

Correct Answer

A:

Authentication identifies the managed identity, but a 403 can occur when that identity lacks authorization to read secret values. Grant a narrowly scoped role such as Key Vault Secrets User, verify any network restrictions separately, and retain secret access without a stored credential.

Incorrect Answers

B:

A client secret introduces a reusable credential to protect and rotate and does not inherently supply the missing Key Vault RBAC authorization. Replacing a working managed identity makes security operations more fragile.

C:

Subscription Reader primarily grants management-plane visibility and isn't equivalent to a secret-value data-plane role on a vault using Azure RBAC. The function needs the correct data permission.

D:

DNS controls name resolution, not an authenticated principal's secret-read permissions. Changing an alias will not resolve an authorization failure returned by the service.

Question 142

A company wants to stop using the production subscription's administrator account to perform recovery tests. What is an appropriate security design?

  1. Use a public shared access signature as an administrator account
  2. Disable multi-factor authentication for all restore users
  3. Dedicated recovery roles and separately governed restore permissions
  4. Publish the production Owner password to the recovery team

Explanation

Correct Answer

C:

Least-privilege recovery identities should be authorized at backup and target scopes and tested without exposing full production administration credentials.

Incorrect Answers

A:

Storage SAS grants data access and is not a substitute for authenticated Azure recovery operations.

B:

Removing identity protection weakens the recovery control plane, which is often targeted during attacks.

D:

Shared high-privilege secrets destroy accountability and magnify exposure during an incident.

Question 143

Two acquired branch offices both use 10.40.0.0/16 and must establish separate route-based site-to-site IPsec connections to the same Azure VPN gateway. Immediate branch renumbering is prohibited. Which capability addresses the overlapping on-premises address plans?

  1. Enable ordinary VNet peering between the two on-premises sites
  2. Configure supported Azure VPN Gateway NAT rules and unique translated prefixes for the separate connections
  3. Disable all network security groups in Azure so overlapping routes can coexist
  4. Use Azure Traffic Manager to translate private IP packet addresses

Explanation

Correct Answer

B:

Supported route-based Azure VPN Gateway SKUs offer ingress and egress NAT for site-to-site links. Assign each overlapping branch a distinct nonoverlapping external mapping, then validate routes and branch return traffic; this is not a feature of every gateway SKU or connection type.

Incorrect Answers

A:

VNet peering connects compatible Azure virtual network address spaces; it does not translate overlapping on-premises branch prefixes on IPsec tunnels. Address collisions remain unresolved.

C:

An NSG controls allowed traffic after routes are resolved and cannot distinguish two conflicting private prefixes. Removing security controls does not repair ambiguous route selection.

D:

Traffic Manager performs DNS-based endpoint selection and has no role in translating the source or destination address of private VPN packets. It cannot solve site-to-site IP conflicts.

Question 144

A Linux compute cluster must mount a durable shared file namespace using NFSv4.1 over private connectivity, with conventional filesystem operations rather than object GET and PUT calls. Which managed Azure storage offering should be evaluated?

  1. Azure Files NFS shares on a supported SSD storage account with the required private network design
  2. Blob archive tier mounted directly as a native NFSv4.1 file server without a gateway
  3. Azure Queue Storage because it supports POSIX file paths
  4. Azure Traffic Manager because it stores file content behind DNS records

Explanation

Correct Answer

A:

Azure Files provides managed NFS shares for supported Linux-oriented workloads, avoiding self-managed NFS servers while retaining a familiar file interface. Confirm the share's supported storage tier, VNet/network constraints, client compatibility, and performance envelope before migration.

Incorrect Answers

B:

The archive access tier is offline object storage, not a native NFSv4.1 file service. Even if an application uses an object gateway, that is a different protocol and latency design.

C:

Queue Storage holds messages for asynchronous processing and does not implement hierarchical file access or NFS filesystem semantics. It is appropriate for work queues rather than a shared data filesystem.

D:

Traffic Manager supplies DNS routing to service endpoints, not mounted storage or a network file system. A reachable endpoint still requires the actual file-serving service and access controls.

Question 145

A business must allow outbound traffic only to approved FQDNs and record decisions for traffic from its application subnets. What network service fits?

  1. Azure Load Balancer health probes
  2. An NSG rule using arbitrary HTTP hostnames
  3. Azure Storage SAS permissions
  4. Azure Firewall application rules with logging

Explanation

Correct Answer

D:

Azure Firewall can centrally evaluate supported outbound application traffic using FQDN-based policies while providing diagnostic evidence and controlled routes.

Incorrect Answers

A:

Probes check backend health but do not enforce organization-wide outbound application destinations.

B:

NSGs primarily filter L3/L4 properties and service tags; they do not provide full outbound HTTP FQDN application-rule behavior.

C:

A SAS scopes object access and cannot evaluate all subnet internet traffic destinations.

Question 146

A recovered application consists of a database VM, API VMs, and a front-end. Which recovery design prevents the front-end from starting before critical dependencies?

  1. A single VM tag named Dependency
  2. A set of independent manual starts in random order
  3. A Site Recovery recovery plan with ordered groups and automation steps
  4. An Azure Advisor recommendation

Explanation

Correct Answer

C:

Recovery plans can sequence protection groups and integrate manual or automated operations so downstream services start after their prerequisites.

Incorrect Answers

A:

A tag documents intent but does not execute sequencing or determine when services are recovered.

B:

Uncoordinated starts can expose the application before the database or API is healthy, increasing restoration time.

D:

Advisor is informative and cannot serve as the operational recovery orchestrator during a disaster.

Question 147

A workload must use an HSM-protected cryptographic key under stricter isolation and operational controls than a general-purpose software key store. Which Azure service fits?

  1. An Azure Storage container
  2. An App Configuration key-value store
  3. Azure Key Vault Managed HSM
  4. Azure Resource Graph

Explanation

Correct Answer

C:

Managed HSM provides a dedicated, managed, FIPS-validated HSM-backed key-management service for supported sensitive cryptographic use cases.

Incorrect Answers

A:

Blob storage can hold encrypted files but does not provide the specialized HSM key-operation interface and security boundary.

B:

App Configuration manages non-secret application settings and feature flags, not HSM-managed private cryptographic keys.

D:

Resource Graph inventories and queries Azure resource properties but does not perform cryptographic operations on private keys.

Question 148

A legacy VM application must move quickly with minimal functional change and modernization can happen later. Which migration strategy matches?

  1. Refactor the complete system into serverless functions immediately
  2. Rehost the servers as Azure VMs
  3. Repurchase an unrelated SaaS product
  4. Retire the application without business approval

Explanation

Correct Answer

B:

Lift-and-shift retains much of the existing application topology and OS behavior, trading faster migration for continued IaaS operations.

Incorrect Answers

A:

Major code decomposition increases migration scope and may jeopardize a constrained transfer deadline.

C:

Replacement changes the application's functional and contractual model and is not a minimal-change migration.

D:

Retirement is appropriate only when the service is no longer required, which the stem does not indicate.

Question 149

A marketplace stores orders in Azure Cosmos DB for NoSQL, partitioned by SellerId. The architects must prevent two orders belonging to the same seller from using the same externalOrderNumber, but different sellers may reuse that number. The rule must be enforced by the database rather than by application read-before-write checks. What should be specified in the container design?

  1. Enable only automatic indexing on externalOrderNumber and assume a duplicate value is rejected
  2. Create the container with a unique key policy on /externalOrderNumber and partition on /SellerId
  3. Assign Azure RBAC Reader on the container to block duplicate order writes
  4. Enable a full-fidelity change feed and delete duplicated orders after consumers observe them

Explanation

Correct Answer

B:

A Cosmos DB for NoSQL unique key policy enforces the specified paths within each logical partition. Pairing the /SellerId partition key with a unique /externalOrderNumber constraint prevents duplicate order numbers for one seller while permitting different sellers to reuse them. Unique key policies must be specified when a container is created.

Incorrect Answers

A:

Cosmos DB indexing improves query access but an ordinary index does not enforce uniqueness. Two documents can have the same indexed property without a database-level unique key policy.

C:

Azure RBAC governs resource or data access permissions and does not assert a per-seller uniqueness constraint on an application property. A permission assignment cannot replace a data model integrity rule.

D:

Change feeds support downstream reactions, but deleting duplicates after commits is not equivalent to preventing them. A unique key policy rejects conflicting creates or updates at write time.

Question 150

A financial controller wants to notify product owners when forecasted cloud spending is likely to exceed an approved monthly allocation. Which feature best fits?

  1. Azure Cost Management budget alerts
  2. An Azure Monitor CPU threshold
  3. An application error-rate alert
  4. A resource delete lock

Explanation

Correct Answer

A:

Budgets can compare actual and forecast cost against defined thresholds and send notifications without acting as a hard spending stop.

Incorrect Answers

B:

CPU may correlate with usage but is not an authoritative measure of subscription expenditure and forecasting.

C:

Error telemetry concerns service quality, not financial forecast thresholds for Azure costs.

D:

Locks protect resources from selected management actions but do not measure or notify about spending drift.

Designing Microsoft Azure Infrastructure Solutions (AZ-305) Practice Tests