This document contains a list of questions related to Drupal development. Some of the key topics covered include new features in Drupal 8 and 9, how to upgrade point releases, how to add custom fields and modules, how taxonomy and entities work, caching, theming, and working with databases. It also includes questions about migrating from Drupal 7 to 8, using hooks, routing, and working with APIs, forms, and REST services.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
178 views
Drupal Interview Questions
This document contains a list of questions related to Drupal development. Some of the key topics covered include new features in Drupal 8 and 9, how to upgrade point releases, how to add custom fields and modules, how taxonomy and entities work, caching, theming, and working with databases. It also includes questions about migrating from Drupal 7 to 8, using hooks, routing, and working with APIs, forms, and REST services.
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6
Drupal Interview Questions
1. New features in Drupal 8 compared to Drupal 7?
2. Latest version of Drupal 8? 3. New features in Drupal 9? 4. How to upgrade Drupal point versions? For example D8.1 to D8.2? 5. What is contributed modules in Drupal? 6. In User registration form, how to add two more additional fields (phone and address)? 7. What is the purpose of Taxonomy? 8. In admin->ConfigurationDevelopment Performance there is an option to set the cache time? What is the purpose of the time? How site knows this time? 9. In admin->ConfigurationDevelopment Performance there is an option to aggregate CSS and JS files. What is the purpose of this settings? 10. How to add new region in Drupal 8? 11. What all are the files required to create a custom module? And how to create a custom module? 12. What all are the information provided in Routing file? 13. What is an Entity in Drupal 8? 14. In order to fetch content/node, how to use custom coding? 15. How Drupal search works? 16. What all are the files required for custom theme? 17. When a page get refresh, particular block should not get cached. How to achieve this? 18. When a site having different set of layouts, how to design the templates? 19. What is inheritance? 20. What is polymorphism? 21. What is the difference between array merge and array combine? 22. Difference between truncate/Drop/Delete in MySQL? 23. How to fetch the last insert record of the table in MySQL? 24. Difference between Left join and Right join in MySQL?
25.Difference between Drupal 7 and Drupal 8?
26.Have you worked on any migration project? Drupal 7 to Drupal 8? 27.How to add a custom table using module? 28.What is the hook name, which we need to define the table structure while creating a table using custom module through “.install” file? Ans: hook_schema().
29. What is hook in Drupal?
30. How to create custom module in Drupal 8? 31. I have created a module. But I don’t want to show this module in the module list under “Extend” page. Is there any way to achieve this? 32. What is dependency injection? 33. How to add translation for particular page using module? 34. How to add translation using custom module? 35. What is the use of template.php in drupal 7? 36. What is a patch in Drupal? 37. Have you create any patch using command line? 38. How to create custom cache tag in a module? For example, I have create one page by using a module, then I want to cache that page. How to do that? How to add cache tag in a custom page or any block or any controller file?. In controller file, we are returning the data, so I want to cache that particular data, so that when any user hit that particular url second time, data should coming from cache table? So Is there any way to add custom tag? 39. What is Drush? 40. Have you worked any chart in Drupal? 41. How caching working in Drupal? 42. What is abstract class and abstract method? 43. Difference between substr and strstr? 44. How to create a custom theme? 45. I want to create a custom region. So is there any required region we need to define in .info file? 46. Is there any way to hide region from the block? 47. How to add libraries in Drupal 8? 48. How to enable twig debug in Drupal 8? 49. About the projects, which you have completed? 50. Do you have any experience on media wedsites? 51. New features of Drupal 8? 52. Disadvantages of Drupal 8 compared to Drupal 7?
In D8, we need to uninstalling module. So data will lose.
In D7, we can disable the module, so data will not lose
53. How to create a theme in Drupal 8?
54. How to define external js/css file while creating theme? 55. What is the purpose of template.php file? Is that mandatory? 56. Caching in Drupal? 57. Difference between taxonomy and node? 58. I want to publish a content based online. For example, I have some API and using this API, I want to populate this content into particular content type. How can we do that? (Or) How to store the data into Drupal CMS, where data is available through external API with JSON/XML format? 59. Feature module? 60. What is Rules in Drupal? 61. What is Roles in Drupal? 62. What is the minimum role give to a person to access the admin part? For example, I have created a role “Operator” and the people who having this role, needs administrator rights. How to do that?
Ans: “Access admin content” permission
63. How to install JQuery in Drupal?
64. What is Region and Blocks? 65. How the blocks are created? 66. Files required for custom module? 67. 2. Puprpose of .install file 68. 3. Files required for custom theme? 69. 4. What is views in Drupal? 70. 5. Multisite? 71. 6. Multilingual? 72. 7. Multiple database in single site? How to enable dual datanase in single site? For example, data for report should comes from different databse. 73. 8. Hooks in Drupal? Examples for common hooks? 74. 9. Have you done Migration from Drupal 7 to 8? 75. 10. Migration modules in Drupal 8? 76. 11. Which version control you have used? 77. 12. What is pantians (not clear) 78. 13. While comparing to other CMS, Whay Drupal is commony used CMS? 79. 14. What is patch? 80. 15. Have you done any contributions in Drupal? 81. 16. How caching works in Drupal? 82. 17. Have you worked in any other caching modules in Drupal? 83. 18. What is Drush? 84. 19. Commonly used Drush commands? 85. 20. Cron jobs in Drupal? 86. 21. Difference between Drupal 8 and Drupal 9? 87. 22. Difference between dbquery vs dbselect? 88. 23. If I want to use alter, which one we will use? dbquery or dbselect? 89. 24. I have a view. I want to add one field in the display. But that field is not available in the list of values. How can I able to add it in programatically? Display coulmns --> Want to add one field. But this field is not available in the list of add coulmns. Want to add one filed through programatically 90. Using Using hook_views_query_alter 91. 92. 25. Types of joins in mySQL? 93. 94. 95. 26. Which join will take, if we use only the word "join"? Inner JOIN 96. 97. 98. 27. I have two different tables. All coulmns are different. There is no primary key between tables. I want to return all the values in both tables. How to return all the data? 99. Using Union 100. 101. 28. Template preprocess? 102. 103. 104. 29. System requirements for Drupal installation? 105. 106. 107. 30. Drupal supported databases? 108. MySQL - 5.5.3 (MariaDB 5.5.20, Percona 5.5.8) or higher with an InnoDB-compatible primary storage engine 109. PostgreSQL - 9.1.2 or higher 110. SQLite - 3.4.2 or higher. 111. 112. 31. Purpose of .htaccess file? 113. How to implement Rest services in Drupal 8? 114. I have two content types. One is article and the other one is products. I have 1000 articles based on this content type. I want to expose these content as a JSON. How can we do that? 115. How to write Rest API through custom code? 116. What is the file name to define the permission? 117. What is plugins in Drupal 8? 118. What all are the different types of Plugins? 119. I have a Rest API and it returns some results. For each results, I want to create a block. Suppose I have five results, each result should go into different blocks. So here, For five results, I want to create five blocks dynamically. How to achieve it? (There is a mechanism in Drupal to create dynamic blocks.) 120. What is events in Drupal? 121. What is event subscribers? 122. In Drupal 7, we have a hook called “hook_init”, which helps to include something during page load. “hook_init” will work when page is initiating. How we can do the same in Drupal 8? 123. What is annotation? 124. What all are the parameters used in different annotation? 125. How to create a custom form in Drupal 8? 126. While creating custom form, we are using “form base”. From where this “form base” is implemented? It means, “form base” is implemented from some base class. What is that base class? 127. What is the use of routing in custom module? 128. I want to create a menu link. How to do the same in Drupal 8? 129. You have created a form and you want to create contextual links. Is that possible? 130. What is contextual links? 131. Contextual links helps to do inline editing. 132. What is dependency injection? 133. I have a requirement to connect to the database. For example, I have a custom form and while submitting form, I want to save the data into the custom table of a database. So here what kind of dependency injection need to connect to the database? 134. In Drupal 7, we have option to set the variables like variable get and variable set. So the values will saved to settings.php and we can retrieve the same also. Same way, how to do the same in Drupal 8? 135. (Refer .module file under nam webservices custom module) 136. In custom module, I want to include a js file. How to do that? 137. I want to display some dynamic content in the side bar with help of block. How we can create this dynamic block? Create a block with dynamic content. For example, show latest news in a block and show it in side bar. 138. How to enable debug mode? 139. What is the use of debug? 140. Is it possible to disable the caching in Drupal 8? 141. New features in Drupal 8? 142. I have two different content types. One is “video” and other one is “article”. I created one custom field called “image” for both content type. Data is available for this “image” field for both content type. I want to remove this “image” field from “video” content type. Is it possible? 143. I have one website which is already running. I have one “Contact us” form. We could see lot of spam messages. We don’t know something like bot is submitting the form. We are getting so many emails. How we can resolve this? 144. Where we can see PHP version in Drupal site? 145. One of the production site, I am seeing so many warnings. But I do not want this warning in production site. How to disable this warnings? 146. In a development environment, there are two new views created. I want to move these views into production. I do not want to move entire db. How to do the same? 147. What is features in Drupal 7? 148. Is it possible to place one block into two different region? For example, I have a search block and I want to place this one in the header as well as in footer. Is it possible? 149. Is it possible to display different content types into one page? For example, I have two different content types “Tech news” and “Company news”. I want to display those two content in one particular page. Is it possible? 150. I have many contents. I want to segregate that. For example, I have few articles which is related to pen and another set of articles which is related to book. All are comes under article only. But I want to segregate/ categorize that. How we can do it? 151. Difference between Drupal 8 and Drupal 9? 152. Difference between class and interface? 153. What is polymorphism in OOPS? 154. What is an abstract class? 155. Is it possible to implement multiple inheritance of a class in PHP? 156. What's the difference between drupal 6 7 and 8 157. What is the database level change between drupal 6 7 and 8 158. Config export and import. 159. How update drupal and what are the steps involved? 160. Composer update and install difference 161. What is a patch and How to apply patch? 162. Difference between acquia and aws 163. Theme libraries yml use 164. How to resolve production issues 165. Git merge and rebate 166. Rest API and authentication methods 167. Why we are going for headless CMS. 168. How create custom block. 169. Migration steps 170. Advantage of Drupal 8 171. How to move content type changes to higher environment. 172. How to create a custom module? 173. After creating a custom block, you want to clear the cache for the particular block. How to do that? 174. Services in Drupal? 175. Dependency injection? 176. Events in Drupal? 177. Drupal 8 is fully decoupled or progressly decoupled? 178. How to create API? 179. How to upgrade Drupal 7 to Drupal 8? 180. Contextual filters in view? 181. About theme .info file 182. About Twig file 183. About Twig file syntax. 184. About libraries.yml, 185. Routing.yml 186. How to clear the cache for a particular block? 187. Agile methodology
Building Serverless Apps with Azure Functions and Cosmos DB: Leverage Azure functions and Cosmos DB for building serverless applications (English Edition)
Building Serverless Apps with Azure Functions and Cosmos DB: Leverage Azure functions and Cosmos DB for building serverless applications (English Edition)