Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.

Unit 6 MCQs Advanced Features and Industry Practices

INT257 — Modern Web Application Development 60 questions. Pick an option to check it.

Read the notes Subjective questions

0 of 60 answered 0 right 0 wrong , 60 left

  1. Question 1 of 60 Parallel Routes Easy

    What is the main purpose of Parallel Routes in Next.js?

  2. Question 2 of 60 Parallel Routes Easy

    Which folder naming convention defines a Parallel Route slot in Next.js?

  3. Question 3 of 60 Parallel Routes Easy

    Where are named Parallel Route slots commonly received for rendering?

  4. Question 4 of 60 Proxy Easy

    What is a common use of Proxy in a web application?

  5. Question 5 of 60 Proxy Easy

    Which task is well suited to a request Proxy?

  6. Question 6 of 60 Intercepting Routes Easy

    What do Intercepting Routes allow an application to do?

  7. Question 7 of 60 Intercepting Routes Easy

    Which interface pattern commonly uses Intercepting Routes?

  8. Question 8 of 60 Edge Runtime Easy

    Where does Edge Runtime code typically execute?

  9. Question 9 of 60 Edge Runtime Easy

    What is a common benefit of using the Edge Runtime?

  10. Question 10 of 60 Edge Runtime Easy

    Which statement about the Edge Runtime is generally correct?

  11. Question 11 of 60 Internationalization Easy

    What does internationalization prepare an application to support?

  12. Question 12 of 60 Internationalization Easy

    What is a locale in an internationalized application?

  13. Question 13 of 60 Internationalization Easy

    Which content commonly changes according to a user's locale?

  14. Question 14 of 60 Project Architecture Easy

    What is the main goal of a clear project architecture?

  15. Question 15 of 60 Project Architecture Easy

    Where should shared utility functions generally be placed?

  16. Question 16 of 60 Component Organization Easy

    What is a reusable component?

  17. Question 17 of 60 Component Organization Easy

    Which practice improves component organization?

  18. Question 18 of 60 Security Best Practices Easy

    How should application secrets such as API keys usually be stored?

  19. Question 19 of 60 Security Best Practices Easy

    Why should an application validate user input?

  20. Question 20 of 60 Testing Overview Easy

    What does a unit test usually verify?

  21. Question 21 of 60 Parallel Routes Medium

    In a dashboard application, which feature allows the layout to render a sidebar and a main content area independently using named slots?

  22. Question 22 of 60 Parallel Routes Medium

    A user navigates between pages inside a dashboard, but the analytics panel should preserve its state while the main content changes. Which approach is most appropriate?

  23. Question 23 of 60 Proxy Medium

    What is the most suitable use of a Next.js proxy for a protected application area?

  24. Question 24 of 60 Proxy Medium

    A proxy should run only for requests beginning with /admin. Which configuration principle should be applied?

  25. Question 25 of 60 Intercepting Routes Medium

    A product list should open a product detail page in a modal when navigated from the list, but show a full page after a direct URL visit. Which feature supports this behavior?

  26. Question 26 of 60 Intercepting Routes Medium

    Why should a modal opened through an intercepted route usually include a normal page implementation as well?

  27. Question 27 of 60 Edge Runtime Medium

    Which implementation is most compatible with an edge runtime?

  28. Question 28 of 60 Edge Runtime Medium

    An edge function must access a database driver that depends on Node.js TCP sockets. What is the main concern?

  29. Question 29 of 60 Internationalization Medium

    An application supports English and French URLs such as /en/products and /fr/products. What should determine the displayed language?

  30. Question 30 of 60 Internationalization Medium

    A price must display correctly for users in Germany and the United States. Which strategy is most reliable?

  31. Question 31 of 60 Project Architecture Medium

    Which architectural choice best supports independent development of a large web application?

  32. Question 32 of 60 Project Architecture Medium

    A team wants to prevent UI code from directly constructing database queries. Which architectural practice is most appropriate?

  33. Question 33 of 60 Component Organization Medium

    A button is reused across unrelated features and has no feature-specific behavior. Where should it generally be organized?

  34. Question 34 of 60 Component Organization Medium

    A page needs browser event handlers, but most of its content is static. How should the components be organized?

  35. Question 35 of 60 Security Best Practices Medium

    Which practice best protects a web application from SQL injection?

  36. Question 36 of 60 Security Best Practices Medium

    A server action receives an isAdmin value from a form. Why should the server avoid trusting that value?

  37. Question 37 of 60 Security Best Practices Medium

    Which cookie configuration is most appropriate for a session identifier that should not be accessible to JavaScript?

  38. Question 38 of 60 Testing Overview Medium

    Which test type is most appropriate for verifying that a form displays an error when a required field is empty?

  39. Question 39 of 60 Testing Overview Medium

    A test passes locally but fails intermittently in continuous integration because it depends on timing. What is the best improvement?

  40. Question 40 of 60 Testing Overview Medium

    Which test provides the strongest check that a user can log in, reach a protected page, and log out through the browser?

  41. Question 41 of 60 Parallel Routes Hard

    A dashboard uses parallel routes for @analytics and @activity. The user navigates from /dashboard/reports to /dashboard/settings, but the activity panel should preserve its existing state while the analytics panel refreshes. Which design best achieves this behavior?

  42. Question 42 of 60 Parallel Routes Hard

    A modal is implemented with a parallel route slot. On a hard refresh at /inbox, the modal slot receives no active child, although client-side navigation correctly opens the modal. Which file most directly defines the refresh fallback for that slot?

  43. Question 43 of 60 Parallel Routes Hard

    Two parallel route slots display independent resources. One resource returns a 403 response while the other succeeds. What is the most appropriate boundary arrangement?

  44. Question 44 of 60 Proxy Hard

    A proxy should protect /admin routes but must not run for /_next/static, image optimization requests, or files containing a dot in their final path segment. Which matcher strategy is most precise?

  45. Question 45 of 60 Proxy Hard

    A proxy validates an access token and then redirects unauthenticated users to /login?returnTo=<original path>. Which issue must be addressed before deploying this implementation?

  46. Question 46 of 60 Intercepting Routes Hard

    A product detail route should open as a modal when reached from a product list, but render as a full page after a direct URL entry or browser refresh. Which combination is required?

  47. Question 47 of 60 Intercepting Routes Hard

    A modal opened through an intercepting route remains visible after the user presses the browser Back button. Which implementation detail is most likely missing?

  48. Question 48 of 60 Edge Runtime Hard

    An API handler works in Node.js but fails after being configured for the Edge Runtime because it imports a package that depends on fs and Node's TCP APIs. What is the correct diagnosis?

  49. Question 49 of 60 Edge Runtime Hard

    A globally distributed request handler performs a 700 ms database query against a single regional database. Moving the handler to the Edge Runtime does not improve median latency. Why?

  50. Question 50 of 60 Internationalization Hard

    An application supports locale-prefixed URLs and must preserve a user's requested path when redirecting / to a detected locale. Which behavior avoids a common routing defect?

  51. Question 51 of 60 Internationalization Hard

    A localized page is statically generated for en, fr, and de. A request arrives for fr-CA, which is configured as a fallback of fr. What is the most robust rendering strategy?

  52. Question 52 of 60 Project Architecture Hard

    A team wants feature ownership to remain clear as a Next.js application grows. Which structure best supports localized changes and prevents unrelated domain code from accumulating in a global utilities folder?

  53. Question 53 of 60 Project Architecture Hard

    A route group is introduced to give authenticated pages a shared layout without changing their public URLs. Which statement correctly describes the purpose of route groups?

  54. Question 54 of 60 Component Organization Hard

    A server component fetches private data and passes a callback that closes over a secret-bearing object to a client component. Why is this design invalid or unsafe?

  55. Question 55 of 60 Component Organization Hard

    A large interactive table causes an otherwise static page to become client-rendered. Which refactoring best preserves server rendering while retaining table interactivity?

  56. Question 56 of 60 Security Best Practices Hard

    A server action updates a user's email address. The form is rendered only for administrators, but a malicious client invokes the action directly. What control is essential inside the action?

  57. Question 57 of 60 Security Best Practices Hard

    An application accepts a next query parameter after login and performs redirect(next). Which validation is strongest for preventing an attacker-controlled external redirect?

  58. Question 58 of 60 Security Best Practices Hard

    A page displays user-submitted Markdown. The renderer permits raw HTML because some trusted authors need formatting. Which mitigation is required?

  59. Question 59 of 60 Testing Overview Hard

    A component test passes because it mocks the router, but production fails when a parallel route slot is missing during a hard refresh. Which test addition most directly covers the defect?

  60. Question 60 of 60 Testing Overview Hard

    A test verifies that an unauthorized user cannot access /admin. The implementation returns either a redirect or a 403 depending on whether the request is browser navigation or an API call. What assertion strategy is most resilient?

That's unit 6

Answer a few questions and your score shows up here.