WEBVTT
Kind: captions
Language: en

1
00:00:00.000 --> 00:00:06.818
Welcome back. Last time we set alarms that detect threats. Today we answer the questions an auditor

2
00:00:06.818 --> 00:00:12.534
asks. First, logs and monitoring: AWS CloudTrail, Amazon CloudWatch and AWS Config,

3
00:00:12.534 --> 00:00:19.076
plus IAM access reports. Second, compliance and governance: where to get AWS compliance reports

4
00:00:19.076 --> 00:00:25.757
with AWS Artifact, and how AWS Organizations, service control policies and AWS Control Tower keep

5
00:00:25.757 --> 00:00:29.200
many accounts in line. This is Domain 2, Task 2.2.

6
00:00:29.600 --> 00:00:35.403
Picture three cameras pointed at our online store, each watching something different.

7
00:00:35.403 --> 00:00:41.002
CloudTrail watches people: who did what, and when. CloudWatch watches performance:

8
00:00:41.002 --> 00:00:47.079
is the website healthy, are servers busy, are errors rising? And Config watches settings:

9
00:00:47.079 --> 00:00:52.472
what changed in a resource's configuration, and does it still follow our rules?

10
00:00:52.472 --> 00:00:57.320
The exam tests this trio more than almost anything else in this domain,

11
00:00:57.320 --> 00:00:59.300
so let's look at each camera.

12
00:00:59.700 --> 00:01:06.191
AWS CloudTrail records actions in your account as events: calls made from the console,

13
00:01:06.191 --> 00:01:13.286
the command line, the SDKs and other AWS services. Say an EC2 instance in the store disappears

14
00:01:13.286 --> 00:01:19.248
overnight. CloudTrail shows who terminated it, when, and from which IP address.

15
00:01:19.248 --> 00:01:25.890
Event history is on by default and keeps the last 90 days of management events for free.

16
00:01:25.890 --> 00:01:31.400
To keep events longer, create a trail that delivers them to an S3 bucket.

17
00:01:31.800 --> 00:01:38.560
Amazon CloudWatch is the monitoring service. Many AWS services send it metrics automatically,

18
00:01:38.560 --> 00:01:45.320
such as the CPU use of the store's web server. An alarm watches a metric against a threshold,

19
00:01:45.320 --> 00:01:52.153
here 80 percent. When the alarm goes off, it can send a notification, add servers through Auto

20
00:01:52.153 --> 00:01:58.840
Scaling, or stop, reboot or recover an instance. CloudWatch also collects and searches logs,

21
00:01:58.840 --> 00:02:04.074
and dashboards show everything in one view. It tells you how things run,

22
00:02:04.074 --> 00:02:05.600
not who changed them.

23
00:02:06.000 --> 00:02:13.396
AWS Config records the configuration of your resources over time. Here is the history of the store's

24
00:02:13.396 --> 00:02:20.497
security group. On Monday only port 443 is open. On Wednesday someone opens port 22 to the whole

25
00:02:20.497 --> 00:02:27.745
internet. A Config rule says no security group may do that, so Config marks the group noncompliant

26
00:02:27.745 --> 00:02:33.514
until the port is removed on Thursday. Remember: Config records and evaluates;

27
00:02:33.514 --> 00:02:38.100
it doesn't stop the change. CloudTrail would show who made it.

28
00:02:38.500 --> 00:02:45.105
The exam guide also mentions access reports. The IAM credential report is a downloadable file

29
00:02:45.105 --> 00:02:50.573
that lists every IAM user in the account and the status of their credentials:

30
00:02:50.573 --> 00:02:57.178
passwords, access keys and MFA devices. Auditors love it, because it shows old keys and users

31
00:02:57.178 --> 00:03:03.924
without MFA. Last accessed information shows which services a user, role or policy has actually

32
00:03:03.924 --> 00:03:09.464
used. If the store's app role never touches a service, remove that permission:

33
00:03:09.464 --> 00:03:10.600
least privilege.

34
00:03:11.000 --> 00:03:17.204
Now compliance. When an auditor asks for proof that AWS's data centers are secure,

35
00:03:17.204 --> 00:03:22.728
go to AWS Artifact. It gives on-demand access to AWS's own audit reports,

36
00:03:22.728 --> 00:03:30.067
such as SOC and PCI reports and ISO certifications, and to agreements like the Business Associate

37
00:03:30.067 --> 00:03:36.196
Addendum for HIPAA. Rules vary by industry and country: HIPAA for US health data,

38
00:03:36.196 --> 00:03:43.384
PCI DSS for card payments, GDPR for EU personal data. And not every AWS service is in scope for

39
00:03:43.384 --> 00:03:45.200
every program, so check.

40
00:03:45.600 --> 00:03:52.634
As the store grows, it uses several AWS accounts. AWS Organizations groups them under one management

41
00:03:52.634 --> 00:03:58.612
account, which pays a single consolidated bill. Accounts sit in organizational units,

42
00:03:58.612 --> 00:04:05.505
or OUs. A service control policy, or SCP, attached to an OU sets the maximum permissions for every

43
00:04:05.505 --> 00:04:10.851
account below it. Here, the Sandbox OU can't launch expensive GPU instances,

44
00:04:10.851 --> 00:04:16.900
even for an administrator. But an SCP never grants access; IAM policies still do that.

45
00:04:17.300 --> 00:04:22.199
Setting all of that up by hand takes time. AWS Control Tower does it for you.

46
00:04:22.199 --> 00:04:28.560
It builds a landing zone: a well-architected, multi-account environment on top of AWS Organizations,

47
00:04:28.560 --> 00:04:33.268
following AWS best practices. It applies controls, also called guardrails.

48
00:04:33.268 --> 00:04:39.248
Preventive controls stop actions, using SCPs. Detective controls spot problems after the fact,

49
00:04:39.248 --> 00:04:45.228
using AWS Config rules. Proactive controls check resources before CloudFormation deploys them.

50
00:04:45.228 --> 00:04:48.600
Account Factory creates new accounts from a template.

51
00:04:49.000 --> 00:04:54.678
Here's how the exam asks about this. Who deleted a resource, or auditing API calls:

52
00:04:54.678 --> 00:05:01.245
CloudTrail. An alarm when CPU is high, or collecting logs: CloudWatch. Configuration history and

53
00:05:01.245 --> 00:05:07.334
rule compliance: Config. A list of users and their MFA status: the IAM credential report.

54
00:05:07.334 --> 00:05:13.832
Downloading AWS SOC or PCI reports, or accepting a BAA: Artifact. Limiting what member accounts

55
00:05:13.832 --> 00:05:19.100
can do: SCPs in Organizations. A governed multi-account setup: Control Tower.

56
00:05:19.500 --> 00:05:26.026
To recap: CloudTrail records who did what, CloudWatch monitors metrics and logs and raises alarms,

57
00:05:26.026 --> 00:05:32.686
and Config tracks configuration history and checks it against rules. Access reports show credentials

58
00:05:32.686 --> 00:05:39.012
and the permissions really used. AWS Artifact provides AWS's compliance reports and agreements.

59
00:05:39.012 --> 00:05:45.405
Organizations gives one bill and SCPs that cap permissions, and Control Tower sets up a governed

60
00:05:45.405 --> 00:05:50.400
landing zone. Next, we move to Domain 3 and launch servers with Amazon EC2.
