Showing posts with label aws. Show all posts
Showing posts with label aws. Show all posts

Saturday, November 4, 2023

AWS Certified Cloud Practitioner exam notes

Before attending AWS Cloud Practitioner courses, I was thinking that this program is just for newbies. But after taking the course and passing the exam. I can clearly say that the content is really useful to start to learn and discover AWS services.

Quick notes after exam:

Amazon Inspector is an automated vulnerability management service that continually scans AWS workloads for software vulnerabilities and unintended network exposure.

AWS Transit Gateway connects your Amazon Virtual Private Clouds (VPCs) and on-premises networks through a central hub.

Benefits of AWS Global Accelerator
https://tutorialsdojo.com/aws-global-accelerator/

Questions about shared responsibility model

Amazon FSx: Question about smb file sharing

Difference between reserved instance and on-demand instance

 

Reserved instance, spot instance and on-demand instance use-cases

Reserved Instances provide you with a significant discount compared to On-Demand instance pricing. In addition, when Reserved Instances are assigned to a specific Availability Zone, they provide a capacity reservation, giving you additional confidence in your ability to launch instances when you need them.

Standard Reserved Instances provide you with a significant discount compared to On-Demand instance pricing and can be purchased for a 1-year or 3-year term. The average discount off On-Demand instances varies based on your term and chosen payment options (up to 40% for 1-year and 60% for a 3-year term). Customers have the flexibility to change the Availability Zone, the instance size, and networking type of their Standard Reserved Instances.

Convertible Reserved Instances provide you with a significant discount compared to On-Demand Instances and can be purchased for a 1-year or 3-year term. Purchase Convertible Reserved Instances if you need additional flexibility, such as the ability to use different instance families, operating systems, or tenancies over the Reserved Instance term.

Amazon EC2 On-Demand Instances Although it is suitable to run non-interruptible workloads for a period of three years, it entails a higher running cost compared to Reserved or Spot instances. In fact, this is actually the most expensive type of EC2 instance and not the cheapest one.


For 5 hours data processing task which service should be used on AWS?

(It cannot be Lambda. It works maximum 15 minutes with 10gb memory.)

Learn what is AWS wavelength, it was an option for some questions.

What is AWS Artifact, when we should use it?

S3 Storage Classes

Amazon S3 Glacier Flexible Retrieval 

DDOS protection service?

SQL injection protection service?

https://tutorialsdojo.com/amazon-sqs/

How do you find externally shared assets? 

IAM Access Analyzer uses provable security to analyze all access paths and provide comprehensive analysis of external access to your resources.

Which tool should be used for cost estamation?

Where do you store database passwords?

(Secret manager) 

What is AWS Control Tower?

AWS Marketplace use-cases

Migration from on-prem to AWS cloud related scenarios

Amazon Direct Connect

AWS VPC Endpoints

There are a lot of IoT devices on a ship and the customer wants to transfer data of these devices to AWS when internet is available. Which AWS service should be used for this scenario? https://aws.amazon.com/iot-core/ ?

 the customer started to use AWS for backups and they need to synced backups in on-premise site. Which service should be used?


 

 





Sunday, October 20, 2019

aws ec2 on linux command line

Prerequisites:


-An Amazon AWS account.(Free or Paid account)
-An IAM user with Access Key and secret access key.
–Pre-configured VPC, Subnets, Routes, Internet gateways, Security policy.
-Any Linux Machine with aws cli utlity installed.

aws cli installation:

Requirements:

– Linux.
– Python 2.6.5 or higher.

[Tested on Linux Mint with bash shell. should work on Ubuntu as well.]

Update your system and its packages:

sudo apt update && sudo apt upgrade -y

Install Pip:

sudo apt install python-pip -y
sudo pip install --upgrade pip

Install the following modules:

sudo pip install setuptools
sudo pip install wheel

Install AWS CLI:

sudo pip install awscli

To verify that the installation went well, you can run the following command.

aws --version

If the output shows the aws version, then you are all set.

Enable AWS commands Auto completion:

-To enable auto completion of sub commands, run the following to check where your “aws” and “aws_completer” are located.

which aws
which aws_completer

-Copy the output of “which aws_completer”. This would the path.


Most used aws ec2 commands for shell scripts:


aws ec2 describe-instances

aws ec2 start-instances --instance-ids i-dddddd70

aws ec2 stop-instances --instance-ids i-5c8282ed

aws ec2 terminate-instances --dry-run --instance-ids i-dddddd70

aws ec2 create-tags --resources i-dddddd70 --tags Key=Department,Value=Finance

aws ec2 describe-volumes

aws ec2 attach-volume  --volume-id vol-1d5cc8cc --instance-id i-dddddd70 --device /dev/sdh

aws ec2 run-instances --dry-run --image-id ami-08111162 --count 1 --instance-type t1.micro --key-name MyKeyPair --security-groups my-ami-security-group

aws ec2 reboot-instances --instance-ids i-dddddd70

aws ec2 modify-instance-attribute --instance-id i-44a44ac3 --instance-type "{\"Value\": \"m1.small\"}"

aws ec2 create-image --instance-id i-44a44ac3 --name "Dev AMI" --description "AMI for development server"

aws ec2 describe-images --image-ids ami-2d574747

aws ec2 deregister-image --image-id ami-2d574747 && aws ec2 delete-snapshot --snapshot-id snap-4e665454

aws ec2 delete-snapshot --snapshot-id snap-4e665454

aws ec2 modify-instance-attribute --instance-id i-44a44ac3 --disable-api-termination

aws ec2 modify-instance-attribute --instance-id i-44a44ac3 --no-disable-api-termination

aws ec2 get-console-output --instance-id i-44a44ac3

aws ec2 monitor-instances --instance-ids i-44a44ac3

aws ec2 unmonitor-instances --instance-ids i-44a44ac3

aws ec2 describe-key-pairs

aws ec2 create-key-pair --key-name dev-servers

aws ec2 delete-key-pair --key-name dev-servers