Amazon is one of the leading online retail companies in the world. It’s not just the size of the company but also the latest technology it uses. It provides jobs to thousands of people every year. One of them is support engine, which plays an important role in helping the company use the latest technology without any technical difficulties. Every year Amazon tries to fill the vacant post of support engineer with the help of interview and written exam.
Written exam constitutes of basic of behavioral studies. For the face-to-face interview, you need to prepare thoroughly. The interview can be a bit difficult if you don’t have much basic and in-depth knowledge of engineering. You can pray to get hit by some of the easy questions but not always does the fortune favors the brave. So, you need to prepare for the interview with the toughest in mind. Here, we have comprised a list of questions to help you prepare for the interview for the post of Support engineer at Amazon.
1) Explain What is STP?
Ans. The STP also stands for Spanning Tree Protocol constructs a loop-free logical topography for Ethernet networks. It is a network protocol. Preventing bridge loops along with the broadcast radiation that results from them are the primary functions. If an active link fails, spanning tree consequently allows a network design to include backup links so that it could provide fault tolerance.
As denoted, STP creates a kind of spanning tree within a network of connected layer-2 bridges, along with disabling those links that which doesn’t form part of the spanning tree, leaving a single active path between any two network nodes. Radia Perlman invented the algorithm on which STP is based. At that time she was working for Digital Equipment Corporation.
2) Write a function to check if a number is prime?
3) Write a regular expression to validate phone number in XXX-XXX-XXXX format?
4) Command to check how much disk space a file is taking?
5) What is Spanning Tree?
Ans. A tree is a no cycle, connected undirected graph. It would be a spanning tree of a graph G if it includes every vertex of G or spans G. It would be a subgraph of G if every edge present in the tree belongs to G. A spanning tree of a connected graph G can also be defined as a maximal set of edges of G which actually contains no cycle, or it could be the minimal set of edges that would connect all vertices. Technically, a graph, which is not connected, will never contain a spanning tree but possible to have several spanning trees.
6) What is a host file?
ans. The computer file hosts can be defined as an operating system file that directs hostnames to IP addresses. The host file is a plain text file. The hosts file has several system facilities, being one of them to assist in addressing network nodes in a computer network. An operating system’s Internet Protocol (IP) implementation has a host file as its common part. It also serves the function of converting human-friendly hostnames into some numeric protocol addresses, called IP addresses, which identifies and locates a host in an IP network.
7) What is DNS, how it works?
ans. DNS stands for Domain Name System, which is primarily used as the medium to convert domain names to their respective IP addresses whenever a client initiates a request query. DNS also stores the database of all the available domain names and their IP addresses, which happens to be registered on the network.
Likewise, in the working of DNS when we type out the website name in the browser, it would send a request to the DNS server. Moreover, if the website domain name has got registered in the database with the DNS, then it would respond with the IP address of the website which is being tried to get accessed and would be something like 53.294.214.67
8) Write a function that will find all permutations of a given string.
9) Please explain Big N notation?
ans: Big O notation is built to embody functions according to their respective growth rates. For example, different functions but with the same actual growth using the same O notation might represent rate.
The letter O is significantly used because the order of the function is also referred to as the growth rate of a function. An explanation of a function regarding big O notation would usually just provide an upper bound on the growth rate of that function.
10) Explain, what is virtual hosting.
Ans. Virtual hosting is one of the methods by which they host multiple domain names along with the separate handling of each name ultimately on a single server or pool of servers. The respective process would then allow one server to share its resources like memory, processor cycles, etc., without actually having to require all services which are provided so that to use that same host name. The term virtual hosting is widely used to mainly refer to web servers. Moreover, shared web hosting would be an extensively used application.
It is a commonly followed practice for a single entity to desire to use multiple names on the very same machine. Doing so, the names would reflect services offered and ultimately not where those services are to be hosted.
11) What is the difference between a stack and a queue?
|It follows the principle of LIFO (last in first out).||It follows the principle of FIFO (first in first out).|
|It performs the operation of push and pop.||It performs the operation of Enqueue and dequeue.|
|The implementation is simpler here.||The implementation is comparatively complex.|
|Stack does not consist of variants.||Queue contains variants like priority queue etc.|
12) How to find the least common ancestor for given 2 nodes in a tree?
13) Write a program to find all substrings of a string
14) Explain the differences between TCP and UDP?
|It connects the computers before even transmitting the data.||It does the work of sending data directly to the destination computer without checking the status of the system.|
|Its speed is comparatively slower.||Its speed is comparatively faster.|
|It is technically connection oriented.||It does not need connection, being connectionless.|
15) Explain the boot process in your PC.
Ans. Power on being the first step of the process is the power-on step. The user would typically initiate this step.The second step after execution of the ROM routines, the system executes a Power-On Self Test (POST) routine. This process ensures the operational status of all hardware.
In the next step the system checks for an active device in the boot device list, which would be starting at the top.In this step after ensuring the hardware is functional and loading the BIOS, the computer proceeds would then load the operating system into its memory.
Now, the boot process takes control over to it once the OS is loaded.
16) Command to find all files that are modified 2 days before.
We would use the find command along with an argument for files, which is owned by a given username and certainly modified over a certain time.
17) Write a program to rename all .txt file in a directory?
18) Explain DHCP server?
Ans: The DHCP stands for Dynamic Host Configuration Protocol (DHCP). It is primarily a network management protocol, which is used on UDP or IP networks. At this moment a DHCP server then assigns an IP address and other respective network configuration parameters to each of the available device on a network so that they can easily communicate with the other present IP networks
19) What is relative path? write a program to convert relative path to absolute path?
The relative path is also referred to as a partial path or the non-absolute path. A relative path is a kind of URL, which mainly constitutes a part of the full path based on its respective relation to the directory in which it is linking. These provided shorter addresses are of greater convenience for the people who create web pages mainly to require less typing and to take up fewer characters.
20) Write a program to reverse the order of the given single linked list.
Face-to-face interviews can be a bit daunting, but you need to maintain your calm and face it smartly. Amazon is a place for hard working people, and you must have theoretical knowledge with practical understanding as well. You can easily crack the interview if you pay small attention to the pattern. This questionnaire will surely help to understand the basic pattern of the interview.