Amazon
Cloud 2 questions
- #1Audit and Enforce Least-Privilege IAM Permissions
A security audit has flagged the IAM user
app-deployerfor havingAdministratorAccesspolicy with far more permissions than needed. The user only needs access to:- S3: Read (GetObject) and Add objects (PutObject), list buckets (ListBucket).
- CloudWatch Logs: Create log groups (CreateLogGroup), log streams (CreateLogStream), and put log events (PutLogEvents).
- #2Build a Serverless API with Lambda, API Gateway, and DynamoDB
An internal serverless API is needed for order management. Orders must be stored in a DynamoDB table with all access routed through a Lambda function — never direct database access. The Lambda execution role should follow least-privilege principles, limiting permissions to only what's necessary.
Linux 1 question
- #3Handling Large Log Archives
During an incident investigation, you pulled a massive log export from
/var/log/app/access.logthat's several gigabytes in size. Your analysis tools and editors can't handle the entire file at once.