Question 200
An internet-facing app must block SQL injection and cross-site scripting patterns before requests reach its servers. Which protection is most directly relevant?
- Azure NAT Gateway outbound rules
- A private DNS zone
- Web application firewall on Application Gateway or Front Door
- An NSG rule matching TCP port 443 only
Explanation
Correct Answer
C:A WAF inspects HTTP(S) requests against managed and custom rules to mitigate common application-layer attacks.
Incorrect Answers
A:Outbound source translation does not inspect inbound website requests for application attacks.
B:Name resolution does not detect malicious HTTP request content.
D:An NSG can allow or deny the connection but cannot inspect request payloads for injection patterns.
Question 201
An architect must restore selected files from yesterday's Azure VM backup without rebuilding the entire machine. Which ability should be included?
- Run Azure Site Recovery test failover for the whole app
- Restore every VM in the resource group
- Switch all blobs to hot tier
- Azure VM backup file-level recovery where supported
Explanation
Correct Answer
D:The backup service can expose eligible recovery-point volumes for browsing and copying files, avoiding a full machine restore for a small accidental deletion.
Incorrect Answers
A:A DR test may validate regional recovery but is not the simplest historical file recovery operation.
B:Restoring unrelated machines increases disruption and is unnecessary when the desired data is a limited set of files.
C:Object tier changes do not locate individual files in a protected VM's recovery point.
Question 202
A platform uses several APIs and wants one externally published host with internal path-based routing, common WAF rules, and TLS handling. Which architecture fits?
- Azure NAT Gateway
- Azure Load Balancer only
- Azure Traffic Manager alone
- Application Gateway with appropriate URL routing and WAF
Explanation
Correct Answer
D:A regional Layer-7 gateway can terminate HTTPS, inspect requests and route different paths to distinct backend pools.
Incorrect Answers
A:Outbound NAT does not accept and route inbound web requests to application APIs.
B:A Layer-4 balancer sees TCP or UDP endpoints rather than URL paths and does not apply WAF policies.
C:DNS routing selects endpoints at host resolution time and cannot inspect a request path for backend selection.
Question 203
A company must recover an Azure VM from accidental operating-system corruption to a point from the previous evening. Which protection service should be designed?
- Azure Backup for Azure virtual machines
- An Azure Load Balancer rule
- Azure Site Recovery alone
- An availability set only
Explanation
Correct Answer
A:Azure Backup creates retained VM recovery points that can restore a supported VM or disks to an earlier protected state independently of the live OS.
Incorrect Answers
B:Load balancing directs traffic to healthy endpoints and cannot reconstruct yesterday's VM state.
C:Site Recovery replicates running workload state for disaster recovery and may also propagate logical corruption; it is not the historical backup mechanism requested.
D:An availability set reduces simultaneous infrastructure failures but does not keep historical copies of a VM's disks.
Question 204
A supported Generation 2 Azure VM hosts a regulated application. The security baseline requires verified boot components and a virtual TPM to measure the boot chain; full memory encryption and dedicated physical hosts are not requested. Which VM security capability should the architect enable?
- Azure Disk Encryption alone, without boot-time integrity controls
- Azure Trusted Launch with Secure Boot and virtual TPM on the supported VM
- Azure Dedicated Host placement without configuring guest boot integrity
- Azure Backup protected-instance settings as the sole boot attestation mechanism
Explanation
Correct Answer
B:Trusted Launch for supported Gen2 Azure VMs combines Secure Boot and vTPM, supporting a verified boot chain and measured boot integrity. Validate VM image and size compatibility and configure the associated monitoring and attestation as appropriate.
Incorrect Answers
A:Disk encryption can help protect data at rest, but does not by itself verify the signatures of boot components or give the VM a measured virtual TPM. These are distinct boot-integrity requirements.
C:Dedicated Host addresses physical host placement and isolation, not the VM Secure Boot and vTPM policy. It adds host-management requirements while leaving the specified boot trust controls unresolved.
D:Azure Backup protects recovery points for supported workloads, but a restore policy does not verify the current boot loader or expose measured-boot evidence. Backup and boot integrity are separate security layers.
Question 205
The architecture needs protection from volumetric attacks against public IP services at the network layer. What Azure mitigation should it evaluate?
- Azure DDoS Protection for eligible virtual network resources
- A WAF rule as the only defense against all volumetric attacks
- A Key Vault secret rotation schedule
- An Azure Storage lifecycle policy
Explanation
Correct Answer
A:Network-layer DDoS mitigation can provide enhanced protection for public IP resources under supported plans, complementing application-layer controls.
Incorrect Answers
B:WAF examines web requests but does not replace dedicated L3/L4 volumetric DDoS protection for all protocols.
C:Rotating credentials helps secret hygiene but does not absorb volumetric traffic floods.
D:Object retention settings do not mitigate large malicious network traffic volumes targeting public IP services.
Question 206
A bank must prevent new resources from being deployed outside approved regions across hundreds of resource groups. Which control best enforces this?
- An Azure Policy allowed-locations rule with deny effect
- A dashboard showing deployed regions
- An Azure Monitor action group
- A budget alert per region
Explanation
Correct Answer
A:A policy assignment can evaluate regional placement at deployment and block noncompliant resources before creation across the chosen scope.
Incorrect Answers
B:Dashboards report observed state and do not block a nonapproved region during resource deployment.
C:Action groups route alerts and actions after a signal rather than authorizing regional deployment choices.
D:Budget alerts notify about cost but cannot enforce allowed deployment locations in the control plane.
Question 207
A transaction-processing system must emit an event only after a corresponding database commit, avoiding missing events when the process crashes between commit and publish. Which pattern fits?
- Commit the database then send an untracked message once
- Disable database logging to shorten the gap
- Transactional outbox and reliable dispatcher
- Publish the event first and assume the later database commit succeeds
Explanation
Correct Answer
C:The app writes state and an outbound event record in one transaction, then a dispatcher publishes it; retries require idempotent consumers.
Incorrect Answers
A:A crash between commit and publish can permanently lose the event unless an outbox or reliable change capture is used.
B:Removing logs undermines recovery and does not close the atomicity gap between state commit and event publication.
D:A failed commit can leave downstream systems reacting to an event for a transaction that never existed.
Question 208
An enterprise wants distinct teams to query the same log data while central operations retains control of collection and retention. Which approach best supports the design?
- Centralize ingestion and delegate query access through Azure RBAC
- Duplicate every VM solely to give each team a monitoring view
- Disable monitoring on shared subscriptions
- Grant all teams write access to diagnostic settings
Explanation
Correct Answer
A:A shared Log Analytics workspace can serve multiple teams while scoped permissions and table-level controls are evaluated for isolation needs.
Incorrect Answers
B:Extra compute does not grant a second view of the same telemetry and would increase both infrastructure and maintenance costs.
C:Suppressing collection prevents teams from receiving the data, rather than creating safe, separated query access.
D:Permission to modify collection is unnecessary for querying logs and increases the risk of accidental telemetry loss.
Question 209
A server assessment reveals an old operating system that is unsupported by the intended Azure migration mechanism. What should the architect do?
- Verify target support and plan upgrade path
- Ignore support status because disk size is small
- Publish the VM as a public endpoint immediately
- Change the subscription's billing currency
Explanation
Correct Answer
A:Tool and platform support constraints can require in-place upgrades, app migration, or rehosting through a supported intermediary instead of an assumed direct lift.
Incorrect Answers
B:Compatibility is not guaranteed by workload size and may block replication or boot after transfer.
C:Public exposure does not solve unsupported OS or migration-agent requirements and increases risk.
D:Billing attributes do not make an obsolete guest operating system supported by the migration service.
Question 210
A regional application runs several VMs without availability-zone support and needs resilience to hardware failures and maintenance. Which VM grouping construct is relevant?
- A standalone private DNS zone
- A single unmanaged VM
- An Azure availability set
- An Azure storage container
Explanation
Correct Answer
C:Availability sets distribute eligible VMs across fault and update domains to reduce simultaneous impact from host faults and platform maintenance.
Incorrect Answers
A:Private DNS enables name resolution but does not spread VMs across host failure domains.
B:One VM remains a single point of compute failure and receives no fault-domain diversification.
D:Object containers group blobs and cannot determine VM host fault and update domain placement.