Manage, Monitor, and Secure an Azure AI Foundry Service
This section of the Microsoft AI-102: Designing and Implementing a Microsoft Azure AI Solution exam covers monitoring, securing, and managing Azure AI Foundry services. Below are study notes for each sub-topic, with links to Microsoft documentation, exam tips, and key facts
Monitor an Azure AI Resource
๐ Docs: Enable diagnostic logging for Azure AI services
Overview
- Monitoring ensures service reliability, performance, and compliance
- Tools include:
- Azure Monitor for metrics and logging
- Application Insights for telemetry
- Diagnostic settings for logs and auditing
Key Points
- Common metrics: requests count, latency, errors, token usage
- Alerts can be configured for quota or anomaly detection
- Logs can be exported to Log Analytics, Event Hub, or Storage
Exam Tip
Know which metrics are monitored: requests, latency, token consumption
Manage Costs for Azure AI Foundry Services
๐ Docs: Plan and manage costs for Azure AI Foundry hubs
Overview
- Costs depend on:
- Model type and size (e.g., GPT-4 vs GPT-3.5)
- Number of tokens processed
- Region and resource configuration
- Use Azure Cost Management + Billing to track usage
Key Points
- Set budgets and alerts to avoid overspending
- Use reserved capacity where available
- Optimize by:
- Choosing smaller models for simpler tasks
- Reducing context window size
- Using batch endpoints for large jobs
Best Practices
Regularly review usage reports and align with expected workloads
Manage and Protect Account Keys
๐ Docs: Authenticate requests to Azure AI services
Overview
- Each AI service resource has two keys and an endpoint
- Keys are used for API authentication
- Can be regenerated at any time
Key Points
- Store keys securely in Azure Key Vault
- Use managed identities instead of distributing keys where possible
- Rotate keys regularly for security compliance
Exam Tip
Questions often test on key rotation and storage in Key Vault
Manage Authentication for an Azure AI Foundry Service Resource
๐ Docs: Authenticate requests to Azure AI services
Overview
- Authentication methods:
- API keys
- Azure Active Directory (Azure AD) tokens
- Azure AD is preferred for enterprise and multi-user scenarios
Key Points
- RBAC can control access at resource or subscription level
- Use least privilege principle
- Keys should be fallback, not the primary method
Use Case
- Enterprise integration with RBAC โ Azure AD
- Quick prototyping or testing โ API keys
Quickโfire revision sheet
- ๐ Monitor with Azure Monitor, App Insights, Diagnostic logs
- ๐ Costs depend on model type, tokens, and resource configuration
- ๐ Store keys in Key Vault, rotate regularly
- ๐ Use Azure AD authentication + RBAC for enterprise scenarios