Q1. What is the difference between a Docker image and a container?
An image is a read-only template; a container is a running instance of that image. - Image: built from a Dockerfile, composed of immutable layers, and stored in a registr...
Technical Question Bank · Peer-Reviewed
Search and filter frequently asked interview questions across technical, programming, and behavioral domains. Tailor your interview preparation by difficulty for freshers or experienced developers (8 available).
An image is a read-only template; a container is a running instance of that image. - Image: built from a Dockerfile, composed of immutable layers, and stored in a registr...
LCP is dominated by four factors: time to first byte, resource load time, render-blocking resources and client-side rendering delay. First ensure fast TTFB with caching, ...
A multi-stage build uses several FROM stages in one Dockerfile. You can compile in an early stage and copy only the artefacts into a minimal final stage. ```dockerfile FR...
Attack the layers, base image, and build context. - Use a minimal base: alpine, distroless, or scratch for static binaries. - Use multi-stage builds: compile in one stage...
A component that optimizes images for faster loading. ```jsx export default function Page() { return ( ); } ```
The **`next/image`** component is an extension of the HTML `` element engineered to automatically optimize images for Core Web Vitals: ### Automatic Optimizations Perform...
Use `placeholder="blur"` with a `blurDataURL` or let Next.js generate it when importing static images. This shows a low-quality blurred preview while the image loads. ```...
By using the `next/image` component, which automatically optimizes images for performance. ```jsx import Image from "next/image"; export default function Home() { return ...
HireXTech uses essential storage to remember your study preferences and third-party advertising cookies via Google AdSense in compliance with GDPR. You can choose to enable essential cookies only or accept all cookies. Read our Privacy Policy.