[{"id":"webperformancebeginner-001","courseId":"web-performance-beginner","domain":"measurement","topic":"Core Web Vitals","prompt":"A team wants to check whether its site passes Core Web Vitals. Which three metrics should it measure?","hint":"Each core metric covers one part of the experience. A retired metric no longer counts.","explain":"Site speed is judged with a short list of metrics, each chosen for one aspect of how a page feels to use. The list changes over time as metrics are tested, promoted and replaced.","source":"https://web.dev/articles/vitals","interaction":{"type":"single"},"options":[{"id":"a","text":"LCP, INP and CLS","why":"These are the three metrics Chrome currently lists as stable Core Web Vitals."},{"id":"b","text":"LCP, FCP and TTFB","whyNot":"FCP and TTFB are useful timings for diagnosis, but neither is a Core Web Vital."},{"id":"c","text":"LCP, FID and CLS","whyNot":"FID was retired and replaced by INP as a stable Core Web Vital in 2024, so it is no longer in the set."},{"id":"d","text":"FCP, INP and TTFB","whyNot":"Two of these, FCP and TTFB, are not Core Web Vitals, so this set is wrong."}],"answer":"a","explanation":"Chrome's stable Core Web Vitals are LCP, INP and CLS. FID was retired, and INP became a stable Core Web Vital in 2024 in its place.","concept":"Chrome's stable Core Web Vitals are LCP, INP and CLS. FID was retired, and INP became a stable Core Web Vital in 2024 in its place.","rev":1,"updatedAt":"2026-10-27","kind":"scenario","takeaways":["Core Web Vitals is a short, changing list, so check the current set before reporting."]},{"id":"webperformancebeginner-002","courseId":"web-performance-beginner","domain":"measurement","topic":"Largest Contentful Paint","prompt":"A developer's observer logs three largest-contentful-paint entries at 0.9 s, 1.7 s and 2.2 s, and no more arrive. Which value should the developer report as the page's LCP?","hint":"More than one value can come out of a single measurement while the page is still loading.","explain":"A timing API can emit several provisional values for one measurement while a page is still rendering. Work out which of those values the measurement is taken from once rendering is done.","source":"https://web.dev/articles/lcp","interaction":{"type":"single"},"options":[{"id":"a","text":"2.2 s, the startTime of the last entry emitted","why":"Each entry is a newer LCP candidate, and in general the last one emitted gives the LCP value."},{"id":"b","text":"0.9 s, the startTime of the first entry","whyNot":"The first entry is only an early candidate; later entries can replace it as more of the page renders."},{"id":"c","text":"1.7 s, the middle value of the three","whyNot":"Picking the middle entry has no basis; the LCP value follows the most recent candidate, not a median."},{"id":"d","text":"1.3 s, the gap between the first and the last entry","whyNot":"Each startTime is a timestamp counted from navigation start, so the gap between two of them is not the LCP."}],"answer":"a","explanation":"Each largest-contentful-paint entry is a candidate for LCP. In general, the startTime of the last entry emitted is the LCP value, though not every entry is valid.","concept":"Each largest-contentful-paint entry is a candidate for LCP. In general, the startTime of the last entry emitted is the LCP value, though not every entry is valid.","rev":1,"updatedAt":"2026-10-27","kind":"scenario","takeaways":["LCP is not the first candidate the API reports; the last one emitted usually stands."]},{"id":"webperformancebeginner-003","courseId":"web-performance-beginner","domain":"measurement","topic":"Cumulative Layout Shift","prompt":"An ad loads late and pushes the article text down the screen. Which TWO statements about how Cumulative Layout Shift is scored are correct?","hint":"Think about what counts as movement and how the total is formed over the page's life.","explain":"A page-wide stability figure has to summarize many small movements that happen at different moments of one visit. Consider what a single figure for a whole visit should capture from movements spread across it.","source":"https://web.dev/articles/cls?hl=en","interaction":{"type":"multiple","tellCount":true},"options":[{"id":"a","text":"CLS adds up every layout shift score across the whole life of the page.","whyNot":"That was the old definition; CLS now reports the largest burst, not the total of every shift."},{"id":"b","text":"CLS reports the largest burst of layout shift scores, grouped into session windows.","why":"A session window is a cluster of shifts, and the score takes the largest such cluster on the page."},{"id":"c","text":"Adding a new element to the page counts as a layout shift by itself.","whyNot":"A new element is not a shift by itself; it matters only if other visible elements move."},{"id":"d","text":"A layout shift happens when a visible element changes its position from one rendered frame to the next.","why":"A layout shift is a visible element's position changing from one rendered frame to the next."},{"id":"e","text":"Resizing an element already on the page always counts as a layout shift.","whyNot":"A size change alone does not count; a shift needs a visible element to change its position between frames."},{"id":"f","text":"A good CLS score is 1.0 or less.","whyNot":"A good CLS is 0.1 or less, so a score of 1.0 is far above the good threshold."}],"answer":"bd","explanation":"CLS scores the largest session window of layout shifts, where a shift is a visible element changing its position from one rendered frame to the next.","concept":"CLS scores the largest session window of layout shifts, where a shift is a visible element changing its position from one rendered frame to the next.","rev":1,"updatedAt":"2026-10-27","kind":"scenario","takeaways":["CLS scores the worst burst of unexpected movement, not the sum of every shift on the page."]},{"id":"webperformancebeginner-004","courseId":"web-performance-beginner","domain":"measurement","topic":"Interaction to Next Paint","prompt":"Which of these user actions does Interaction to Next Paint (INP) measure when it judges how quickly a page responds?","hint":"Only some kinds of input are in scope; the rest are ignored for this metric.","explain":"A responsiveness metric is about how quickly a page answers a person's deliberate action. Consider which actions expect a visible answer from the page.","source":"https://web.dev/articles/inp?hl=en","interaction":{"type":"single"},"options":[{"id":"a","text":"Tapping a filter button on the page","why":"The page lists mouse clicks, taps on a touchscreen and key presses as the only interaction types INP observes."},{"id":"b","text":"Scrolling down a long product list","whyNot":"INP does not observe scrolling, so scrolling is left out of the responsiveness measurement."},{"id":"c","text":"Zooming in on the page with a pinch","whyNot":"INP does not count zooming, so a pinch gesture is left out of the score."},{"id":"d","text":"Hovering the pointer over a product photo","whyNot":"INP does not observe hovering, so moving the pointer over a photo is left out of the measurement."}],"answer":"a","explanation":"INP covers clicks, taps and key presses, and ignores scrolling, zooming and hovering.","concept":"INP covers clicks, taps and key presses, and ignores scrolling, zooming and hovering.","rev":1,"updatedAt":"2026-10-27","kind":"scenario","takeaways":["INP covers clicks, taps and key presses; scrolling, zooming and hovering are not counted."]},{"id":"webperformancebeginner-005","courseId":"web-performance-beginner","domain":"measurement","topic":"First Contentful Paint","prompt":"A page shows its heading and logo after 1.2 seconds, but its hero photo keeps loading until 4 seconds. Which timing does the 1.2-second mark record?","hint":"Look for the moment when anything at all appears, not when everything finishes.","explain":"Each load metric stops its clock at a different milestone, so one page can produce several numbers. Think about which milestone the scenario describes, and which of the others would come later.","source":"https://web.dev/articles/fcp","interaction":{"type":"single"},"options":[{"id":"a","text":"First Contentful Paint, the moment any text, image or SVG is drawn","why":"FCP marks when the first content, such as text or an image, appears on screen, even if more is still loading."},{"id":"b","text":"Largest Contentful Paint, the moment the biggest element is finished","whyNot":"LCP waits for the main content, here the hero photo at 4 seconds, so it would be later."},{"id":"c","text":"Time to First Byte, the moment the server's first byte arrives","whyNot":"TTFB covers the wait for the server's response, which happens before any content is drawn."},{"id":"d","text":"Cumulative Layout Shift, the total of all visible movement","whyNot":"CLS measures how much content moves after it appears, not when content first appears."}],"answer":"a","explanation":"FCP measures from navigation until any part of the content (text, images, SVG or a non-white canvas) is rendered. It can come long before the page is complete.","concept":"FCP measures from navigation until any part of the content (text, images, SVG or a non-white canvas) is rendered. It can come long before the page is complete.","rev":1,"updatedAt":"2026-10-27","kind":"scenario","takeaways":["FCP marks the first visible content; it can be far earlier than when the page is complete."]}]