{"id":8823,"date":"2020-01-16T07:47:26","date_gmt":"2020-01-16T07:47:26","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=8823"},"modified":"2021-11-13T10:59:57","modified_gmt":"2021-11-13T10:59:57","slug":"sonarqube-interview-questions-and-answer-part-1","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/sonarqube-interview-questions-and-answer-part-1\/","title":{"rendered":"SonarQube Interview Questions and Answer Part \u2013 1"},"content":{"rendered":"\n<p><strong>Is it right definition of Sonarqube?<br> SonarQube (formerly Sonar) is a quality management platform focusing on continuous analysis of source code quality.<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>YES (Ans)<\/strong><\/li><li>NO<\/li><\/ul>\n\n\n\n<p><strong>Which is not a severities in this list<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Blocker<\/li><li>Critical<\/li><li>Major<\/li><li><strong>Biggest (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>Is it right defintion of SonarQube Scanners?<br> The SonarQube Scanner is recommended as the default launcher to analyze a project with SonarQube.<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>YES (Ans)<\/strong><\/li><li>NO<\/li><\/ul>\n\n\n\n<p><strong>How to extend the functionality of SonarQube?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Modules<\/li><li><strong>Plugins (Ans)<\/strong><\/li><li>Extension<\/li><li>Ads on<\/li><\/ul>\n\n\n\n<p><strong>Which statement is correct?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Sonar will run CheckStyle, FindBugs and PMD by default for Java projects (Ans)<\/strong><\/li><li>Sonar will run Checkmate by default for Java projects<\/li><li>Sonar will run FindIssue by default for Java projects<\/li><li>Sonar will run PMDtest by default for Java projects<\/li><\/ul>\n\n\n\n<p><strong>Which is not a axis of code quality in SonarQube?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Architecture and Design<\/li><li>Complexity<\/li><li>Potential bugs<\/li><li><strong>Code Coverage (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>What is the prerequisite for SonarQube Installation?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Java (Ans)<\/strong><\/li><li>DOTNET<\/li><li>JavaScript<\/li><li>Php<\/li><\/ul>\n\n\n\n<p><strong>Which is not part of Code Technical Review in SoanrQube?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Confirm <\/li><li>Change Severity<\/li><li>Resolve <\/li><li><strong>Submited (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>What is not a search criteria for the rules in SonarQube?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Language<\/li><li>Type<\/li><li>Tag<\/li><li><strong>Develop (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>Which is the not found in sonar-project.properties?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>sonar.projectVersion<\/li><li>sonar.sources<\/li><li><strong>sonar.code (Ans)<\/strong><\/li><li>sonar.language<\/li><\/ul>\n\n\n\n<p><strong>Which property should be decalred for SonarQube Project base dir?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>sonar.projectBaseDir (Ans)<\/strong><\/li><li>sonar.working.directory<\/li><li>sonar.basedir<\/li><li>sonar.projectdir<\/li><\/ul>\n\n\n\n<p><strong>Which property should be decalred to tell SonarQube which SCM plugin should be used to grab SCM data on the project<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>sonar.scm.provider (Ans)<\/strong><\/li><li>sonar.scm<\/li><li>sonar.git<\/li><li>sonar.version<\/li><\/ul>\n\n\n\n<p><strong>Which property should be decalred to tell SonarQube log level?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>INFO <\/li><li>DEBUG <\/li><li>TRACE <\/li><li><strong>ERROR (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>Which is not supported Log Level in SonarQube?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>sonar.log.level<\/li><li><strong>sonar.verbose (Ans)<\/strong><\/li><li>sonar.log<\/li><li>sonar.loglevel<\/li><\/ul>\n\n\n\n<p><strong>Is it right definition of Code Smell? A maintainability-related issue in the code. Leaving it as-is means that at best maintainers will have a harder time than they should making changes to the code. At worst, they&#8217;ll be so confused by the state of the code that they&#8217;ll introduce additional errors as they make changes.<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>YES (Ans)<\/strong><\/li><li>NO<\/li><\/ul>\n\n\n\n<p><strong>Is it right definition of Coding Rule? A good coding practice. Not complying to coding rules leads to quality flaws and creation of issues in SonarQube. Coding rules can check quality on files, unit tests or packages.<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>YES (Ans)<\/strong><\/li><li>NO<\/li><\/ul>\n\n\n\n<p><strong>Is it right definition of Analyzer? A client application that analyzes the source code to compute snapshots.<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>YES (Ans)<\/strong><\/li><li>NO<\/li><\/ul>\n\n\n\n<p><strong>Which is not severities in Sonarqube?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Options<\/li><li>Blocker<\/li><li>Major<\/li><li>Critical<\/li><li><strong>Issues (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>Is it possible to Copy the rules from one profile to another?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>YES (Ans)<\/strong><\/li><li>NOT<\/li><\/ul>\n\n\n\n<p><strong>Is it possible to Copy a profile from one SonarQube instance to another?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>YES (Ans)<\/strong><\/li><li>NOT<\/li><\/ul>\n\n\n\n<p>SonarQube Tutorial &amp; OWASP SonarQube Tutorial Securing Code (SAST) Crash Course:- https:\/\/bit.ly\/3x5ZOmA<\/p>\n\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_53532\"><iframe loading=\"lazy\"  id=\"_ytid_19899\"  width=\"760\" height=\"427\"  data-origwidth=\"760\" data-origheight=\"427\" src=\"https:\/\/www.youtube.com\/embed\/?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;\" class=\"__youtube_prefs__  no-lazyload\" title=\"YouTube player\"  data-epytgalleryid=\"epyt_gallery_53532\"  allow=\"fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe><div class=\"epyt-gallery-list\"><div>Sorry, there was a YouTube error.<\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Is it right definition of Sonarqube? SonarQube (formerly Sonar) is a quality management platform focusing on continuous analysis of source code quality. YES (Ans) NO Which is not a severities&#8230; <\/p>\n","protected":false},"author":1,"featured_media":9146,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[158],"tags":[641,766,482,581,104],"class_list":["post-8823","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sonarqube","tag-answers","tag-interview","tag-questions","tag-sonarqube","tag-tutorials"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/8823","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=8823"}],"version-history":[{"count":3,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/8823\/revisions"}],"predecessor-version":[{"id":25110,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/8823\/revisions\/25110"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/9146"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=8823"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=8823"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=8823"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}