{"id":2615,"date":"2026-11-13T13:00:00","date_gmt":"2026-11-13T07:30:00","guid":{"rendered":"https:\/\/swapnilzambare.com\/blog\/visualforce-interview-questions\/"},"modified":"2026-11-22T11:24:19","modified_gmt":"2026-11-22T05:54:19","slug":"visualforce-interview-questions","status":"publish","type":"post","link":"https:\/\/swapnilzambare.com\/blog\/visualforce-interview-questions\/","title":{"rendered":"Visualforce Interview Questions and Controllers (60+ Q&#038;A)"},"content":{"rendered":"\r\n<p class=\"wp-block-paragraph\">Visualforce Interview Questions still come up, because most established orgs have pages nobody has replaced yet. An interviewer asking about it usually wants to know two things, which are whether you can maintain the old pages and whether you know when to leave them alone.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Last reviewed for the Winter &#8217;27 release (November 2026).<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">This post covers the questions that get asked, grouped into page basics, controllers and extensions, view state and performance, PDF and email use, and scenario questions about migration.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/visualforce-interview-questions-diagram-1-1024x640.png\" alt=\"Visualforce Interview Questions diagram showing request, controller, view state and render\" class=\"wp-image-2613\" srcset=\"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/visualforce-interview-questions-diagram-1-1024x640.png 1024w, https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/visualforce-interview-questions-diagram-1-300x188.png 300w, https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/visualforce-interview-questions-diagram-1-768x480.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Caption: Rendering happens on the server, which is the fact behind almost every other answer.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">What Visualforce Interview Questions Cover<\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Visualforce Interview Questions test whether you understand server side rendering. Visualforce Interview Questions start here. A page is markup that runs on the server, sends HTML to the browser, and posts back for every interaction.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Think of it like ordering at a counter rather than cooking at your table. Custom controllers and extensions are covered in the post on <a href=\"https:\/\/swapnilzambare.com\/blog\/visualforce-custom-controllers-extensions\/\">custom controllers<\/a>. Every change means another trip to the kitchen.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">That single difference explains most Visualforce Interview Questions, including the view state limit, the page load behaviour and why Lightning replaced it for interactive screens.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">The Three Controller Options<\/h2>\r\n\r\n\r\n\r\n<figure class=\"wp-block-table\"><table><thead><tr><th>Option<\/th><th>What it gives you<\/th><th>When to use it<\/th><\/tr><\/thead><tbody><tr><td>Standard controller<\/td><td>Record data and save, edit and delete actions free<\/td><td>Simple record pages<\/td><\/tr><tr><td>Custom controller<\/td><td>Full control, no standard behaviour<\/td><td>Pages not tied to one record<\/td><\/tr><tr><td>Controller extension<\/td><td>Standard behaviour plus your own methods<\/td><td>A record page needing extra logic<\/td><\/tr><\/tbody><\/table><\/figure>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The extension is the option Visualforce Interview Questions favour, because it shows you know you can keep the free behaviour and add to it.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>public with sharing class CourseExtension {\r\n\r\n    private final Course__c course;\r\n\r\n    public CourseExtension(ApexPages.StandardController controller) {\r\n        this.course = (Course__c) controller.getRecord();\r\n    }\r\n\r\n    public Decimal getOnlinePrice() {\r\n        return course.Fee__c == null ? null : course.Fee__c * 0.85;\r\n    }\r\n\r\n    public PageReference markOnline() {\r\n        course.Is_Online__c = true;\r\n        update as user course;\r\n        return new PageReference('\/' + course.Id);\r\n    }\r\n}<\/code><\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">That constructor signature is the detail Visualforce Interview Questions test. An extension takes a standard controller, which is how it reaches the record the page is on.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Visualforce vs Lightning Web Components<\/h2>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/visualforce-interview-questions-diagram-2-1024x640.png\" alt=\"Visualforce Interview Questions comparison with Lightning Web Components\" class=\"wp-image-2614\" srcset=\"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/visualforce-interview-questions-diagram-2-1024x640.png 1024w, https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/visualforce-interview-questions-diagram-2-300x188.png 300w, https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/visualforce-interview-questions-diagram-2-768x480.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Caption: PDF and email keep Visualforce alive, and everything interactive has moved on.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-table\"><table><thead><tr><th>Need<\/th><th>Pick<\/th><\/tr><\/thead><tbody><tr><td>A printable invoice or certificate<\/td><td>Visualforce, with renderAs PDF<\/td><\/tr><tr><td>A rich HTML email template<\/td><td>Visualforce email template<\/td><\/tr><tr><td>An interactive record screen<\/td><td>Lightning Web Components<\/td><\/tr><tr><td>A public page in Experience Cloud<\/td><td>Lightning Web Components, on an LWR site<\/td><\/tr><tr><td>A page nobody has touched in five years<\/td><td>Leave it, unless it is failing<\/td><\/tr><\/tbody><\/table><\/figure>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Visualforce Interview Questions often end on that last row, since knowing when not to rebuild counts.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The post on <a href=\"https:\/\/swapnilzambare.com\/blog\/visualforce-basics-standard-controllers\/\">Visualforce basics<\/a> covers the fundamentals, and the post on <a href=\"https:\/\/swapnilzambare.com\/blog\/migrating-visualforce-to-lwc\/\">migrating to LWC<\/a> covers the move.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Visualforce Interview Questions on Page Basics<\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q1: What is Visualforce?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">A <a href=\"https:\/\/swapnilzambare.com\/blog\/visualforce-basics-standard-controllers\/\">tag based markup language<\/a> whose pages are rendered on Salesforce&#8217;s servers and sent to the browser as HTML.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">It came before Lightning and is still supported. Today it is mainly used for PDFs, email templates and older pages that have not been rebuilt in LWC.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Interview tip: mention where Visualforce still fits today: PDFs and email templates.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q2: What does the apex:page tag do?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">It wraps the whole page and holds settings like the controller, standardController, extensions and renderAs.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: &lt;apex:page standardController=&#8221;Account&#8221; extensions=&#8221;AccountExt&#8221; lightningStylesheets=&#8221;true&#8221;&gt; &#8230; &lt;\/apex:page&gt;<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q3: What is an expression in Visualforce?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">A merge expression like {!account.Name}, which reads a value from the controller.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Expressions can also call getters, do simple maths and use functions, like {!IF(account.AnnualRevenue &gt; 1000000, &#8216;Key&#8217;, &#8216;Standard&#8217;)}.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Follow-up you may get: How do you read a URL parameter in markup? {!$CurrentPage.parameters.id}.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q4: How do you show a record field?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Use apex:outputField bound to the record&#8217;s field, which respects field level security.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: &lt;apex:outputField value=&#8221;{!account.Industry}&#8221;\/&gt; shows the field with its label, formatting and only if the user can read it.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q5: What is the difference between output field and output text?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">outputField keeps the field&#8217;s label, formatting and security. outputText just prints a value.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Tag<\/th><th>Shows<\/th><th>Formatting and FLS<\/th><\/tr><\/thead><tbody><tr><td>apex:outputField<\/td><td>A record field<\/td><td>Uses the field type, label and field security<\/td><\/tr><tr><td>apex:outputText<\/td><td>Any text or value<\/td><td>Plain text, escaped by default<\/td><\/tr><tr><td>apex:inputField<\/td><td>An editable record field<\/td><td>Right input for the type, respects FLS<\/td><\/tr><tr><td>apex:inputText<\/td><td>A free text box<\/td><td>No field type behaviour<\/td><\/tr><\/tbody><\/table><\/figure>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Interview tip: stress that outputField respects field security. That is the key difference.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q6: What does apex:form do?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">It creates an HTML form that posts back to the server. Most input and command tags must be inside one.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Buttons like apex:commandButton only work inside a form, because the post carries the view state back to the controller.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q7: Can a page have two forms?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">It can, but it causes problems, so one form per page is the usual rule.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Each form carries its own view state, which makes pages heavier and can confuse which form submits. Use apex:actionRegion inside one form instead.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Follow-up you may get: What does actionRegion do? It limits which inputs are sent and processed on a partial submit.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q8: What is a page block?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">A section wrapper, apex:pageBlock, that gives the page the standard Salesforce Classic look.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Inside it, apex:pageBlockSection lays out fields in columns. With lightningStylesheets=&#8221;true&#8221;, the same tags get a Lightning style.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q9: What is an action method?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">A controller method called by a button or link, returning a PageReference or null.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: public PageReference save() { update course; return new PageReference(&#8216;\/&#8217; + course.Id); } sends the user to the record after saving.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Interview tip: explain what returning null means. It is a frequent follow up.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q10: What does returning null from an action method do?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">It re-renders the same page, which is what you want for an in place update.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Combined with rerender, it refreshes only part of the page, like a table after a search.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q11: What is rerender used for?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Refreshing only part of the page after an action, instead of reloading the whole page.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: &lt;apex:commandButton action=&#8221;{!search}&#8221; rerender=&#8221;results&#8221;\/&gt; updates only the block with id results.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Follow-up you may get: Can you rerender several areas? Yes, list their IDs separated by commas.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q12: What is an action function?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">A JavaScript function, from apex:actionFunction, that calls a controller method without a full page submit.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: &lt;apex:actionFunction name=&#8221;refreshTotals&#8221; action=&#8221;{!recalc}&#8221; rerender=&#8221;totals&#8221;\/&gt; lets your JavaScript call refreshTotals().<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Interview tip: compare it with JavaScript remoting to show depth.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q13: What is apex:repeat for?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Looping over a collection in the markup, with full control over the HTML you output.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: &lt;apex:repeat value=&#8221;{!courses}&#8221; var=&#8221;c&#8221;&gt;&lt;li&gt;{!c.Name}&lt;\/li&gt;&lt;\/apex:repeat&gt; builds a plain list, with no styling added.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q14: How is a page block table different?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">apex:pageBlockTable renders a standard styled table, with column headers taken from the field labels.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Use it for quick admin style tables, and apex:repeat when you need your own layout.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q15: What is a static resource used for on a page?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Holding CSS, JavaScript, images or a <a href=\"https:\/\/swapnilzambare.com\/blog\/lwc-static-resources-libraries\/\">zipped library<\/a> that the page includes.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Static resources are cached by the browser and deploy with your code, which is better than linking to files on an outside server.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Follow-up you may get: What is the maximum static resource size? 5 MB per resource.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q16: How do you reference one?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">With the $Resource global, often through URLFOR for a file inside a zip.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: &lt;apex:stylesheet value=&#8221;{!URLFOR($Resource.BrandKit, &#8216;css\/main.css&#8217;)}&#8221;\/&gt;<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q17: What is lightningStylesheets?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">An attribute on apex:page, lightningStylesheets=&#8221;true&#8221;, that styles standard Visualforce tags to look like Lightning Experience. It is a quick way to make older pages fit in visually without rebuilding them.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q18: How do you prevent XSS in a Visualforce page?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Keep the default escaping on and never set escape=&#8221;false&#8221; on user data. When you must put values into JavaScript or URLs, use JSENCODE, HTMLENCODE or URLENCODE on them.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q19: What is a custom label used for?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Translatable text, so the page works in several languages.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Use {!$Label.Course_Full_Message} in the page, and translations appear automatically for users with other languages.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Visualforce Interview Questions on Controllers<\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q20: What does a standard controller give you?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Access to the record, plus save, edit, delete and cancel actions, with no code.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: &lt;apex:page standardController=&#8221;Course__c&#8221;&gt; with {!Course__c.Name} and a save button works without any Apex.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q21: When is a custom controller the right choice?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">When the page is not tied to one record, like a search page, a wizard or a dashboard.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">A custom controller gives you full control, but you must write every action yourself, including save.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q22: What is a controller extension?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">A class that <a href=\"https:\/\/swapnilzambare.com\/blog\/visualforce-custom-controllers-extensions\/\">adds methods to a page<\/a> while keeping the standard controller&#8217;s behaviour.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Controller type<\/th><th>Code needed<\/th><th>Best for<\/th><\/tr><\/thead><tbody><tr><td>Standard controller<\/td><td>None<\/td><td>Simple record pages<\/td><\/tr><tr><td>Standard set controller<\/td><td>None or little<\/td><td>Lists with paging and mass actions<\/td><\/tr><tr><td>Controller extension<\/td><td>Only the extra methods<\/td><td>Adding logic to a standard page<\/td><\/tr><tr><td>Custom controller<\/td><td>Everything<\/td><td>Pages not tied to one record<\/td><\/tr><\/tbody><\/table><\/figure>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Interview tip: give a real example of when you used an extension instead of a custom controller.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q23: What constructor does an extension need?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">A constructor that takes an ApexPages.StandardController.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: public CourseExt(ApexPages.StandardController sc) { this.course = (Course__c) sc.getRecord(); }<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q24: Can a page have several extensions?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Yes. List them in the extensions attribute, separated by commas. The leftmost extension wins if two define the same method.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Keep method names unique across extensions anyway, so behaviour does not depend on the order.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q25: What is a standard set controller?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">A controller for a list of records, with built in paging.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: new ApexPages.StandardSetController(Database.getQueryLocator([SELECT Id, Name FROM Course__c])) with setPageSize(25), next() and previous().<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Follow-up you may get: How many records can a standard set controller handle? Up to 10,000.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q26: How do you get the record from a standard controller?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Call getRecord() and cast it to the object type.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: Course__c c = (Course__c) controller.getRecord(); It gives the record the page is showing.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q27: Why is that record often missing fields?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Only fields used on the page are loaded, so add the missing fields to the markup or query them.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">You can also call controller.addFields(new List&lt;String&gt;{&#8216;Fee__c&#8217;}) in the constructor, before getRecord().<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q28: Does a custom controller run with sharing by default?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">No. Like any Apex class, it ignores the user&#8217;s sharing unless you <a href=\"https:\/\/swapnilzambare.com\/blog\/apex-sharing-keywords-with-without-inherited\/\">declare with sharing<\/a>.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Standard controllers do respect the user&#8217;s access, but custom controllers and extensions need the keyword.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Interview tip: say standard controllers respect sharing, but extensions need the keyword.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q29: Why does that matter more on Visualforce?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Because pages often show records directly, so a missing keyword can show data the user should not see.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">A search page without with sharing could list salaries or private accounts to anyone who can open the page.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q30: How do you add a page message?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Add an ApexPages.Message in the controller and put an apex:pageMessages tag on the page.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.ERROR, &#8216;Start date must be in the future&#8217;));<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Follow-up you may get: Which severities exist? CONFIRM, INFO, WARNING, ERROR and FATAL.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q31: Why use page messages rather than throwing?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The user stays on the page, keeps what they typed and sees what to fix.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">An uncaught exception shows a generic error page instead, and the user loses their input.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q32: How do you test a page controller?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Set the current page in a test, create the controller, call its methods and assert the results.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: <a href=\"https:\/\/swapnilzambare.com\/blog\/apex-test-class-basics-code-coverage\/\">Test.setCurrentPage<\/a>(Page.CourseEdit); CourseExt ext = new CourseExt(new ApexPages.StandardController(course)); ext.save(); then assert the saved values.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q33: How do you set the page context in a test?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">With Test.setCurrentPage and a PageReference, plus any URL parameters the page expects.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: PageReference pr = Page.CourseEdit; pr.getParameters().put(&#8216;id&#8217;, course.Id); Test.setCurrentPage(pr);<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q34: What is JavaScript remoting?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">A way to call a static @RemoteAction Apex method directly from page JavaScript, without view state or a form post. It is faster than actionFunction for data calls, because only the parameters and result travel.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q35: How do you navigate from a Visualforce page in Lightning Experience?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Use sforce.one.navigateToSObject(recordId) in JavaScript when the page runs in Lightning, and a PageReference in Classic. Check for the sforce.one object first so the same page works in both.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q36: How do you pass a record id to a page?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Through the id URL parameter, read with ApexPages.currentPage parameters.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: String courseId = ApexPages.currentPage().getParameters().get(&#8216;id&#8217;); Always check it is a valid ID before using it in a query.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Visualforce Interview Questions on View State and Performance<\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q37: What is view state?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The saved state of the page and controller, sent to the browser and back on every post.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">It is how Visualforce remembers values between clicks, since the server keeps no session state for the page.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q38: What is the view state limit?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">170 KB per page.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Pass it and the page fails with &#8220;Maximum view state size limit (170KB) exceeded&#8221;.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Interview tip: give the number and the main fix, transient, in one breath.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q39: Why does it exist?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Because the state travels to the browser and back on every interaction.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Large view state means slow pages, especially on mobile networks.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q40: What makes view state large?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Large collections held in controller fields, and fields that do not need to be kept.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: a controller that keeps 2,000 records with 30 fields each, when the page only shows 20 at a time.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q41: How do you reduce it?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Mark fields transient, query fewer fields, and keep collections small with paging.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Also avoid storing whole records when you only need their IDs.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q42: What does transient do?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">It keeps a field out of view state, so it is rebuilt on each request instead of carried.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: transient List&lt;Course__c&gt; reportRows; suits data you can query again cheaply.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Follow-up you may get: Can transient be used in normal Apex? It only matters for view state and serialisation.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q43: Where do you see the view state size?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">In the development mode footer, under the View State tab.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Turn on Development Mode and Show View State in your user settings to see it.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q44: What is the heap cost of a large collection in a controller?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The same as anywhere in Apex, plus the cost of saving it into view state.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">So a large collection hurts twice: once in <a href=\"https:\/\/swapnilzambare.com\/blog\/apex-governor-limits-explained\/\">heap<\/a> and once in the size of every request.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q45: Why can a page be slow even with small view state?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">A query in a getter, which runs every time the page renders a value.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">A page that shows {!courses} several times can run the query several times per load.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Interview tip: this is the most common Visualforce performance bug. Name it confidently.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q46: How do you avoid that?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Load the data once, in the constructor or an action method, and store it in a field.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: the constructor fills courses, and getCourses() just returns the field.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q47: What is the limit on records in a collection on a page?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">1,000 items in an iteration component by default. readOnly=&#8221;true&#8221; on apex:page raises it to 10,000.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Paging with a standard set controller is usually a better answer than showing thousands of rows.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q48: How do you add paging to a large list on a page?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Use a standard set controller with setPageSize, and buttons that call next(), previous(), first() and last(). Only the current page&#8217;s records are in view state, which keeps the page fast.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q49: How do you make a page load faster?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Query only needed fields, load data once, page large lists, use JavaScript remoting for data calls, and move static files into static resources so the browser caches them.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q50: What does the read only attribute do?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">It allows larger query results, up to 1 million rows, and 10,000 items in iteration, for a page that does no DML.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">It suits reports and exports. Any DML on a read only page fails.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Visualforce Interview Questions on PDF and Email<\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q51: How do you render a page as a PDF?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Set <a href=\"https:\/\/swapnilzambare.com\/blog\/visualforce-pdf-lightning\/\">renderAs=&#8221;pdf&#8221;<\/a> on the apex:page tag.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: &lt;apex:page standardController=&#8221;Invoice__c&#8221; renderAs=&#8221;pdf&#8221; applyBodyTag=&#8221;false&#8221;&gt; turns the page into a PDF invoice.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Follow-up you may get: How do you force a download name? Set the Content-Disposition header with ApexPages.currentPage().getHeaders().<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q52: What rendering engine applies?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">A print style engine that supports a limited set of HTML and CSS and runs no JavaScript.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Think of it as basic CSS 2.1. Flexbox, grid and most modern features are not supported.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Interview tip: say &#8220;no JavaScript, limited CSS&#8221;. It explains most PDF problems.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q53: Why does the PDF look different from the page?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Because the engine supports only a limited set of CSS and runs no scripts.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Use simple tables and inline or embedded styles, and test the PDF output, not the HTML page.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q54: How do you control the page size and margins?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">With an @page CSS rule in the page&#8217;s styles.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: @page { size: A4; margin: 1.5cm; } sets the paper size and margins.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q55: Can you include an image in a PDF?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Yes, from a static resource or another URL the server can reach.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: &lt;img src=&#8221;{!$Resource.CompanyLogo}&#8221; width=&#8221;120&#8243;\/&gt;. Images that need a login the server does not have will not show.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q56: Why do web fonts often fail in a PDF?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The engine supports only a few font families, so web fonts often do not load.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Stick to Arial Unicode MS, Helvetica, Times or Courier. For Hindi or other non Latin text, Arial Unicode MS is the safe choice.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q57: How do you attach a generated PDF to a record?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Call getContentAsPDF() on the PageReference in Apex and save the Blob as a file.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: Blob pdf = Page.InvoicePdf.getContentAsPDF(); then insert a ContentVersion with VersionData = pdf and FirstPublishLocationId = invoiceId.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Interview tip: mention it cannot run directly in a trigger, so use a queueable.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q58: What limit applies to that?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Heap size, so very large documents need a different approach.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">getContentAsPDF also counts as a callout in some contexts, so it cannot run in a trigger directly; use a queueable.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q59: Why is Visualforce still used for email templates?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">It gives full control over the HTML, with merge fields, related lists and logic.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/swapnilzambare.com\/blog\/lightning-email-templates-letterheads\/\">Lightning email templates<\/a> cover most simple cases today, but Visualforce templates still handle complex layouts and related records best.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Follow-up you may get: What does relatedTo mean? The record the email is about, set when the email is sent.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q60: What component renders related records in an email template?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">An apex:repeat over the related list, like relatedTo.Contacts.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: &lt;apex:repeat var=&#8221;c&#8221; value=&#8221;{!relatedTo.Contacts}&#8221;&gt;&lt;p&gt;{!c.Name}&lt;\/p&gt;&lt;\/apex:repeat&gt;<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q61: Can a Visualforce email template use a custom controller?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Yes, through a custom component with its own controller, which is the usual pattern.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The template includes &lt;c:InvoiceLines invoiceId=&#8221;{!relatedTo.Id}&#8221;\/&gt;, and the component&#8217;s controller queries the data.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q62: What is the difference between a Visualforce component and a page?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">A page is a full screen with its own URL. A custom component, apex:component, is a reusable piece with attributes that pages and email templates include, like a shared address block or a list of order lines.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q63: How do you send a Visualforce email template from Apex?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Create a Messaging.SingleEmailMessage, call setTemplateId with the template&#8217;s ID, setTargetObjectId with a contact, lead or user, and setWhatId with the related record, then call Messaging.sendEmail.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q64: Is there a modern alternative for PDFs?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">A service on Heroku or another platform, which the post on AppLink covers, for full control.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Salesforce Heroku AppLink lets Apex call a Heroku service, which suits PDF generation with modern libraries and full CSS support.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Scenario Based Visualforce Interview Questions<\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q65: Scenario: a page throws a view state error. What do you do first?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Look at the controller fields, mark what you can transient, and shrink the collections.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Check the View State tab to see which fields are biggest. Often one list of full records is most of it; keep IDs or page the data instead.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q66: Scenario: a page loads slowly every time. Where do you look?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Getters that run queries, because they run on every render.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Move the query to the constructor or an action, store the result in a field, and check the debug log for repeated SOQL.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q67: Scenario: a user sees a record they should not. Why?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The custom controller or extension has no sharing keyword, so it ignores the user&#8217;s record access.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Declare with sharing, or use WITH USER_MODE in its queries, and test the page as that user.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q68: Scenario: a field shows as blank on the page but has data. What is missing?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The field is not on the page or in the query, so the standard controller never loaded it.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Add it to the markup, even as a hidden field, or call addFields() in the extension&#8217;s constructor.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q69: Scenario: the PDF is missing its styling. What happened?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The CSS uses features the PDF engine does not support, like flexbox or external fonts.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Rewrite the layout with tables and simple styles, embed the CSS in the page, and avoid JavaScript.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q70: Scenario: a page works for admins and fails for sales users. What do you check?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/swapnilzambare.com\/blog\/profiles-and-permission-sets-salesforce\/\">Field level security<\/a> on the fields the page shows, Visualforce page access on the profile or permission set, and Apex class access for the controller.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Use the Login As feature or a test with System.runAs to see exactly what fails for that user.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q71: Scenario: a page needs to be rebuilt in Lightning. How do you plan it?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Keep the Apex logic, <a href=\"https:\/\/swapnilzambare.com\/blog\/migrating-visualforce-to-lwc\/\">replace the markup with Lightning web components<\/a>, and move queries into @AuraEnabled methods the components call.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Rebuild one section at a time, starting with the most used part, and keep the Visualforce page live until the new version is tested.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Interview tip: describe a phased migration, not a big bang rewrite.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q72: Scenario: the page has 2,000 lines of markup. What is your first step?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Split it into custom components, so each piece can be understood and replaced on its own.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Then move shared logic out of the controller into service classes, which both Visualforce and a future LWC can use.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q73: Scenario: a page is used only for a PDF. Do you migrate it?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Usually no. PDF rendering is one of the places Visualforce is still the simplest answer.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">If the PDF works and is easy to maintain, leave it. Rebuild only if it needs features the engine cannot handle.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Follow-up you may get: Can LWC create PDFs? Not natively; you use Visualforce, a library in a static resource, or an outside service.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q74: Scenario: a button on a page must call a modern component. What do you do?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Embed the Lightning web component in the page with Lightning Out, or replace the page with a Lightning page.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Lightning Out lets a Visualforce page host LWCs, which is a good stepping stone during a migration.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q75: Scenario: a Visualforce page must work inside a Lightning record page. What do you do?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Add the page to the record page with the Visualforce component in Lightning App Builder, set lightningStylesheets=&#8221;true&#8221;, and make sure it uses the standard controller for that object so it gets the record ID.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q76: Scenario: a PDF must show Hindi text. What do you check?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Use the Arial Unicode MS font in the page&#8217;s CSS, and make sure the page uses UTF-8. The PDF engine shows non Latin text only with fonts that support it.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q77: Scenario: an interviewer asks whether Visualforce is dead. What do you say?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">It is no longer the choice for new interfaces, and it remains supported and useful for PDF and email.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">It is no longer the choice for new interfaces, but it remains supported and useful for PDFs, email templates and older pages. New UI work should use Lightning web components.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Common Mistakes Candidates Make<\/h2>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>Not knowing that rendering happens on the server, which Visualforce Interview Questions check first<\/li>\r\n\r\n<li>Forgetting the view state limit and what transient is for<\/li>\r\n\r\n<li>Querying inside a getter<\/li>\r\n\r\n<li>Leaving the sharing keyword off a page controller<\/li>\r\n\r\n<li>Assuming PDF rendering supports modern CSS and JavaScript<\/li>\r\n\r\n<li>Proposing a rewrite of a PDF page with no benefit<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Best Practices to Mention in an Interview<\/h2>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>Declare with sharing on every page controller<\/li>\r\n\r\n<li>Load data in the constructor or an action, never in a getter<\/li>\r\n\r\n<li>Mark anything recalculable as transient<\/li>\r\n\r\n<li>Use an extension to keep standard behaviour and add logic<\/li>\r\n\r\n<li>Split large pages into custom components<\/li>\r\n\r\n<li>Keep PDF styling to simple, print friendly CSS<\/li>\r\n\r\n<li>Migrate interactive pages, and leave PDF and email pages alone<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Official Resources<\/h2>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><a href=\"https:\/\/developer.salesforce.com\/docs\/atlas.en-us.pages.meta\/pages\/\" target=\"_blank\" rel=\"noopener noreferrer\">Visualforce Developer Guide<\/a><\/li>\r\n\r\n<li><a href=\"https:\/\/developer.salesforce.com\/docs\/atlas.en-us.apexcode.meta\/apexcode\/\" target=\"_blank\" rel=\"noopener noreferrer\">Apex Developer Guide<\/a><\/li>\r\n\r\n<li><a href=\"https:\/\/developer.salesforce.com\/docs\/platform\/lwc\/guide\/\" target=\"_blank\" rel=\"noopener noreferrer\">Lightning Web Components Developer Guide<\/a><\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Quick Recap<\/h2>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>Visualforce Interview Questions centre on server side rendering<\/li>\r\n\r\n<li>Standard, custom and extension controllers each suit a different page<\/li>\r\n\r\n<li>View state is capped at 170 KB, and transient is how you shrink it<\/li>\r\n\r\n<li>Getters that query are the usual cause of a slow page<\/li>\r\n\r\n<li>PDF and email templates keep Visualforce relevant<\/li>\r\n\r\n<li>Interactive screens belong in Lightning Web Components<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">What Is Next<\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Coming soon: LWC interview questions on templates and decorators.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Visualforce Interview Questions with answers on standard and custom controllers, extensions, view state, PDF rendering and migrating pages to Lightning.<\/p>\n","protected":false},"author":1,"featured_media":2612,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_swapz_level":"","_swapz_series_part":0,"_swapz_hide_toc":false,"_swapz_hide_featured":false,"_swapz_description":"","footnotes":""},"categories":[250,8,90],"tags":[254,26,91],"swapz_series":[],"class_list":["post-2615","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-developer-interview-questions","category-salesforce","category-salesforce-interview","tag-aura-and-visualforce","tag-intermediate","tag-interview-questions"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Visualforce Interview Questions and Answers<\/title>\n<meta name=\"description\" content=\"Visualforce Interview Questions with answers on standard and custom controllers, extensions, view state, PDF rendering and migrating pages to Lightning.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/swapnilzambare.com\/blog\/visualforce-interview-questions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Visualforce Interview Questions and Answers\" \/>\n<meta property=\"og:description\" content=\"Visualforce Interview Questions with answers on standard and custom controllers, extensions, view state, PDF rendering and migrating pages to Lightning.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/swapnilzambare.com\/blog\/visualforce-interview-questions\/\" \/>\n<meta property=\"og:site_name\" content=\"Swapnil Zambare - Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-13T07:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-22T05:54:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/visualforce-interview-questions-featured.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2400\" \/>\n\t<meta property=\"og:image:height\" content=\"1260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Swapnil Zambare\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Swapnil Zambare\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"21 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/visualforce-interview-questions\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/visualforce-interview-questions\\\/\"},\"author\":{\"name\":\"Swapnil Zambare\",\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/#\\\/schema\\\/person\\\/10b09224c8bcc562716e86789427592a\"},\"headline\":\"Visualforce Interview Questions and Controllers (60+ Q&#038;A)\",\"datePublished\":\"2026-11-13T07:30:00+00:00\",\"dateModified\":\"2026-11-22T05:54:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/visualforce-interview-questions\\\/\"},\"wordCount\":4238,\"publisher\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/visualforce-interview-questions\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/visualforce-interview-questions-featured.png\",\"keywords\":[\"Aura and Visualforce\",\"Intermediate\",\"Interview Questions\"],\"articleSection\":[\"Developer Interview Questions\",\"Salesforce\",\"Salesforce Interview\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/visualforce-interview-questions\\\/\",\"url\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/visualforce-interview-questions\\\/\",\"name\":\"Visualforce Interview Questions and Answers\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/visualforce-interview-questions\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/visualforce-interview-questions\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/visualforce-interview-questions-featured.png\",\"datePublished\":\"2026-11-13T07:30:00+00:00\",\"dateModified\":\"2026-11-22T05:54:19+00:00\",\"description\":\"Visualforce Interview Questions with answers on standard and custom controllers, extensions, view state, PDF rendering and migrating pages to Lightning.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/visualforce-interview-questions\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/visualforce-interview-questions\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/visualforce-interview-questions\\\/#primaryimage\",\"url\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/visualforce-interview-questions-featured.png\",\"contentUrl\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/visualforce-interview-questions-featured.png\",\"width\":2400,\"height\":1260,\"caption\":\"Visualforce Interview Questions featured image with sample question cards\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/visualforce-interview-questions\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Visualforce Interview Questions and Controllers (60+ Q&#038;A)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/\",\"name\":\"Swapnil Zambare - Blog\",\"description\":\"Salesforce &amp; Tech Guides\",\"publisher\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/#organization\",\"name\":\"Swapnil Zambare - Blog\",\"url\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/site-icon-512.png\",\"contentUrl\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/site-icon-512.png\",\"width\":512,\"height\":512,\"caption\":\"Swapnil Zambare - Blog\"},\"image\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/in\\\/theSwapnilZambare\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/#\\\/schema\\\/person\\\/10b09224c8bcc562716e86789427592a\",\"name\":\"Swapnil Zambare\",\"sameAs\":[\"https:\\\/\\\/swapnilzambare.com\\\/blog\"],\"url\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/author\\\/swapnil-zambare\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Visualforce Interview Questions and Answers","description":"Visualforce Interview Questions with answers on standard and custom controllers, extensions, view state, PDF rendering and migrating pages to Lightning.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/swapnilzambare.com\/blog\/visualforce-interview-questions\/","og_locale":"en_US","og_type":"article","og_title":"Visualforce Interview Questions and Answers","og_description":"Visualforce Interview Questions with answers on standard and custom controllers, extensions, view state, PDF rendering and migrating pages to Lightning.","og_url":"https:\/\/swapnilzambare.com\/blog\/visualforce-interview-questions\/","og_site_name":"Swapnil Zambare - Blog","article_published_time":"2026-11-13T07:30:00+00:00","article_modified_time":"2026-11-22T05:54:19+00:00","og_image":[{"width":2400,"height":1260,"url":"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/visualforce-interview-questions-featured.png","type":"image\/png"}],"author":"Swapnil Zambare","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Swapnil Zambare","Est. reading time":"21 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/swapnilzambare.com\/blog\/visualforce-interview-questions\/#article","isPartOf":{"@id":"https:\/\/swapnilzambare.com\/blog\/visualforce-interview-questions\/"},"author":{"name":"Swapnil Zambare","@id":"https:\/\/swapnilzambare.com\/blog\/#\/schema\/person\/10b09224c8bcc562716e86789427592a"},"headline":"Visualforce Interview Questions and Controllers (60+ Q&#038;A)","datePublished":"2026-11-13T07:30:00+00:00","dateModified":"2026-11-22T05:54:19+00:00","mainEntityOfPage":{"@id":"https:\/\/swapnilzambare.com\/blog\/visualforce-interview-questions\/"},"wordCount":4238,"publisher":{"@id":"https:\/\/swapnilzambare.com\/blog\/#organization"},"image":{"@id":"https:\/\/swapnilzambare.com\/blog\/visualforce-interview-questions\/#primaryimage"},"thumbnailUrl":"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/visualforce-interview-questions-featured.png","keywords":["Aura and Visualforce","Intermediate","Interview Questions"],"articleSection":["Developer Interview Questions","Salesforce","Salesforce Interview"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/swapnilzambare.com\/blog\/visualforce-interview-questions\/","url":"https:\/\/swapnilzambare.com\/blog\/visualforce-interview-questions\/","name":"Visualforce Interview Questions and Answers","isPartOf":{"@id":"https:\/\/swapnilzambare.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/swapnilzambare.com\/blog\/visualforce-interview-questions\/#primaryimage"},"image":{"@id":"https:\/\/swapnilzambare.com\/blog\/visualforce-interview-questions\/#primaryimage"},"thumbnailUrl":"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/visualforce-interview-questions-featured.png","datePublished":"2026-11-13T07:30:00+00:00","dateModified":"2026-11-22T05:54:19+00:00","description":"Visualforce Interview Questions with answers on standard and custom controllers, extensions, view state, PDF rendering and migrating pages to Lightning.","breadcrumb":{"@id":"https:\/\/swapnilzambare.com\/blog\/visualforce-interview-questions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/swapnilzambare.com\/blog\/visualforce-interview-questions\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/swapnilzambare.com\/blog\/visualforce-interview-questions\/#primaryimage","url":"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/visualforce-interview-questions-featured.png","contentUrl":"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/visualforce-interview-questions-featured.png","width":2400,"height":1260,"caption":"Visualforce Interview Questions featured image with sample question cards"},{"@type":"BreadcrumbList","@id":"https:\/\/swapnilzambare.com\/blog\/visualforce-interview-questions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/swapnilzambare.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Visualforce Interview Questions and Controllers (60+ Q&#038;A)"}]},{"@type":"WebSite","@id":"https:\/\/swapnilzambare.com\/blog\/#website","url":"https:\/\/swapnilzambare.com\/blog\/","name":"Swapnil Zambare - Blog","description":"Salesforce &amp; Tech Guides","publisher":{"@id":"https:\/\/swapnilzambare.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/swapnilzambare.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/swapnilzambare.com\/blog\/#organization","name":"Swapnil Zambare - Blog","url":"https:\/\/swapnilzambare.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/swapnilzambare.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/09\/site-icon-512.png","contentUrl":"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/09\/site-icon-512.png","width":512,"height":512,"caption":"Swapnil Zambare - Blog"},"image":{"@id":"https:\/\/swapnilzambare.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.linkedin.com\/in\/theSwapnilZambare"]},{"@type":"Person","@id":"https:\/\/swapnilzambare.com\/blog\/#\/schema\/person\/10b09224c8bcc562716e86789427592a","name":"Swapnil Zambare","sameAs":["https:\/\/swapnilzambare.com\/blog"],"url":"https:\/\/swapnilzambare.com\/blog\/author\/swapnil-zambare\/"}]}},"_links":{"self":[{"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/posts\/2615","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/comments?post=2615"}],"version-history":[{"count":2,"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/posts\/2615\/revisions"}],"predecessor-version":[{"id":3522,"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/posts\/2615\/revisions\/3522"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/media\/2612"}],"wp:attachment":[{"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/media?parent=2615"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/categories?post=2615"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/tags?post=2615"},{"taxonomy":"swapz_series","embeddable":true,"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/swapz_series?post=2615"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}