SkillSprout
Chapter 8

Security for Developers

Write least-privilege IAM policies, use STS and roles, encrypt data with KMS and envelope encryption, manage secrets with Secrets Manager and Parameter Store, and implement Cognito authentication flows.

1IAM Policies, Roles and STS
Intermediate
6 min
2KMS and Envelope Encryption
Advanced
6 min
3Secrets Manager and Parameter Store
Intermediate
5 min
4Cognito Flows, Federation and Application Security
Advanced
6 min

Chapter quiz

Security for Developers · 10 questions

  1. 1.A Lambda function in account A must read an S3 bucket in account B. Which approach follows best practice?

  2. 2.An application must encrypt 200 MB files using a KMS key. What is the correct approach?

  3. 3.A team needs database credentials that rotate automatically every 30 days with no application downtime. Which service should store them?

  4. 4.A policy attached to a user allows s3:DeleteObject on a bucket, but the bucket policy contains an explicit Deny for s3:DeleteObject for that user. What is the result?

  5. 5.A single-page application must authenticate users against a Cognito user pool without embedding a client secret. Which OAuth flow should it use?

  6. 6.An S3 bucket encrypted with a customer managed KMS key in account A must be read by a role in account B. What is required?

  7. 7.A Lambda function needs a database password that rotates every 30 days automatically. Which service suits best?

  8. 8.Large files must be encrypted client-side before upload so AWS never sees plaintext. What is the standard technique?

  9. 9.A public HTTPS endpoint behind CloudFront and ALB needs managed certificates that renew automatically. Which service?

  10. 10.A multi-tenant SaaS on DynamoDB must ensure tenant A can never read tenant B items. What is a strong approach?

0 of 10 answered