The finance team asks for monthly cost by team. How do you structure IAM and tagging to make that possible?
IntermediateScenarioIAM, Organizations and Multi-Account
Answer
Situation read → Attribution needs enforcement at creation time, not a spreadsheet after the fact.
What I'd do →
- Define tag keys (
team,env,cost-center) and activate them as cost allocation tags in Billing - Enforce with an SCP or tag policy and IAM condition
aws:RequestTag/teamon create actions - Use an AWS Config rule
required-tagsto catch drift - Use account-per-team where possible, since account boundary is the cleanest chargeback
Why → Untagged resources become unallocatable spend that nobody owns.
Interview tip → Mention that some services (data transfer, shared EKS) need split allocation tooling.
More on IAM, Organizations and Multi-Account
A developer needs read-only access to one S3 bucket from their laptop. How do you grant it without creating long-lived access keys?BeginnerAn EC2 application needs to write to DynamoDB. Where do the credentials come from?BeginnerSecurity wants to know who deleted a production S3 bucket yesterday. How do you find out?BeginnerYou must stop anyone in a member account from disabling CloudTrail, even account admins. What do you use?BeginnerA cross-account role assumption fails with AccessDenied even though the target role trusts the source account. What do you check?IntermediateDesign access for a CI pipeline in GitHub Actions to deploy to AWS without storing AWS keys in GitHub.Intermediate