AZ-204 Research & Evidence-Based Practice 5 — Questions and Answers
Question 1: Which Application Insights feature periodically sends HTTP requests to your web app from multiple global locations and alerts you on failures or latency spikes?
- Live Metrics Stream
- Availability tests (Correct answer)
- Smart detection
- Continuous Export
Correct answer: Availability tests
Availability tests (URL ping and multi-step web tests) probe your app from worldwide Azure PoPs and trigger alerts when availability drops.
Question 2: Which Application Insights SDK method should you call to record a custom named event representing a user action or business milestone?
- TrackTrace()
- TrackException()
- TrackEvent() (Correct answer)
- TrackMetric()
Correct answer: TrackEvent()
TrackEvent() emits a named event telemetry item that you can query and count in the portal to measure specific user behaviors or business KPIs.
Question 3: What is the primary purpose of geo-replication in Azure Container Registry?
- To back up container images to a secondary storage account
- To distribute registry replicas to multiple regions for faster image pulls (Correct answer)
- To scan images for known vulnerabilities automatically
- To enforce content trust and image signing across regions
Correct answer: To distribute registry replicas to multiple regions for faster image pulls
Geo-replication creates registry replicas in chosen Azure regions so that image pulls are served from the nearest replica, reducing latency.
Question 4: Which Azure Container Instances restart policy should be selected for a one-time batch processing job that should not restart after completion?
- Always
- OnFailure
- Never (Correct answer)
- OnSuccess
Correct answer: Never
The Never restart policy ensures the container exits permanently after it finishes, which is correct for batch jobs that run once.
Question 5: What is the default data retention period for telemetry stored in an Application Insights workspace?
- 30 days
- 60 days
- 90 days (Correct answer)
- 180 days
Correct answer: 90 days
Application Insights retains telemetry for 90 days by default; retention can be extended up to 730 days in the Log Analytics workspace settings.
Question 6: In Azure Kubernetes Service (AKS), which Kubernetes Service type provisions an Azure Load Balancer with a public IP to expose pods to external internet traffic?
- ClusterIP
- NodePort
- LoadBalancer (Correct answer)
- Ingress
Correct answer: LoadBalancer
Setting type: LoadBalancer in a Service manifest causes AKS to provision an Azure public Load Balancer and assign it an external IP.
Question 7: Which Azure Monitor feature provides a query workspace where you write KQL queries against log data collected from Application Insights, VMs, and other Azure resources?
- Metrics Explorer
- Log Analytics (Correct answer)
- Activity Log
- Azure Alerts
Correct answer: Log Analytics
Log Analytics is the query interface for Azure Monitor Logs, accepting KQL queries across data ingested from any connected resource.
Which Application Insights feature periodically sends HTTP requests to your web app from multiple global locations and alerts you on failures or latency spikes?