1What is the main purpose of image optimization in a web application?
Image Optimization
Easy
A.To reduce loading time
B.To manage user sessions
C.To increase server count
D.To create database tables
Correct Answer: To reduce loading time
Explanation:
Image optimization reduces file sizes and helps pages load faster.
Incorrect! Try again.
2Which image format commonly provides efficient compression for modern websites?
Image Optimization
Easy
A.RAW
B.WebP
C.TIFF
D.BMP
Correct Answer: WebP
Explanation:
WebP typically produces smaller files than older formats while maintaining good visual quality.
Incorrect! Try again.
3What type of information is commonly defined using a Metadata API?
Metadata API
Easy
A.Database rows and columns
B.User passwords and tokens
C.Page title and description
D.Server memory and storage
Correct Answer: Page title and description
Explanation:
A Metadata API commonly defines information such as page titles and descriptions for browsers and search engines.
Incorrect! Try again.
4Which metadata value is normally displayed on a browser tab?
Metadata API
Easy
A.Request method
B.Port number
C.Page title
D.Cookie value
Correct Answer: Page title
Explanation:
The page title is commonly shown on the browser tab and in search results.
Incorrect! Try again.
5What does code splitting do in a web application?
Code Splitting
Easy
A.Copies data across databases
B.Combines images into one file
C.Divides code into smaller bundles
D.Converts CSS into HTML
Correct Answer: Divides code into smaller bundles
Explanation:
Code splitting divides application code into smaller bundles that can be loaded when needed.
Incorrect! Try again.
6What is a common benefit of code splitting?
Code Splitting
Easy
A.A larger image resolution
B.A longer database query
C.A higher server temperature
D.A smaller initial download
Correct Answer: A smaller initial download
Explanation:
Code splitting can reduce the amount of JavaScript downloaded during the initial page load.
Incorrect! Try again.
7What does lazy loading mean?
Lazy Loading
Easy
A.Deleting content after each request
B.Storing all content in cookies
C.Loading content when it is needed
D.Loading all content before rendering
Correct Answer: Loading content when it is needed
Explanation:
Lazy loading delays a resource until the user or application needs it.
Incorrect! Try again.
8Which resource is commonly lazy-loaded when it is below the visible part of a page?
Lazy Loading
Easy
A.A status code
B.A domain name
C.An image
D.A page title
Correct Answer: An image
Explanation:
Images below the visible area are often lazy-loaded until the user scrolls near them.
Incorrect! Try again.
9What does SEO stand for?
SEO Fundamentals
Easy
A.Server Execution Operation
B.Software Evaluation Order
C.Site Encryption Output
D.Search Engine Optimization
Correct Answer: Search Engine Optimization
Explanation:
SEO stands for Search Engine Optimization, which helps search engines understand and rank web content.
Incorrect! Try again.
10Which HTML element is most appropriate for the main heading of a page?
SEO Fundamentals
Easy
A.<button>
B.<span>
C.<footer>
D.<h1>
Correct Answer: <h1>
Explanation:
The <h1> element identifies the main heading and supports a clear page structure.
Incorrect! Try again.
11What is a production build?
Production Build
Easy
A.An optimized version for deployment
B.A design file for editing
C.A draft version for note-taking
D.A database backup for testing
Correct Answer: An optimized version for deployment
Explanation:
A production build prepares and optimizes an application for use in a live environment.
Incorrect! Try again.
12Which process commonly reduces the size of production JavaScript files?
Production Build
Easy
A.Pagination
B.Authentication
C.Normalization
D.Minification
Correct Answer: Minification
Explanation:
Minification removes unnecessary characters from code to reduce file size.
Incorrect! Try again.
13What is an environment variable commonly used for?
Environment Configuration
Easy
A.Drawing interface icons
B.Compressing image files
C.Storing configuration values
D.Formatting page headings
Correct Answer: Storing configuration values
Explanation:
Environment variables store settings that may differ between development, testing, and production.
Incorrect! Try again.
14Which value commonly changes between development and production environments?
Environment Configuration
Easy
A.HTML heading level
B.API base URL
C.Button label text
D.Image aspect ratio
Correct Answer: API base URL
Explanation:
Applications often use different API base URLs in development and production.
Incorrect! Try again.
15What is the main role of a deployment platform?
Deployment Platforms
Easy
A.Designing every page layout
B.Writing all application code
C.Hosting and serving an application
D.Creating all database records
Correct Answer: Hosting and serving an application
Explanation:
A deployment platform makes a built application available to users over a network.
Incorrect! Try again.
16Which service is commonly used to deploy modern web applications?
Deployment Platforms
Easy
A.Vercel
B.Postman
C.Jest
D.Figma
Correct Answer: Vercel
Explanation:
Vercel is a deployment platform commonly used to host modern web applications.
Incorrect! Try again.
17What is the purpose of performance monitoring?
Performance Monitoring
Easy
A.To measure application speed
B.To write privacy policies
C.To choose brand colors
D.To create user accounts
Correct Answer: To measure application speed
Explanation:
Performance monitoring tracks metrics related to loading speed and responsiveness.
Incorrect! Try again.
18Which metric measures how long a page takes to become usable?
Performance Monitoring
Easy
A.Time to Interactive
B.Screen resolution
C.Domain expiration
D.HTTP status code
Correct Answer: Time to Interactive
Explanation:
Time to Interactive estimates when a page has loaded enough to respond reliably to user input.
Incorrect! Try again.
19What is the main purpose of error logging?
Error Logging
Easy
A.To rename CSS classes
B.To arrange navigation links
C.To record application failures
D.To improve image colors
Correct Answer: To record application failures
Explanation:
Error logging records failures and useful context so developers can diagnose problems.
Incorrect! Try again.
20Which information is useful in an error log?
Error Logging
Easy
A.Logo width and page color
B.Error message and timestamp
C.Menu label and icon shape
D.Font family and text size
Correct Answer: Error message and timestamp
Explanation:
An error message and timestamp help developers identify what failed and when it happened.
Incorrect! Try again.
21A product page displays the same image at widths ranging from 320 px on phones to 1200 px on desktops. Which approach best reduces unnecessary image transfer?
Image Optimization
Medium
A.Resize the image using only CSS width
B.Serve one 1200 px JPEG to every device
C.Use responsive srcset and sizes attributes
D.Store the image as a Base64 string
Correct Answer: Use responsive srcset and sizes attributes
Explanation:
srcset and sizes allow the browser to select an image appropriate for the rendered size and device resolution, reducing unnecessary bytes.
Incorrect! Try again.
22A website's Largest Contentful Paint element is a hero image visible immediately after navigation. Which optimization is most appropriate?
Image Optimization
Medium
A.Preload the hero image and size it explicitly
B.Load the hero image after user interaction
C.Lazy-load the hero image below all scripts
D.Convert the hero image into an icon font
Correct Answer: Preload the hero image and size it explicitly
Explanation:
Preloading helps the browser discover the critical hero image early, while explicit dimensions reduce layout shifts.
Incorrect! Try again.
23A Next.js product route must generate a unique title and description from the product identifier. Which implementation is most suitable?
Metadata API
Medium
A.Place one shared title in the global stylesheet
B.Export static metadata from the root layout
C.Call generateMetadata in the dynamic route
D.Update document.title inside a click handler
Correct Answer: Call generateMetadata in the dynamic route
Explanation:
generateMetadata can use route parameters or fetched data to produce server-rendered metadata for each product page.
Incorrect! Try again.
24A page appears correctly in search results, but social platforms show no preview image when its URL is shared. Which metadata should be added?
Metadata API
Medium
A.Open Graph image metadata
B.Character encoding metadata
C.Viewport scaling metadata
D.Robots indexing metadata
Correct Answer: Open Graph image metadata
Explanation:
Social platforms commonly use Open Graph fields such as og:image, og:title, and og:description to build link previews.
Incorrect! Try again.
25An analytics dashboard includes a large chart editor used only after the user selects Edit chart. What is the best code-splitting strategy?
Code Splitting
Medium
A.Duplicate the editor in each route bundle
B.Embed the editor code in the HTML
C.Dynamically import the editor on demand
D.Import the editor in the root module
Correct Answer: Dynamically import the editor on demand
Explanation:
A dynamic import keeps the large editor out of the initial bundle and downloads it only when the feature is needed.
Incorrect! Try again.
26After route-based code splitting, users notice a short delay when opening a frequently visited settings page. Which technique can reduce the delay without restoring one large bundle?
Code Splitting
Medium
A.Prefetch the settings route when appropriate
B.Render the settings page as an image
C.Move every route into the main bundle
D.Disable caching for the settings bundle
Correct Answer: Prefetch the settings route when appropriate
Explanation:
Prefetching downloads the route's code during idle time or based on likely navigation, preserving code splitting while improving responsiveness.
Incorrect! Try again.
27A long article contains twenty photographs, but only the first two are visible when the page loads. Which loading policy is most appropriate?
Lazy Loading
Medium
A.Load all photographs with high priority
B.Load visible images only after scrolling
C.Load visible images eagerly and others lazily
D.Load every photograph after a fixed delay
Correct Answer: Load visible images eagerly and others lazily
Explanation:
Above-the-fold images should be available promptly, while off-screen images can use lazy loading to reduce initial network and decoding work.
Incorrect! Try again.
28A lazily loaded comments component causes the page footer to jump downward when the component appears. Which change best addresses the problem?
Lazy Loading
Medium
A.Hide the footer until the page reloads
B.Increase the component's JavaScript bundle
C.Reserve space with a stable placeholder
D.Remove caching from the comments request
Correct Answer: Reserve space with a stable placeholder
Explanation:
A placeholder with suitable dimensions reserves layout space and reduces Cumulative Layout Shift when the lazy component renders.
Incorrect! Try again.
29An online store exposes the same product through URLs containing different tracking parameters. Which SEO measure best consolidates ranking signals?
SEO Fundamentals
Medium
A.Add a canonical URL to the product page
B.Repeat the product title in every heading
C.Block all product images from crawlers
D.Redirect the product page to the homepage
Correct Answer: Add a canonical URL to the product page
Explanation:
A canonical URL identifies the preferred version of duplicate or near-duplicate pages so search engines can consolidate signals.
Incorrect! Try again.
30A recipe page is indexed, but the team wants search engines to better understand ingredients, cooking time, and ratings. What should be added?
SEO Fundamentals
Medium
A.Recipe structured data using JSON-LD
B.Tracking parameters for recipe sections
C.A second navigation menu for crawlers
D.More CSS classes for each ingredient
Correct Answer: Recipe structured data using JSON-LD
Explanation:
Recipe schema in JSON-LD provides machine-readable meaning and can make the page eligible for relevant rich search results.
Incorrect! Try again.
31A React application performs well during local production testing but is slow when tested through the development server. Why should performance be measured using a production build?
Production Build
Medium
A.Production builds disable browser networking
B.Production builds remove all runtime errors
C.Production builds avoid rendering components
D.Production builds minify and optimize assets
Correct Answer: Production builds minify and optimize assets
Explanation:
Development mode includes debugging checks and unoptimized output, while a production build more closely represents deployed performance.
Incorrect! Try again.
32A production bundle unexpectedly contains a large debugging library that is imported but never used. Which build feature should normally remove it when the package supports static analysis?
Production Build
Medium
A.Source mapping
B.Tree shaking
C.Hot reloading
D.Server polling
Correct Answer: Tree shaking
Explanation:
Tree shaking removes statically detectable unused exports, reducing the amount of JavaScript included in the production bundle.
Incorrect! Try again.
33A frontend needs an API base URL that differs between staging and production. How should the URL normally be configured?
Correct Answer: Use environment-specific configuration variables
Explanation:
Environment variables allow the deployment process to provide the correct non-secret configuration without changing application source code.
Incorrect! Try again.
34A developer stores a database password in a variable prefixed for exposure to browser code. What is the primary problem?
Environment Configuration
Medium
A.The password changes the application's route paths
B.The password can be included in client bundles
C.The password prevents CSS from being minified
D.The password disables server-side rendering
Correct Answer: The password can be included in client bundles
Explanation:
Variables exposed to browser code are visible to users. Database credentials and other secrets must remain in server-only configuration.
Incorrect! Try again.
35A single-page application deployed to static hosting returns a 404 when users refresh /account/settings, although client-side navigation works. What configuration is needed?
Deployment Platforms
Medium
A.Disable JavaScript caching for nested routes
B.Redirect every route to an external search engine
C.Generate a separate stylesheet for each route
D.Rewrite unknown routes to the application entry file
Correct Answer: Rewrite unknown routes to the application entry file
Explanation:
The host should serve the SPA entry file for client-managed routes so the client-side router can interpret the requested path.
Incorrect! Try again.
36A team wants every pull request to receive an isolated URL for testing before production deployment. Which platform capability best supports this workflow?
Deployment Platforms
Medium
A.Permanent redirects
B.Local storage
C.Preview deployments
D.Manual minification
Correct Answer: Preview deployments
Explanation:
Preview deployments build each proposed change in an isolated environment and provide a shareable URL for review and testing.
Incorrect! Try again.
37Laboratory tests report fast page loads, but users in one geographic region report poor performance. Which monitoring approach would best verify their experience?
Performance Monitoring
Medium
A.Run only local tests on a faster computer
B.Count the number of source code comments
C.Collect real-user performance metrics by region
D.Measure the size of the development database
Correct Answer: Collect real-user performance metrics by region
Explanation:
Real User Monitoring captures actual device, network, and regional conditions that controlled laboratory tests may not reproduce.
Incorrect! Try again.
38A page becomes visually complete quickly, but clicking its main button often feels delayed. Which Core Web Vital is most relevant to investigate?
Performance Monitoring
Medium
A.Cumulative Layout Shift
B.Time to First Byte
C.Interaction to Next Paint
D.Largest Contentful Paint
Correct Answer: Interaction to Next Paint
Explanation:
Interaction to Next Paint measures responsiveness by tracking the delay between user interactions and the next visual update.
Incorrect! Try again.
39A minified production stack trace points to app.8fd3.js, making the original source location difficult to identify. What should the error-monitoring service use?
Error Logging
Medium
A.Uploaded production source maps
B.Database migration records
C.Browser history snapshots
D.Unminified CSS class names
Correct Answer: Uploaded production source maps
Explanation:
Source maps translate minified stack locations back to the original source files and line numbers for debugging.
Incorrect! Try again.
40An error report says Request failed but gives no clue which release, route, or user action produced it. Which improvement would make the report most actionable?
Error Logging
Medium
A.Replace the message with a numeric status alone
B.Attach structured context and a correlation identifier
C.Suppress repeated errors before recording them
D.Record only the browser's screen dimensions
Correct Answer: Attach structured context and a correlation identifier
Explanation:
Structured context such as release, route, operation, and correlation ID helps developers connect related events and reproduce the failure.
Incorrect! Try again.
41A product page displays a 2400×1600 hero photograph in a 600px-wide container. The image is above the fold, uses object-fit: cover, and the server supports responsive image transformation. Which implementation most effectively reduces the image's Largest Contentful Paint contribution without reducing visible quality?
Image Optimization
Hard
A.Serve several 600px images simultaneously so the browser can select the sharpest one after layout
B.Serve a 600px WebP image with srcset and a matching sizes value
C.Serve the original JPEG with loading="lazy" and decoding="async"
D.Serve a 2400px PNG with fetchpriority="high"
Correct Answer: Serve a 600px WebP image with srcset and a matching sizes value
Explanation:
The browser can select an appropriately sized, compressed image before downloading it. Because the hero is above the fold, lazy loading is inappropriate, while an oversized or duplicated resource increases transfer and decode cost.
Incorrect! Try again.
42A responsive site uses an art-directed mobile crop and a different desktop crop of the same editorial image. Which markup best communicates that the source must change with the viewport rather than merely scale?
Image Optimization
Hard
A.Use <picture> with media-specific <source> elements and a fallback <img>
B.Use one <img> with srcset descriptors that reference the two crop URLs
C.Use CSS background-image declarations for both crops
D.Use one <img> with width and height attributes only
Correct Answer: Use <picture> with media-specific <source> elements and a fallback <img>
Explanation:
<picture> supports art direction by selecting different source files based on media conditions. srcset on a single image is intended primarily for resolution or density selection, not different compositions.
Incorrect! Try again.
43A route renders product metadata from asynchronous database data. The application generates a canonical URL, Open Graph image, and title. Which design best prevents stale metadata when the product slug changes while preserving a stable canonical URL?
Metadata API
Hard
A.Generate metadata only in a client-side effect after the page mounts
B.Define one global title and canonical URL for every product route
C.Generate metadata from the resolved route parameters and product record
D.Place product values in the URL but keep the metadata object statically cached
Correct Answer: Generate metadata from the resolved route parameters and product record
Explanation:
Route-specific metadata should be derived from the current parameters and fetched resource. Server-resolved metadata is available to crawlers and can produce a canonical URL that corresponds to the actual product.
Incorrect! Try again.
44A site has a localized article at /en/guide and /fr/guide. Search engines are receiving duplicate-content warnings because each page declares only its own canonical URL. Which metadata strategy is most appropriate?
Metadata API
Hard
A.Canonicalize both URLs to the French page because it contains more translated text
B.Use self-canonicals plus reciprocal hreflang references for both locales
C.Remove canonical tags and rely exclusively on translated page titles
D.Canonicalize both URLs to the English page and omit alternate-language references
Correct Answer: Use self-canonicals plus reciprocal hreflang references for both locales
Explanation:
Distinct language versions should generally identify themselves as canonical and link to equivalent alternatives with reciprocal hreflang annotations. A single-language canonical incorrectly signals that the other version is a duplicate.
Incorrect! Try again.
45A dashboard's initial JavaScript bundle contains a 900KB charting library used only after a user opens an analytics tab. Which change most directly improves the initial route's parse and execution cost?
Code Splitting
Hard
A.Duplicate the chart library into a separate entry without changing imports
B.Dynamically import the chart module when the analytics tab is activated
C.Replace the chart library's variable names while preserving the same static import
D.Minify the chart library while keeping it in the initial bundle
Correct Answer: Dynamically import the chart module when the analytics tab is activated
Explanation:
A dynamic import creates a separate chunk that is fetched and evaluated only when the feature is needed. Minification reduces bytes but does not remove the library's initial parse and execution cost.
Incorrect! Try again.
46A bundler produces a shared vendor chunk containing nearly every dependency. The application has several rarely visited routes, but each route still downloads this large chunk on first navigation. Which change best targets route-level performance?
Code Splitting
Hard
A.Split dependencies according to route usage and load shared code selectively
B.Disable tree shaking so route modules retain consistent dependency boundaries
C.Add cache-busting query strings to force each route to receive a fresh vendor chunk
D.Increase the vendor chunk size limit so fewer files appear in the build output
Correct Answer: Split dependencies according to route usage and load shared code selectively
Explanation:
A monolithic vendor chunk defeats route-level code splitting. Dependency grouping should reflect actual usage so rarely needed libraries are fetched only by routes that require them.
Incorrect! Try again.
47A page contains a below-the-fold video player and an above-the-fold hero image. Which loading policy is most appropriate?
Lazy Loading
Hard
A.Lazy-load the hero image and eagerly load the video to reserve its layout
B.Eagerly load both resources because users may eventually view them
C.Lazy-load the video and eagerly load the hero image
D.Lazy-load both resources because bandwidth should always be minimized
Correct Answer: Lazy-load the video and eagerly load the hero image
Explanation:
Below-the-fold media can be deferred to reduce initial work, while the likely LCP hero should be available immediately. Layout dimensions should still be reserved independently with explicit sizing or aspect ratio.
Incorrect! Try again.
48An infinite-scroll feed uses IntersectionObserver, but it repeatedly requests the next page when the sentinel remains visible during a slow network response. What is the most robust fix?
Lazy Loading
Hard
A.Guard requests with an in-flight flag and update pagination after success
B.Increase the observer threshold to 1 so callbacks occur less frequently
C.Remove the sentinel after the first callback and recreate it on every render
D.Increase the root margin substantially so the next request starts earlier and can overlap
Correct Answer: Guard requests with an in-flight flag and update pagination after success
Explanation:
An observer can fire repeatedly while the sentinel remains intersecting. Request serialization prevents duplicate pages, while pagination should advance only after the corresponding request succeeds.
Incorrect! Try again.
49A faceted commerce site exposes thousands of URLs through combinations of filters, many containing the same products and no unique search value. Which strategy best controls crawl waste while preserving useful category pages?
SEO Fundamentals
Hard
A.Add every filter URL to the XML sitemap so crawlers discover the complete catalog
B.Use nofollow on every filter link while leaving all generated URLs indexable
C.Allow valuable facets, canonicalize duplicates, and block low-value combinations where appropriate
D.Return identical product pages for every combination and rely on search engines to deduplicate them
Correct Answer: Allow valuable facets, canonicalize duplicates, and block low-value combinations where appropriate
Explanation:
Faceted navigation requires deliberate URL governance. Valuable, unique pages can be indexable, while duplicate or low-value combinations should be consolidated or excluded from crawling and indexing.
Incorrect! Try again.
50A JavaScript-rendered article shows a loading shell in the initial HTML, and the article body appears only after client execution. Organic traffic is low despite correct titles and descriptions. Which change most directly improves crawl reliability?
SEO Fundamentals
Hard
A.Render the article's primary content in server HTML or a pre-rendered response
B.Add more keywords to the client-generated title after hydration
C.Add an extra analytics script so crawlers receive more page activity signals
D.Hide the loading shell with CSS until the browser finishes executing scripts
Correct Answer: Render the article's primary content in server HTML or a pre-rendered response
Explanation:
Server-rendered or pre-rendered content makes the article available in the initial response and reduces dependence on crawler JavaScript execution. Metadata alone cannot replace missing primary content.
Incorrect! Try again.
51A production build passes functional tests, but its JavaScript bundle contains source maps with embedded source content and internal API paths. What is the primary deployment concern?
Production Build
Hard
A.The maps will prevent browsers from caching JavaScript bundles
B.The maps may expose proprietary source and infrastructure details
C.The maps necessarily cause the minifier to remove dead code incorrectly
D.The maps make all runtime exceptions impossible to capture
Correct Answer: The maps may expose proprietary source and infrastructure details
Explanation:
Public source maps can reveal original code, comments, and internal paths. Teams commonly upload maps privately to an error-monitoring service while omitting or restricting public distribution.
Incorrect! Try again.
52A release changes hashed asset filenames, but the deployment replaces the old assets immediately. Users with an older HTML document then receive 404 responses for its referenced chunks. Which deployment improvement addresses this failure mode?
Production Build
Hard
A.Set all JavaScript responses to no-store so browsers always refetch them
B.Retain old hashed assets for a compatibility window and publish HTML atomically
C.Disable filename hashing so every release overwrites the same asset names
D.Increase JavaScript compression so old documents reference fewer chunk files
Correct Answer: Retain old hashed assets for a compatibility window and publish HTML atomically
Explanation:
Previously served HTML can reference earlier immutable chunks. Keeping old assets temporarily and updating the document atomically prevents mixed-version deployments from producing chunk-not-found errors.
Incorrect! Try again.
53A frontend build exposes variables prefixed for client access. A developer places a database password in one of those variables, assuming the value is protected because the repository is private. What is the correct assessment?
Environment Configuration
Hard
A.The password is safe when the variable name does not include the word secret
B.The password is exposed to clients and must be rotated and removed
C.The password is safe if the production build disables source maps
D.The password is protected because bundlers encrypt public variables automatically
Correct Answer: The password is exposed to clients and must be rotated and removed
Explanation:
Client-exposed environment variables are compiled into browser-delivered code or configuration. They are not secrets, regardless of repository visibility, naming, or source-map settings.
Incorrect! Try again.
54A single container image should be promoted from staging to production without rebuilding. The frontend currently embeds the API base URL during compilation. Which architecture best supports this requirement?
Environment Configuration
Hard
A.Store the production URL in a public client variable and override it after deployment
B.Build separate images for staging and production with different embedded URLs
C.Inject runtime configuration through a server-generated config endpoint
D.Choose the API URL from window.location.host for every request
Correct Answer: Inject runtime configuration through a server-generated config endpoint
Explanation:
Runtime configuration separates the artifact from environment-specific values. The same image can then be promoted while the serving environment supplies the appropriate API endpoint.
Incorrect! Try again.
55A globally distributed application has personalized pages that cannot be publicly cached, while its static assets are content-hashed and immutable. Which deployment design gives the best performance and correctness balance?
Deployment Platforms
Hard
A.Disable CDN caching entirely because personalized HTML prevents asset caching
B.Cache personalized HTML by URL alone and purge it only during scheduled releases
C.Cache all HTML publicly for a year and vary responses only by browser user agent
D.Cache immutable assets at the edge and use short-lived or private caching for personalized HTML
Correct Answer: Cache immutable assets at the edge and use short-lived or private caching for personalized HTML
Explanation:
Hashed assets are safe to cache for long periods because their URLs change when content changes. Personalized HTML needs user-aware cache controls to avoid data leakage and stale responses.
Incorrect! Try again.
56A serverless deployment handles ordinary requests quickly but times out during a large report export. The export performs CPU-intensive work and exceeds the platform's execution limit. Which redesign is most appropriate?
Deployment Platforms
Hard
A.Add more client-side polling while the original request continues running
B.Move compression into the browser after downloading the complete report dataset
C.Queue the export as an asynchronous job and notify the user when it completes
D.Increase the browser timeout and keep the same synchronous serverless request
Correct Answer: Queue the export as an asynchronous job and notify the user when it completes
Explanation:
Long-running work should be decoupled from request duration. A queue and worker can process the export within suitable limits while the user receives status and completion information.
Incorrect! Try again.
57A field-monitoring dashboard reports excellent average LCP, but users on slow mobile networks still complain. Which measurement change is most likely to reveal the problem?
Performance Monitoring
Hard
A.Compare p75 or p95 LCP by device, connection, and geographic segment
B.Replace field measurements with a single desktop Lighthouse run
C.Average LCP across all sessions without retaining device or network dimensions
D.Report only the fastest LCP value to isolate ideal rendering conditions
Correct Answer: Compare p75 or p95 LCP by device, connection, and geographic segment
Explanation:
Averages can hide poor experiences affecting a meaningful minority. Percentiles segmented by real-world conditions expose slow cohorts and help identify where remediation has the greatest impact.
Incorrect! Try again.
58A release lowers the overall error rate but increases INP for users on low-end devices. Which investigation provides the strongest evidence for a release decision?
Performance Monitoring
Hard
A.Use only the median INP because tail latency is caused by network conditions
B.Approve the release because fewer errors always indicate better user experience
C.Measure total JavaScript bytes without examining interaction timing or affected cohorts
D.Compare segmented INP distributions and correlate regressions with changed interactions
Correct Answer: Compare segmented INP distributions and correlate regressions with changed interactions
Explanation:
Performance regressions can affect specific devices or interactions while aggregate metrics improve. Segmented distributions and interaction-level correlation identify whether the release harms an important user cohort.
Incorrect! Try again.
59An error-monitoring service receives a stack trace from a minified production bundle, but the frames are unreadable. Source maps exist locally and contain sensitive source code. Which setup is most appropriate?
Error Logging
Hard
A.Publish source maps publicly and rely on obscurity to protect implementation details
B.Disable minification in production so stack traces remain readable by default
C.Log only the error message because stack frames cannot be trusted after bundling
D.Upload source maps privately with release identifiers and omit them from public assets
Correct Answer: Upload source maps privately with release identifiers and omit them from public assets
Explanation:
Private source-map uploads allow the monitoring service to symbolicate minified frames without exposing source code publicly. Matching release identifiers ensures the correct maps are used.
Incorrect! Try again.
60A client application logs full request payloads and authenticated URLs whenever an exception occurs. Logs are useful for debugging, but they may contain passwords and personal data. What is the best correction?
Error Logging
Hard
A.Send all logs to the browser console and let users decide what to report
B.Keep every payload because complete logs provide the most reliable diagnosis
C.Redact sensitive fields, minimize context, and restrict log access
D.Hash the entire payload while retaining authentication headers for correlation
Error context should support diagnosis without collecting unnecessary secrets or personal data. Redaction, data minimization, and access controls reduce exposure while preserving useful debugging information.
Incorrect! Try again.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. Ads cover part of the server bill.
The rest comes out of a student's own pocket: the domain, the storage,
and keeping the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it.
What it pays for →