Browse [LATEST] AWS Lambda Interview Questions & Answers
Last updated on 04th Jul 2020, Blog, Interview Questions
- These AWS Interview Questions have been designed specially to get you acquainted with the nature of questions you may encounter during your interview for the subject of AWS.
- As per my experience good interviewers hardly plan to ask any particular question during your interview, normally questions start with some basic concept of the subject and later they continue based on further discussion and what you answer.
Q1.What Is AWS Lambda?
- AWS Lambda is an Amazon serverless computing system that runs code and automatically manages your underlying compute resources.
- It lets you automatically run code in response to many types of events, such as HTTP requests from Amazon API gateway, table updates in Amazon DynamoDB, and state transitions.
- It also enables you to extend to other AWS services with custom logic, and even create your own back-end services.
Q2.How Does AWS Lambda Work?
- While AWS Lambda may seem confusing at first, it really isn’t.
- In fact, it’s actually just a 4-step simple process.
- Start off by uploading your code to AWS Lambda.
- From there, set up your code to trigger from other AWS services, HTTP endpoints, or mobile apps.
- AWS Lambda will only run your code when it’s triggered and will also only use the computing resources needed to run it.
Q3.What’s better? You only have to pay for the compute time you use!
What are the Advantages of AWS Lambda?
- AWS Lambda offers a variety of benefits to its users. Here are 3 of the biggest benefits you should know about when deciding if AWS Lambda is right for you:
- It Doesn’t Require You to Manage Any Servers
- Since AWS Lambda automatically runs your code there’s no need for you to manage the server. Simply write your code and upload it to Lambda and you’re good to go.
- It Empowers You to Easily Scale
Q4.What Can You Build with AWS Lambda?
AWS Lambda can build a variety of things. Here’s a quick list of just a few use cases for it:
- Data processing
- Real-time file processing
- Data validation
- Real-time stream processing
- 3rd-party API requests
Q5.How Much Does AWS Lambda Cost?
- As previously mentioned, with AWS Lambda you only pay for what you use, factoring in the number of requests and duration of your code.
- Lambda considers a request to be each time it starts executing in response to a trigger such as an event notification or an invocation volume.
- The duration of the code is calculated from the moment your code begins executing until it returns or is terminated.
Q6.Define Amazon Web Services or AWS.
According to the terminology, AWS or Amazon Web Services is defined as a platform which is designed to provide secure cloud services, computing power to clients, database storage options, content delivery and many other services which are all intended towards business development and growth.
Q7. List out the main components of AWS.
- Similar to other Cloud Services in the industry, AWS too has been designed in a structured manner and has several key components.
- Mentioned below is the list of the same: Easy Email Service: This service allows customers and clients to address email utilization through normal SMTP or RESTFUL API.
- Access Management and Identity: This has been designed in order to provide heightened identity control and protection for a client’s AWS account.
Q8. What do you know about Buffer in AWS?
- A buffer is necessary in any cloud computing technology in order to maintain seamless integration across a huge flow of traffic and loads.
- The Elastic Load Balancer in Amazon Web Services has been designed in a way to ensure that all the incoming traffic is optimally distributed across all channels of AWS instances.
- The presence of a buffer enables the components to work in an unstable situation and receive and process requests as it gets them.
- Essentially the presence of a buffer is needed to create an equilibrium between all the apparatus and provide them with an identical ability to supply more rapid services.
Q9. How can you secure your data in the cloud?
- One of the most important aspects of cloud computing is its security.
- It must be ensured at all times that no individual or organization is able to seize the data of a client while in a transition from one point to another and also there shouldn’t be any leakage of information from any of the several storerooms in the cloud.
- Thus one of the most effective ways of securing information is by segregating it and then encrypting the same by one of the mutually agreed options.
Q10. List out the different services offered by cloud computing.
There have been a number of public and private cloud platforms developed these days. All of these are composed of several services/layers of cloud computing.
Mentioned below is a list of the same:
- PaaS: It is the acronym for Platform as a Service.
- IaaS: It is the acronym for Infrastructure as a Service.
- SaaS: It is the acronym for Software as a Service.
Q11. Can Amazon Instance be vertically scaled? If yes, how?
Yes, it is very much possible to vertically scale an Amazon Instance. Here’s how:
- Form and twist a fresh massive instance on top of the currently governing instance.
- Make an attempt to delay the current instance and separate the source web mass of dispatch and server.
- The next step is to quit your existing instance and separate the same from source quantity.
- Take note of the new machine ID and connect the same source mass to your fresh server.
Q12. Name the basic components of Amazon Web Services.
Amazon Web Services or AWS consists of 4 main components that are as listed below:
- Amazon S3: This component has been designed to enable one to retrieve information which has been occupied in creating the cloud structural design and also retrieve the produced information as a consequence of the specified key.
- Amazon EC2 instance: This component has been designed in order to run automatic parallelization and also achieve job scheduling. This instance is immensely helpful in running a large distributed system on the Hadoop Cluster.
- Amazon SimpleDB: This component helps in the storage of the transitional positional log and also run the errands when they are executed by the client or the consumer.
- Amazon SQS: This component has been mainly designed to act as a mediator between different controllers. This is an additional cushioning for the managers at Amazon.
Q13. Define Amazon EC2.
- Amazon EC2 service is the acronym for Amazon Elastic Compute Cloud which has been designed to provide its customers with resizable and scalable computing capacity when they are using the cloud.
- Using the service of Amazon EC2, a client is able to launch as many virtual servers as he wants.
- In each of these virtual servers, the client is able to manage storage as well as configure security as and when needed.
- The main advantage of using Amazon EC2 is its ability to get everything done with minimal friction at all times.
Q14. List out all the best security practices for AWS EC2.
- As a client who is using the service of Amazon EC2, there are some security best practices that needs to be followed at all times.
- The same is as outlined below.Use the AWS identity and access management to control and limit access to all your AWS resources at all times.
Q15. Explain Stopping, Starting, and Terminating an Amazon EC2 instance.
- Stopping and Starting an instance are the most common commands used on the Amazon EC2 platform.
- Questions based on these commands are considered one of the best AWS interview questions.
- Mentioned below is the explanation of the commands.
- Once the command for stopping an instance is issued, the instance first performs a normal shutdown and then transitions itself to a stopped state.
- All the Amazon EBS volumes remained attached as they were, and you can resume the instance at a later stage.
- One of the main advantages of this feature is that Amazon doesn’t charge you additionally for the hours while the instance was in a stopped state.
Q16. Can S3 be cast-off with EC2 Instances, If yes specify how?
- Yes, it is possible to cast off with EC2 instances by using root approaches which have the backup of native occurrence storage.
- When a developer or a client is using Amazon S3 services, they have the capability to use extremely scalable and additionally fast, dependable, low priced data storage structures that are used by Amazon itself to track the worldwide network of its own websites.
Q17. Define regions and availability zones in Amazon EC2.
- Being such a mammoth in the industry, it is common knowledge that Amazon EC2 will be hosted in multiple locations across the world.
- These worldwide locations are categorized in terms of availability zones as well as regions.
- Each of these regions is completely independent of the other and each availability zone is isolated as well.
- But all the availability zones in a particular region are interconnected through multiple low latency links.
Q18. What is Amazon EC2 Root Device Volume?
- When you as a developer launch an instance, the root device volume has the image that was used to boot up the instance in the first place.
There are two types of AMIs or Amazon Machine Images that are available:
- EBS based storage, and
- Instance store-backed AMI
Q19. Are you aware of Security Group in Amazon EC2? Tell something about it.
- Security groups in Amazon EC2 are one of the ways through which the security of the cloud network is protected.
- They act as a firewall and are used for controlling both the inbound as well as outbound traffic at the level of the instance.
Q20. Which of the following is a method for bidding on unused EC2 capacity based on the current spot price?
Spot Instance is the best method for bidding on unused EC2 capacity since this feature requires an affordable low price and the availability of the system varies depending on the availability of excess capacity.
Q21. Is this statement wrong, why?
- “The standard instances are not suitable for standard server applications”
- Yes, the statement is wrong because the standard instances are deemed suitable only for standard server applications.
Q22. Which instance has an hourly rate with no long-term commitment?
On-Demand Instance has an hourly rate with no long-term commitment because the pricing of this feature varies with the pricing model, instance as well as zone.
Q23. Which Amazon cloud-based storage system allows you to store data objects ranging in size from 1 byte up to 5GB?
- Amazon S3 cloud-based storage system allows you to store data objects ranging in size from 1 byte up to 5GB.
- It is because, in S3 containers, storage containers are often referred to as buckets.
Q24. Which operation retrieves the newest version of the object?
GET operation retrieves the newest version of the object since the versioning can also be used for archiving purposes as well as preserving data.
Q25.How can the request be sent to Amazon S3?
- As we all know that Amazon S3 is a rest service.
- The request can be sent either by using the REST API or using AWS SDK wrapper libraries which can be used to wrap the Amazon S3 REST API.
Q26.How to secure files in Amazon S3?
- Autoscaling and load balancer are the important features of AWS services and the interviewer may ask many of the AWS interview questions based on these features in the interview.
- These important topics can’t be ignored, so here we cover AWS interview questions based on Autoscaling and load balancer.
Q27.What is auto-scaling and how does it work?
- Auto-scaling is one of the most important features that Amazon Web Service provides that gives you an allowance to configure and automatically stipulate and also twists new instances without even your intervention.
- This can be done by setting the edges and measurements to screen.
- At the point when those edges have crossed another instance based on your preference will be spun up, rolled, and configured into the load balancer pool.
- Now, you would’ve scaled that horizontally without the intervention of an operator.
Q28. What is Server Load Balancing?
- SLB (Server Load Balancing) provides the performance of the network and also it delivers the content by the implementation of a series of priorities as well as algorithms which helps in responding to the precise requests that are made to the network.
- In other words Server Load Balancing (SLB) takes the part of distributing the clients to a vast group of some servers and that also ensures that the clients which are sent are only sent to the specific servers and not to the failed servers.
Q29. What is Global Server Load Balancing (GSLB) and does Clustering need to be turned on in order to use GSLB?
- GSLB (Global Server Load Balancing) is very much similar to SLB (Server Load Balancing) but GSLB takes SLB to a global scale.
- It authenticates us to stack balance VIPs from various geographical locations as well as a single entity.
- From this, the geographic site gets scalability and fault tolerance.
Q30. What are the automation tools that can be used to spin up the servers?
- The use of AWS API is the most prominent way to roll your own scripts.
- The scripts like this can be written in any language of one’s choice like bash or python.
- Another option is that we can use configuration management and also provisioning the tool like its puppet or it can be better when the successor Opcode Chef can be used.
Q31. What are those load balancing methods which are supported with array network GSLB and also explain Reverse Proxy Cache?
- The following methods of Global Server Load Balancing are supported by Array appliance.
- Overflow: Overflow method allows all the requests to be sent to the different remote site when the local site id loaded up to 80%
- lc: “lc” here stands for Least Connections, it sends the clients to the site which has the least count of current connections.
- rr: “rr” here stands for Round Robin, it sends the clients in the round robin suction to each site.
Q32. What are the challenges in microservices debugging and troubleshooting?
- In the serverless world, debugging and troubleshooting is the most difficult process.
- The log error and warning messages are logged in CloudWatch.
- This is the area that needs attention and Amazon is working on it.
Q33. What is Elastic Beanstalk?
- Elastic Beanstalk provides the basic services which help in the creation of Environment.
- It also provides services like managing the application environments which include the creation of logs, health, and monitoring, etc.
Q34. Mention few benefits of the elastic beanstalk.
- The Beanstalk is easy for beginners and most flexible. Deployment of the application on AWS is easy.
- Various tools like Visual Studio are used to upload the applications.
- The deployment details of capacity monitoring and auto-scaling can be easily managed by AWS Beanstalk.
- Demand Scaling: The application can be auto-scaled which helps in the handling of workload or traffic while minimizing the cost for the application.
Q35. Mention some of the advantages of AWS Elastic Beanstalk.
Some of the benefits of AWS EBS are as follows:
- EBS is economical with no hidden costs. You will pay what you will use.
- The AWS management console can be accessed within an hour with its fast access.
- IT supports languages like Java, .NET, PHP, Node.js, Python, Ruby, etc.
- AWS EBS builds the setup and spectators the AWS service for the creation of web services.
Gain In-Depth Knowledge on AWS Lambda Training from MNC Experts
- Instructor-led Sessions
- Real-life Case Studies
Q36. What are the operating systems used by Elastic Beanstalk?
- AWS Beanstalk requires a stable, high-performance, secure environment for execution for Amazon EC2 cloud computing.
- So there are two EMI’s which are maintained by AWS. Amazon Linux AMI and Windows Server 2012 R2 AMI are two OS which runs Amazon Elastic Beanstalk.
Q37. How to make any application private?
- In myapp.elasticbeanstalk.com the application is public by default.
- Amazon VPC should be used to make the virtual network private.
- Specific security group rules are also there to make the application private.
Q38. What do you mean by AWS Lambda?
- If you talk about a serverless compute service then AWS Lambda offers the best service.
- The codes can be run and managed without managing servers.
- You just pay for the consumption of data in computing.
- When you are idle you do not have to pay anything.
- Just an upload of code is needed and rest is managed by Lambda.
Q39. Mention the time span in which the AWS Lambda function will execute.
- All the process of AWS Lambda and execution takes place within 300 seconds from placing calls to AWS Lambda.
- The default timeout is 3 seconds rest you can setup any value between 1 to 300 seconds.
Q40. Can Lambda be vertically scaled? If yes, how?
- This is one of the most prominent features of AWS Lambda.
- When a larger instance is to be spin then we use vertical scaling.
- If there is scaling in use then it has to be paused and has to be detached from the server.
- The ID of new device post is to be noted down to continue the process.
Q41. Mention the role of SQS in Lambda.
- There is a certain approach which is used for sharing of information and passing that information among different hosts and connectors and communication can be established.
- The functional components could be connected even if they are different.
- There are many advantages of using SQS and several of the failures are eliminated.
Q42. What are the Final variables?
- Once assigned these variables cannot be changed.
- In its earlier stage, they are known as effective variables where any form of change is possible and the values are assigned to them.
- They also play an important role in testing.
- Most of the local expressions are final.
Q43. How can performance be improved in Lambda?
- There are some of the methods by which performance can be improved in Lambda.
- You can improve the performance by using Linux software RAID and with the help of RAID, we can be assured of better security.
Q44. Define Automate Deployment.
- This method is similar in many ways to programming in other languages.
- However, the unique advantages of this platform is that it helps in cutting down a lot of challenges.
- One of the best things is, the deployment can be made as one becomes more proficient with other offerings of the service.
- Using Automated deployment clients can minimize human interference and also ensure that the outcomes are quality based in every aspect.
Q45. List out the different ways to access EC2.
- EC2 can be accessed both via web-based Interface and also Command Line Interface.
- Additionally, there are Powershell tools available in Windows which can be simply executed.
Q46. What are the advantages of using the serverless approach?
Using the serverless approach has multiple advantages.
Mentioned below is a list of the same:
- The approach is utterly simple which converts to quicker time to market and thus higher sales.
- Clients are only required to pay when the code is in operation, thus a huge amount of money can be saved in enhanced profits.
- Clients do not need any additional infrastructure in order to run this application.
- Clients do not need to give any second thought on the server which is running the code.
Q47. Is it possible to debug and troubleshoot the small or microservices?
- Yes, it is very much possible to debug and troubleshoot small as well as microservices.
- The unique feature enables it to be done even when appropriate tasks are being performed in the background.
Q48. Why is Lambda regarded as a time-saving approach?
The main reasons due to which Lambda is considered as a time-saving approach are as follows:
- All the data can be simply stored in the local server memory.
- The data can be stored directly into the database without affecting their performance.
- Integration testing is highly powerful and can be made through multiple vendors.
Q49. What is your opinion About Zero Downtime Deployment?
- Deployments are most commonly considered in the form of functions.
- The advantageous feature of AWS Lambda is that it divides the functions into cases when they are hugely complex.
- The app in these scenarios remains offline during such a time period, but the end result is always great and of high quality.
Q50. Define Amazon Cloudwatch.
- As mentioned above, Amazon CloudWatch is a management tool and is a part of the Amazon Web Services family.
- It is basically a monitoring service for AWS cloud resources and all applications run on the AWS platform.
- CloudWatch can be used to track and collect metrics, set alarms, collect and monitor log files, and also monitor resources such as EC2 instances, RDS DB instances, and DynamoDB tables.
Q51. Name the operating systems on which CloudWatch runs.
CloudWatch is a truly versatile system and it is capable of receiving and providing metrics for all EC2 instances and currently works on any operating system supported by EC2.
Q52. What kinds of things can I do with CloudWatch logs?
- As CloudWatch is capable of storing and monitoring a client’s logs and help them better understand how their systems and applications are operating.
CloudWatch can be used to log in multiple ways, which are as mentioned below:
- Long-term log retention
- Real-Time application and system monitoring
Q53. Which platforms support CloudWatch Logs Agent?
The CloudWatch logs agent is supported by a number of operating systems and platforms. The list of the same is as mentioned below:
- Amazon Linux
- Red Hat Enterprise Linux
Q54. Does the CloudWatch logs agent support IAM roles?
Yes, the CloudWatch logs agent is very much capable of supporting and integrating with IAM and has access to both keys and IAM roles.
Q55. List out the retention period of all metrics.
- CloudWatch retains all its metrics accordingly as mentioned in the table below.
Any data points or high-resolution custom metrics with a span of fewer than 60 seconds are available for 3 hours.
- Data points with a period of 60 seconds are available for 15 days.
- Data points with a period of 5 minutes are available for 63 days.
- Data points with a period of 1 hour are available for 455 days or 15 months.
Q56. What Are Some of the Security Best Practices for Amazon EC2?
Security best practices for Amazon EC2 include using Identity and Access Management (IAM) to control access to AWS resources; restricting access by only allowing trusted hosts or networks to access ports on an instance; only opening up those permissions you require, and disabling password-based logins for instances launched from your AMI.
Learn AWS Lambda Training & Certification Course to Buid Your SkillsWeekday / Weekend BatchesSee Batch Details
Q57. What Is Amazon S3?
- S3 is short for Simple Storage Service, and Amazon S3 is the most supported storage platform available.
- S3 is object storage that can store and retrieve any amount of data from anywhere.
- Despite that versatility, it is practically unlimited as well as cost-effective because it is storage available on demand.
- In addition to these benefits, it offers unprecedented levels of durability and availability.
- Amazon S3 helps to manage data for cost optimization, access control, and compliance.
Q58. Can S3 Be Used with EC2 Instances, and If Yes, How?
- Amazon S3 can be used for instances with root devices backed by local instance storage.
- That way, developers have access to the same highly scalable, reliable, fast, inexpensive data storage infrastructure that Amazon uses to run its own global network of websites.
- To execute systems in the Amazon EC2 environment, developers load Amazon Machine Images (AMIs) into Amazon S3 and then move them between Amazon S3 and Amazon EC2.
Q59. What Is Identity Access Management (IAM) and How Is It Used?
I dentity Access Management (IAM) is a web service for securely controlling access to AWS services. IAM lets you manage users, security credentials such as access keys, and permissions that control which AWS resources users and applications can access.
Q60. What Is Amazon Virtual Private Cloud (VPC) and Why Is It Used?
- A VPC is the best way of connecting to your cloud resources from your own data center.
- Once you connect your datacenter to the VPC in which your instances are present, each instance is assigned a private IP address that can be accessed from your data center.
- That way, you can access your public cloud resources as if they were on your own private network.
Q61. What Is Amazon Route 53?
- Amazon Route 53 is a scalable and highly available Domain Name System (DNS).
- The name refers to TCP or UDP port 53, where DNS server requests are addressed.
Q62. What Is Cloudtrail and How Do Cloudtrail and Route 53 Work Together?
- CloudTrail is a service that captures information about every request sent to the Amazon Route 53 API by an AWS account, including requests that are sent by IAM users.
- CloudTrail saves log files of these requests to an Amazon S3 bucket.
- CloudTrail captures information about all requests.
- You can use information in the CloudTrail log files to determine which requests were sent to Amazon Route 53, the IP address that the request was sent from, who sent the request, when it was sent, and more.
Q63. When Would You Prefer Provisioned IOPS over Standard Rds Storage?
- You would use Provisioned IOPS when you have batch-oriented workloads.
- Provisioned IOPS delivers high IO rates, but it is also expensive.
- However, batch processing workloads do not require manual intervention.
Q64. How Do Amazon Rds, Dynamodb, and Redshift Differ from Each Other?
- Amazon RDS is a database management service for relational databases.
- It manages patching, upgrading, and data backups automatically.
- It’s a database management service for structured data only.
- On the other hand, DynamoDB is a NoSQL database service for dealing with unstructured data.
- Redshift is a data warehouse product used in data analysis.
Q65. What Are the Benefits of AWS’s Disaster Recovery?
- Businesses use cloud computing in part to enable faster disaster recovery of critical IT systems without the cost of a second physical site.
- The AWS cloud supports many popular disaster recovery architectures ranging from small customer workload data center failures to environments that enable rapid failover at scale.
- With data centers all over the world, AWS provides a set of cloud-based disaster recovery services that enable rapid recovery of your IT infrastructure and data.
Q66.What type of performance can you expect from Elastic Block Storage? How do you back it up and enhance the performance ?
- Performance of an elastic block storage varies i.e. it can go above the SLA performance level and after that drop below it.
- SLA provides an average disk I/O rate which can at times frustrate performance experts who yearn for reliable and consistent disk throughput on a server.
- Virtual AWS instances do not behave this way.
- One can backup EBS volumes through a graphical user interface like elasticfox or use the snapshot facility through an API call.
- Also, the performance can be improved by using Linux software raid and striping across four volumes.
Q67.Imagine that you have an AWS application that requires 24×7 availability and can be down only for a maximum of 15 minutes. How will you ensure that the database hosted on your EBS volume is backed up?
- Automated backup are the key processes here as they work in the background without requiring any manual intervention.
- Whenever there is a need to back up the data, AWS API and AWS CLI play a vital role in automating the process through scripts.
- The best way is to prepare for a timely backup of EBS of the EC2 instance.
- The EBS snapshot should be stored on Amazon S3 and can be used for recovery of the database instance in case of any failure or downtime.
Q68.You create a Route 53 latency record set from your domain to a system in Singapore and a similar record to a machine in Oregon. When a user located in India visits your domain, to which location will he be routed to?
- Assuming that the application is hosted on Amazon EC2 instance and multiple instances of the applications are deployed on different EC2 regions.
- The request is most likely to go to Singapore because Amazon Route 53 is based on latency and it routes the requests based on the location that is likely to give the fastest response possible.
Q69.Differentiate between on-demand instance and spot instance.
- Spot Instances are spare unused EC2 instances which one can bid for. Once the bid exceeds the existing spot price (which changes in real-time based on demand and supply) the spot instance will be launched.
- If the spot price becomes more than the bid price then the instance can go away anytime and terminated within 2 minutes of notice.
- The best way to decide on the optimal bid price for a spot instance is to check the price history of last 90 days that is available on AWS console.
- The advantage of spot instances is that they are cost-effective and the drawback is that they can be terminated anytime.
Q70.How will you access the data on EBS in AWS ?
- Elastic block storage as the name indicates provides persistent, highly avaialble and high performance block level storage that can be attached to a running EC2 instance.
- The storage can formatted and mounted as a file system or the raw storage can be accessed directly.
Q71.What is the boot time for an instance store backed instance ?
Following are the steps to scale an Amazon Instance vertically –
- Spin up a larger Amazon instance than the existing one.
- Pause the exisiting instance to remove the root abs volume from the server and discard. Stop the live running instance and detach its root volume.
- Make a note of the unique device ID and attach that root volume to the new server. Start the instance again.
Q72.Differentiate between vertical and horizontal scaling in AWS.
- The main difference between vertical and horizontal scaling is the way in which you add compute resources to your infrastructure.
- In vertical scaling, more power is added to the existing machine while in horizontal scaling additional resources are added into the system with the addition of more machines into the network so that the workload and processing is shared among multiple devices.
- The best way to understand the difference is imagine that you are retiring your Toyota and buying a Ferrari because you need more horsepower.
- This is vertical scaling. Another way to get that added horsepower is not to ditch the Toyota for the Ferrari but buy another car.
- This can be related to horizontal scaling where you drive several cars all at once.
Q73.What is the total number of buckets that can be created in AWS by default ?
- 100 buckets can be created in each of the AWS accounts.
- If additional buckets are required, increase the bucket limit by submitting a service limit increase.
Q74.Differentiate between Amazon RDS, Redshift and Dynamo DB.
- An organization wants to deploy a two-tier web applications on AWS.
- The application requires complex query processing and table joins.
- However, the company has limited resources and requires high availability.
Q75.Which is the best configuration that company can opt for based on the requirements ?
- DynamoDB deals with core problems of database scalability, management, reliability, and performance but does not have the functionalities of a RDBMS.
- DynamoDB does not render support for complex joins or query processing or complex transactions.
- You can run a relational engine on Amazon RDS or EC2 for this kind of a functionality.
Q76. If you have half of the workload on public cloud while the other half is on local Ans:storage, what kind of architecture will you use for this ?
Hybrid Cloud Architecture
Q77.Is it possible to cast-off S3 with EC2 instances ? If yes, how ?
It is possible to cast-off S3 with EC2 instances using root approaches backed by native occurrence storage.
Q78.How will you configure an instance with the application and its dependencies , and make it ready to serve traffic?
- You can acheive this with the use of lifecycle hooks.
- They are powerful as they let you pause the creation or termination of an instance so that you can sneak peak in and perform custom actions like configuring the instance, downloading the required files, and any other steps that are required to make the instance ready.
- Every auto scaling group can have multiple lifecycle hooks.
Q79.How can you safeguard EC2 instances running on a VPC ?
- AWS Security groups associated with EC2 instances can help you safeguard EC2 instances running in a VPC by providing security at the protocol and port access level.
- You can configure both INBOUND and OUTBOUND traffic to enables secured access for the EC2 instance.
- AWS security groups are much similar to a firewall-they contain set of rules which filter the traffic coming into and out of an EC2 instance and deny any kind of unauthorized access to EC2 instances.
Q80.How many EC2 instances can be used in a VPC ?
There is a limit of running up to a total of 20 on-demand instances across the instance family , you can purchase 20 reserved instances and request spot instances as per your dynamic spot limit region.
Q81.What are some of the key best practices for security in Amazon EC2?
- Create individual IAM (Identity and Access Management) users to control access to your AWS recourses.
- Creating separate IAM user provides separate credentials for every user making it possible to assign different permissions to each user based on the access requirements.
Q82.What should be the instance’s tenancy attribute for running it on a single tenant hardware ?
- The instance tenancy attribute must be set to a dedicated instance and other values might not be appropriate for this operation.
- There is a distributed application that processes huge amounts of data across various EC2 instances.
- Application is designed in such a way that it can recover gracefully from EC2 instance failures.
Q83.How will you accomplish this in a cost effective manner ?
- On-demand or reserved instance will not be ideal in this case as the task here is not continuous.
- Moreover. It does not make sense to launch an on-demand instance whenever work comes up because on-demand instances are expensive.
- In this case, the ideal choice would be to opt for a spot instance owing to its cost effectiveness and no long term commitments.
Q84.What are the important features of a classic load balancer in EC2 ?
- The high availability feature ensures that the traffic is distributed among EC2 instances in single or multiple availability zones.
- This ensures high scale of availability for incoming traffic.
Q85.What parameters will you take into consideration when choosing the availability zone ?
Performance, pricing, latency, and response time are some of the factors to consider when selecting the availability zone.
Q86.Which instance will you use for deploying a 4-node Hadoop cluster in AWS ?
We can use a c4.8x large instance or i2.large for this, but using a c4.8x will require a better configuration on PC.
Q87.Will you use encryption for S3 ?
It is better to consider encryption for sensitive data on S3 as it is a proprietary technology.
Q88.How can you send request to Amazon S3 ?
Using the REST API or the AWS SDK wrapper libraries which wrap the underlying Amazon S3 REST API.
Q89.How will you bind the user session with a specific instance in ELB (Elastic Load Balancer) ?
This can be achieved by enabling Sticky Session.
Q90.You are launching an instance under the free usage tier from AMI having a snapshot size of 50GB. How will you launch the instance under the free usage tier ?
It is not possible to launch this instance under the free usage tier.
Q91.Which load balancer will you use to make routing decisions at the application layer or transport layer that supports either VPC or EC2?
Classic Load Balancer
Q92.You have a webserver on EC2 instance . Your instance can get to the web but nobody on the internet can get to your webserver. How will you troubleshoot this issue ?
- Static content for the application is on S3 and is distributed using CloudFront.
- The auto scaling group is set to trigger a scale up event with 60% CPU utilization.
- You use extra large DB instance with 10.000 Provisioned IOPS that gives CPU Utilization around 80% with freeable memory in the 2GB range.
- The web analytics report shows that the load time for the webpages is an average of 2 seconds but the SEO consultant suggests that you bring the average load time of your pages to less than 0.5 seconds.
- What will you do improve the page load time of the website for your users.
Q93.What if Google decides to host YouTube.com on AWS, how will you design the solution architecture ?
If you really love AWS and want to push forward on AWS certifications for sure, these AWS solutions architect interview questions will help you get through the door.
Q94.What are the possible connection issues you encounter when connecting to an EC2 instance ?
- Unprotected private key file
- Server refused key
- Connection timed out
- No supported authentication method available
- Host key not found,permission denied.
- User key not recognized by the server, permission denied.
Q95.What is the difference between Amazon S3 and EBS ?
- Object Store
- Private Key or Public Key
- Visible only to your EC2
- Across data centers
- Within the data center
Q96.Can you run multiple websites on an EC2 server using a single IP address?
More than one elastic IP is required to run multiple websites on EC2.
Q97.What happens when you reboot an EC2 instance?
- Rebooting an instance is just similar to rebooting a PC.
- You do not return to image’s original state, however, the contents of the hard disk are same as before the reboot.
Q98.How will you reduce the load on EC2 instance ?
This can be done by attaching a load balancer to an autoscaling group to efficiently distribute load among all instances.
Q99.What happens when you launch instances in Amazon VPC ?
- Each instance has a default IP address when the instance is launched in Amazon VPC.
- This approach is considered ideal when you need to connect cloud resources with the data centers.