CGI
Interview Experience
CGI -Tech 1 Interview - AWS Developer - Mayank Singh Kushwah
Interviewer : H A, Arjun
https://youtu.be/0T-ywke05ZY
Round 1
JavaScript Core Concepts
- What is the difference between
Promise.all()andPromise.allSettled()? - What is the difference between
Promise.all()andPromise.race()? - What is the difference between
slice,splice, andsplit? - What is middleware in Node.js?
- What are closures in JavaScript? Explain in simple terms.
- Can you conclude closures in one line?
- What are
call,apply, andbindin JavaScript? Explain the differences. - What is the difference between rest operator and spread operator?
- What is the difference between arrow functions and normal functions?
- What is the difference between JavaScript and TypeScript?
- What is static typing?
- What is the difference between npm and yarn?
Authentication and Security
- What is JWT?
- Explain the different parts of a JWT token.
- What hashing or secret mechanisms are used in JWT?
Coding and Problem Solving Constraints
- Write code using only a single for loop.
- You may use inbuilt array or string methods.
- Return only duplicate values from an array.
- Example:
[1, 2, 1, 2]→ output should be1, 2
- Given two strings, determine if they are anagrams of each other.
- Return
trueif two strings are anagrams, otherwise returnfalse.
Coding Logic Follow-ups
- How does sorting help in solving the anagram problem?
- What happens after using
split,sort, andjoin? - What mistake can cause incorrect comparison while checking anagrams?
Project and Role Discussion
- Have you worked with AWS?
- What kind of project are you looking for?
- Are you comfortable with Node.js, JavaScript, and TypeScript?
- Do you have experience with cloud migration projects?
- Are you comfortable working in the banking domain?
- Will I be part of an existing team or a new team?