Monday, March 21, 2022

MORNING QUIZ - AWS



Q1 What is the full form AWS
Amazon Web Service

Q2 What is the full form of S3
Simple Storage Service

Q3 Any 2 advantages of S3
Upload Files/Folders and can share with others,HA and durability,static website,cross region replication

Q4 Any No Sql Database Name which is supported by AWS
Dynamodb

Q5 Is Dynamodb region specific
Yes

Q6 If you need to patch EC2 instances then which AWS service is used for this
Session Manager

Q7 What is the prequisite required for an EC2 instance so that session Manager can picked it up for patching?
Add Role for the EC2 instance AmazonSSMManagedInstanceCore



Q1 Can EBS Volume attach to EC2 instance?
Yes

Q2 Can S3 bucket attach to EC2 instance?
No

Q3 In which cases EBS volume is used and in which case S3 is used.
EBS can attach to EC2 whereas S3 not
Sharing file with others use S3
Replication on other regions S3
S3 has Lifecycle mgmt whereas EBS not
S3 stores metadata of the file whereas EBS not

Q4 Any 2 comparison between Dynamodb and RDS
Dynamodb Semi Structure,  RDS Structured
Dynamodb Serverless, RDS SQL Database service

Q5 Does RDS support Multi AZ support for its Databases?
Yes for Production and Dev Database, No if it free tier

Q6 In what scenario you will use Role or Users
Apply permission on services like EC2,Lambda etc then use Role, Attach a Role to EC2 instance
Users to provide Authentication and Authorization purpose

Q7. What are commonly used Role's services
Lambda, EC2



Q1 S3 stores metadata of an object(file/folder)
Yes

Q2 Can S3 have nested buckets?
No

Q3 How to access each object in S3 publicly.
Define access policy. and create the Json code using policy generator

Q4 S3 Bucket name should Globally unique?
Yes it is Globally unique

Q5 Can we attach a volume to an EC2 instance which is in different AZ
No

Q6 Which monitoring service in AWS is used for setting up Alarm for other AWS services like EC2,Dynamodb etc
CloudWatch

Q7 How to monitor the logs of EC2 instances
Create a Role with Cloudwatch full access and attach to EC2
configure cloudwatch agent
Cloudwatch---> loggroups




Q1 In AWS, Can we change the security group of a running EC2 instance?
Yes

Q2 A single Ec2 instance can have multiple security group attached to it?
Yes

Q3 Which AWS service is used for storing the data in Edge location?
CloudFront

Q4 Any 2 benfit of volume snapshot?
Restore Deleted volume data
Create Volume in any AZ with snapshot

Q 5 Can We increase the size of a volume when we create a new volume from a snapshot?
Yes we can increase the volume size but cannot decrease it.

Q 6 Do you need to do the administration of Dynamodb servers?
No AWS Manage those servers.

Q7 Any 2 serverless services in AWS
Dynamodb, Lambda


Q1 What is AMI full form?
Amazon Machine Images

Q2 Can we create a custom AMI?
Yes, EC2 we can create an Image

Q3 Can you give me the use case for Edge location
Edge locations are DC which closer to user location, These DC Caches the Data.
eg There is a media file in a region like singapore and need to download in Mumbai region then we use CloudFront distribution to cache the file so that the latency will be less and throughput is more.

Q4 What is MFA in IAM?
Using Authenticator App we can login to the aws console.

Q5 Can we create a user in IAM without a group?
Yes, we can attach permission to individual user.

Q6 How Can you allow or deny firewall related permission on VPC level
NACL

Q7 In NACL one subnet can be associated with multiple NACLs
No


Q1 What are different ways to create or launch an EC2 instance from predefined images.
Launch Templates,AMI

Q2 How can you install apache on EC2 instance creation process
Apache script is to be mentioned in User data

Q3 What is Lifecycle Management of S3 bucket.
It determines that how long an object is available in a Storage class ( Standard, Standard IA, Intelligent Tier, One Zone, Glacier, Deep Archive)

Q4 if there are 3 users and you need to provide same level of access permission then how you can perform in AWS IAM?
Create a Group and assign these users into that group so that permissions can be provided on group level

Q5 Can a user be a part of multiple groups?
Yes

Q6 If you want to deploy an API using serverless approach what are the steps you need to follow?
API using Lambda function
Add Trigger API Gateway
define the methods
deploy those methods in the stage(default)
End point will generated for method to invoke the API



Q1 Can we use a predefined SG with multiple EC2 instances?
Yes

Q2 Reserved Instances are costlier than On Demand Ec2 instances?
No, RI is much cheaper than On Demand instances.

Q3 How you can copy and link an object of a s3 bucket with other region's bucket.
Cross Region Replication. Which can be applied to same account or different account.

Q4 In Dynamodb we first create an Ec2 instance and then deploy Dynamodb is it a true statement?
No because Dynamodb is serverless

Q5 Can we create a table in Dynamodb using JSON script
Yes, We can use form based and JSON based

Q6 If you need to distribute the traffic equally on all the associated Ec2 instances then which LB will you use.
Classic LB

Q7 Every ELB provides one DNS Name by which we are accessing the application of LB?
Yes


Q1 In a Region #AZ>#Edge Locations
No, In a Region there will be more Edge Location (small DC)

Q2 What an AZ represent?
Datacenter in Region, At least there are 2 AZ in a Region

Q3 Scenario where S3 versioning is mandatory?
Cross Region Replication, Maintain the versioning of objects, recover a delete object

Q4 When we create a DB in RDS then how the cost of that database is calculated.
when we create RDS DB then we also select the EC2 instance type and its size, the calculation of cost is on the basis of EC2 instance creation.

Q5 In Serverless AWS creates the resources like EC2 instances or storage etc by itself and we don't have much control on it?
Yes

Q6 Which AWS service is used to scale out and scale in EC2 instances on demand.
AutoScaling

Q7 In Autoscaling Do we need to define any configuration of EC2 first or we can also use the Launch Templates?
We can use either Launch Configuration or Launch Template


Q1 In S3, Can we access an object publicly.
Yes, Providing Permission using ACL enabled, after that we can make an object public.

Q2 Can we recover a deleted object from s3?
Yes, If the versioning is enabled on bucket level

Q3 What is the difference between Standard IA and Glacier Storage class?
IA charges are more and can retrieve the data faster
Glacier storage charges are less and access the data takes around 5 -12 hrs.

Q4. If you want to share a file with others then which AWS service you will use?
S3

Q5 If you want to create an EC2 instance and any one who has access to that EC2 instance can run some AWS commands related to s3, In this case which IAM component you will use so that it is not dependent on ACCESS and SECERT KEY of the user.
Create a IAM Role for Ec2 instance and provide s3 full access permission and then attach that role to the EC2 instance

Q6 If you want to trigger a functionality when some event occur in AWS service like s3 then which AWS service you need to configure.
Ans Lambda function

Q7 Name any 3 DBs which is supported by AWS RDS.
MySQL, Aurora, Postgres, MariaDB, SQLServer, Oracle.

No comments:

Post a Comment

Fluentd

Open-source log data collector > why logs? - for compliance (auditing, company, business) - for security (transparency, monitoring, admin...