How do you give engineers read-only access to production for troubleshooting without exposing sensitive data?
AdvancedScenarioCloud IAM and Compliance
Answer
Situation read → AWS ReadOnlyAccess includes reading S3 objects, secrets metadata and DynamoDB items. That is data access, not just config visibility.
What I'd do →
- Start from
ViewOnlyAccessor a custom role that covers describe/list actions. - Explicitly deny data-plane reads:
s3:GetObject,dynamodb:GetItem,dynamodb:Scan,secretsmanager:GetSecretValue,kms:Decrypt. - Give logs and metrics access through the observability platform with PII redaction.
- Data access needs a JIT request with justification.
Why → Being able to see the infrastructure is different from being able to read customer data.
Interview tip → Contrasting ReadOnlyAccess with ViewOnlyAccess is a strong detail.
More on Cloud IAM and Compliance
You find an IAM policy with `"Action": "*", "Resource": "*"` attached to an application role. How do you right-size it?BeginnerYour company has 40 AWS accounts with no central controls. How do you set up preventive guardrails?IntermediateGuardDuty reports `UnauthorizedAccess:IAMUser/InstanceCredentialExfiltration.OutsideAWS`. What happened and what do you do?AdvancedYour company must pass SOC 2 Type II in six months. What does DevOps own, and how do you automate evidence?IntermediateA partner needs access to one S3 bucket in your account. How do you set up cross-account access safely?IntermediateSomeone logged in with the AWS root user last night. How do you react, and how should you have known?Beginner