Interview #2 Flashcards

Hiring Manager - Technical Screen (Simple)

1
Q

What are the basics of Linux?

A

Linux is an open-source operating system used to manage servers and applications. Key concepts include file systems, permissions, processes, and commands like ls, cd, and ps.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you handle a frustrated or irate customer?

A

Stay calm and empathetic, listen actively, clarify the issue, provide a solution or timeline, and follow up to ensure satisfaction.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How would you handle an upset customer about deleted data?

A

Acknowledge their frustration, explain backup policies calmly, offer guidance on prevention, and explore goodwill gestures like helping rebuild their environment.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How can we reduce the load time of a website hosted on the cloud?

A

Compress images, enable caching, use a CDN, optimize database queries, and ensure adequate server resources (CPU, RAM).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Can you describe a TCP handshake?

A
  1. Client sends SYN. 2. Server responds with SYN-ACK. 3. Client replies with ACK, completing the connection.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the difference between an A record and a CNAME?

A

A Record maps a domain to an IP address, while CNAME maps a domain to another domain, serving as an alias.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What’s the difference between object and block storage?

A

Object storage (e.g., DO Spaces): Unstructured data stored with metadata. Block storage: Fixed-size blocks for structured data, ideal for databases.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is CI/CD?

A

Continuous Integration automates integrating code changes, and Continuous Deployment ensures automated delivery after testing.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the stages of a CI/CD pipeline?

A
  1. Source: Detect code changes. 2. Build: Compile code and check for errors. 3. Test: Run automated tests. 4. Deploy: Release code to production or staging.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the boot process?

A

BIOS/UEFI initializes hardware, bootloader loads the kernel, and the kernel starts the init system, launching processes and services.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How will you move a local project to the cloud?

A
  1. Audit data and dependencies. 2. Prepare a cloud environment (e.g., Droplet). 3. Transfer files using rsync or SCP. 4. Migrate databases with tools like mysqldump. 5. Configure DNS, SSL, and test the application. 6. Secure and optimize the environment.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is Database-as-a-Service (DBaaS)?

A

A cloud-based managed database system that reduces management overhead and increases scalability and accessibility.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How does DBaaS differ from traditional database systems?

A

Abstracts infrastructure management, allowing users to focus on application development.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is MySQL replication?

A

Copies data from a master server to one or more slave servers for redundancy and scaling.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How do you handle backups and disaster recovery?

A

Use automated backups and geographically redundant storage. Implement failover mechanisms for minimal downtime.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How would you troubleshoot a performance issue?

A

Check performance metrics (CPU, memory, etc.), analyze logs for errors or slow queries, and identify affected software.

17
Q

How would you scale a database?

A

Vertical scaling adds resources to the server. Horizontal scaling adds replicas for read traffic and uses sharding to partition data.

18
Q

What is a container?

A

An isolated application environment that shares the host OS kernel and resources.

19
Q

What is a pod?

A

A group of containers sharing the same network and storage namespace.

20
Q

What is a ReplicaSet?

A

Ensures a desired number of pods are always running by replacing failed pods.

21
Q

What is a service?

A

An internal load balancer forwarding traffic to pods based on selectors and labels.

22
Q

Describe traffic flow with an NGINX ingress controller.

A

Traffic reaches the external LB via DNS A record, then to the ingress controller, which routes it to services based on ingress rules, forwarding requests to pods.

23
Q

What’s the difference between Kubernetes and Docker/Containerd?

A

Docker/Containerd runs images (container runtime). Kubernetes orchestrates containers for scaling, networking, and deployment.

24
Q

What tools can be used to identify latency issues?

A

Ping, Traceroute, MTR, iperf, netstat.

25
What is the purpose of a load balancer?
Distributes traffic across servers for reliability and scalability. Examples: HAProxy, NGINX, Apache.
26
What is a VPC?
A Virtual Private Cloud: A private network connecting resources without public internet exposure.
27
What is an SSL certificate?
Authenticates a website’s identity and enables encrypted connections.
28
How can you protect a VM from DDoS attacks?
Use OS-level and cloud firewalls, load balancers, and monitor traffic patterns to mitigate suspicious activity.
29
What would you do if a VM won’t boot?
Boot into a recovery image and check the grub file for errors.
30
What steps would you take if unable to SSH into a VM?
Verify password/key usage, check network settings (ping, nmap, netstat), and troubleshoot SSH configurations in recovery mode.
31
How would you troubleshoot high CPU load?
Use top or htop to identify resource-heavy processes. Kill processes causing the issue or allocate more resources.
32
What is the difference between file, block, and object storage?
File: Hierarchical system. Block: Fixed-size blocks for structured data. Object: Flat storage for unstructured data.
33
How do you resize a volume on a VM?
Use commands like resize2fs (ext3/ext4) or xfs_resize (xfs).
34
What is Platform as a Service (PaaS)?
A cloud model providing hardware/software via the internet, enabling easy app deployment.
35
What is a Dockerfile?
A text document with commands to assemble a container image.
36
What is the difference between Dockerfiles and buildpacks?
Dockerfiles are custom images you configure; buildpacks are predefined images for specific app languages.
37
What is the Twelve-Factor App methodology?
A set of best practices for building portable, resilient SaaS applications: 1. One codebase per service. 2. Explicitly declare dependencies. 3. Store config in the environment. 4. Treat backing services as attached resources. 5. Use a strict build-release-run lifecycle. 6. Deploy stateless processes. 7. Self-contained services with port binding. 8. Scale via process concurrency. 9. Enable fast startup/shutdown. 10. Ensure dev/prod parity. 11. Aggregate logs as event streams. 12. Store admin tasks in source control.