Search Interview Questions | ![]() ![]() Click here and help us by providing the answer. ![]() Click Correct / Improve and please let us know. |
|
| ||||
Amazon Web Services (AWS) - Interview Questions and Answers for 'Web service' - 306 question(s) found - Order By Newest | ||||
![]() | ||||
![]() | ||||
| ||||
Ans. REST or Representational State Transfer is a flexible architecture style for creating web services that recommends the following guidelines - 1. http for client server communication, 2. XML / JSON as formatiing language , 3. Simple URI as address for the services and, 4. stateless communication. | ||||
![]() | ||||
![]() ![]() ![]() ![]() ![]() ![]() | ||||
| ||||
Ans. EFS is file storage whereas S3 is object storage. EFS is filesystem presented over IP network as normal OS drive, while S3 is HTTP accessed store. EFS is capable of being mounted whereas S3 doesn't. S3 has capabilities beyond just filesystem, there is whole metadata part where you can store info about your objects in S3. As S3 is accessed over http , it's capable of hosting a static web site on it's own whereas EFS needs a computing and frontend service to have such capability. | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. AMI is an Amazon Machine Image. It contains the configuration to enable to boot up an EC2 instance with said configuration whereas Cloud formation is a templating language that allows to describe how to build a VPC and also allows you to create AWS services AMI is templating specific to instances whereas the scope of CloudFormation templating is much bigger. CloudFormation could use AMI for launching instances along with other services. | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. A Region is a Geographical entity like US-East , US-West etc. Each Region may have multiple availability zones where each zone comprise of 1 or more Data Center located with each other. Edge Locations are the sites that hosts cached content for faster delivery and for saving network traffic as they feed content from sites that are local or near to consumption. | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. CloudFront for Static Media and cached content EC2 and EKS ( Docker ) for main application computing RDS and DynamoDB for Database Lambda ( computing ) for running back end cron jobs Kinesis for streaming and SQS for queuing CloudWatch for Monitoring CloudFormation for Infrastructure templating S3 for Object Storage | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. S3 Standard S3 IA - Infrequently Accessed S3 One Zone IA - One Zone only , Infrequently Accessed S3 Glacier - achieved S3 Standard is most expensive , Glacier is least expensive | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. Storage Tier ( IA , Standard , Glacier etc ) Storage ( Volume of Data ) No of Requests Meta Data Data Transfer Speed acceleration through cache and Edge Location | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. EC2 - Time and Reservation , Instance Type ( Memory , Computation power ) S3 - Accessibility Frequency , Data Transfer , Storage Space CloudFront - Geography, No of Locations EBS - IOPS, Access Frequency | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. Simple Weighted Latency Failover GeoLocation Multivalue | ||||
![]() | ||||
![]() ![]() ![]() ![]() | ||||
| ||||
Ans. A VPC is devided into multiple subnets. Subnet in a particular VPC could be public or private. For Example - A particular account may have multiple vpc's for each of the business type. For each Business or VPC , One can have different subnets to cater to each department so that access across departments could be restricted. But still there could be identities that have control over different subnets. Moreover we could have multiple subnets for each department so as to have distinguished public and private networks having different types of applications ( public facing or internal consumption ) | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. GET is supposed to get information from the server. Client sends the minimal information so that Server can respond with the response body on basis of request. For example - You want to get complete employment record for employee id 123 POST is supposed to send the information for submission. Payload or a Body is usually sent so that it can be persisted on the server. For example - Sending the complete information of an employee ( id, name , dept etc ) to the server for persisting it. | ||||
![]() | ||||
![]() ![]() ![]() ![]() ![]() ![]() | ||||
| ||||
Ans. Single instance means there is only 1 instance that will bear all the traffic load whereas Load balanced server means that there will be a cluster of servers that will host the application and load will be balanced distributed among them. Auto Scaling means that the number of instances will be expanded / shrunken based on the rule. Rule could be the traffic count , response time etc. | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. Cloud Computing is a way of using IT infrastructure with following traits - 1. On Demand Infrastructure 2. Broad Network Access 3. Resource Pooling 4. Rapid Elasticity 5. Measured Service | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. AWS provides various types of services like Computing ( EC2 , Lambda , EKS ), Storage ( S3, Glacier ), Database ( RDS , DynamoDB ), Streaming ( Kinesis ), Queue ( SQS ), Security and Access ( IAM ) etc. | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. Warm up time for certain technologies like Java ( JVM Warmup ) Performance Size of Deployable ( Bigger size packaging should go in S3 ) | ||||
![]() | ||||
![]() ![]() ![]() ![]() | ||||
| ||||
Ans. Cloud Formation does not have any additional cost but you are charged for the underlying resources it builds. | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. In AWS Lambda we can run a function in synchronous or asynchronous mode. In synchronous mode, if AWS Lambda function fails, then it will just give an exception to the calling application. In asynchronous mode, if AWS Lambda function fails then it will retry the same function at least 3 times.If AWS Lambda is running in response to an event in Amazon DynamoDB or Amazon Kinesis, then the event will be retried till the Lambda function succeeds or the data expires. In DynamoDB or Kinesis, AWS maintains data for at least 24 hours. | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. A template for the instance. Launch permission decisions A block device mapping, when an instance is launched it determines the volumes to attach to that instances. | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. Because it gives the ability to provision infrastructure on Demand with No contracts and strings attached. | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. US-East Virginia This is the oldest and most popular region. All new features are rolled first in this region and hence they are first available there. The downside is that because of experimentation with new services, unavailability time is quite high. | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. It saves Network traffic and facilitates faster delivery by hosting bulk media and cached data near to client. | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. effect means whether the effect of this Policy is to allow or deny, action means the type of action ( read , write ) and service, and resource is the resource where this should apply. For example - If we want to have a Policy of providing read access on S3 , effect will be "allow" action will be "s3:GetObject" resource will be "arn:aws:s3:::examplebucket/*" | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. Because new files will be fed from where ever they are first available but AWS have no way to identify which is the most updated version among the various regions. The updated version can only be assured once the replication to all availability zones is complete. | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. We should only allow access that's needed. So the security Policy should be as restrictive as possible. Buckets and Files should never be made public unless until they are needed it to be like that. | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. Versioning ( will create Delete marker ) MFA Delete ( authentication upon deletion ) Cross Region Replication ( Replicates aren't deleted ) | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. We can select the appropriate Price Class if that suits us. We can do Geo Targeting by black listing / white listing certain geographies. | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. If the computation required is Spiky and unpredictable. If it's first time use. If the lifespan of the application isn't known. | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. If the usage is non continuous and have flexible start and End Time. For ex - Analysis , Research , mining etc. | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. On Demand Reserved Spot Dedicated Host | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. Keeping Low cost for processing , i would choose Spot Price Plan F1 or P3 Instance Type Cold Hdd (SCI ) EBS Volume | ||||
![]() | ||||
![]() ![]() ![]() | ||||
![]() | ||||