All fields

“Validation” in Information Technology

144 questions across 15 technologies.

Information Technology

144 questions in 15 technologies

#QuestionTechnologyTopicLevel
1How do you implement real-time field validation as the user types? .NET MAUI › Forms, Input & Validation.NET MAUIForms, Input & ValidationIntermediate
2How do you implement real-time field validation as the user types? .NET MAUI › Forms, Input & Validation.NET MAUIForms, Input & ValidationIntermediate
3How do you implement INotifyDataErrorInfo for robust validation? .NET MAUI › Forms, Input & Validation.NET MAUIForms, Input & ValidationAdvanced
4How do you implement INotifyDataErrorInfo for robust validation? .NET MAUI › Forms, Input & Validation.NET MAUIForms, Input & ValidationAdvanced
5What is on-demand revalidation in Next.js, and how is it different from time based revalidation? Next.js › On-Demand Revalidation StrategiesNext.jsOn-Demand Revalidation StrategiesBeginner
6What is the purpose of validating user submitted form data, and what basic validation checks are commonly performed? PHP › Form Handling & ValidationPHPForm Handling & ValidationBeginner
7How does the validator property on a TextFormField let you define a specific custom validation rule, such as properly checking that an entered email address actually contains an genuine at symbol? Flutter › Forms & Input Validation in FlutterFlutterForms & Input Validation in FlutterBeginner
8How do you validate form data on the server before saving it, and show validation errors back to the user? Next.js › Form Handling & Validation in Next.jsNext.jsForm Handling & Validation in Next.jsIntermediate
9Why is server side validation always necessary even when client side JavaScript validation is already in place on a form? PHP › Form Handling & ValidationPHPForm Handling & ValidationIntermediate
10How do modern PHP frameworks like Laravel simplify form validation compared to writing manual validation checks by hand? PHP › Form Handling & ValidationPHPForm Handling & ValidationIntermediate
11How do you properly implement real time validation feedback in Flutter, showing a genuine validation error message as a user actively types rather than only once they actually submit the entire form? Flutter › Forms & Input Validation in FlutterFlutterForms & Input Validation in FlutterIntermediate
12How should a form properly and clearly handle and display a genuine server side validation error, such as discovering that a specific chosen username is already actually taken, that genuinely cannot actually be determined purely through simple client side validation logic alone? Flutter › Forms & Input Validation in FlutterFlutterForms & Input Validation in FlutterIntermediate
13How should a complex, multi step form, such as a checkout process, handle validation and state management across multiple pages while maintaining data integrity and security? PHP › Form Handling & ValidationPHPForm Handling & ValidationAdvanced
14How can you properly implement debounced asynchronous validation for a specific field, such as checking username availability against a server, without triggering a genuinely brand new separate network request on essentially every single individual keystroke a user actually types? Flutter › Forms & Input Validation in FlutterFlutterForms & Input Validation in FlutterAdvanced
15What HTTP status code and response should be returned when an upload fails validation (wrong type, too large, missing file)? ASP.NET Core › File Uploads & Streaming Large FilesASP.NET CoreFile Uploads & Streaming Large FilesBeginner
16How do you implement input validation with data binding? .NET MAUI › Advanced Data Binding & Collections.NET MAUIAdvanced Data Binding & CollectionsIntermediate
17How do you implement input validation with data binding? .NET MAUI › Advanced Data Binding & Collections.NET MAUIAdvanced Data Binding & CollectionsIntermediate
18How do you share validation logic between a Blazor form (using EditForm and DataAnnotationsValidator) and a corresponding ASP.NET Core Web API's model validation? ASP.NET Core › Blazor Integration with ASP.NET CoreASP.NET CoreBlazor Integration with ASP.NET CoreIntermediate
19How do you implement equivalent cross-cutting concerns (like automatic model validation) in minimal APIs that [ApiController] provides automatically for controllers? ASP.NET Core › Controllers vs Minimal APIsASP.NET CoreControllers vs Minimal APIsAdvanced
20How would you implement a custom route constraint (IRouteConstraint) for a domain-specific validation pattern, like a product SKU format? ASP.NET Core › Endpoint Metadata, Route Constraints & TemplatesASP.NET CoreEndpoint Metadata, Route Constraints & TemplatesAdvanced
21How does exception handling middleware interact with model validation errors, and why do they typically produce two entirely separate error response paths? ASP.NET Core › Error HandlingASP.NET CoreError HandlingAdvanced
22How should a RESTful API be designed to handle complex error responses consistently, including validation errors affecting multiple fields at once? PHP › RESTful API Development with PHPPHPRESTful API Development with PHPAdvanced
23How do you add a setter to a property so assignment (obj.attr = value) triggers custom logic, like validation? Python › Descriptors & PropertiesPythonDescriptors & PropertiesBeginner
24How does domain validation work when requesting a certificate through ACM? AWS › AWS Certificate Manager (ACM)AWSAWS Certificate Manager (ACM)Beginner
25How do assert statements work for debugging, and why should they NOT be relied upon for production input validation? Python › Debugging & ProfilingPythonDebugging & ProfilingIntermediate
26What are common cache invalidation strategies, and why is cache invalidation considered a genuinely hard problem? .NET › Caching (In-Memory, Distributed & Redis).NETCaching (In-Memory, Distributed & Redis)Intermediate
27Why is it important to validate a server's TLS certificate when making outbound HttpClient calls to external services, and what's the risk of disabling certificate validation? ASP.NET Core › HTTPS, Certificates & Transport SecurityASP.NET CoreHTTPS, Certificates & Transport SecurityIntermediate
28How would you use an abstract class's constructor to enforce that certain validation or initialization logic always runs for every subclass, something an interface (lacking constructors entirely) cannot provide? Java › Interfaces & Abstract ClassesJavaInterfaces & Abstract ClassesIntermediate
29What is the difference between a validation error and a business-logic error, and how might a Node.js application handle each differently? Node.js › Error HandlingNode.jsError HandlingIntermediate
30How do you add validation to a reactive form field, and how do you show an error message to the user? Angular › FormsAngularFormsIntermediate
31How does CloudTrail log file integrity validation help ensure that audit logs have not been tampered with? AWS › AWS CloudTrail & AuditingAWSAWS CloudTrail & AuditingIntermediate
32How does cache invalidation work, and why is deciding when to clear a cache often considered one of the harder problems in caching? PHP › Caching Strategies in PHPPHPCaching Strategies in PHPIntermediate
33How do Firestore security rules control which users are allowed to read or write specific pieces of data, and why is relying only on client side validation within the Flutter app itself never sufficient? Flutter › Cloud Firestore & Firebase StorageFlutterCloud Firestore & Firebase StorageIntermediate
34How would you write extension methods to build a lightweight, fluent validation/guard-clause library? C# › Extension MethodsC#Extension MethodsAdvanced
35How do you write a custom 'type=' validation function for argparse that raises a properly-formatted error for invalid input? Python › Command-Line Interfaces (argparse)PythonCommand-Line Interfaces (argparse)Advanced
36How do you add validation logic to a dataclass field using __post_init__? Python › Dataclasses & NamedTuplesPythonDataclasses & NamedTuplesAdvanced
37How would you implement a function that dynamically inspects its own call arguments at runtime using the 'inspect' module, useful for building generic validation or logging decorators? Python › Functions & ScopePythonFunctions & ScopeAdvanced
38How does token validation work under the hood when the JwtBearer middleware receives a request, and what checks does it perform? .NET › Authentication & Authorization (Identity, JWT, OAuth).NETAuthentication & Authorization (Identity, JWT, OAuth)Advanced
39How would you implement cache tag-based invalidation to clear a group of related cache entries at once? .NET › Caching (In-Memory, Distributed & Redis).NETCaching (In-Memory, Distributed & Redis)Advanced
40How does the Generic Host's dependency validation (ValidateOnBuild and ValidateScopes) help catch DI configuration errors early? .NET › Generic Host.NETGeneric HostAdvanced
41How does exception handling middleware interact with model validation errors in ASP.NET Core, and how do they typically produce different error response paths? .NET › Global Exception Handling & Middleware.NETGlobal Exception Handling & MiddlewareAdvanced
42How does JWT bearer authentication validate an incoming token, and what claims does TokenValidationParameters check? ASP.NET Core › AuthenticationASP.NET CoreAuthenticationAdvanced
43What are common cache invalidation strategies for ensuring cached data doesn't become stale, and why is invalidation considered a genuinely hard problem? ASP.NET Core › CachingASP.NET CoreCachingAdvanced
44How do you write a custom IValidateOptions<T> implementation for validation logic beyond what DataAnnotations attributes can express? ASP.NET Core › Configuration & Options PatternASP.NET CoreConfiguration & Options PatternAdvanced
45How would you read custom annotations at runtime using reflection to implement annotation-driven behavior, such as a simple dependency injection or validation framework? Java › AnnotationsJavaAnnotationsAdvanced
46How would you implement annotation-based validation (similar to Bean Validation's @NotNull, @Size) using a custom annotation and a reflection-based validator? Java › AnnotationsJavaAnnotationsAdvanced
47How would you use the Chain of Responsibility pattern to implement a request-processing pipeline (such as middleware-style validation/authentication/logging), and how does this relate conceptually to servlet filters or web framework middleware? Java › Design Patterns in JavaJavaDesign Patterns in JavaAdvanced
48How would you design a fluent, chainable validation API using functional interfaces, similar to how Comparator's thenComparing() works, but for validation rules that accumulate error messages rather than short-circuiting on the first failure? Java › Functional Interfaces & Method ReferencesJavaFunctional Interfaces & Method ReferencesAdvanced
49How would you configure HttpClient to trust a custom or self-signed SSL/TLS certificate for testing against an internal service, and what security risks does disabling certificate validation entirely introduce? Java › Java Networking & HTTP ClientJavaJava Networking & HTTP ClientAdvanced
50What are the main cache invalidation strategies (TTL, write-through, cache-aside), and when is each appropriate? Node.js › CachingNode.jsCachingAdvanced
51How would you implement request validation middleware in Express using a schema-validation library like Zod or Joi? Node.js › Express & MiddlewareNode.jsExpress & MiddlewareAdvanced
52How does the useFormState hook, sometimes called useActionState, let you show validation errors returned from a server action? React › Server Actions & Data MutationsReactServer Actions & Data MutationsAdvanced
53How do you implement cache invalidation correctly when the same underlying data is cached under multiple different keys? Redis › Caching PatternsRedisCaching PatternsAdvanced
54How would you build a reliable cache invalidation system using keyspace notifications, while accounting for their delivery limitations? Redis › Keyspace NotificationsRedisKeyspace NotificationsAdvanced
55How does PHP's type coercion behave differently in strict types mode compared to the default coercive mode, and what are the implications for function argument and return type validation? PHP › Basics & TypesPHPBasics & TypesAdvanced
56How does OPcache's file validation and preloading feature work, and what performance benefit does preloading provide beyond standard bytecode caching? PHP › Performance Optimization & OPcachePHPPerformance Optimization & OPcacheAdvanced
57How do you build a data entry form in MAUI? .NET MAUI › Forms, Input & Validation.NET MAUIForms, Input & ValidationBeginner
58How do you use Picker and BindablePicker for selections? .NET MAUI › Forms, Input & Validation.NET MAUIForms, Input & ValidationBeginner
59How do you build a data entry form in MAUI? .NET MAUI › Forms, Input & Validation.NET MAUIForms, Input & ValidationBeginner
60How do you use Picker and BindablePicker for selections? .NET MAUI › Forms, Input & Validation.NET MAUIForms, Input & ValidationBeginner
61What are Behaviors in MAUI and how do they help forms? .NET MAUI › Forms, Input & Validation.NET MAUIForms, Input & ValidationIntermediate
62What are Behaviors in MAUI and how do they help forms? .NET MAUI › Forms, Input & Validation.NET MAUIForms, Input & ValidationIntermediate
63How do you manage focus and keyboard behavior in forms? .NET MAUI › Forms, Input & Validation.NET MAUIForms, Input & ValidationAdvanced
64How do you manage focus and keyboard behavior in forms? .NET MAUI › Forms, Input & Validation.NET MAUIForms, Input & ValidationAdvanced
65What are the tradeoffs between using revalidatePath and revalidateTag for a large application with many interconnected pages? Next.js › On-Demand Revalidation StrategiesNext.jsOn-Demand Revalidation StrategiesAdvanced
66How do you submit a form directly to a server action in Next.js without writing any client side JavaScript? Next.js › Form Handling & Validation in Next.jsNext.jsForm Handling & Validation in Next.jsBeginner
67How do you retrieve data submitted through an HTML form using PHP, and what is the difference between the GET and POST methods? PHP › Form Handling & ValidationPHPForm Handling & ValidationBeginner
68What is the Form widget in Flutter, and how does it let you properly group together several separate individual input fields to be validated and submitted all together as one single unit? Flutter › Forms & Input Validation in FlutterFlutterForms & Input Validation in FlutterBeginner
69How do you show a pending or loading state while a form is being submitted using a server action? Next.js › Form Handling & Validation in Next.jsNext.jsForm Handling & Validation in Next.jsIntermediate
70How do you use revalidatePath to refresh the cache for a specific page after content changes? Next.js › On-Demand Revalidation StrategiesNext.jsOn-Demand Revalidation StrategiesIntermediate
71How do you use revalidateTag to refresh multiple related pieces of cached content at once? Next.js › On-Demand Revalidation StrategiesNext.jsOn-Demand Revalidation StrategiesIntermediate
72How does PHP's filter_var function help validate and sanitize different types of user input, such as emails, URLs, and integers? PHP › Form Handling & ValidationPHPForm Handling & ValidationIntermediate
73How does properly using TextInputFormatter genuinely help restrict or automatically format exactly what a user can actually type into a specific given text field, such as automatically formatting a phone number or restricting input to only numeric digits? Flutter › Forms & Input Validation in FlutterFlutterForms & Input Validation in FlutterIntermediate
74How would you handle file uploads through a form using a server action in Next.js? Next.js › Form Handling & Validation in Next.jsNext.jsForm Handling & Validation in Next.jsAdvanced
75What is optimistic UI, and how can you apply it to a form submission for a better user experience? Next.js › Form Handling & Validation in Next.jsNext.jsForm Handling & Validation in Next.jsAdvanced
76How would you build a webhook endpoint that automatically revalidates your site whenever content changes in an external content management system? Next.js › On-Demand Revalidation StrategiesNext.jsOn-Demand Revalidation StrategiesAdvanced
77How does Cross-Site Request Forgery protection work for form submissions, and why is including a CSRF token in every form considered essential? PHP › Form Handling & ValidationPHPForm Handling & ValidationAdvanced
78How do you properly build a genuinely complex, multi step form, sometimes called a wizard, that guides a user progressively through several separate sequential distinct steps, while genuinely correctly preserving each individual step's own entered data as they move forward and back between the different steps? Flutter › Forms & Input Validation in FlutterFlutterForms & Input Validation in FlutterAdvanced
79What is a route template in ASP.NET Core, and how do route parameters like {id} work within one? ASP.NET Core › Endpoint Metadata, Route Constraints & TemplatesASP.NET CoreEndpoint Metadata, Route Constraints & TemplatesBeginner
80How do you accept a file upload in an ASP.NET Core controller action using IFormFile? ASP.NET Core › File Uploads & Streaming Large FilesASP.NET CoreFile Uploads & Streaming Large FilesBeginner
81How do you read query parameters and the request body inside an API route? Next.js › API RoutesNext.jsAPI RoutesBeginner
82What is caching in Next.js and why is it important? Next.js › CachingNext.jsCachingBeginner
83What are the three main rendering strategies available in Next.js, and what does each one mean? Next.js › Rendering (SSR/SSG/ISR)Next.jsRendering (SSR/SSG/ISR)Beginner
84What are the main benefits of static site generation, and when is it the best choice? Next.js › Rendering (SSR/SSG/ISR)Next.jsRendering (SSR/SSG/ISR)Beginner
85What is a server action in Next.js, and what problem does it solve? Next.js › Server Actions & MutationsNext.jsServer Actions & MutationsBeginner
86What are PHP superglobals, and what are some of the most commonly used ones? PHP › Constants & SuperglobalsPHPConstants & SuperglobalsBeginner
87How does PHP's built in mail function work, and why is it generally not recommended for production applications? PHP › Email Sending in PHP (PHPMailer & SMTP)PHPEmail Sending in PHP (PHPMailer & SMTP)Beginner
88How does PHP handle file uploads submitted through an HTML form, and what information does the $_FILES superglobal provide? PHP › File Upload HandlingPHPFile Upload HandlingBeginner
89What is a prepared statement in PDO, and why is using one considered essential for writing secure database queries? PHP › PDO & DatabasesPHPPDO & DatabasesBeginner
90What is a regular expression, and how do you use PHP's preg_match function to check whether a string matches a specific pattern? PHP › Regular Expressions in PHPPHPRegular Expressions in PHPBeginner
91What do common regular expression metacharacters like the dot, asterisk, and plus sign mean, and how are they used to build flexible matching patterns? PHP › Regular Expressions in PHPPHPRegular Expressions in PHPBeginner
92What is SQL injection, and how does using prepared statements with PDO help prevent this common vulnerability in PHP applications? PHP › SecurityPHPSecurityBeginner
93What is cross site scripting, commonly called XSS, and how does properly escaping output help prevent it? PHP › SecurityPHPSecurityBeginner
94What is a cookie, and how does it differ from a session in terms of where the actual data is stored? PHP › Sessions & CookiesPHPSessions & CookiesBeginner
95How do Blade and Twig automatically escape output by default, and why is this an important security feature? PHP › Template Engines (Blade & Twig)PHPTemplate Engines (Blade & Twig)Beginner
96What does the question mark symbol mean when it appears after a type in a Dart variable declaration, such as String?, and how is a nullable type actually different from a regular non nullable type? Flutter › Dart Null SafetyFlutterDart Null SafetyBeginner
97How do you customize example values shown in Swagger UI for request and response bodies? ASP.NET Core › API Documentation with Swagger/OpenAPIASP.NET CoreAPI Documentation with Swagger/OpenAPIIntermediate
98What features do controllers provide out of the box that minimal APIs don't have native equivalents for? ASP.NET Core › Controllers vs Minimal APIsASP.NET CoreControllers vs Minimal APIsIntermediate
99How does model binding work differently between controllers (using [FromBody], [FromQuery] attributes) and minimal APIs (using parameter inference)? ASP.NET Core › Controllers vs Minimal APIsASP.NET CoreControllers vs Minimal APIsIntermediate
100How do route constraints (like {id:int} or {id:guid}) restrict which requests match a given route, and why are they useful? ASP.NET Core › Endpoint Metadata, Route Constraints & TemplatesASP.NET CoreEndpoint Metadata, Route Constraints & TemplatesIntermediate
101How do you define optional route parameters, and what's the difference between an optional parameter and one with a default value? ASP.NET Core › Endpoint Metadata, Route Constraints & TemplatesASP.NET CoreEndpoint Metadata, Route Constraints & TemplatesIntermediate
102How do complex/composite route segments (combining literal text and a parameter in the same segment, like {fileName}.{extension}) work? ASP.NET Core › Endpoint Metadata, Route Constraints & TemplatesASP.NET CoreEndpoint Metadata, Route Constraints & TemplatesIntermediate
103What role does the [ApiController] attribute play in automatically handling certain error scenarios without explicit exception handling code? ASP.NET Core › Error HandlingASP.NET CoreError HandlingIntermediate
104How do you accept and process multiple files uploaded in a single request? ASP.NET Core › File Uploads & Streaming Large FilesASP.NET CoreFile Uploads & Streaming Large FilesIntermediate
105How does IEndpointFilter provide similar cross-cutting functionality for minimal APIs that MVC filters provide for controllers? ASP.NET Core › FiltersASP.NET CoreFiltersIntermediate
106How would you unit test a custom action filter's logic in isolation, without needing a full HTTP request pipeline? ASP.NET Core › FiltersASP.NET CoreFiltersIntermediate
107What are the main caching layers in the Next.js App Router? Next.js › CachingNext.jsCachingIntermediate
108How do you control how long a fetched piece of data stays cached before it is considered stale? Next.js › CachingNext.jsCachingIntermediate
109How does incremental static regeneration let you get the benefits of both static pages and fresh content? Next.js › Rendering (SSR/SSG/ISR)Next.jsRendering (SSR/SSG/ISR)Intermediate
110How do you read query parameters and the request body inside a route handler? Next.js › Route Handlers (API Route.js)Next.jsRoute Handlers (API Route.js)Intermediate
111How do you protect a Next.js application against cross site scripting attacks? Next.js › Security Best Practices in Next.jsNext.jsSecurity Best Practices in Next.jsIntermediate
112How do server actions automatically update the user interface after making a change to data? Next.js › Server Actions & MutationsNext.jsServer Actions & MutationsIntermediate
113How do you safely retrieve values from superglobals like $_GET or $_POST to avoid undefined index errors and potential security issues? PHP › Constants & SuperglobalsPHPConstants & SuperglobalsIntermediate
114How do you send an HTML formatted email with an embedded image or attachment using PHPMailer? PHP › Email Sending in PHP (PHPMailer & SMTP)PHPEmail Sending in PHP (PHPMailer & SMTP)Intermediate
115How do you handle multiple file uploads submitted from a single form field, and what does the resulting $_FILES array structure look like? PHP › File Upload HandlingPHPFile Upload HandlingIntermediate
116How does preg_replace let you find and replace text matching a regular expression pattern, and how do capture groups let you reuse parts of the matched text in the replacement? PHP › Regular Expressions in PHPPHPRegular Expressions in PHPIntermediate
117What is cross site request forgery, commonly called CSRF, and how do CSRF tokens help protect forms from this type of attack? PHP › SecurityPHPSecurityIntermediate
118Why is validating and sanitizing file uploads important, and what specific checks should you perform to prevent an attacker from uploading a malicious file? PHP › SecurityPHPSecurityIntermediate
119What are the httponly and secure flags on a cookie, and why are they important for protecting session cookies specifically? PHP › Sessions & CookiesPHPSessions & CookiesIntermediate
120How does Psalm's concept of taint analysis help detect potential security vulnerabilities like SQL injection or cross site scripting during static analysis? PHP › Static Analysis (PHPStan & Psalm)PHPStatic Analysis (PHPStan & Psalm)Intermediate
121How do commonly used string functions like strlen, substr, str_replace, and trim help with everyday text processing tasks in PHP? PHP › Strings & String FunctionsPHPStrings & String FunctionsIntermediate
122Why are the multibyte string functions, such as mb_strlen and mb_substr, important when working with text that contains non ASCII characters like accented letters or emoji? PHP › Strings & String FunctionsPHPStrings & String FunctionsIntermediate
123Why is properly sanitizing input and escaping output especially critical in WordPress plugin and theme development, and what built in WordPress functions help with this? PHP › WordPress Plugin & Theme DevelopmentPHPWordPress Plugin & Theme DevelopmentIntermediate
124What are extension methods in Dart, and how do they let you add new useful functionality directly onto an existing class, including classes you did not originally write yourself, such as Dart's own built in String class? Flutter › Dart Language Basics & SyntaxFlutterDart Language Basics & SyntaxIntermediate
125How do stream transformation methods, such as map, where, and distinct, let you process and filter the values emitted by a Stream, similar to how these same methods work on a regular Dart collection? Flutter › Dart Streams & StreamControllersFlutterDart Streams & StreamControllersIntermediate
126How do you properly implement email verification and password reset functionality using Firebase Authentication's built in features? Flutter › Firebase Authentication in FlutterFlutterFirebase Authentication in FlutterIntermediate
127How can you properly intercept and correctly handle the physical Android back button using the PopScope widget, such as showing a confirmation dialog before genuinely actually allowing the user to leave a screen with unsaved changes? Flutter › Navigation & Routing in FlutterFlutterNavigation & Routing in FlutterIntermediate
128How do you properly implement request cancellation using Dio's own CancelToken, such as cancelling a search request the moment a user genuinely types a brand new different search query? Flutter › Networking with HTTP & DioFlutterNetworking with HTTP & DioIntermediate
129How does content negotiation handle the request body (input formatters) differently from the response body (output formatters)? ASP.NET Core › Content Negotiation & Output FormattersASP.NET CoreContent Negotiation & Output FormattersAdvanced
130How would you implement a catch-all route parameter to handle a variable-depth URL path, like a file browser or wiki-style page hierarchy? ASP.NET Core › Endpoint Metadata, Route Constraints & TemplatesASP.NET CoreEndpoint Metadata, Route Constraints & TemplatesAdvanced
131How do you generate a URL for a named route or endpoint programmatically, rather than hardcoding URL strings throughout the application (like in a Location header for a 201 Created response)? ASP.NET Core › Endpoint Metadata, Route Constraints & TemplatesASP.NET CoreEndpoint Metadata, Route Constraints & TemplatesAdvanced
132What are common performance and security pitfalls to avoid when building API routes at scale? Next.js › API RoutesNext.jsAPI RoutesAdvanced
133How would you manually clear cached data after a user performs an action, such as creating a new post? Next.js › CachingNext.jsCachingAdvanced
134How would you handle a database write inside a server action while keeping the user interface responsive? Next.js › Database Integration with Next.jsNext.jsDatabase Integration with Next.jsAdvanced
135How do you pre-generate static pages for dynamic routes at build time using generateStaticParams? Next.js › Dynamic Routes & Catch-All SegmentsNext.jsDynamic Routes & Catch-All SegmentsAdvanced
136How would you generate a sitemap and robots file to help search engines properly crawl a large Next.js website? Next.js › Metadata API & SEO OptimizationNext.jsMetadata API & SEO OptimizationAdvanced
137How would you protect server actions from being called with malicious or unauthorized data, since they can be invoked directly from the client? Next.js › Security Best Practices in Next.jsNext.jsSecurity Best Practices in Next.jsAdvanced
138How would you handle errors gracefully inside a server action and display a meaningful message to the user? Next.js › Server Actions & MutationsNext.jsServer Actions & MutationsAdvanced
139How would you implement optimistic state updates for a feature like a like button, so the interface feels instant while a server action processes the actual update? Next.js › State Management in Next.js AppsNext.jsState Management in Next.js AppsAdvanced
140What broader build performance optimizations, beyond just switching bundlers, can help speed up a large Next.js project's build times? Next.js › Turbopack & Build PerformanceNext.jsTurbopack & Build PerformanceAdvanced
141How would you create strongly typed server actions that validate their input and return a predictable, typed result? Next.js › TypeScript with Next.jsNext.jsTypeScript with Next.jsAdvanced
142What security considerations should be addressed when building an application feature that sends emails based on user input, such as a contact form or password reset flow? PHP › Email Sending in PHP (PHPMailer & SMTP)PHPEmail Sending in PHP (PHPMailer & SMTP)Advanced
143How should an API validate the structure and types of incoming JSON data to ensure it matches the expected schema before processing it further? PHP › JSON Handling in PHPPHPJSON Handling in PHPAdvanced
144How does Dart's type promotion, sometimes also called flow analysis, let the compiler automatically treat a nullable variable as non nullable within a specific block of code immediately after you have already explicitly checked that it is not null? Flutter › Dart Null SafetyFlutterDart Null SafetyAdvanced