A contractor needs temporary read access to logs for two weeks. How do you handle it?
BeginnerScenarioIdentity, Access and Governance
Answer
Situation read → External, time-boxed, read-only. Use B2B guest access with an expiring assignment.
What I'd do →
- Invite the contractor as a guest (or via an access package in Entra ID Governance with a 14-day expiry)
- Grant
Log Analytics Readeron the workspace, or better, a PIM-eligible assignment with an end date - Require MFA for guests through Conditional Access
- Set a calendar check and an access review on the guest's group
Why → Time-limited assignments clean themselves up; manual removal is what gets forgotten.
Interview tip → Name "access packages" if the company has Entra ID Governance.
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?BeginnerYou need to let an app team create their own role assignments for their identities, without giving them Owner.Advanced