Microsoft AZ-104 Practice Test 17
Question 160
A container cannot download an image while its managed identity can authenticate to Azure. What should be checked?
- Reduce requested resources or request an eligible regional ACI quota increase.
- Create another empty registry while leaving the container identity without pull permission on its image source.
- Inspect the build principal's ACR write permissions and repository scope.
- Verify the identity has registry pull rights at the appropriate ACR scope.
Explanation
Correct Answer
D:Authentication proves the identity, not its permission to read image manifests and layers. Registry authorization is a separate gate. This matters here because a container cannot download an image while its managed identity can authenticate to Azure.
Incorrect Answers
A:Local Docker execution does not test Azure subscription quota. Deployment requires Azure-side capacity authorization.
B:A new registry does not authorize the existing image pull. Confirm the runtime identity, registry scope, image reference and pull-capable role assignment.
C:Read-only registry credentials cannot publish new manifests. Scope and role assignment must allow writes.
Question 161
A development group wants managed Python web hosting without maintaining guest VM operating systems. Which Azure service best fits?
- Enable the App Service managed identity and grant the needed Key Vault data role.
- Configure App Service scheduled backup without creating a Python-capable web app or its hosting plan.
- Configure metric-based App Service plan autoscale rules with safe minimum and maximum capacity.
- Create an Azure App Service web app using a supported Python runtime.
Explanation
Correct Answer
D:App Service manages supported application hosting and scaling features. A VM-hosted web server adds guest patching responsibilities.
Incorrect Answers
A:Managed identities supply Entra tokens to supported services without embedded long-lived application secrets.
B:A backup is a recovery operation for an existing application, not the runtime hosting service itself. Provision a supported App Service web app and Python runtime first.
C:Autoscale evaluates supported metrics and can adjust worker count under configured thresholds. It requires a plan that supports autoscale.
Question 162
A web app fails deployment because its required runtime is unavailable on the chosen platform. What should be checked?
- Verify App Service OS, language stack and runtime version compatibility.
- Enable a deployment slot without checking whether the App Service OS supports the required language runtime.
- Use an App Service Key Vault reference with managed identity authorization.
- Increase the App Service minimum inbound TLS version to the approved level.
Explanation
Correct Answer
A:App Service offerings vary by operating system and runtime. A build that runs locally may need a compatible hosting configuration.
Incorrect Answers
B:Slot availability doesn't make an unsupported application language or version available. Resolve OS and runtime stack compatibility rather than adding a staging environment.
C:Key Vault references can resolve secrets into app configuration under supported identity and vault settings, avoiding plaintext storage.
D:HTTPS Only requires encrypted transport but does not, by itself, set the minimum accepted TLS protocol version.
Question 163
An App Service workload needs a defined compute tier and region before the application is created. Which resource supplies it?
- Review access restriction rules for the expected upstream service address or service tag configuration.
- Scale out the App Service plan to the desired supported instance count.
- Create an App Service plan in the desired region and supported pricing tier.
- Scale up the App Service plan to a larger supported compute tier or instance.
Explanation
Correct Answer
C:The plan determines worker capacity, scaling limits and available features for hosted apps. A web app does not independently allocate a VM per site.
Incorrect Answers
A:A reverse proxy changes the observed source path. The app's inbound allow rules must reflect the trusted upstream in a supported manner.
B:Horizontal scaling increases the number of workers serving the app. It is distinct from increasing each instance's size.
D:Vertical scaling increases per-worker resources, unlike adding more workers. Plan limits and compatibility must be reviewed.
Question 164
A web app cannot create a deployment slot at its current hosting tier. What should the operator verify?
- Create an inbound App Service private endpoint and expect that network setting to unlock staging slots in the unchanged Free plan.
- Review which App Service plan tiers support the required slot feature.
- Attempt to create a staging slot on the same unsupported App Service tier without changing the plan.
- Verify App Service OS, language stack and runtime version compatibility.
Explanation
Correct Answer
B:Features such as deployment slots depend on the hosting plan's pricing tier. An app setting cannot enable a feature unsupported by the plan.
Incorrect Answers
A:A private endpoint governs client connectivity and does not change which App Service features the pricing tier provides. Deployment slots require a hosting plan that supports them.
C:A staging-slot creation operation still requires an eligible App Service plan. Verify slot availability in the plan and upgrade or change the tier before attempting the deployment.
D:App Service offerings vary by operating system and runtime. A build that runs locally may need a compatible hosting configuration. This matters here because a web app cannot create a deployment slot at its current hosting tier.
Question 165
A hosted application needs more CPU and memory per instance but should retain the same number of workers. Which scaling direction applies?
- Scale out the App Service plan to the desired supported instance count.
- Plan database-specific backup and restore consistency in addition to App Service backup.
- Scale up the App Service plan to a larger supported compute tier or instance.
- Inspect deployment slot setting flags for all environment-specific secrets and connection strings.
Explanation
Correct Answer
C:Vertical scaling increases per-worker resources, unlike adding more workers. Plan limits and compatibility must be reviewed. This matters here because a hosted application needs more CPU and memory per instance but should retain the same number of workers. Which….
Incorrect Answers
A:Horizontal scaling increases the number of workers serving the app. This is distinct from increasing each instance's size.
B:App Service backup does not automatically guarantee consistent recovery of every external database. Dependencies need coordinated RPO and RTO.
D:Sticky configuration distinguishes production and staging dependencies. Swapping nonsticky connections can produce incorrect environment access.
Question 166
A developer increases instance count but a single-threaded request still suffers from insufficient per-worker memory. What should be evaluated?
- Use an App Service Key Vault reference with managed identity authorization.
- Increase the autoscale rule target instance count but leave the size and memory capacity of each worker unchanged.
- Check scale-up resources and application memory usage instead of relying only on scale-out.
- Scale out the App Service plan to the desired supported instance count.
Explanation
Correct Answer
C:Adding workers can improve aggregate throughput but does not automatically increase memory available to one worker process.
Incorrect Answers
A:Key Vault references can resolve secrets into app configuration under supported identity and vault settings, avoiding plaintext storage. This matters here because a developer increases instance count but a single-threaded request still suffers from insufficient per-worker memory.
B:Autoscale can add workers to distribute concurrent traffic, but a single memory-bound request still runs within the limits of one worker. Check memory profiling and scale up the App Service plan when appropriate.
D:Horizontal scaling increases the number of workers serving the app. It is distinct from increasing each instance's size. This matters here because a developer increases instance count but a single-threaded request still suffers from insufficient per-worker memory.
Question 167
A project needs two nonoverlapping private IPv4 ranges for two Azure VNets that will later be peered. What addresses should be selected?
- Allocate separate nonoverlapping RFC1918 CIDR ranges for the two virtual networks.
- Review global peering data transfer charges and latency because regions remain separate.
- Add a second IP configuration to a VM NIC while leaving both VNet address spaces at overlapping 10.2.0.0/16 ranges.
- Give the two VNets distinct subnet names but keep exactly the same overlapping VNet address prefix.
Explanation
Correct Answer
A:VNet peering normally requires nonoverlapping address spaces for ordinary connectivity. Overlapping ranges create ambiguous routing.
Incorrect Answers
B:Global peering joins network paths, not physical locations. Cross-region transfer and latency considerations still apply.
C:A NIC can hold additional private addresses only within its applicable subnet, but that does not eliminate overlapping VNet address ranges. Peering requires independently routable network address spaces.
D:Peering checks VNet CIDR ranges, not just subnet names. Keeping identical parent address spaces leaves routing ambiguous despite labels and distinct subnets.
Question 168
A VNet peering request fails because both networks use 10.20.0.0/16. What should be changed?
- Re-enable gateway route propagation where on-premises connectivity is required.
- Renumber one network or use a supported translation architecture outside ordinary VNet peering.
- Resize one subnet while leaving the two peered VNet address spaces identically set to 10.20.0.0/16.
- Renumber an overlapping VNet address space or redesign addressing before peering.
Explanation
Correct Answer
D:Identical VNet prefixes prevent the intended unique routing. Peering does not translate conflicting subnets automatically.
Incorrect Answers
A:Suppressing propagated gateway routes can remove learned destinations from effective tables. Custom routing must replace them explicitly if suppression is intentional.
B:Ordinary Azure VNet peering does not resolve overlapping address spaces by itself. Distinct reachable prefixes are needed.
C:Peering rejects overlapping VNet address spaces regardless of individual subnet size. At least one parent VNet range must be changed to a nonoverlapping plan.
Question 169
A service needs dedicated subnet IP ranges for web and database tiers inside one VNet. Which Azure objects should be configured?
- Review peering address-space synchronization and effective route propagation.
- Create separate subnets with nonoverlapping CIDR prefixes within the VNet address space.
- Renumber the whole VNet merely to create separate web-tier and database-tier subnets within existing free address space.
- Remove overlapping subnet definitions and choose disjoint CIDR blocks.
Explanation
Correct Answer
B:Subnets partition the network address space for distinct service tiers and policy attachments. Each subnet must fit within the VNet range.
Incorrect Answers
A:Peering connections may need synchronization after address changes. A new address prefix must be represented in the reachable topology.
C:Separate subnets can be carved from an appropriate free VNet range. Global renumbering is unnecessary and does not define the tier subnets or their access policies.
D:The /25 occupies part of the /24 range. Azure subnet definitions cannot overlap even if they have different names.
Question 170
A subnet creation fails because its prefix extends outside the parent VNet CIDR. What must be corrected?
- Renumber a distant peering partner instead of correcting a new subnet prefix that falls outside this VNet's CIDR.
- Choose a subnet CIDR fully contained in the parent VNet address space.
- Rename or create the dedicated subnet with the exact AzureBastionSubnet name and supported prefix.
- Set the NIC IP configuration's private IP allocation method to Static with an available subnet address.
Explanation
Correct Answer
B:Subnet prefixes must be subsets of a VNet's configured address ranges. An adjacent private prefix outside the VNet is invalid.
Incorrect Answers
A:A subnet must be contained within its own VNet address blocks. Modifying another network's addresses doesn't repair an invalid local subnet definition.
C:Azure Bastion discovers its required subnet by specific naming. An arbitrary subnet alias cannot replace it.
D:Static private IP allocation makes the address stable across supported VM lifecycle events. DNS records must agree with the NIC configuration.