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

Question 390

A resource owner is considering Azure RBAC versus Microsoft Entra app roles. The permission is to delete a deployment slot in Azure, not to approve an invoice inside the app. Which is appropriate?

  1. Azure RBAC on the App Service resource
  2. An HTTP cookie claim without Azure permissions
  3. An app role called InvoiceApprover
  4. An Azure Private DNS record

Explanation

Correct Answer

A:

Deployment-slot management is an Azure management-plane operation controlled through resource roles and actions at the App Service scope.

Incorrect Answers

B:

App cookie claims can influence website authorization but do not authorize ARM operations on the resource.

C:

Application roles govern behavior implemented by the app, not Azure Resource Manager deletion of deployment slots.

D:

DNS resolution affects endpoints; it cannot grant management-plane privilege to delete a deployment slot.

Question 391

An app deployment pipeline running outside Azure needs short-lived access to deploy resources, without maintaining a stored Entra client secret. What identity mechanism should be evaluated?

  1. A manually shared Owner password
  2. Azure public IP address reservations
  3. Federated credentials for a workload identity
  4. A long-lived certificate exported to every runner

Explanation

Correct Answer

C:

Workload identity federation trusts a configured external token issuer and subject, enabling short-lived Entra token exchange for CI/CD jobs.

Incorrect Answers

A:

Human credentials in CI are difficult to audit, unsafe to store, and can carry excessive subscription permissions.

B:

Static IP resources affect connectivity and do not authenticate external pipelines to the Azure control plane.

D:

Certificate credentials still require private-key protection and lifecycle management on every execution environment.

Question 392

An Azure Files SMB share uses identity-based authentication for employees. A finance group has permission to connect to the share but must access only its own Finance folder, not the HR folder within the same share. Which authorization design should the architect specify?

  1. Grant Owner on the storage account and rely on folder names for separation
  2. Assign only the share-level Azure RBAC role and assume this automatically provides per-directory separation
  3. Use a storage-account firewall rule as the sole authorization for individual Finance folders
  4. Combine appropriate share-level authorization with Windows file and directory ACLs granting Finance only the required paths

Explanation

Correct Answer

D:

With supported identity-based SMB authentication, share-level access grants connection rights and Windows ACLs enforce permissions for individual files and directories. Configure both layers to match the finance group’s intended access, and check effective permissions with a representative user.

Incorrect Answers

A:

The Azure Owner management role is far broader than needed and does not express individual SMB folder permissions. Folder naming by itself is not access control.

B:

Share-level Azure RBAC controls entry to the SMB share, but does not replace Windows ACLs on individual files and directories. Granting the same share access does not establish folder-specific least privilege.

C:

Storage networking rules control network reachability to the service rather than differentiating users and folders within one SMB share. The Finance versus HR boundary is an identity and file-permission requirement.

Question 393

A company wants to define additional Azure control-plane permissions for a specialized operations team because no built-in RBAC role matches the required actions. Which construct fits?

  1. A storage stored access policy
  2. An Azure custom role with explicit Actions and excluded permissions
  3. A resource tag named Role
  4. An application registration redirect URI

Explanation

Correct Answer

B:

A custom role can specify the allowed management operations and be assigned at appropriate assignable scopes rather than granting a broad built-in role.

Incorrect Answers

A:

Stored access policies constrain some SAS permissions and expirations but cannot grant custom Azure Resource Manager management actions.

C:

A tag carries metadata and is not interpreted as a principal's Azure RBAC authorization rule.

D:

A redirect URI controls OAuth sign-in response delivery, not the actions authorized by Azure Resource Manager RBAC.

Question 394

Users must pass multifactor authentication when accessing a sensitive cloud application from an unmanaged device, but ordinary access from compliant devices should stay frictionless. Which control fits?

  1. Azure network security group rules
  2. A global password expiration policy
  3. Microsoft Entra Conditional Access policy
  4. Azure Policy deny assignment

Explanation

Correct Answer

C:

Conditional Access evaluates conditions such as device compliance and target application, then can require MFA only for the matching access path.

Incorrect Answers

A:

NSGs filter network packets and do not know user device compliance or enforce an MFA grant control.

B:

Password changes apply broadly and do not evaluate application target and device compliance during the sign-in decision.

D:

Azure Policy affects resource deployment or configuration compliance, not conditional user authentication to cloud apps.

Question 395

A company wants to protect administrators from accidentally approving malicious OAuth app requests that ask for extensive tenant permissions. Which identity governance setting matters?

  1. An Azure backup retention policy
  2. An NSG outbound denial for all traffic
  3. A VM scale set automatic repair policy
  4. Restrict user consent and use an administrator consent workflow

Explanation

Correct Answer

D:

Consent policies can limit user-granted permissions and require controlled review for high-impact application access requests.

Incorrect Answers

A:

Retention protects recoverable copies of workload data and does not limit OAuth consent grants.

B:

Network filters might block endpoints broadly but cannot implement granular Microsoft Entra consent policy decisions.

C:

Automatic repair replaces unhealthy compute instances but cannot evaluate third-party app permission requests.

Question 396

An app calls a downstream API on behalf of a signed-in user and must preserve that user's delegated authority rather than switch to an app-only permission. Which pattern fits?

  1. OAuth 2.0 on-behalf-of flow
  2. Azure RBAC Owner to the hosting app
  3. Client credentials flow only
  4. A public endpoint health probe

Explanation

Correct Answer

A:

The OBO flow exchanges a user-context token for a downstream delegated token while respecting the target API's scopes and consent requirements.

Incorrect Answers

B:

An Azure control-plane role does not replace OAuth token exchange between protected APIs.

C:

Client credentials obtains an app-only token with no user delegation, so it cannot preserve individual user authorization context.

D:

Health probes assess service availability and cannot obtain delegated API tokens with a user's claims.

Question 397

A company wants to prevent users who are not in a required directory group from requesting delegated permissions to a production application. Which application identity design fits?

  1. Use a VM network security group to filter sign-ins
  2. Enable storage blob versioning
  3. Give every user access to the app registration's client secret
  4. App-role or group-based access assignments

Explanation

Correct Answer

D:

Requiring assignment and enforcing roles or groups allows an organization to control which identities obtain intended application access.

Incorrect Answers

A:

Network packet filtering cannot independently evaluate users' directory group membership in an OAuth sign-in.

B:

Versioning preserves object history but cannot change which user is authorized to sign in to an app.

C:

A shared client secret authenticates the application itself, not individual employees with group eligibility restrictions.

Question 398

An Azure Storage account will use a customer-managed encryption key in Azure Key Vault. The security review finds that a privileged operator could permanently purge a recently deleted key, putting encrypted data at risk. What prerequisite key-management protection must be in place?

  1. Add an Azure DNS alias for the storage account's public endpoint
  2. Set only a soft-delete retention period, while still allowing immediate permanent purge by an authorized user
  3. Enable Key Vault soft delete and purge protection, then tightly scope key-management permissions
  4. Apply an Azure Resource Manager ReadOnly lock only to a separate monitoring workspace

Explanation

Correct Answer

C:

Azure Storage customer-managed keys in Key Vault require soft delete and purge protection, limiting premature permanent key destruction. Restrict roles and rehearse key recovery and rotation so an ordinary administrator cannot jeopardize access to encrypted data.

Incorrect Answers

A:

DNS aliases affect endpoint discovery and have no effect on the availability of the cryptographic key encrypting storage data. They don't reduce the risk of permanent key loss.

B:

Soft delete alone preserves recoverable deleted objects unless someone with sufficient purge permission permanently removes them. For supported storage customer-managed-key integration, purge protection is required to enforce the retention boundary.

D:

A lock on an unrelated monitoring workspace cannot enforce deletion retention in Key Vault or protect storage encryption keys. The protection must be applied in the actual key-management service.

Question 399

A resource operator must start and stop a specific VM but must not modify sibling VMs or grant permissions. How should access be scoped?

  1. Assign Contributor at the subscription
  2. Grant Reader to the VM's resource group
  3. Assign User Access Administrator over the resource group
  4. Assign an appropriately narrow custom or built-in role at the VM scope

Explanation

Correct Answer

D:

Least-privilege RBAC can allow required VM operations without inheriting permissions over neighboring resources or authorization delegation.

Incorrect Answers

A:

Subscription-wide Contributor includes modification rights over many unrelated resources and violates the scope requirement.

B:

Reader can observe configuration and state but does not provide the write actions needed to start or stop the VM.

C:

Access administration is about delegation of RBAC rights, not a narrowly limited start-and-stop duty.

Question 400

A joint project brings employees from two unrelated Microsoft Entra tenants into one application. Each participant should use their home organization's identity, while the resource owner applies its own Conditional Access and periodically reviews guest privileges. What identity approach should be designed?

  1. Create permanent shared local administrator accounts on the application servers
  2. Copy all partner passwords into the resource tenant and synchronize them manually
  3. Publish the application without authentication and rely only on its public URL
  4. Use Microsoft Entra B2B collaboration identities with appropriate cross-tenant access settings and access reviews

Explanation

Correct Answer

D:

Entra B2B collaboration supports access by users from partner organizations while preserving their home-tenant credentials. The resource tenant can apply cross-tenant access controls, Conditional Access and periodic guest access reviews based on licensing and collaboration policy.

Incorrect Answers

A:

Shared local accounts reduce accountability and make selective revocation and per-person security controls difficult. They do not preserve the partner's home-tenant authentication identity.

B:

Password duplication adds unnecessary credential risk and breaks the desired home-organization authentication model. Cross-tenant collaboration can use established identity federation mechanisms instead.

C:

A public URL is not a substitute for authenticated tenant-aware access and least privilege. It would expose the project to unauthorized users without meeting resource-tenant governance requirements.

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