Governance Flashcards
What is organizations?
AWS Organizations is a free governance tool that allows you to create and manage multiple AWS accounts. With it, you can control your accounts from a single location rather than jumping from account to account.
What are the key features of organizations?
- Logging Accounts - it’s best practice to create a specific account dedicated to logging; CloudTrail supports logs aggregation
- Programmatic Creation - easily create and destroy new AWS accounts
- Reserved Instances - RIs can be shared across all accounts
- Consolidated Billing - the primary account pays the bills
- Service Control Policies - SCP’s can limit user’s permissions
What is a Service Control Policy?
A global policy for an account - no matter what the user permissions are, SCP would override them, even applied to the root account
Once implemented, these policies will applied to every single resource inside an account. They are the ultimate way to restrict permissions, and even apply to the root account
It simply takes permissions away, but doesn’t give permissions
In a Service Control Policy, what is the purpose of an allow statement?
With an allow statement, it means that a user only has the potential to make the calls mentioned in the statement - it doesn’t give you permission to make the calls, it just narrows down every possible service
In a Service Control Policy, what is the purpose of a deny statement?
It restricts anyone from making the API calls denied in the statement
If you are given a scenario about wanting to ensure logs are centralized where no one can edit or delete them, what service would you recommend?
AWS Organizations
What is AWS RAM?
AWS Resource Access Manager (RAM) is a free service that allows you to share AWS resources with other accounts and within your organization. AWS RAM allows you to easily share resources rather than having to create duplicate copies in your different accounts.
What can be shared using AWS RAM?
- Transit gateways
- VPC subnets (most important)
- License manager
- Route 53 resolver
- Dedicated hosts
- (many more…)
When should you use AWS RAM vs VPC Peering?
Are you sharing resources within the same region? Use RAM
Are you sharing resources across regions? Use VPC peering
If RAM isn’t available and VPC peering is, that’s still a great option
What is the cost of AWS RAM?
It is free, you just pay for the architecture
What is cross-account role access?
As the number of AWS accounts you manage increases, you’ll need to set-up cross-account access. Duplicating IAM accounts creates a security vulnerability. Cross-account role access gives you the ability to set up temporary access you can easily control.
When given a scenario where credentials are mentioned, what should you look for?
Something mentioning roles
When given a scenario that talks about multiple accounts, what is preferred over creating multiple IAM users in each account?
Cross-account roles
When given a scenario where it asks what would be the proper way to give an auditor credentials?
Never given them permanent credentials. Always use roles for temporary users.
What is AWS Config?
Config is an inventory management and control tool. It allows you to show the history of your infrastructure along with creating rules to make sure it conforms to the best practices you’ve laid out.
What are the three features of AWS Config?
- Query - you can easily discover what architecture you have in your account (you can query by resource type, tag and even see deleted infrastructure)
- Enforce - rules can be created to flag when something is going wrong (whenever a rule is violated, you can be alerted or even have it automatically fixed)
- Learn - what is the history of your environment? (when did something change? who made that call?)
If you are given a scenario that lays out any type of standard that needs to be managed across accounts, what service would you recommend?
AWS Config
For example, you’d use Config to ensure your S3 buckets aren’t publicly readable or your users are using the approved AMI in their EC2 instances
What is AWS Directory Service?
AWS Directory Service is a fully managed version of Active Directory. It allows you to offload the painful parts of keeping AD online to AWS while still giving you the full control and flexibility AD provides.
Why use AWS Directory Service?
- Managed Microsoft AD - this is the entire AD suite; you can easily build out AD in AWS
- AD Connector - creates a tunnel between AWS and your on-premises AD
- Simple AD - standalone directory powered by Linus Samba Active Directory-compatible server
What is AWS Cost Explorer?
AWS Cost Explorer is an easy-to-use tool that allows you to visualize your cloud costs. You can generate reports based on a variety of factors, including resource tags.
What are the features of AWS Cost Explorer?
- Service - easily break down costs on a service-by-service basis
- Time - what was you bill last month? how about next month?
- Filter - where is the spend coming from? filter on tag, categories, etc.
It is predictive as well.
How does AWS Cost Explorer filtering by tag work?
You have to enable the filtering by a cost allocation tag in the billing portal. Going forward from that moment, you can filter your reports or your spend based on that tag, but it does not work retroactively. You have to opt in an a per-tag basis.
If you are given scenario that talks about budgeting or controlling spend, what service would you recommend?
AWS Cost Explorer
What is AWS Budgets?
AWS Budgets allows organizations to easily plan and set expectations around cloud costs. You can easily track your ongoing spend and create alerts to let users know when they are close to exceeding their allotted spend.