Aws Short Notes
Aws Short Notes
Aws Short Notes
------------
The information has been taken from the content in https://acloudguru.com/
I highly recommend you to purchase the course from https://acloudguru.com/
The purpose of these notes is to help students with their revision prior to taking
the certification.
Design Principles
There are five design principles for operational excellence in the cloud:
Best Practices
Operations teams need to understand their business and customer needs so they
can support business outcomes. Ops creates and uses procedures to respond to
operational events, and validates their effectiveness to support business needs.
Ops also collects metrics that are used to measure the achievement of desired
business outcomes.
2. Security
The Security pillar includes the ability to protect data, systems, and assets
to take advantage of cloud technologies to improve your security. You can find
prescriptive guidance on implementation in the Security Pillar white-paper.
Design Principles
There are seven design principles for security in the cloud:
Best Practices
Before you architect any workload, you need to put in place practices that
influence security. You’ll want to control who can do what. In addition, you want
to be able to identify security incidents, protect your systems and services, and
maintain the confidentiality and integrity of data through data protection.
The AWS Shared Responsibility Model enables organisations that adopt the
cloud to achieve their security and compliance goals. Because AWS physically
secures the infrastructure that supports our cloud services, as an AWS customer you
can focus on using services to accomplish your goals. The AWS Cloud also provides
greater access to security data and an automated approach to responding to security
events.
3. Reliability
The Reliability pillar encompasses the ability of a workload to perform its
intended function correctly and consistently when it’s expected to. This includes
the ability to operate and test the workload through its total lifecycle. You can
find prescriptive guidance on implementation in the Reliability Pillar white-paper.
Design Principles
There are five design principles for reliability in the cloud:
Best Practices
To achieve reliability, you must start with the foundations—an environment
where service quotas and network topology accommodate the workload. The workload
architecture of the distributed system must be designed to prevent and mitigate
failures. The workload must handle changes in demand or requirements, and it must
be designed to detect failure and automatically heal itself.
4. Performance Efficiency
The Performance Efficiency pillar includes the ability to use computing
resources efficiently to meet system requirements, and to maintain that efficiency
as demand changes and technologies evolve. You can find prescriptive guidance on
implementation in the Performance Efficiency Pillar whitepaper.
Design Principles
There are five design principles for performance efficiency in the cloud:
Best Practices
Take a data-driven approach to building a high-performance architecture.
Gather data on all aspects of the architecture, from the high-level design to the
selection and configuration of resource types.
Reviewing your choices on a regular basis ensures you are taking advantage of
the continually evolving AWS Cloud. Monitoring ensures you are aware of any
deviance from expected performance. Make trade-offs in your architecture to improve
performance, such as using compression or caching, or relaxing consistency
requirements
The optimal solution for a particular workload varies, and solutions often
combine multiple approaches. Well-Architected workloads use multiple solutions and
enable different features to improve performance
5. Cost Optimisation
The Cost Optimisation pillar includes the ability to run systems to deliver
business value at the lowest price point. You can find prescriptive guidance on
implementation in the Cost Optimisation Pillar white-paper.
Design Principles
There are five design principles for cost optimisation in the cloud:
Best Practices
As with the other pillars, there are trade-offs to consider. For example, do
you want to optimize for speed to market or for cost? In some cases, it’s best to
optimize for speed—going to market quickly, shipping new features, or simply
meeting a deadline—rather than investing in up-front cost optimisation.
Design decisions are sometimes directed by haste rather than data, and as the
temptation always exists to overcompensate rather than spend time benchmarking for
the most cost-optimal deployment. This might lead to over-provisioned and under-
optimised deployments.
* Billing (CloudWatch)
- CloudWatch - To setup Billing alarm (Use the Create Alarm underneath one)
S3 - Guarantees
S3 has the following guarantees from Amazon:
- Built for 99.99% availability for the S3 platform
- Amazon guarantees 99.9% availability
- Amazon guarantees 99.99999999999% durability for S3 information (Remember
11 9's)
S3 - Features
S3 has the following features
- Tiered Storage Available
- Lifecycle Management: Move objects around to two different storage tiers
- Versioning
- Encryption
- MFA Delete: use MFA when deleting the files
- Secure your data using Access Control Lists (File level) or Bucket Policies
(Bucket level)
S3 Storage Classes
1. S3 Standard: 99.99% availability, 99.99999999999% durability stored
redundantly across multiple devices in multiple facilities and is designed to
sustain the loss of 2 facilities concurrently.
2. S3 - IA (Infrequently Accessed): For the data that is accessed less
frequently, but requires rapid access when needed. Lower fee than S3, but you are
charged a retrieval fee.
3. S3 One Zone IA: For where you want a lower-cost option for infrequently
accessed data, but do not require the multiple availability zone data resilience.
4. S3 - Intelligent Tiering: Designed to optimise costs by automatically
moving data to the most cost-effective access tier, without performance impact or
operational overhead.
5. S3 Glacier: S3 Glacier is a secure, durable and low-cost storage class for
data archiving. You can reliably store any amount of data at costs that are
competitive with or cheaper than on-premises solutions. Retrieval times are
configurable from minutes to hours.
6. S3 Glacier Deep Archive: S3 Glacier Deep Archive is Amazon's lowest-cost
storage class where a retrieval time of 12 hours is acceptable.
S3 Charges:
You are charged for S3 in the following ways:
1. Storage
2. Requests
3. Storage Management Pricing
4. Data Transfer Pricing
5. Transfer Acceleration
6. Cross Region Replication Pricing
S3 Transfer Acceleration
1. Amazon S3 Transfer Acceleration enables fast, easy and secure transfers of
files over long distances between your end users and an S3 bucket.
2. Transfer Acceleration takes advantage of Amazon CloudFront's globally
distributed edge locations. As the data arrives at an edge location, data is routed
to Amazon S3 over an optimised network path.
S3 Exam Tips:
1. Remember that S3 is Object-based: i.e allows you to upload files.
2. Files can be 0 Bytes to 5 TB.
3. There is unlimited storage.
4. Files are stored in Buckets.
5. S3 is a universal namespace. That is, names must be unique globally.
Example: https://s3-eu-west-1.amazonaws.com/acloudguru
6. Not suitable to install operating systems on S3 due to it being object
based (not block storage - EBS), can only be used to store files
7. Successful upload will generate a HTTP 200 status code.
8. You can turn on MFA delete to avoid accidental delete.
9. The key fundamentals of S3 are:
- Key (This is simply the name of the object)
- Value (This is simply the data and is made up of a sequence of
bytes).
10. S3 Model:
- Read after Write consistency for PUTS of new objects (if you write a
new files and read it immediately afterwards, you will be able to view the data)
- Eventual Consistency for overwrite PUTS and DELETES (can take
sometime to propagate) (If you update AN EXISTING file or delete a file and read it
immediately, you may get the older version, or you may not. Basically changes to
objects can take a little bit of time to propagate.)
11. S3 Storage Classes
1. S3 Standard: 99.99% availability, 99.99999999999% durability stored
redundantly across multiple devices in multiple facilities and is designed to
sustain the loss of 2 facilities concurrently.
2. S3 - IA (Infrequently Accessed): 99.9% availability, For the data
that is accessed less frequently, but requires rapid access when needed. Lower fee
than S3, but you are charged a retrieval fee.
3. S3 - Intelligent Tiering: 99.9% availability, Designed to optimise
costs by automatically moving data to the most cost-effective access tier, without
performance impact or operational overhead.
4. S3 One Zone IA (also called S3 RRS): 99.5% availability, For where
you want a lower-cost option for infrequently accessed data, but do not require the
multiple availability zone data resilience.
5. S3 Glacier: S3 Glacier is a secure, durable and low-cost storage
class for data archiving. You can reliably store any amount of data at costs that
are competitive with or cheaper than on-premises solutions. Retrieval times are
configurable from minutes to hours.
6. S3 Glacier Deep Archive: S3 Glacier Deep Archive is Amazon's lowest-
cost storage class where a retrieval time of 12 hours is acceptable.
7. S3 Outposts for on-premises object storage to meet data residency
needs
* CloudFront
CloudFront is a content delivery network (CDN) is a system of distributed
servers (network) that deliver webpages and other web content to a user based on
the geographic locations of the user, the origin of the webpage and a content
delivery server.
When the first user queries for a file, it gets downloaded from the server.
The second user gets a cached copy from the Edge Location instead of downloading it
again from the server. The file has Time to live defined usually 48 hours.
2 types of distribution:
Web Distribution - Typically used for Websites
RTMP - Used for Media Streaming
2 types of distribution:
Web Distribution - Typically used for Websites
RTMP - Used for Media Streaming
Note:
1. Edge Locations are not just READ only - you can write them too. (ie Put an
object on to them).
2. Objects are cached for the life of TTL (Time to live)
3. You can clear cached objects, but you will be charged.
1. Amazon Elastic Compute Cloud (Amazon EC2) is just a virtual server (or
servers) in the cloud
2. Amazon EC2 reduces the time required to obtain and boot new server
instances to minutes, allowing you to quickly scale capacity, both up and down, as
your computing requirements change.
* Databases 101
1. Relational databases on AWS - RDS:
1.1 SQL Server
1.2 Oracle
1.3 Postgres
1.4 MySQL
1.5 Aurora
1.6 MariaDB
* Auto Scaling
1. Create a Launch Configuration
2. Assign the launch configuration to an auto scaling group
2. Elastic Beanstalk and CloudFormation are both free services. However, just
remember that the resources that they provision,
such as EC2 instances or RDS instances ... etc are not free. So the
services itself is free, but not the actual resource that it provisions.
And then, finally, just remember that Elastic Beanstalk is limited in
what it can provision and is not programmable, whereas, CloudFormation can
provision almost any
AWS services and is completely programmable.
* CloudWatch 101
1. CloudWatch is to monitor performance
2. Monitors
2.1 EC2 Instances
2.2 Autoscaling Groups
2.3 Elastic Load Balancers
2.4 Route53 Health Checks
3. Storage and Content Delivery
3.1 EBS Volumes
3.2 Storage Gateways
3.3 CloudFront
4. Monitors host level metrics such as CPU, Network, Status check and Disk
- Your root is the email address you used to set up your AWS account. The
root account has full admin access.
You should not give these account credentials away to anyone. Instead
create a user for each individual within your org.
You should always secure this root account using multi-factor
authentication.
- A group is simply a place to store your users. Your users will inherit all
permissions that the group has. Examples of groups: Developers, Sys admins, HR,
finance...etc.
- To set the permission in the group you need to apply a policy to that
group. Policies consists of JSON. These are referred to as key value pairs. You
have your key such
as name and then the value. For ex: {"name":"A cloud guru"}
- CloudFront - How it works with edge locations. Initial query at the edge
location, if not available then it downloads from the sever. Otherwise from the
edge location.
1. Edge Location: This is the location where content will be caches.
This is seperate to an AWS Region/AZ.
2. Origin: This is the origin of all the files that CDN will
distribute. This can be either a S3 Bucket, an EC2 instance, an Elastic Load
Balancer or Route 53.
3. Distribution - This is the name given the CDN which consists of a
collection of Edge locations.
4. Web Distribution - Typically used for Websites.
5. RTMP - Used for Media Streaming
6. Edge locations are not just READ only - you can write to them too.
(i.e put an object on to them.)
7. Objects are cached for the life of the TTL (Time To Live)
8. You can clear cached objects, but you will be charged.
- EC2 Exam Tips: Amazon Elastic Compute Cloud (Amazon EC2) is a web service
that provided resizable compute capacity in the cloud. Amazon EC2 reduces the time
required to obtain and boot new server instances to minutes, allowing you to
quickly scale capacity, both up and down, as your computing requirements change.
1. On Demand: Allows you to pay a fixed rate by the hour (or by the
second) with no commitment.
2. Reserved: Provides you with a capacity reservation and offer a
significant discount on the hourly charge for an instance. Contract Terms are 1
year or 3 year terms.
3. Spot: Enables you to bid whatever price you want for instance
capacity, providing for even greater savings if your application have flexible
start and end times.
Note: If the spot instance is terminated by Amazon EC2, you will not
be charged for a partial hour of usage. However, if you terminate the instance
yourself, you will be charged for any hour in which the instance ran.
4. Dedicated Hosts: Physical EC2 server dedicated for your use.
Dedicated Hosts can help reduce costs by allowing you to use your existing server-
bound software licenses.
- What is EBS
SSD:
1. General purpose SSD (GP2) - balances prices and performance for a
wide variety of workloads
2. Provisioned IOPS SSD (IO1) - higher-performance SSD volume for
mission-critical low-latency or high throughput workloads.
Magnetic:
1. Throughput Optimised HDD (ST1) - Low cost HDD volume designed for
frequently accessed, throughput-intensive workloads.
2. Cold HDD (SC1) - Lowest cost HDD volume designed for less frequently
accessed workloads (File Servers)
3. Magnetic - Previous generation and some point will probably be
phased out.
- Always design for failure. Have one EC2 instance in each availability zone.
=================================
AWS Pricing (12% in exam)
=================================
* Different Pricing Models: (Exam Tips)
- Capex (Capital expenditure) vs Opex (Operational Costs)
- The basic pricing policies are as follows:
1. Pay as you go
2. Pay less when you reserve
3. Pay even less per unit by using more
4. Pay even less as AWS grows
5. Custom pricing
- While pricing models vary across services, it's worthwhile to review key
principles and best practices that are broadly applicable
1. Understand the fundamentals of pricing.
2. Start early with cost optimisation
3. Maximise the power of flexibility
4. Use the right pricing model for the job.
- There are three fundamental drivers of cost with AWS: (Exam Tips)
1. Compute
2. Storage
3. And Data Outbound
- You can use Amazon EC2 reserved instances to reserve capacity and receive a
discount on your instance usage compared to running On-Demand instances.
- What determines price for Lambda?
1. Request Pricing
- Free Tier: 1 million requests per month
- $0.20 per 1 million requests thereafter
2. Duration Pricing
- 400,000 GB-seconds per month free, up to 3.2 million seconds of
compute time*
- $0.00001667 for every GB-second used thereafter
3. Additional Charges
- You may incur additional charges if your lambda functions uses
other AWS services or transfers data. For example, If your lambda function reads
and writes data to or from Amazon S3, you will be billed for the read/write
requests and the data stored in Amazon S3
- What is Snowball?
1. AWS Snowball is a PB-Scale data transport solution that uses secure
appliances to transfer large amounts of data in and out of the AWS cloud. Think of
it as a gigantic disk to move your data into AWS
* CloudTrail vs CloudWatch
- CloudWatch monitors performance.
- CloudTrail monitors API calls in the AWS platform.
Billing Alerts:
1. When monitoring is enabled on the paying account, the billing data
for all linked accounts is included.
2. You can still create billing alters per individual account.
3. Consolidated billing allows you to get volume discounts on all your
accounts.
4. Unused reserved instances for EC2 are applied across the group.
5. CloudTails is on a per account and per region basis, but can be
aggregated into a single bucket belonging to the paying account.
* AWS Quick Start & AWS Landing Zone - Lab (Exam Tips)
- AWS Quick Start is a way of deploying environments quickly, using
CloudFormation templates built by AWS Solutions Architects who are experts in that
particular technology.
- AWS Landing Zone is a solution that helps customers more quickly set up
secure, multi-account AWS environment based on AWS best practices.
* AWS Calculators (Important for practitioner exam)
- Helps to calculate costs using a couple of different calculators
- Available in two feature sets:
1. AWS Simple Monthly Calculator: Monthly cost of AWS
2. AWS Total Cost of Ownership Calculator: Comparison of doing it
ourselves or using AWS.
===============================
Security in the cloud
===============================
- AWS Trusted Advisor (Global Service) and it's for your AWS account. It is
an online resource to help you reduce cost, increase performance and improve
security by optimising your AWS environment, Trusted Advisor provides real-time
guidance to help you provision your resources following AWS best practices. Advisor
will advise you on Cost Optimisation, Performance, Security, Fault Tolerance and
service limits.
- Comes in two flavours
1. Core checks and recommendations
2. Full Trusted Advisor - Business and Enterprise Companies Only
- Trusted Advisor helps you optimise your entire AWS environment in real time
following AWS best practices. It helps you optimise cost, fault-tolerance, and
more.
- AWS Trusted Advisor can help you assess the fault-tolerance of your AWS
environment.
- AWS CloudTrail increases visibility into your user and resource activity by
recording AWS management console actions and API calls. You can identify which
users and accounts called AWS, the source IP address from which the calls were
made, and when the calls occurred
- What is Macie?
- Security service which uses machine learning and NLP (natural
language processing) to discover, classify and protect sensitive data stored in S3
- Uses AI to recognise if your S3 objects contain sensitive data such
as personal identification information.
- Dashboards, reporting and alerts
- Works directly with data stored in S3
- Can also analyse CloudTrail logs
- Great for PCI-DSS and preventing ID theft.
· S3 capacity can’t be reserved
Like your customised cloud expert, AWS Trusted Advisor analyses your AWS
environment and provides best practice recommendations in five categories:
cost optimisation, performance, security, fault tolerance and service limits.
Server platforms are EC2, RDS, Red Shift and EMR (Hadoop)
Serverless platform includes: AWS lambda, Fargate, Athena, Amazon S3, DynamoDB, API
gateway, Amazon SNS, SQS, AWS step functions, Amazon kinesis and developing tools
and services
AWS Data Pipeline is a web service that helps you reliably process and move data
between different AWS compute and storage services, as well as on-premises data
sources, at specified intervals.
Amazon Managed Streaming for Kafka (MSK) to build and run applications that use
Apache Kafka to process streaming data
AWS Step Functions lets you coordinate multiple AWS services into serverless
workflows so you can build and update apps quickly. Using Step Functions, you can
design and run workflows that stitch together services such as AWS Lambda and
Amazon ECS into feature-rich applications.
Amazon Simple Workflow (Amazon SWF) helps developers build, run, and scale
background jobs that have parallel or sequential steps. You can think of Amazon SWF
as a fully-managed state tracker and task coordinator in the cloud.
AR and VR: Amazon Sumerian lets you create and run virtual reality (VR), augmented
reality (AR), and 3D applications quickly and easily without requiring any
specialized programming or 3D graphics expertise.
AWS Cost Explorer has an easy-to-use interface that lets you visualize, understand,
and manage your AWS costs and usage over time.
AWS Budgets gives you the ability to set custom budgets that alert you when your
costs or usage exceed (or are forecasted to exceed) your budgeted amount.
Amazon Elastic Container Service for Kubernetes (Amazon EKS) makes it easy to
deploy, manage, and scale containerised applications using Kubernetes on AWS.
Amazon Lightsail is designed to be the easiest way to launch and manage a virtual
private server with AWS.
AWS Elastic Beanstalk is an easy-to-use service for deploying and scaling web
applications and services developed with Java, .NET, PHP, Node.js, Python, Ruby,
Go, and Docker on familiar servers such as Apache, Nginx, Passenger, and Internet
Information Services (IIS).
AWS Fargate is a compute engine for Amazon ECS that allows you to run containers
without having to manage servers or clusters.
The AWS Serverless Application Repository enables you to quickly deploy code
samples, components, and complete applications for common use cases such as web and
mobile back-ends, event and data processing, logging, monitoring, IoT, and more.
Each application is packaged with an AWS Serverless Application Model (SAM)
template that defines the AWS resources used.
AWS Outposts bring native AWS services, infrastructure, and operating models to
virtually any data center, co-location space, or on-premises facility.
Amazon ElastiCache is a web service that makes it easy to deploy, operate, and
scale an in-memory cache in the cloud.
AWS Cloud9 is a cloud-based integrated development environment (IDE) that lets you
write, run, and debug your code with just a browser. It includes a code editor,
debugger, and terminal.
AWS X-Ray helps developers analyse and debug distributed applications in production
or under development, such as those built using a microservices architecture.
Amazon Lumberyard is a free, cross-platform, 3D game engine for you to create the
highest-quality games, connect your games to the vast compute and storage of the
AWS Cloud, and engage fans on Twitch.
AWS IoT Core is a managed cloud service that lets connected devices easily and
securely interact with cloud applications and other devices. AWS IoT Core can
support billions of devices and trillions of messages, and can process and route
those messages to AWS endpoints and to other devices reliably and securely.
AWS IoT Greengrass seamlessly extends AWS to devices so they can act locally on the
data they generate, while still using the cloud for management, analytics, and
durable storage.
Machine Learning:
Amazon SageMaker is a fully-managed platform that enables developers and data
scientists to quickly and easily build, train, and deploy machine learning models
at any scale.
Amazon SageMaker Ground Truth helps you build highly accurate training
datasets for machine learning quickly.
Amazon Polly is a service that turns text into lifelike speech. Polly lets
you create applications that talk, enabling you to build entirely new categories of
speech-enabled products.
AWS Control Tower automates the set-up of a baseline environment, or landing zone,
that is a secure, well-architected multi-account AWS environment.
AWS DataSync is a data transfer service that makes it easy for you to automate
moving data between on-premises storage and Amazon S3 or Amazon Elastic File System
(Amazon EFS).
AWS Amplify makes it easy to create, configure, and implement scalable mobile
applications powered by AWS.
Amazon Cognito lets you add user sign-up, sign-in, and access control to your web
and mobile apps quickly and easily. (Social Media SSO)
Amazon Pinpoint makes it easy to send targeted messages to your customers through
multiple engagement channels.
AWS Device Farm is an app testing service that lets you test and interact with your
Android, iOS, and web apps on many devices at once, or reproduce issues on a device
in real time.
AWS AppSync is a serverless back-end for mobile, web, and enterprise applications.
AWS Direct Connect makes it easy to establish a dedicated network connection from
your premises to AWS.
AWS Global Accelerator is a networking service that improves the availability and
performance of the applications that you offer to your global users.
Amazon API Gateway is a fully managed service that makes it easy for developers to
create, publish, maintain, monitor, and secure APIs at any scale.
AWS Transit Gateway is a service that enables customers to connect their Amazon
Virtual Private Clouds (VPCs) and their on-premises networks to a single gateway.
AWS App Mesh makes it easy to monitor and control microservices running on AWS.
AWS Cloud Map is a cloud resource discovery service. With Cloud Map, you can define
custom names for your application resources, and it maintains the updated location
of these dynamically changing resources. This increases your application
availability because your web service always discovers the most up-to-date
locations of its resources.
AWS Security Hub gives you a comprehensive view of your high-priority security
alerts and compliance status across AWS accounts.
Amazon Cloud Directory enables you to build flexible, cloud-native directories for
organising hierarchies of data along multiple dimensions. With Cloud Directory, you
can create directories for a variety of use cases, such as organisational charts,
course catalogs, and device registries.
AWS CloudHSM is a cloud-based hardware security module (HSM) that enables you to
easily generate and use your own encryption keys on the AWS Cloud. With CloudHSM,
you can manage your own encryption keys using FIPS 140-2 Level 3 validated HSMs.
AWS Key Management Service (KMS) makes it easy for you to create and manage keys
and control the use of encryption across a wide range of AWS services and in your
applications.
AWS Secrets Manager helps you protect secrets needed to access your applications,
services, and IT resources.
Amazon FSx for Lustre is a fully managed file system that is optimised for compute-
intensive workloads, such as high performance computing, machine learning, and
media data processing workflows.
The AWS Cost & Usage Report is a single location for accessing comprehensive
information about your AWS costs and usage.
A director has been tasked with investigating hybrid cloud architecture. The
company currently accesses AWS over the public internet.
Which service will facilitate private hybrid connectivity?
AWS Direct Connect (not Amazon Virtual Private Cloud (Amazon VPC) NAT Gateway)
Which AWS service provides a secure, fast, and cost-effective way to migrate or
transport exabyte-scale datasets into AWS?
AWS Snowmobile (not AWS Snowball)
Mega Quiz
----------
- Under the Shared Responsibility model, for which of the following does AWS not
assume responsibility? A: Customer data
The customer is responsible for their own customer data.
- True or false: With AWS Organizations, there are two available feature sets — so
you may choose to use the consolidated billing features, or use all the offered
features. A: True
With AWS Organizations, you can use either the consolidated billing features or
all the offered features. If you create an organisation with consolidated billing
features only, you can later enable all features.
- An online resource to help you reduce cost, increase performance, and improve
security by optimising your AWS environment, Trusted Advisor provides real time
guidance to help you provision your resources following AWS best practices.
- The AWS Database Migrations Service is the best choice for conventional data
migrations.
- Which AWS service is specifically designed to assist you in processing large data
sets? A: EMR (not AWS big data processing)
Amazon EMR is a web service that makes it easy to process large amounts of data
efficiently.
- In both AWS-Budget & CloudWatch alarms can be set to monitor spending on your AWS
Account.
- Trusted Advisor can assist you with the cost optimisation of your AWS
environment.
- You have a project that will require 90 hours of computing time. There is no
deadline, and the work can be stopped and restarted without adverse effect. Which
of the following computing options offers the most cost-effective solution? - A:
Spot Instances
- You need to host a file in a location that's publicly accessible from anywhere in
the world. Which AWS service would best meet that need? A: S3
With S3, objects can be accessed from anywhere in the world via a dedicated URL.
- Which AWS service allows you to run code without having to worry about
provisioning any underlying resources (such as virtual machines, databases etc.)
A: Lambda is the AWS Function-as-a-Service (FaaS) offering that lets you run code
without provisioning or managing servers.
- Which native AWS service will act as a file system mounted on an S3 bucket? A:
AWS Storage Gateway
The Storage Gateway service is primarily used for attaching infrastructure
located in a Data centre to the AWS Storage infrastructure. The AWS documentation
states that; "You can think of a file gateway as a file system mount on S3." Amazon
Elastic File System (EFS) is a mountable file storage service for EC2, but has no
connection to S3 which is an object storage service. Amazon Elastic Block Store
(EBS) is a block level storage service for use with Amazon EC2 and again has no
connection to S3.
- Your Development team uses four on-demand EC2 instances and your QA team has 5
reserved instances, only three of which are being used. Assuming all AWS accounts
are under a single AWS Organization, how will the Development team's instances be
billed?
If using AWS Organization, Development Team will only be billed for 2 On-Demand
Instances.
Because QA Team has 5 Reserved instances and only 3 are being used so remaining 2
instances will be used for Development's Team Billing.
In this case we are saving money because Reserved instances are cheaper than On-
Demand because of commitment and upfront cost
- Which of the following are AWS compute services? A: EC2 and Lambda are AWS
Compute Services.
Yes, You can have any number of EC2 Instances in a Security Group, but, bear in
mind this Limits:
- Security groups per Region : 2500 (default limit)
- Security Groups per Network Interface (EC2 Instance) : 5 (default limit),
16 (the maximum per request)
- Inbound or Outbound rules per Security Group : 60 (default limit). You can
have 60 inbound and 60 outbound rules per security group (making a total of 120
rules)