Interview Prep/DevSecOps/Cloud IAM and Compliance

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 →

  1. Start from ViewOnlyAccess or a custom role that covers describe/list actions.
  2. Explicitly deny data-plane reads: s3:GetObject, dynamodb:GetItem, dynamodb:Scan, secretsmanager:GetSecretValue, kms:Decrypt.
  3. Give logs and metrics access through the observability platform with PII redaction.
  4. 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.

All DevSecOps questions Roadmap: Policy as code

More on Cloud IAM and Compliance