Question 260
A serverless app needs to access Azure Storage and the architect wants to stop using shared account keys. Which authentication choice should be prioritized?
- Embed the storage account key in a deployment template
- Managed identity with Storage data-plane RBAC
- Use an unauthenticated public container
- Grant Azure Reader only
Explanation
Correct Answer
B:A managed workload identity receives scoped storage data-plane authorization, enabling credentialless access when the SDK and service support Entra tokens.
Incorrect Answers
A:Template-supplied keys are still shared secrets and expose broad access if leaked, contrary to the requirement.
C:Anonymous exposure may allow reads but cannot provide authenticated least-privilege writes by a workload.
D:The generic Reader role reads resource metadata but does not automatically grant Blob object access through the data plane.
Question 261
An online event-processing service needs a persistent background worker that reacts to a queue but is expected to run for long processing periods. Which principle should drive compute selection?
- Use a resource DNS alias as the queue consumer
- Choose the cheapest VM disk regardless of I/O needs
- Assume every Functions plan permits unlimited execution time
- Queue-based compute within execution limits
Explanation
Correct Answer
D:Functions, Container Apps jobs, or dedicated workers can be compared against processing duration, scaling, retries, and workload isolation requirements.
Incorrect Answers
A:DNS provides names and cannot execute or retry a background job.
B:Disk price alone does not decide suitable execution hosting or background job timeout behavior.
C:Serverless plans have distinct execution and scale limits that must be evaluated before a long job is deployed.
Question 262
An application depends on another server using undocumented TCP calls, and the owner assumes the app is standalone. What pre-migration activity matters?
- Increase VM CPU sizing before discovery
- Dependency mapping and traffic discovery during assessment
- Migrate the VM alone immediately
- Disable network logs to simplify assessment
Explanation
Correct Answer
B:Observed connections and ownership interviews reveal hidden dependencies that must move together or remain reachable during staged migration.
Incorrect Answers
A:More CPU does not reveal which remote systems or ports the application requires.
C:Ignoring unseen dependencies can leave the application unable to reach authentication, data, or licensing services after cutover.
D:Removing traffic visibility makes undocumented dependencies harder to identify and test.
Question 263
A customer-facing API should accept an authenticated JWT only when it was issued for that API and grants a required scope. Which service-layer check matters?
- JWT claims, signature, and token validation
- Accept tokens for any Microsoft resource
- Grant Azure Owner to every caller
- Authorize solely by matching the user's IP subnet
Explanation
Correct Answer
A:Signed tokens must be intended for the target API and carry adequate delegated scopes or app roles; a valid signature alone is not authorization.
Incorrect Answers
B:A token issued to a different audience is not valid authority to call this API, even if Microsoft signed it.
C:Resource administration permissions do not act as a safe business API authorization design.
D:Network location cannot replace cryptographically validated token claims and application permissions.
Question 264
A database replica is geographically redundant but its only client endpoint is hard-coded in hundreds of deployed containers. What availability issue must be solved?
- Turn off container restart policies
- Add a storage archive tier to the primary region
- Create more local container files with the primary address
- Endpoint abstraction and failover discovery
Explanation
Correct Answer
D:Stable logical endpoints or centralized configuration make changing the active database destination feasible without rebuilding every container image.
Incorrect Answers
A:Disabling recovery actions does not help clients locate the new database primary.
B:Archive cost controls have no effect on database endpoint selection during a regional failover.
C:Duplicating hard-coded primary endpoints amplifies the change required after failover.
Question 265
An architect wants to determine who deleted a resource group yesterday, including the operation result and caller, without enabling application code logging. Which source should be examined?
- Application Insights traces
- Azure Activity Log
- Azure DNS query logs alone
- Azure Monitor guest performance counters
Explanation
Correct Answer
B:The subscription Activity Log captures Azure Resource Manager control-plane operations such as resource-group deletion, including caller and status fields.
Incorrect Answers
A:Application telemetry reports instrumented app execution and does not inherently capture administrative resource-group deletes.
C:DNS-related telemetry can explain name resolution but does not constitute an audit record of resource management operations.
D:Guest counters reflect operating-system performance, not who issued an Azure Resource Manager delete request.
Question 266
Two peered spoke VNets cannot communicate through the hub automatically. Which Azure networking principle explains the behavior?
- VNet peering is not transitive by default
- Azure SQL server name resolution creates transitive routes
- Storage account replica count controls spoke reachability
- Every peered VNet automatically becomes a complete transit router
Explanation
Correct Answer
A:A hub-and-spoke design requires explicit routing through supported transit components or direct peering; peering one hub does not make all spokes a routed mesh.
Incorrect Answers
B:DNS resolution cannot add arbitrary VNet routing between spoke networks.
C:Storage redundancy is unrelated to IP forwarding through virtual network peerings.
D:This assumption ignores peering's nontransitive behavior and the need for forwarding rules or a hub transit service.
Question 267
A team needs to retain only the latest 30 days of short-lived telemetry documents automatically. Which Cosmos DB capability fits?
- A read-only role assignment
- Azure Storage blob versioning
- Geo-replication of the container
- Time to live configured on the container or items
Explanation
Correct Answer
D:TTL can automatically expire documents based on their timestamps and configuration, reducing application-owned cleanup jobs.
Incorrect Answers
A:Read authorization limits access but does not delete documents at the end of their retention window.
B:Blob versioning preserves object history in storage accounts rather than expiring Cosmos DB documents.
C:Replication copies data across regions for availability, but does not enforce document expiration after 30 days.
Question 268
Finance wants to evaluate how much each workload spends even when several teams share a subscription. Which two practices help? Choose TWO.
- Assign Owner to all development users
- Use DNS names as the exclusive billing identifier
- Turn off resource usage reporting
- Consistent workload and owner tags on billable resources
- Cost Management grouping and allocation reports
Explanation
Correct Answers
D:Tags can provide workload attribution dimensions for cost analysis where supported, including services deployed in shared subscriptions.
E:Cost analysis can group eligible consumption using tags and scopes, while shared costs may need documented allocation rules.
Incorrect Answers
A:Broad RBAC permission does not provide financial attribution and creates unnecessary administrative risk.
B:DNS labels are not authoritative billing dimensions and omit numerous resource costs.
C:Disabling visibility would undermine the requested chargeback and showback analysis.
Question 269
A company needs to enforce mandatory tags on new resources and report historical missing tags separately. Which two capabilities are most relevant? Choose TWO.
- Azure Policy compliance reporting
- An Azure Front Door routing rule
- A subnet route table
- A tag-focused Azure Policy assignment
- An Azure Site Recovery replication policy
Explanation
Correct Answers
A:Compliance views provide a list of existing resources that do not meet tag requirements, supporting targeted remediation.
D:The assignment evaluates resources for required metadata and can be configured to deny, modify, or audit according to the enforcement plan.
Incorrect Answers
B:Global HTTP routing decisions do not add tags or report subscription governance compliance.
C:User-defined routes select network next hops and cannot enforce resource tag presence.
E:Replication settings provide disaster recovery for workloads rather than resource metadata governance.
Question 270
Several subscriptions must send Azure Activity Log events to a single analytics destination with consistent policy enforcement. Which combination is most suitable? Choose TWO.
- Subscription-level diagnostic settings for Activity Log
- Azure Policy to deploy or audit diagnostic settings
- Application Gateway WAF rules
- Guest OS scheduled tasks
- Azure DNS zones
Explanation
Correct Answers
A:Activity Log export settings operate at the appropriate subscription scope, allowing control-plane records to reach the chosen workspace.
B:Policy assignments can standardize and assess log export configurations across subscriptions instead of relying on manual updates.
Incorrect Answers
C:WAF rules inspect HTTP traffic and cannot configure subscription Activity Log collection or storage routing.
D:Guest tasks run inside VMs; they cannot provide authoritative subscription-level control-plane event export for all resources.
E:DNS zones host name records but do not centralize administrative operation telemetry.