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

Question 1

An Azure Application Gateway fronts several application VMs. During planned scale-in, established requests sometimes fail when an instance is removed from the backend pool. New requests should use remaining instances while existing connections finish. Which setting best addresses this?

  1. Enable cookie-based affinity and leave pool-removal behavior unchanged
  2. Increase the health-probe failure threshold so every backend appears healthy longer
  3. Increase the backend HTTP request timeout without changing deregistration behavior
  4. Enable connection draining on the gateway backend settings with an appropriate drain timeout

Explanation

Correct Answer

D:

Application Gateway connection draining stops assigning new requests to a backend that is being removed while allowing existing connections to finish within the configured period. This is suited to planned rolling updates and scale-in; it is not a substitute for probes during abrupt failures.

Incorrect Answers

A:

Cookie affinity can keep a client associated with a backend while it is active, but it does not ensure in-flight requests finish when that backend is explicitly deregistered. Affinity is not a graceful scale-in mechanism.

B:

Probe thresholds influence how quickly the gateway marks unhealthy backends. They do not preserve established requests when an administrator deliberately removes a healthy backend pool member.

C:

The backend request timeout governs how long the gateway waits for a backend response. It does not itself prevent new traffic to a draining instance or give existing connections a dedicated grace period.

Question 2

A storage account contains rarely accessed compliance documents with a fixed seven-year retention rule. What should the design separate?

  1. Rely only on a subscription Owner role
  2. Immutable retention enforcement from access-tier economics
  3. Assume archive tier itself prevents all deletion
  4. Assume GRS is equivalent to WORM storage

Explanation

Correct Answer

B:

Legal protection governs whether objects may be changed or deleted; hot, cool, cold, or archive tiering independently controls retrieval latency and cost.

Incorrect Answers

A:

Owner is a broad management permission and does not establish the required immutable evidentiary retention.

C:

An offline access tier is a storage-cost feature and is not by itself a service-enforced legal hold policy.

D:

Replicas improve durability but can propagate authorized logical changes and do not enforce write-once retention.

Question 3

A team needs SQL Database performance to scale with workload independently from data storage, but wants predictable always-on compute for a high-traffic service. Which decision makes sense?

  1. Serverless auto-pause for the live production workload
  2. A tiny database within a shared elastic pool without capacity analysis
  3. A Blob access-tier change
  4. Provisioned vCore compute with a suitable service tier

Explanation

Correct Answer

D:

Provisioned cores reserve consistent compute capacity; tier and storage choices can be sized against measured CPU, I/O, and latency requirements.

Incorrect Answers

A:

Auto-pause introduces resume behavior and does not suit a continuously busy service seeking always-on performance predictability.

B:

Pool contention can degrade a consistently busy tenant unless aggregate and per-database limits are planned.

C:

Hot/cool object storage tiers do not allocate vCores to a running SQL Database.

Question 4

A company needs an orchestrated data copy but production databases are slow during business hours. What scheduling design minimizes impact?

  1. Scheduled incremental ingestion with change tracking
  2. Force the database to use its smallest compute tier
  3. Disable source audit logs to speed copies
  4. Reload every table in full during the busiest hour

Explanation

Correct Answer

A:

Incremental extraction reduces scanned source volume, and controlled scheduling limits contention with interactive production transactions.

Incorrect Answers

B:

Reducing compute during extraction likely worsens contention and delays business transactions.

C:

Removing audit evidence does not inherently solve extraction load and introduces security and compliance risks.

D:

Full reloads increase source pressure and do not address operational capacity constraints.

Question 5

An application must retrieve database passwords and signing keys securely and rotate them without changing source code. Which design fits?

  1. Store credentials in public App Configuration key-values
  2. Key Vault references with workload identity
  3. Commit secrets to deployment templates
  4. Put secrets into DNS TXT records

Explanation

Correct Answer

B:

A protected vault and identity-based access keep secret material out of code while supporting rotation and controlled access.

Incorrect Answers

A:

General configuration values are not a substitute for secret custody and can expose sensitive material if mishandled.

C:

Source-controlled passwords remain reproducible by unauthorized readers and are hard to revoke per consumer.

D:

DNS records are not a secure store for passwords or private keys used by applications.

Question 6

The security team needs users to access on-premises applications with Microsoft Entra preauthentication without publishing a direct inbound firewall rule for each application. Which feature should be considered?

  1. Microsoft Entra application proxy
  2. An Azure private endpoint for a Storage account
  3. A local DNS CNAME record only
  4. An internet-facing NSG allow rule

Explanation

Correct Answer

A:

Application proxy can publish supported internal web apps through an outbound connector and apply Entra preauthentication without directly exposing internal hosts.

Incorrect Answers

B:

Private endpoints give private connectivity to Azure PaaS services, not reverse proxy authentication to arbitrary on-premises web apps.

C:

DNS aliases change name resolution and cannot validate tokens or proxy requests to internal applications.

D:

An NSG inbound rule opens packet access and offers no Entra preauthentication gateway for users.

Question 7

An app requires isolated production and test deployments but shares a Kubernetes cluster for efficiency. What isolation question matters most?

  1. Treat Kubernetes namespaces as physical security boundaries
  2. Use only DNS subdomains to isolate clusters
  3. Store both environments' secrets in a public ConfigMap
  4. AKS isolation, RBAC, and network policies

Explanation

Correct Answer

D:

Namespace separation is a logical boundary; privileged workloads may require stronger node or cluster separation for production risk tolerance.

Incorrect Answers

A:

Namespaces do not provide dedicated physical hardware or eliminate cluster-level compromise concerns.

B:

Separate hostnames do not govern Kubernetes API permissions, traffic policies, or scheduling boundaries.

C:

ConfigMaps are not a secure secret store, and public data exposure defeats environment isolation.

Question 8

A company must validate that new Azure VMs meet source-server performance and operational expectations without affecting production during testing. What should it do?

  1. Change only the Azure VM resource names
  2. Run isolated migration test instances with representative transactions
  3. Skip verification after replication reports success
  4. Delete source VMs before first test

Explanation

Correct Answer

B:

A nonproduction test permits performance, identity, network and application checks before final cutover while keeping source service available.

Incorrect Answers

A:

Resource naming does not establish behavioral equivalence or verify application dependencies.

C:

Disk transfer success does not prove application functionality, scaling, or licensing are correct in the target.

D:

Removing rollback options increases migration risk and makes troubleshooting a failed target disruptive.

Question 9

Several Windows servers need a shared SMB namespace that can be mounted by applications with minimal file-code changes. What storage option is suitable?

  1. Azure Event Hubs
  2. Azure Cosmos DB documents
  3. Azure Blob Storage object endpoint
  4. Azure Files SMB shares

Explanation

Correct Answer

D:

Azure Files exposes managed SMB file shares and can integrate with supported identity models for applications that expect mapped network file paths.

Incorrect Answers

A:

Event Hubs carries streams of events rather than persistent shared directories and files for applications.

B:

A document database is not a conventional shared Windows file server exposing SMB handles and file locks.

C:

Blob APIs use object semantics and do not directly provide the same SMB filesystem protocol without added layers.

Question 10

A compliance requirement says every new resource must carry an environment tag, and the platform should fill a default value when missing if supported. What should be designed?

  1. A resource lock
  2. Azure Policy modify effect with a managed identity where required
  3. An Azure Resource Graph workbook alone
  4. Azure Policy audit effect alone

Explanation

Correct Answer

B:

Modify can add or update supported resource properties and tags during evaluation, while remediation can address existing resources under appropriate permissions.

Incorrect Answers

A:

Locks prevent selected writes or deletes and do not automatically populate management metadata.

C:

A query can identify untagged assets but does not inject a default tag during new deployments.

D:

Audit reports noncompliance without adding the missing tag to resources that fail the requirement.

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