You have 40 subscriptions and need consistent diagnostic logging for Key Vaults everywhere. How?
IntermediateScenarioIdentity, Access and Governance
Answer
Situation read → DeployIfNotExists policy at management group scope plus remediation.
What I'd do →
- Assign the built-in initiative for resource logging to Log Analytics (category group
audit) at the top landing-zone management group, parameterised with the central workspace ID - Give the assignment a managed identity with
Log Analytics ContributorandMonitoring Contributor - Create remediation tasks for existing vaults
- Check compliance:
az policy state summarize --management-group lz
Why → New vaults in any subscription get logging automatically, and compliance is visible in one dashboard.
Interview tip → Call out the managed identity on the assignment; DINE fails silently without its roles.
More on Identity, Access and Governance
A new developer joins and needs to deploy to the dev resource group only. How do you give access?BeginnerYour GitHub Actions workflow uses a client secret stored in a repo secret. Security wants it gone. What do you do?BeginnerAuditors ask "who has Owner on production, and why?" How do you answer and fix it?IntermediateA VM application needs to read blobs from one container. How do you set up access without keys?IntermediateTeams keep creating resources in random regions and without tags. How do you stop it?BeginnerA contractor needs temporary read access to logs for two weeks. How do you handle it?Beginner