Geavanceerd
Zoeken inSamenvattingen
Zo zoek je
  • Woorden vinden lestitels, tekst en code. Filter op soort (gidsen, cursussen, programma's, boeken) of blijf in dit boek.
  • book:rhcsa en ch:8 maken de zoektocht kleiner; #code vindt een woord alleen in commando's van de lessen.
  • "twee woorden" vindt precies die zin.
  • Gewone woorden vinden namen, teksten en voorbeelden.
  • ↑ ↓ bewegen · Enter openen · Esc sluiten · / zoeken
Probeer:

Cursus 2Naam in de cursus: AWS 3 - 1 - Design Solutions for Organizational Complexity

Design Solutions for Organizational Complexity

Course 2 of 5 in the AWS 3 Solutions Architect Professional path on Manara. This is part 1 of the AWS 3 path. It is about design for large organizations.

Notitie

My result — Tasks in this course: all done (123/123); Module review quizzes: 100% (each module); Path progress: all 453 tasks of the 5 courses done.

Course page: Manara

  • 21 Lessen
  • 1 Commando's
  • 1 Labs

Dit deel is nog niet vertaald. Je ziet de Engelse tekst.

$ als gewone gebruiker# als root (of met sudo)

2.1

AWS Global Infrastructure

AWS has Regions. A Region is a large area with many data centers.

  • Each Region has 3 or more Availability Zones (AZs).
  • AZs are far apart, but they have very fast links between them.
  • Edge locations are small sites near users. They cache content.
  • Regional Edge Caches sit between edge locations and the origin.

In more detail

  • Pick a Region near your users, or where the law allows your data.
  • Put your app in many AZs. If one AZ fails, the app keeps working.
  • Spread resources evenly. Keep the app stateless, so any AZ can serve it.
  • Edge locations (400+) speed up static files like images and CSS.

2.2

AWS Networking Concepts

A VPC is your own private network inside AWS.

  • Direct Connect is a private fiber line from your data center to AWS.
  • Site-to-Site VPN is an encrypted tunnel over the internet.
  • Transit Gateway is one hub for many VPCs and on-premises networks.
  • Containers need their own network plan inside the VPC.

In more detail

  • Build a secure VPC in layers: subnets, routes, security groups, and logs.
  • Use gateway endpoints so private subnets reach S3 and DynamoDB without the internet.
  • Use Direct Connect for steady speed. Use VPN when you need it fast and cheap.
  • Without a hub, every VPC needs a link to every other VPC. Transit Gateway removes that mesh.

2.3

Hybrid DNS Concepts

Amazon Route 53 Resolver is the DNS service inside every VPC.

  • It answers names for AWS services, private hosts, and the public internet.
  • Inbound endpoints let on-premises DNS servers ask for AWS names.
  • Outbound endpoints and rules let AWS ask on-premises DNS servers.
  • Conditional forwarding sends only some domains to a chosen server.
  • Split-horizon DNS gives different answers inside and outside.

In more detail

  • Without hybrid DNS, a new AWS app cannot find an old database by name.
  • Create an inbound endpoint, then point your on-premises forwarder to it.
  • Create an outbound endpoint, then add a rule for your company domain.
  • Use split-horizon when the same name must mean different things in each place.

2.4

Network Segmentation

Subnetting cuts one large network into smaller parts.

  • Each subnet has one CIDR block and lives in one AZ.
  • AWS uses the private IPv4 ranges 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16.
  • In CIDR, a smaller number means a bigger network. A /16 is large, a /24 is small.
  • VPC peering links two VPCs, but traffic cannot pass through to a third.

In more detail

  • Small subnets create security zones: public, private, and database.
  • Plan the IP space first. Changing it later is very hard.
  • Peering is simple and fast for two VPCs. With many VPCs it becomes a mesh.
  • PrivateLink shares one service, not a whole network.
  • Leave free space for growth. Do not use all addresses now.

2.5

Network Traffic Monitoring

VPC Flow Logs record the IP traffic that passes through your network.

  • They show accepted and rejected traffic, with ports and byte counts.
  • CloudWatch Logs Insights can query flow logs at scale.
  • AWS Network Firewall filters traffic for a whole VPC.
  • AWS WAF filters HTTP and HTTPS requests to your web app.

In more detail

  • Turn on flow logs for a VPC, a subnet, or one network interface.
  • Send logs to CloudWatch or S3. Pick the place by cost and by how long you keep them.
  • Use Network Firewall for IP and domain rules.
  • Use WAF for web rules, like blocking bad requests or bots.
  • Logs help with security, cost, and finding broken routes.

2.6

AWS Identity and Access Management (IAM)

IAM controls who can do what in your AWS account.

  • A policy is a JSON file with an effect, an action, and a resource.
  • A role gives temporary permissions to a user, an app, or a service.
  • IAM Identity Center gives one login for many accounts.
  • MFA adds a second proof of identity.

In more detail

  • A deny always wins over an allow in IAM policies.
  • Avoid the wildcard "*" for actions and resources when you can.
  • Give services a role. Do not put long-lived access keys in code.
  • Common mistakes: over-broad access, old keys, no MFA, and unused users.

2.7

Route Tables, Security Groups, and Network ACLs

A route table tells traffic where to go. Every subnet needs one.

  • The default route 0.0.0.0/0 sends traffic to a chosen gateway.
  • An internet gateway gives public access.
  • A NAT gateway gives private subnets outbound access only.
  • Security groups are stateful and work at the instance level.
  • Network ACLs are stateless and work at the subnet level.

In more detail

  • A security group has allow rules only. It remembers open connections.
  • A network ACL has allow and deny rules, checked by rule number from low to high.
  • Public subnets route to the internet gateway. Private subnets route to the NAT gateway.
  • Open only the ports your app needs, and review the rules often.

2.8

Encryption Keys and Certificate Management

AWS KMS creates, stores, and controls encryption keys.

  • Customer-managed keys give you control of the policy and the rotation.
  • AWS Certificate Manager (ACM) gives SSL/TLS certificates for free.
  • ACM renews certificates for you.
  • ACM works with Elastic Load Balancing and CloudFront.

In more detail

  • A KMS key policy says who may use the key and for what.
  • Customer-managed keys cost more, but let you audit and limit access.
  • Put the certificate on the load balancer or the CDN, not on each server.
  • Turn on automatic renewal so a site never breaks when a certificate expires.

2.9

AWS Security, Identity, and Compliance Tools

AWS CloudTrail records API calls: who did it, when, and from where.

  • Event history keeps 90 days of management events with no setup.
  • Security Hub collects findings from many services in one place.
  • Amazon Inspector scans workloads for vulnerabilities and misconfigurations.
  • These tools give the visibility that audits and incident response need.

In more detail

  • A CloudTrail trail can send logs to S3 and keep them much longer.
  • Useful log fields are eventName, userIdentity, and sourceIPAddress.
  • Security Hub uses one finding format, so alerts are easy to compare and rank.
  • Inspector checks compute workloads on a schedule and when they change.

2.10

Recovery Time Objectives (RTOs) and Recovery Point Objectives (RPOs)

RTO is the most time a system may be down after a failure.

  • RPO is the most data you may lose, measured in time.
  • Short RTO and short RPO cost much more money.
  • A Business Impact Analysis (BIA) gives the real numbers.
  • RTO and RPO pull against each other.

In more detail

  • RTO starts at the failure and ends when the system works fully again.
  • RPO looks back in time: the gap between the last copy and the failure.
  • Ask the business for these numbers, not only the engineers.
  • A 15-minute RTO needs automation. A 24-hour RTO can use a simple restore.
  • Write the target down, then test it with a real drill.

2.11

Disaster Recovery Strategies

AWS Elastic Disaster Recovery (DRS) copies servers to AWS and can start them there.

  • Pilot light keeps a small core running and starts the rest at failover.
  • Warm standby keeps a full but small copy always running.
  • Multi-site runs full systems in two or more Regions.

In more detail

  • Order by cost: backup and restore, then pilot light, then warm standby, then multi-site.
  • Order by speed is the reverse. Multi-site recovers fastest.
  • Choose a level for each workload. Not every app needs the top level.
  • DRS copies data at block level, so RPO can be seconds and RTO can be minutes.
  • Test failover often. A plan that was never tested is only a guess.

2.12

Data Backup and Restoration

AWS Backup puts backups for many AWS services in one place.

  • A backup plan sets the schedule and the retention.
  • Backups are stored in a vault. You can lock the vault.
  • Backups help when data is deleted or changed by mistake.

In more detail

  • A backup rule says how often to copy, how long to keep, and which vault to use.
  • Tags or account lists choose which resources the plan protects.
  • Copy backups to a second Region for extra safety.
  • A bad update spreads to every live copy. Only a backup from before it can save you.
  • Run a restore test every few months, not only after a real incident.

2.13

AWS Organizations and AWS Control Tower

AWS Organizations groups many accounts under one management account.

  • Organizational Units (OUs) group accounts by team or environment.
  • Service Control Policies (SCPs) set the maximum permissions.
  • Control Tower builds a ready landing zone with guardrails.
  • Guardrails are preventive or detective.

In more detail

  • Apply an SCP to an OU and every account under it gets the same limit.
  • An SCP never grants permission. It only takes permission away.
  • Preventive guardrails use SCPs to block actions.
  • Detective guardrails watch for problems and report them.

2.14

Multi-Account Event Notifications

Amazon EventBridge moves events between AWS accounts.

  • A rule matches an event pattern and sends the event to a target.
  • One central account can collect events from all the other accounts.
  • AWS Resource Access Manager (RAM) shares resources between accounts.
  • You can share subnets, Transit Gateways, and AMIs.

In more detail

  • Every account has a default event bus for its own AWS events.
  • For cross-account events, create a custom bus and allow the other account to send to it.
  • RAM keeps accounts separate. The resource is shared, not copied.
  • Shared subnets let a network team own the VPC while app teams use it.

2.15

AWS Cost and Usage Monitoring Tools

AWS Trusted Advisor checks your account and gives advice.

  • Its checks cover cost, security, performance, fault tolerance, and service limits.
  • AWS Cost Explorer shows where your money goes and can forecast the future.
  • AWS Budgets sends an alert when spend passes a limit.
  • These tools turn a surprise bill into an early warning.

In more detail

  • Trusted Advisor shows a check as ok, warning, or error, with a fix.
  • In Cost Explorer, group costs by service, account, or tag.
  • A budget can track cost, usage, or savings.
  • An alert goes out before the month ends, so you still have time to act.

2.16

AWS Purchasing Options

On-Demand: pay for what you use, with no promise.

  • Reserved Instances: a 1-year or 3-year promise, with a large discount.
  • Savings Plans: promise a dollar amount per hour of compute.
  • Spot Instances: cheap spare capacity that can be taken back.
  • Spot Fleet: a group of Spot Instances that meets a target capacity.

In more detail

  • Use On-Demand for short, new, or changing work.
  • Use Reserved Instances or Savings Plans for work you will run for years.
  • Use Spot for batch jobs, tests, and other work that can restart.
  • A Spot instance can be interrupted. Save your state and mix instance types.
  • Match the option to the workload. Do not buy a long promise for a short test.

2.17

AWS Rightsizing Visibility Tools

Many teams pay for resources that are bigger than they need.

  • AWS Compute Optimizer uses machine learning on usage data.
  • It suggests better instance types for EC2 and other resources.
  • Amazon S3 Storage Lens shows storage use across all buckets and accounts.
  • Both tools help you cut waste with data, not with guesses.

In more detail

  • Give the tool some weeks of metrics first. The advice gets better over time.
  • Each Compute Optimizer recommendation has a confidence level and a risk level.
  • Start with high confidence and low risk changes, then check the result.
  • In Storage Lens, look for old data, duplicate files, and the wrong storage class.
  • These tools often point to 10–40% savings on compute and 20–60% on storage.

2.18

Key terms

The words of this course in one table. Learn them before the quiz or exam.

TermMeaning
ACMThe AWS service for SSL/TLS certificates.
Availability ZoneOne or more data centers with their own power and network.
AWS BackupOne service to schedule and store backups.
AWS DRSA service that replicates servers and starts them in AWS.
AWS-managed keyA key that AWS creates and rotates for a service.
AWS RAMThe service that shares resources with other accounts.
Backup and restoreCopy data now, rebuild the system after a failure.
Backup planThe rules for schedule, retention, and vault.
BIAA study of what downtime costs the business.
BudgetA target for spend or usage with an alert.
CIDRA way to write an IP range, like 10.0.0.0/16.
CloudTrailThe log of every API call in your account.
Compute OptimizerA service that recommends the right size for resources.
Conditional forwardingSending queries for some domains to a set server.
Confidence levelHow sure the tool is about a recommendation.
Control TowerA service that sets up a secure multi-account setup.
Cost ExplorerA tool to view and forecast your AWS spend.
Customer-managed keyA key that you own and control.
Direct ConnectA private physical link from your data center to AWS.
DowntimeThe time a service is not available.
Edge locationA small site near users for fast content delivery.
Event busThe channel that receives events.
EventBridgeA service that routes events between accounts and services.
FailoverMoving work to a standby system.
FindingOne security problem with details and a fix path.
ForecastA guess of future cost based on past data.
Gateway endpointA private route from a VPC to S3 or DynamoDB.
GuardrailA rule that blocks or detects a bad action.
IAM Identity CenterOne place to manage access to many accounts.
IAM policyA JSON document that allows or denies actions.
IAM roleA set of temporary permissions that can be assumed.
IAMThe AWS service that controls who can do what in an account.
Inbound endpointA door for on-premises DNS to reach AWS names.
InspectorAn automated scanner for vulnerabilities.
Internet gatewayThe door between a VPC and the internet.
KMSThe AWS service that stores and protects encryption keys.
Least privilegeThe smallest set of rights that still does the job.
Lifecycle ruleAn S3 rule to move or delete objects after a time.
Log groupThe CloudWatch place where logs are stored.
MFAA second step to prove identity, such as a code app.
Multi-siteTwo or more active sites that share the work.
NAT gatewayLets private subnets start outbound traffic only.
Network ACLA stateless firewall for one subnet.
Network FirewallA managed firewall for VPC traffic.
On-DemandPay by the second or hour, with no commitment.
OrganizationAll your AWS accounts under one management account.
OriginThe place where your real content is stored.
OUA folder of accounts inside an organization.
Outbound endpointA door for AWS to reach on-premises DNS.
Pilot lightA minimal copy that is always on and grows on failover.
PrivateLinkPrivate access to one service, without a full network link.
RegionA geographic area with many AWS data centers.
Regional Edge CacheA larger cache between edge sites and the origin.
Rejected trafficTraffic that a security rule blocked.
Reserved InstanceA promise for one instance type in one Region or AZ.
Resource shareOne resource shared with chosen accounts.
RestorePutting the saved data back into a working resource.
RetentionHow long a backup is kept.
RightsizingMatching the size of a resource to its real workload.
Route 53 ResolverThe built-in DNS service for a VPC.
Route tableRules that decide where subnet traffic goes.
RPOThe maximum acceptable data loss, in time.
RTOThe maximum acceptable downtime.
RuleA filter that matches events and calls a target.
S3 Storage LensAnalytics for storage use across accounts and buckets.
Savings PlanA promise to spend a set amount per hour on compute.
SCPA policy that limits what accounts may do.
Security groupA stateful firewall for one resource.
Security HubA central place that joins findings from many tools.
Site-to-Site VPNAn encrypted link over the public internet.
Split-horizon DNSOne name with different answers in different networks.
Spot FleetA managed group of Spot Instances for a capacity goal.
Spot InstanceUnused capacity at a low price, with a risk of interruption.
SubnetA smaller range of IPs inside a VPC, tied to one AZ.
TagA label on a resource, used for cost tracking.
TLSThe protocol that keeps web traffic private.
TrailA CloudTrail setting that saves logs to S3.
Transit GatewayA central router that joins VPCs and on-premises links.
Trusted AdvisorA service that reviews your setup and suggests fixes.
VaultThe locked storage that holds the backups.
VPCA private, isolated network in AWS that you control.
VPC Flow LogsRecords of the IP traffic in your VPC.
VPC peeringA private link between exactly two VPCs.
WAFA firewall for web requests at layer 7.
Warm standbyA small but complete copy that is always running.

2.19

Check yourself

Answer each question first, then open it to check the answer.

1Why do we use more than one AZ?

So the system stays up when one data center fails.

2What is the job of an edge location?

To keep copies of content near users, so pages load faster.

3When is Direct Connect a better choice than VPN?

When you need steady performance and privacy for a lot of traffic.

4What problem does Transit Gateway solve?

It replaces many direct links between networks with one central hub.

5What does an inbound endpoint do?

It lets on-premises DNS servers resolve names that live inside AWS.

6When do you use split-horizon DNS?

When the same domain name must give different answers inside and outside.

7Is 10.0.0.0/16 bigger or smaller than 10.0.0.0/24?

Bigger. A /16 holds 65,536 addresses; a /24 holds 256.

8Why does VPC peering not scale to 100 VPCs?

Each VPC needs a link to every other VPC, so the number of links grows very fast.

9What can VPC Flow Logs tell you?

Who talked to whom, on which port, and if the traffic was accepted or rejected.

10Which tool blocks a bad HTTP request, Network Firewall or WAF?

WAF, because it reads HTTP and HTTPS requests.

11What is the difference between a policy and a role?

A policy lists what is allowed. A role is an identity that carries policies for a short time.

12Why is a wildcard "*" in a policy risky?

It gives much more access than needed, so one mistake can affect many resources.

13Why is a security group called stateful?

It remembers the connection, so the reply is allowed without a new inbound rule.

14Where do you add a subnet's route to the internet?

In the route table that is linked to that subnet.

15What is the main difference between an AWS-managed key and a customer-managed key?

You control the policy and rotation of a customer-managed key; AWS controls the other one.

16Where should a certificate be installed for a load-balanced site?

On the load balancer or CDN, not on each server behind it.

17What question does CloudTrail answer?

Who did what, when, and from which IP address.

18What does Security Hub do with findings from other services?

It gathers them in one place, in one format, so you can see your whole security state.

19A system can lose at most 1 hour of orders. Is that RTO or RPO?

RPO, because it is about lost data, not about downtime.

20Why do low RTO and low RPO cost more?

They need faster copies, standby systems, and automation.

21Which strategy is cheapest?

Backup and restore.

22Why is pilot light faster than backup and restore?

The core servers and data already exist and run, so you only start the rest.

23Why does a multi-Region copy not replace a backup?

A mistake or a delete command copies to every Region too, so the bad data is everywhere.

24What should you test after you make a backup plan?

A restore, to prove the plan works and the data comes back.

25Do SCPs give permissions to users?

No. They only limit the maximum permissions an account can use.

26Name the two kinds of guardrails.

Preventive guardrails and detective guardrails.

27What does an EventBridge rule do?

It matches events and sends them to targets, such as a function or a queue.

28What is the difference between sharing a subnet and copying a subnet?

A shared subnet is one network used by many accounts. A copy is a second, separate network.

29What are the five areas of Trusted Advisor checks?

Cost, security, performance, fault tolerance, and service limits.

30What happens when a budget limit is passed?

It sends an alert, for example by email, so you can act early.

31Which option is best for a job that can stop and restart?

Spot Instances.

32What do you promise when you buy a Savings Plan?

That you will spend a fixed amount per hour on compute for 1 or 3 years.

33What data does Compute Optimizer need before it gives good advice?

Some weeks of real usage metrics, such as CPU and network.

34What can you do with the findings from S3 Storage Lens?

Find old or duplicate data, then move it to a cheaper class or delete it.

Oefenen

Alle commando's in dit hoofdstuk