ladderlore
请求新指南
  • 输入服务名称,例如 S3 或 IAM。

安全性与合规性

复习清单

02

安全性与合规性

这个领域的要点,几屏读完,考前再看一遍。

这份复习清单暂时以英文显示。

2.1了解 AWS 责任共担模式

  • AWS: security OF the cloud. Data centers, hardware, host OS, virtualization, global infrastructure.
  • Customer: security IN the cloud. Your data, IAM access, guest OS, applications, firewall, encryption.
  • Shared controls: patch management, configuration management, awareness and training.
  • Inherited control: physical and environmental. It comes fully from AWS.
  • Customer-specific control: zone security, keeping data inside the zones your app needs.
  • The more managed the service, the less is yours: EC2, then RDS, then Lambda, then S3 and DynamoDB.
  • On every service, your data and who can access it stay yours.

2.1了解 AWS 责任共担模式

  • RDS: AWS patches the database software and its OS. EC2: you patch the guest OS.
  • Outposts: the rack is in your building, so you secure the site. AWS maintains the hardware.
  • EC2

    你
    Guest OS and patches, software, security groups
    AWS
    Hardware, host OS, virtualization
  • RDS

    你
    Users, encryption setting, your data
    AWS
    Database software and OS patches, backups
  • Lambda

    你
    Code and its IAM permissions
    AWS
    Servers, OS, runtime
  • S3

    你
    Data, access settings, encryption choices
    AWS
    All the infrastructure and the platform
Who manages what on four services. Data and access stay yours on all of them.

1 / 2

  • EC2

    你
    Guest OS and patches, software, security groups
    AWS
    Hardware, host OS, virtualization
  • RDS

    你
    Users, encryption setting, your data
    AWS
    Database software and OS patches, backups

2 / 2

  • Lambda

    你
    Code and its IAM permissions
    AWS
    Servers, OS, runtime
  • S3

    你
    Data, access settings, encryption choices
    AWS
    All the infrastructure and the platform
Who manages what on four services. Data and access stay yours on all of them.

2.2Compliance and Artifact

  • Compliance is shared: AWS proves its infrastructure, you prove how you set up and use it.
  • Rules vary: global (ISO 27001, SOC), industry (PCI DSS, HIPAA), country (FedRAMP, C5, IRAP), privacy (GDPR).
  • AWS Artifact: free portal for SOC, PCI and ISO reports, and for agreements such as the BAA.
  • Artifact proves what AWS does. It does not prove that your own workload is compliant.
  • Not every service is in scope for every program. Check before you store regulated data.
  • Data must stay in one country → choose a Region in that country.
  • Check your own resources with AWS Config or AWS Security Hub.

2.2Encryption and keys

  • At rest = stored data (KMS, CloudHSM). In transit = data moving over a network (TLS, ACM, Site-to-Site VPN).
  • Customer decides what to encrypt. Direct Connect is not encrypted by default, Site-to-Site VPN is.
  • AWS KMS: managed keys, built into most services, every use logged in CloudTrail.
  • KMS key types: customer managed (you control), AWS managed (rotated every year), AWS owned (hidden).
  • AWS CloudHSM: single-tenant HSMs in your VPC. Only you control the keys. More work than KMS.
  • AWS Certificate Manager: issues and renews TLS certificates for HTTPS.
  • ACM public certificates are free for ELB, CloudFront and API Gateway. Imported ones are not renewed.

2.2Encryption and keys

  • Passwords and API keys belong in Secrets Manager, not in KMS.

2.2Threat detection

  • GuardDuty: finds threats in CloudTrail events, VPC Flow Logs and DNS logs. No agents needed.
  • GuardDuty detects but does not block. Use EventBridge to start a response.
  • Inspector: scans EC2, ECR images and Lambda for known vulnerabilities (CVEs) and open network paths.
  • Inspector scans again when software changes or a new CVE appears. Patching is still your job.
  • Macie: finds personal data, financial data and credentials in S3, and flags public or shared buckets.
  • Detective: root cause and scope of a finding, with up to a year of history.
  • Security Hub: collects findings from GuardDuty, Inspector and Macie, and ranks what to fix first.

2.2Threat detection

  • Security Hub CSPM: the original service. Best-practice checks (CIS, PCI DSS), using AWS Config.
  • Detect = GuardDuty. Investigate = Detective. See everything in one place = Security Hub.
  • GuardDuty

    Finds
    Active threats
    Exam clue
    Malicious IP, cryptomining, stolen credentials
  • Inspector

    Finds
    Software flaws and open ports
    Exam clue
    CVEs on EC2, ECR images, Lambda
  • Macie

    Finds
    Sensitive data in S3
    Exam clue
    PII, public buckets
  • Detective

    Finds
    Root cause of a finding
    Exam clue
    Investigate, behavior graph
  • Security Hub

    Finds
    All findings in one place
    Exam clue
    GuardDuty, Inspector, Macie together, CSPM checks
Five security services, and the question each one answers.

1 / 2

  • GuardDuty

    Finds
    Active threats
    Exam clue
    Malicious IP, cryptomining, stolen credentials
  • Inspector

    Finds
    Software flaws and open ports
    Exam clue
    CVEs on EC2, ECR images, Lambda
  • Macie

    Finds
    Sensitive data in S3
    Exam clue
    PII, public buckets

2 / 2

  • Detective

    Finds
    Root cause of a finding
    Exam clue
    Investigate, behavior graph
  • Security Hub

    Finds
    All findings in one place
    Exam clue
    GuardDuty, Inspector, Macie together, CSPM checks
Five security services, and the question each one answers.

2.2Logs and monitoring

  • CloudTrail: who did what, when and from where. On by default, event history keeps 90 days.
  • A trail keeps events in S3 for years. Log file integrity validation shows if a file was changed.
  • Members cannot turn off or change an organization trail.
  • CloudWatch: metrics, alarms, dashboards and logs. An alarm can notify through SNS or add instances.
  • Memory and disk use inside an instance need the CloudWatch agent.
  • AWS Config: configuration history, plus rules that check it. Remediation runs through Systems Manager.
  • VPC Flow Logs: traffic accepted or rejected at a network interface.
  • S3 server access logs: each request made to a bucket.

2.2Logs and monitoring

  • Keep logs long term in S3. Query them there with Athena.
  • Who did what, when, from where?

  • How is it performing? Alert me.

  • What changed? Does it follow the rules?

  • Which traffic reached my network?

    VPCFlow Logs
Match the question to the service that answers it.

2.2Access reports

  • Credential report: a CSV with one row per IAM user and the root user.
  • It shows passwords, access keys and MFA, and when each was last used or changed.
  • Last accessed information: when each allowed service was last used. Remove what is never used.
  • IAM Access Analyzer: resources shared outside your account or organization, and unused access.
  • Reports summarize access. For each single action, use CloudTrail.

2.2Governance and accounts

  • Organizations: one management account pays the bill. Member accounts sit in OUs.
  • Consolidated billing: one bill, combined volume discounts, shared Reserved Instance and Savings Plans discounts, no fee.
  • SCPs limit permissions but never grant them. They need all features on and skip the management account.
  • In a member account, an action needs an SCP that allows it and an IAM policy that grants it.
  • Control Tower: sets up a landing zone on Organizations. No charge for the service itself.
  • Control types: preventive (stop), detective (find), proactive (check before creation).

2.2Governance and accounts

  • Account Factory creates new accounts with approved settings, using Service Catalog.
  • Service Catalog: products and portfolios of approved templates. Constraints limit how they are launched.
  • RAM: create a resource once and share it, for example subnets or a transit gateway. RAM is free.
Four governance services that are easy to mix up.

2.3Identities and policies

  • Authentication = proving who you are. Authorization = what you may do.
  • IAM is global and free. Everything is denied by default, and an explicit Deny beats any Allow.
  • Root user: the first identity, it can do everything. An IAM admin is still not root.
  • IAM user: one person or app, with long-term password or access keys.
  • User group: shared permissions for many users. No credentials, and groups cannot be nested.
  • Role: temporary credentials, for apps, AWS services, other accounts and federated users.
  • AWS managed policy: quick start but often broad. Customer managed policy: exactly what a task needs.

2.3Identities and policies

  • Inline policy: one identity only. Resource-based policy: sits on a resource, such as an S3 bucket.
  • Attach policies to groups and roles, not to single users.
  • Least privilege: grant the minimum, review use, remove what is unused.

2.3Root user and credentials

  • Root user: AWS requires MFA. No access keys. Use an administrative user for daily work.
  • Root-only tasks: close the account, change root email or password, restore the only admin, MFA delete on S3.
  • Console = password. CLI, SDKs and API = access keys.
  • The secret access key is shown only once, when it is created.
  • Prefer temporary credentials from roles and IAM Identity Center.
  • Never put access keys or passwords in code or a repository.
  • A password policy applies to IAM users, not to the root user.
  • Secrets Manager: stores secrets and rotates them. Parameter Store: settings, standard parameters free, no rotation.

2.3Root user and credentials

  • Systems Manager: patching, Session Manager (no SSH keys or open ports), Run Command, Parameter Store.

2.3How people sign in

  • MFA = something you know plus something you have: passkey, security key, authenticator app or hardware token.
  • IAM Identity Center: single sign-on for the workforce to many accounts, with permission sets.
  • Federation: use an existing company login. SAML 2.0 for workforce, OIDC and social logins for apps.
  • Cross-account role: switch roles instead of creating users in every account.
  • Cognito: sign-up and sign-in for your own app customers. User pool = who. Identity pool = AWS access.
  • Directory Service: Active Directory on AWS. AD Connector forwards sign-in to your own AD.
  • Simple AD is no longer open to new customers.

2.3How people sign in

  • For people, AWS recommends federation or IAM Identity Center, not IAM users.
  • Employees, across many AWS accounts

  • Customers of your own web or mobile app

  • Users already in Windows Active Directory

  • An application running on AWS

    IAM role (temporary credentials)
Pick the sign-in service by who is signing in.

2.4Protection services

  • AWS WAF: filters web requests at layer 7. Attach it to CloudFront, an Application Load Balancer or API Gateway.
  • WAF rules can allow, block, count or show a CAPTCHA. Count mode tests a new rule.
  • WAF stops SQL injection, cross-site scripting, bad countries or IPs, and floods from one IP.
  • Shield Standard: automatic, free, layers 3 and 4. Shield Advanced: paid, response team, cost protection, WAF included.
  • Firewall Manager: one policy for many accounts, new ones included. Needs Organizations and Config.
  • Firewall Manager does not filter traffic itself. WAF, Shield and security groups do.

2.4Protection services

  • Trusted Advisor: six categories (cost, performance, security, fault tolerance, limits, operations).
  • Trusted Advisor: Basic Support has core checks only. Business Support+ and higher have all checks.
  • Trusted Advisor recommends. You make the change.
  • WAF

    Web requests: SQL injection, XSS, countries, rate limits
  • Shield

    DDoS floods. Standard is free and automatic.
  • Firewall Manager

    One set of rules for many accounts
  • GuardDuty

    Detects threats. It does not block.
  • Trusted Advisor

    Checks your account against best practices
  • Marketplace

    Third-party security products
Which protection service fits which need.

1 / 2

  • WAF

    Web requests: SQL injection, XSS, countries, rate limits
  • Shield

    DDoS floods. Standard is free and automatic.
  • Firewall Manager

    One set of rules for many accounts
  • GuardDuty

    Detects threats. It does not block.

2 / 2

Which protection service fits which need.

2.4Where to find security guidance

  • AWS Security Center: security services, compliance and best practices in one place.
  • AWS Security Blog: announcements, how-to posts and best practices from AWS experts.
  • AWS Knowledge Center: official answers to frequent questions, on AWS re:Post.
  • Security bulletins: vulnerabilities that affect AWS, and whether you must act.
  • AWS Marketplace: third-party security products, billed on your AWS bill.
  • AWS compliance reports (SOC, ISO) come from AWS Artifact.

考试陷阱

  • “Download a SOC or PCI report” → AWS Artifact, not AWS Config
  • “Is my own setup compliant?” → AWS Config or Security Hub, not Artifact
  • “Which user deleted it?” → CloudTrail, not CloudWatch. “What did it look like last month?” → Config
  • “Dedicated single-tenant HSMs, only we control the keys” → CloudHSM, not KMS
  • “Rotate database passwords automatically” → Secrets Manager, not KMS
  • “Find personal data in S3 buckets” → Macie, not GuardDuty. “Software vulnerabilities” → Inspector
  • “Root cause of a finding” → Detective. “All findings in one place” → Security Hub, not GuardDuty

考试陷阱

  • “SQL injection or cross-site scripting” → AWS WAF. “DDoS flood” → AWS Shield, not WAF
  • “Same WAF rules for every account, new ones too” → Firewall Manager, not WAF alone
  • “Employees sign in to many AWS accounts” → IAM Identity Center. “Customers of a mobile app” → Cognito
  • “Stop even administrators in the dev accounts” → SCP in Organizations, not an IAM policy
  • “Patch the guest OS of an EC2 instance” → the customer. “Patch the RDS database software” → AWS