Showing posts with label technology. Show all posts
Showing posts with label technology. Show all posts

May 08, 2022

Top 20 Oracle 10g Interview Questions and Answers

 

             The Oracle Database 10g Standard Edition is designed for medium-sized businesses. Oracle's Real Application Cluster features are included to protect against hardware failures. It's simple to set up and configure, and it includes its own clustering software, storage management, and other self-managing features. Oracle Database 10g Standard Edition maintains all of your data and lets all of your business applications to benefit from Oracle Database's renowned performance, security, and reliability. It also has full upward compatibility with Oracle Database 10g Enterprise Edition, ensuring that your investment is protected as your needs change.


Oracle Fusion Applications interview Questions and Answers


Ques. 1): What are the components of an Oracle database's logical database structure?

Answer:

The following are the components of Oracle's logical database structure:

Tablespaces: Tablespaces are the logical storage units that make up a database. This tablespace is a collection of logical structures that are linked together. To be more specific, tablespace groupings are linked to logical structures.

Database Schema Objects: A schema is a set of database objects that belong to a single user. Tables, indexes, views, stored procedures, and other objects are among the objects. The user is the account in Oracle, and the schema is the object. It is also possible to have a schema without specifying a user in database platforms.


Oracle Accounts Payables Interview Questions and Answers


Ques. 2): What is the connection between the database, tablespace, and data file?

Answer:

An Oracle database has one or more tablespaces, which are logical storage units. Each tablespace in an Oracle database is made up of one or more datafiles. The complete data of databases is stored in these tablespaces. When we talk about datafiles, we're talking about the physical structure that tells the operating system which Oracle software is running.


Oracle ADF Interview Questions and Answers


Ques. 3): What is the difference between DB file sequential read and DB File Scattered Read ?

Answer:

DB File Scattered Read is related to index read, whereas DB File Sequential Read is related to whole table scan. DB File sequential read reads blocks into contiguous memory, whereas DB File dispersed read reads multiple blocks into buffer cache.


Oracle Access Manager Interview Questions and Answers


Ques. 4): Which variables should be addressed when establishing a table index? How do I choose a column for indexing?

Answer:

The size of the database and the amount of data determine how an index is created. If the table is vast and only a few data points are required for selection or reporting, an index must be created. Cardinality and frequent usage in the where condition of a select query are two primary reasons for selecting columns for indexing. Because configuring main key or unique key immediately creates unique index, the business rule also forces the creation of indexes like primary keys.

It is important to note that creation of so many indexes would affect the performance of DML on table because in single transaction should need to perform on various index segments and table simultaneously.


Oracle Fusion HCM Interview Questions and Answers


Ques. 5): What does Oracle's ANALYZE command do?

Answer:

This command "Analyze" is used to conduct different operations on an index, table, or cluster. The following is a list of Oracle commands that use the ANALYZE command:

The Analyze command is used to find migrated and chained table or cluster rows.

It is used to verify an object's structure.

This assists in gathering statistics about the object that the user is using, which are subsequently put in the data dictionary.

It also aids in the deletion of statistics from the data dictionary that are used by an object.


Oracle SCM Interview Questions and Answers


Ques. 6): What is the DUAL table's data type?

Answer:

The Dual table is a single-column table in the Oracle database. Dummy is a single Varchar2(1) column in this table with the value 'X'.


Oracle Financials Interview questions and Answers


Ques. 7): Is it possible to create an index online?

Answer:

YES. Indexes can be created and rebuilt online. This allows you to change basic tables while also building or rebuilding indexes on those tables. DML actions are permitted while the index is being built, but DDL operations are not permitted.

When constructing or rebuilding an index online, parallel execution is not supported.

CREATE INDEX emp_name ON emp (mgr, emp1, emp2, emp3) ONLINE;


Oracle Cloud Interview Questions and Answers


Ques. 8): When the R/3 system is active, why is a small dump written during an offline backup?

Answer:

BRBACKUP terminates the database during an offline backup, however the present R/3 system is unaware of this. As a result, the first work process that loses its database connection creates a small dump. Until the database is available again, all work processes move into reconnect mode. As a result, because the database cannot be accessed, one (or more) brief dumps are usually produced during an offline backup.


Oracle PL/SQL Interview Questions and Answers


Ques. 9): How can you track a user's password change in Oracle?

Answer:

Oracle only keeps track of the password's expiration date based on when it was last modified. You may discover when a password was last changed by listing the view DBA USERS.EXPIRY DATE and subtracting PASSWORD LIFE TIME. The PTIME column in the USER$ database (on which the DBA USERS view is based) can also be used to check the last password change time. However, if PASSWORD REUSE TIME and/or PASSWORD REUSE MAX are configured in a profile given to a user account, you can look up the password change date in the dictionary table USER HISTORY$.

SELECT user$.NAME, user$.PASSWORD, user$.ptime, user_history$.password_date

FROM SYS.user_history$, SYS.user$

WHERE user_history$.user# = user$.user#;


Oracle SQL Interview Questions and Answers


Ques. 10): What is Secure External password Store (SEPS) ?

Answer:

You can store password credentials for connecting to databases using SEPS by utilising a client-side Oracle wallet, which also stores signing credentials. This capability has been available since Oracle 10g. Thus, embedded username and passwords were no longer required in application code, scheduled jobs, or scripts. This decreases risk because passwords are no longer accessible, and password management policies can be implemented more quickly without having to alter application code whenever the login and password change.


Oracle RDMS Interview Questions and Answers


Ques. 11): Why do we require the CASCADE option when using the DROP USER command to drop a user, and why do "DROP USER" instructions fail when we don't use it?

Answer:

If a user has an object, you will not be able to delete that user without using the CASCADE option. The DROP USER command with the CASCADE option deletes the user and all associated items. Because this is a DDL command, rollback is not possible after it has been executed.


BI Publisher Interview Questions and Answers


Ques. 12): What is the difference between Redo, Undo, and Rollback?

Answer:

When it comes to Redo, Rollback, and Undo, I always get a little confused. They all sound pretty much the same, or at least very similar.

Every Oracle database has a collection of redo log files (two or more). The redo log keeps track of all data changes, including both uncommitted and committed ones. Oracle saves archive redo logs in addition to online redo logs. In recovery scenarios, all redo logs are used. Rollback: More specifically, section rollback. The data in rollback segments is saved as it was before any modifications were made. The redo log, on the other hand, is a record of the inserts, updates, and deletions.

Undo: Rollback segments. They both are really one in the same. Undo data is stored in the undo tablespace. Undo is helpful in building a read consistent view of data.

 

Ques. 13): Do you have more than three Linux instances running? How do you figure out which shared memory and semaphores belong to which instance?

Answer:

Oracle provides an undocumented utility called Oradebug. The oradebug help command displays a list of oracle commands.

SQL>oradebug setmypid

SQL>oradebug ipc

SQL>oradebug tracfile_name

 

Ques. 14): Why aren't all Oracle faults recorded in the Alert Log?

Answer:

In the Alert Log, Oracle only logs critical problems. The majority of Oracle error codes are not recorded (unfortunately this may also include error codes that are genuinely critical). As a result, it's common to discover faults in the Oracle application that aren't visible in the Alert Log.

 

Ques. 15): There is no room available to add datafiles to enhance temp tablespace because it is completely full. What can you do to free up TEMP tablespace in that case?

Answer:

Closing some of the database's idle sessions will help you free up some TEMP space. You can also make use of:

Alter Tablespace PCTINCREASE 1' ;

'Alter Tablespace PCTINCREASE 0;

 

Ques. 16): What is the difference between row chaning and row migration?

Answer:

Row Migration:  When an update to a row causes it to no longer fit on the block, it migrates (with all of the other data that exists there currently). A migration means that the entire row will be moved, with only the «forwarding address» remaining. As a result, the original block only has the new block's rowid and the entire row is transferred.

Row Chaining: A single database block cannot hold more than one row. For example, if your database uses a 4KB blocksize and you need to insert an 8KB row, Oracle will use three blocks and save the information in pieces. Row chaining can occur under the following circumstances: Tables with a rowsize greater than the blocksize. Chained rows are common in tables containing LONG and LONG RAW columns. Oracle breaks broad tables split into sections, therefore tables with more than 255 columns will have chained rows. Rather of having a forwarding address on one block and data on another, we now have data on two or more blocks.

 

Ques. 17): How can I erase a data file that I accidentally created?

Answer:

In most circumstances, you can use RESIZE or RENAME to fix a data file that was generated with the improper size or in the wrong location. You have the following alternatives if you want to drop the data file again:

A produced data file can only be erased during a tablespace reorganization up to and including Oracle 9i. There are no other viable alternatives.

As of Oracle 10g, an empty data file can also be dropped with the following command:

ALTER TABLESPACE DROP DATAFILE ' ';

If there are still extents in the data file, this command fails with ORA-03262. In this case, the affected segments must first be relocated so that the extents are released.

 

Ques. 18): What is the ideal file size for data files?

Answer:

It is impossible to provide a straightforward solution to this topic. In most cases, the size of the data files has no bearing on database activity. However, keep the following considerations in mind:

Make sure the Oracle parameter DB FILES is set high enough. Otherwise, once this limit is reached, new data files cannot be produced.

The fewer the datafiles, the faster they can be restored individually during a backup.

BEGIN BACKUP processes in online backups are likely to take longer the smaller the data files are, and hence the more data files there are.

Data files that are too large aggravate performance problems that are caused by inode locking, since parallel processes may become serialized on the data file inode.

On occasion, size restrictions may prevent the system from using data files that exceed a certain size (often 2GB).

 

Ques. 19): Why does the order of the online redo logs occasionally change?

Answer:

This redo log becomes the next redo log if the next online redo log is still archived and another redo log is available for overwriting. The order of the online redo logs is now altered. Because the alternative would be an archiver stuck, at least briefly, this behaviour is preferable.

Only if many archive processes run in parallel and do not run again when the redo logs are archived may this situation arise. To avoid this issue, see if the archiver's performance (I/O tuning) can be improved. You must also avoid getting an archiver stuck due to a fully operational archive file system.

This problem cannot occur if the number of archiver processes is limited to one by LOG_ARCHIVE_MAX_PROCESSES

 

 

Ques. 20): On my system, why do Oracle processes run as the sid>adm user?

Answer:

By default, the UNIX PS command displays the true user, not the actual user. As a result, having adm as the displayed user for Oracle processes is not a problem. The only thing that matters is that the Oracle executable has the appropriate permissions.  

 

 

April 30, 2022

Top 20 Bootstrap Interview Questions and Answers

 

Bootstrap is a comprehensive toolkit for generating and developing web pages and applications that contains HTML, CSS, and JavaScript tools. It is a free and open-source project available on GitHub that was created by (and for) Twitter.
Bootstrap gained a lot of traction after it was made open-source in 2011, and for good reason. Because of its versatility and ease of use, Bootstrap is popular among web designers and developers. Its main benefits are that it is responsive by design, that it works with a wide range of browsers, that it uses reusable components to offer a consistent design, and that it is simple to use and comprehend. It comes with built-in support for jQuery plugins and a programmatic JavaScript API for rich extensibility via JavaScript. Any IDE or editor, as well as any server-side technology and language, can be utilized with Bootstrap.


Python Interview Questions and Answers


Ques. 1): What is Bootstrap?

Answer:
Bootstrap is a platform for web development based on a front-end framework. It is used to create exceptional responsive designs using HTML, and CSS. These templates are used for forms, tables, buttons, typography, models, tables, navigation, carousels and images. Bootstrap also has Javascript plugins, which are optional. Bootstrap is mostly preferred for developing mobile web applications.


BlockChain interview Questions and Answers


Ques. 2): What is Bootstrap and how does it work?

Answer:

Bootstrap is the most popular open source toolkit for creating mobile responsive, dynamic websites and online applications. It includes HTML, CSS, and JS-dependent templates.

Features:

  • Bootstrap increase development speed
  • Bootstrap is outfitted with a 12-column grid system and a responsive layout for
  • Bootstrap ensures consistency
  • It's future compatibility.
  • Bootstrap provides rich customization features for designing tailor-made websites.
  • Bootstrap provides various advantages of using pre-styled components.
  • Bootstrap containing a simple integration approach to integrate into specialized platforms and frameworks.
  • Bootstrap contains a big list of components needed to develop mobile responsive websites like the navigation bar, drop-down, alerts, badges, labels.
  • It reduces extra efforts of large coding


Python Pandas Interview and Questions


Ques. 3): What is included in the Bootstrap package?

Answer:

Scaffolding: Bootstrap comes with a basic structure that includes a Grid System, link styles, and a background. The section Bootstrap Basic Structure goes over this in depth.

CSS: Bootstrap includes global CSS settings, basic HTML components stylized and improved with extendable classes, and a sophisticated grid system. The section Bootstrap with CSS goes over this in depth.

Over a dozen reusable components are included in Bootstrap, including iconography, dropdowns, navigation, notifications, popovers, and more. The section Layout Components goes through this in depth.

Plugins for JavaScript: Bootstrap includes over a dozen bespoke jQuery plugins. You may easily incorporate all of them or just one at a time. The section Bootstrap Plugins goes over this in depth.

Customize: You can customize Bootstrap's components, fewer variables, and jQuery plugins to get your very own version.


Hadoop Interview Questions and Answers


Ques. 4): What are collapsing elements in Bootstrap?

Answer:

You may collapse any element with Bootstrap collapsing elements without creating any JavaScript code or accordion markup. To use collapsible elements in bootstrap, add data-toggle= "collapse" to the controller element along with a data-target or href to delegate control of a collapsible element automatically. You can also do the same thing with.collapse (options),.collapse ('display'), or.collapse ('hide').


Hyperion Interview Questions and Answers


Ques. 5): What are the advantages of Bootstrap?

Answer:

The following are some advantages of Bootstrap:

  • Bootstrap is simple to use and anyone with a basic understanding of HTML and CSS can get started.
  • Features that adapt to phones, tablets, and desktops: Bootstrap's responsive CSS adapts to phones, tablets, and desktops.
  • A mobile-first strategy: Mobile-first styles are built into the Bootstrap framework.
  • Bootstrap 4 is compatible with all modern browsers, including Chrome, Firefox, Internet Explorer 10+, Edge, Safari, and Opera.


Internet of Things (IOT) Interview Questions and Answers


Ques. 6): How well-versed are you in the Bootstrap Grid System?

Answer:

The Bootstrap Grid System is a responsive, mobile-first grid that scales up to 12 columns as the device or viewport size increases. The system includes predefined classes for simple layout options and powerful mix-ins for developing successful semantic layouts.

In the Bootstrap 4 grid system, there are five classes:

  • .col- for extra small devices, whose screen width is less than 576px.
  • .col-sm- small devices, whose screen width is equal to or greater than 576px.
  • .col-md- medium devices, whose screen width is equal to or greater than 768px.
  • .col-lg- large devices, whose screen width is equal to or greater than 992px.
  • .col-xl- extra large devices, whose screen width is equal to or greater than 1200px.
  • The classes listed above can be combined to build layouts that are more dynamic and adaptable.


Machine Learning Interview Questions and Answers


Ques. 7): Explain why to choose Bootstrap for building the websites?

Answer:

There are few reason why we choose Bootstrap for building websites

Mobile Support: For mobile devices it provides full support in one single file rather than in separate file. It supports the responsive design including adjusting the CSS based on the different types of device, size of the screen etc. It reduces extra effort for developers.

Easy to learn: Writing application in bootstrap is easy if you know CSS and HTML

Browser Support: It supports all the popular browsers like Firefox, Opera, Safari, IE etc.


MySQL Interview Questions and Answers


Ques. 8): In Bootstrap, what are Glyphicons?

Answer:

There could be more than 200 glyphicons in the glyphicons set. It serves as an icon font for our web design projects, and it may be used in buttons, navigation, forms, and buttons, among other things. Only Bootstrap projects can use Glyphicons Halflings for free; otherwise, a licence is required.

Print glyphicon and Envelope glyphicon are two examples of Glyphicon.

The syntax can be used for this Glyphicon is:

<span class="glyphicon glyphicon-name"> </span>


Data Science Interview Questions and Answers


Ques. 9): Explain what pagination in bootstrap is and how they are classified?

Answer:

Pagination is the handling of an unordered list by bootstrap. To handle pagination bootstrap provides following classes

  • .pagination: To get pagination on your page you have to add this class
  • .disabled, .active: Customize links by .disabled for unclickable links and .active to indicate the current page
  • .pagination-Ig, .pagination-sm: Use these classes to get different size item


Edge Computing Interview Questions and Answers


Ques. 10): What is the Scrollspy Bootstrap plugin?

Answer:

Scrollspy is a plugin that allows you to build auto-updating navigation plugin parameters. It allows you to use a scroll position to target certain areas of a web page. The.active class, which can be added to the navbar based scroll position, can be used to accomplish this.


PowerShell Interview Questions and Answers


Ques. 11): What are the features of Bootstrap v4?

Answer:

  • The initial release of bootstrap v4.x was 4.0 and the final release in 2018-2019 is 4.2 ;
  • The toast component is added for showing notifications
  • The spinner component is added for loading
  • The utility class .text-decoration-none is added
  • The bootstrap-grid.css file updates the margin and padding of the grid system
  • The .modal-xl class is used for modals
  • The .font-weight-lighter and .font-weight-bolder are added as utility classes
  • The validation styles for file inputs is added with new features
  • The print feature of dark tables is updated with new quality
  • The new utility class .dropdown-item-text is added for dropdown items
  • The Tooltips supports Shadow DOM
  • The double transitions issue on carousels is improved now.


PHP Interview Questions and Answers


Ques. 12): How many types of classes are used in Bootstrap3 to create a responsive page layout?

Answer:

There are 4 types of bootstrap grid classes. we can create grid column layouts extra small devices like mobile phones to large devices like large desktop screens.

  • .col-xs-* : This class is used for extra small device like smart phone (Size<768px)
  • .col-sm-*: This class is used for small device like tablets (size>=768px)
  • .col-md-*: This class is used for medium device like laptops and small size desktop CRT screen (size >=992px)
  • .col-lg-* : This class is used for large device like flat screen or large size desktop (size>=1200px)


C language Interview Questions and Answers


Ques. 13): What is the grid size in Bootstrap 4?

Answer:

Bootstrap 4 supports 5 tier grid system. The below lists for different screen sizes of device,

1. Extra small <576px :

  • Width container will be auto.
  • Here class prefix is .col-.
  • A number of columns will be 12.
  • It can be nestable.
  • It supports column ordering.

2. Small =576px :

  • Width container will be 540px.
  • Here class prefix is .col-sm-.
  • A number of columns will be 12.
  • It can be nestable.
  • It supports column ordering.

3. Medium =768px :

  • Width container will be 720px.
  • Here class prefix is .col-md-.
  • A number of columns will be 12.
  • It can be nestable.
  • It supports column ordering.

4. Large =992px:

  • Width container will be 960px.
  • Here class prefix is .col-lg-.
  • A number of columns will be 12.
  • It can be nestable.
  • It supports column ordering.

5. Extra large =1200px :

  • Width container will be 1140px.
  • Here class prefix is .col-xl-.
  • A number of columns will be 12.
  • It can be nestable.
  • It supports column ordering.


C++ language Interview Questions and Answers


Ques. 14): What is the definition of Kickstrap?

Answer:

Kickstrap is a product that combines AngularJS with Bootstrap, as well as the JavaScript Package Manager (JSPM). Without the native backend, you may take advantage of the benefits of running an authorised database-driven web application. Kickstrap adheres to the Backend as a Service (BaaS) model by using Firebase.


Unix interview Questions and Answers


Ques. 15): What is the purpose of the Bootstrap breadcrumb?

Answer:

The bootstrap breadcrumb is the greatest way to explain hierarchy-based information on a website. It has a breadcrumb class and is an unordered list. For a Bootstrap breadcrumb, the separator is automatically added up in CSS. Breadcrumbs can be used to display categories, tags, or publishing dates on a blog site. It also displays the current page's hierarchical position.


SQL Server Interview Questions and Answers


Ques. 16): What are the similarities and differences between Sass and Bootstrap?

Answer:

SASS is a language for writing stylesheets and CSS pre-processors. It should be compiled into CSS so that the Web browser can understand it. The files have the. scss extension and are written in SASS. The SASS language is used to write the whole Bootstrap 4 CSS source code.

A SASS compiler, such as A.K.A., is used to compile the Bootstrap 4 CSS files.

A pre-processor is a device that converts data into a more usable The best approach to tweak Bootstrap is through SASS.

 

Ques. 17): In Bootstrap 4, what are cards?

Answer:

Bootstrap 4 replaces panels, wells, and thumbnails with cards. To construct a container, Bootstrap 4 uses the.card and.card-body classes on an element. It uses and adds.card-title to heading elements. text-elements to card-text

Let’ see code,

<div class="container-fluid">

 <div class="card card-body">

 <h4 class="card-title">Name</h4>

 <p class="card-text">My name is Satyaprakash</p>

 <a href="#" class="btn btn-primary">More Detilas>></a>

 </div>

</div>

 

Ques. 18): In Bootstrap, what is the purpose of the affix plugin?

Answer:

Affix is a plugin that attaches a tag to a specific spot on a webpage. It is also possible to turn on and off pinning for the attached tag. Social icons are a prominent example of affix plugins in bootstrap. The scrolling that is fastened begins at one point on a webpage and ends at a place when the scrolling stops for the rest of the page.

 

Ques. 19): What are bootstrap modal plugins and how can I use them?

Answer:

Modal plugins can be used to create a small pop-up window, or child windows can be used to replace the parent window. This dialogue box's main purpose is to deliver user reminders and warnings concerning session timeouts, as well as to receive final configurations to delete or save any data. Bootstrap.js or bootstrap.min.js are necessary for bootstrap modal plugins to function properly.

Modal plugins for Bootstrap can be used to create flexible and intelligent dialogue boxes. Any modal can be closed automatically using the backdrop.

Nested modal is not acceptable in Bootstrap, and only one window can be used at one time in Bootstrap.

 

Ques. 20): What are the different sorts of lists that Bootstrap supports?

Answer:

Bootstrap supports three different forms of lists:

Definition Lists - It contains both and elements. Definition term is a term or phrase that is used to define something. The element's definition is defined by the element.

Ordered Lists — To create a sequential order, this list employs a number as a prefix.

Unordered Lists - This type of list is formatted with bullets and does not follow any particular order. The bullet-style can be eliminated from the unordered list by using the.list-unstyled class. To list all of the items in a single line, use the.list-inline class.

 

 


November 17, 2021

Top 20 Apache Ambari interview Questions & Answers

  

Ques: 1). Describe Apache Ambari's main characteristics.

Answer:

Apache Ambari is an Apache product that was created with the goal of making Hadoop applications easier to manage. Ambari assists in the management of the Hadoop project.

  • Provisioning is simple.
  • Project management made simple
  • Monitoring of Hadoop clusters
  • Availability of a user-friendly interface
  • Hadoop management web UI
  • RESTful API support

 Apache Tapestry Interview Questions and Answers

Ques: 2). Why do you believe Apache Ambari has a bright future?

Answer:

With the growing need for big data technologies like Hadoop, we've witnessed a surge in data analysis, resulting in gigantic clusters. Companies are turning to technologies like Apache Ambari for better cluster management, increased operational efficiency, and increased visibility. Furthermore, we've noted how HortonWorks, a technology titan, is working on Ambari to make it more scalable. As a result, learning Hadoop as well as technologies like Apache Ambari is advantageous.

 Apache NiFi Interview Questions & Answers

Ques: 3). What are the core benefits for Hadoop users by using Apache Ambari?

Answer: 

The Apache Ambari is a great gift for individuals who use Hadoop in their day to day work life. With the use of Ambari, Hadoop users will get the core benefits:

1. The installation process is simplified
2. Configuration and overall management is simplified
3. It has a centralized security setup process
4. It gives out full visibility in terms of Cluster health
5. It is extensively extendable and has an option to customize if needed.

 Apache Spark Interview Questions & Answers

Ques: 4). What Are The Checks That Should Be Done Before Deploying A Hadoop Instance?

Answer:

Before actually deploying the Hadoop instance, the following checklist should be completed:

  • Check for existing installations
  • Set up passwordless SSH
  • Enable NTP on the clusters
  • Check for DNS
  • Disable the SELinux
  • Disable iptables

 Apache Hive Interview Questions & Answers

Ques: 5 As a Hadoop user or system administrator, why should you choose Apache Ambari?

Answer:

Using Apache Ambari can provide a Hadoop user with a number of advantages.

A system administrator can use Ambari to – Install Hadoop across any number of hosts using a step-by-step guide supplied by Ambari, while Ambari handles Hadoop installation setup.

Using Ambari, centrally administer Hadoop services across the cluster.

Using the Ambari metrics system, efficiently monitor the state and health of a Hadoop cluster. Furthermore, the Ambari alert framework sends out timely notifications for any system difficulties, like as disc space issues or node status.

 

Ques: 6). Can you explain Apache Ambari architecture?

Answer:

Apache Ambari consists of following major components-

  • Ambari Server
  • Ambari Agent
  • Ambari Web

Apache Ambari Architecture

The all metadata is handled by the Ambari server, which is made up of a Postgres database instance as indicated in the diagram. The Ambari agent is installed on each computer in the cluster, and the Ambari server manages each host through it.

An Ambari agent is a member of the host that delivers heartbeats from the nodes to the Ambari server, as well as numerous operational metrics, to determine the nodes' health condition.

Ambari Web UI is a client-side JavaScript application that performs cluster operations by regularly accessing the Ambari RESTful API. Furthermore, using the RESTful API, it facilitates asynchronous communication between the application and the server.

 

Ques: 7). Apache Ambari supports how many layers of Hadoop components, and what are they?

Answer: 

Apache Ambari supports three tiers of Hadoop components, which are as follows:

1. Hadoop core components

  • Hadoop Distributed File System (HDFS)
  • MapReduce

2. Essential Hadoop components

  • Apache Pig
  • Apache Hive
  • Apache HCatalog
  • WebHCat
  • Apache HBase
  • Apache ZooKeeper

3. Components of Hadoop support

  • Apache Oozie
  • Apache Sqoop
  • Ganglia
  • Nagios

 

Ques: 8). What different sorts of Ambari repositories are there?

Answer: 

Ambari Repositories are divided into four categories, as below:

  1. Ambari: Ambari server, monitoring software packages, and Ambari agent are all stored in this repository.
  2. HDP-UTILS: The Ambari and HDP utility packages are stored in this repository.
  3. HDP: Hadoop Stack packages are stored in this repository.
  4. EPEL (Enterprise Linux Extra Packages): The Enterprise Linux repository now includes an extra set of software.

 

Ques: 9). How can I manually set up a local repository?

Answer:

When there is no active internet connection available, this technique is used. Please follow the instructions below to create a local repository:

1. First and foremost, create an Apache httpd host.
2. Download a Tarball copy of each repository's entire contents.
3. After it has been downloaded, the contents must be extracted.

 

Ques: 10). What is a local repository, and when are you going to utilise one?

Answer:

A local repository is a hosted place for Ambari software packages in the local environment. When the enterprise clusters have no or limited outbound Internet access, this is the method of choice.

 

Ques: 11). What are the benefits of setting up a local repository?

Answer: 

First and foremost by setting up a local repository, you can access Ambari software packages without internet access. Along with that, you can achieve benefits like –

Enhanced governance with better installation performance

Routine post-installation cluster operations like service start and restart operations

 

Ques: 12). What are the new additions in Ambari 2.6 versions?

Answer:

Ambari 2.6.2 added the following features:

  • It will protect Zeppelin Notebook SSL credentials
  • We can set appropriate HTTP headers to use Cloud Object Stores with HDP
  • Ambari 2.6.1 added the following feature:
  • Conditional Installation of  LZO packages through Ambari
  • Ambari 2.6.0 added the following features:
  • Distributed mode of Ambari Metrics System’s (AMS) along with multiple Collectors
  • Host Recovery improvements for the restart
  • moving masters with minimum impact and scale testing
  • Improvement in Data Archival & Purging in Ambari Infra

 

Ques: 13). List Out The Commands That Are Used To Start, Check The Progress And Stop The Ambari Server?

Answer :

The following are the commands that are used to do the following activities:

To start the Ambari server

ambari-server start

To check the Ambari server processes

ps -ef | grep Ambari

To stop the Ambari server

ambari-server stop

 

Ques: 14). What all tasks you can perform for managing host using Ambari host tab?

Answer: 

Using Hosts tab, we can perform the following tasks:

  • Analysing Host Status
  • Searching the Hosts Page
  • Performing Host related Actions
  • Managing Host Components
  • Decommissioning a Master node or Slave node
  • Deleting a Component
  • Setting up Maintenance Mode
  • Adding or removing Hosts to a Cluster
  • Establishing Rack Awareness

 

Ques: 15). What all tasks you can perform for managing services using Ambari service tab?

Answer: 

Using Services tab, we can perform the following tasks:

  • Start and Stop of All Services
  • Display of Service Operating Summary
  • Adding a Service
  • Configuration Settings change
  • Performing Service Actions
  • Rolling Restarts
  • Background Operations monitoring
  • Service removal
  • Auditing operations
  • Using Quick Links
  • YARN Capacity Scheduler refresh
  • HDFS management
  • Atlas management in a Storm Environment

 

Ques: 16). Is there a relationship between the amount of free RAM and disc space required and the number of HDP cluster nodes?

Answer: 

Without a doubt, it has. The amount of RAM and disc required depends on the number of nodes in your cluster. In typically, 1 GB of memory and 10 GB of disc space are required for each node. Similarly, for a 100-node cluster, 4GB of memory and 100GB of disc space are required. To get all of the details, you'll need to look at a specific version.

 

Ques: 17). What tasks you can skill for managing services using the Ambari subsidiary bank account?

Answer: 

using the Services report, we can do the bearing in mind tasks:

  • Start and Stop of All Services
  • Display of Service Operating Summary
  • Adding a Service
  • Configuration Settings regulate
  • Performing Service Actions
  • Rolling Restarts
  • Background Operations monitoring
  • Service removal
  • Auditing operations
  • Using Quick Links
  • YARN Capacity Scheduler refresh
  • HDFS presidency
  • Atlas approach in a Storm Environment

 

Ques: 18). What is the best method for installing the Ambari agent on all 1000 hosts in the HDP cluster?

Answer: 

Because the cluster contains 1000 nodes, we should not manually install the Ambari agent on each node. Instead, we should set up a password-less ssh connection between the Ambari host and all of the cluster's nodes. To remotely access and install the Ambari Agent, Ambari Server hosts employ SSH public key authentication.

 

Ques: 19). What can I do if I have admin capabilities in Ambari?

Answer: 

Becoming a Hadoop Administrator is a difficult job. On HadoopExam.com, you can find all of the available Hadoop Admin training for HDP, Cloudera, and other platforms (visit now). You can create a cluster, manage the users in that cluster, and create groups if you are an Ambari Admin. All of these permissions are granted to the default admin user. You can grant the same or different permissions to another user even if you are an Amabari administrator.

 

Ques: 20).  How is recovery achieved in Ambari?

Answer:

Recovery happens in Ambari in the moreover ways:

Based in remarks to activities

In Ambari after a restart master checks for pending undertakings and reschedules them previously all assimilation out is persisted here. Also, the master rebuilds the come clean machines at the back there is a restart, as the cluster market is persisted in the database. While lawsuit beautifies master actually catastrophe in the in front recording their take keep busy, along amid there is a race condition. The events, on the other hand, should be idempotent, which is a unique consideration. And the master restarts any behavior that has not been marked as occurring or has failed in the database. These persistent behaviors are seen in Redo Logs.

Based approaching the desired make known

While the master attempts to make the cluster flesh and blood publicise, you will be encircled by more to in as per the intended freshen appendix, as the master persists in the desired own going in savings account to for of the cluster.



December 02, 2019

Top 20 PHP Interview Questions and Answers



Ques: 1) What is CAPTCHA?

Answer: 

CAPTCHA stands for Completely Automated Public Turing Test to tell Computers and Humans Apart. To prevent spammers from using bots to automatically fill out forms, CAPTCHA programmers will generate an image containing distorted images of a string of numbers and letters. Computers cannot determine what the numbers and letters are from the image but humans have great pattern recognition abilities and will be able to fairly accurately determine the string of numbers and letters. By entering the numbers and letters from the image in the validation field, the application can be fairly assured that there is a human client using it.

 

BlockChain interview Questions and Answers

 

Ques: 2) What is meant by urlencode() and urldecode()?

Answer:

string urlencode(str)

When str contains a string like this “hello world” and the return value will be URL encoded and can be use to append with URLs, normally used to append data for GET like someurl.com?var=hello%world

string urldocode(str)

This will simple decode the GET variable’s value. Example: echo (urldecode($_GET_VARS[var])) will output “hello world”

 

C language Interview Questions and Answers

 

Ques: 3) What is difference between mysql_fetch_array(), mysql_fetch_row() and mysql_fetch_object()?

Answer:

mysql_fetch_array - Fetch the all matching records of results.

mysql_fetch_object - Fetch the first single matching record of results.

mysql_fetch_row - fetches a result row as array.

 

C++ language Interview Questions and Answers

 

Ques: 4) What is difference between srand & shuffle?

Answer:

The srand function seeds the random number generator with seed and shuffle is used for shuffling the array values.

shuffle - This function shuffles (randomizes the order of the elements in) an array. This function assigns new keys for the elements in array. It will remove any existing keys you may have assigned, rather than just reordering the keys.

srand - Seed the random number generator

 

Machine Learning Interview Questions and Answers

 

Ques: 5) How do you capture audio/video in PHP?

Answer:

You need a module installed - FFMPEG. FFmpeg is a complete solution to record, convert and stream audio and video. It includes libavcodec, the leading audio/video codec library. FFmpeg is developed under Linux, but it can be compiled under most operating systems, including Windows.

 

MySQL Interview Questions and Answers

 

Ques: 6) What's the difference between COPY OF A FILE & MOVE_UPLOAD_FILE in file uploading?

Answer:

Move: This function checks to ensure that the file designated by filename is a valid upload file (meaning that it was uploaded via PHP's HTTP POST upload mechanism). If the file is valid, it will be moved to the filename given by destination.

If filename is not a valid upload file, then no action will occur, and move_uploaded_file() will return FALSE.

Copy: Makes a copy of a file. Returns TRUE if the copy succeeded, FALSE otherwise.

 

PowerShell Interview Questions and Answers

 

Ques: 7) What is the difference between echo and print?

Answer:

Main difference between echo() and print() is that echo is just an statement not a function and doesn't return's value or it just prints a value whereas print() is an function which prints a value and also it returns value.

We cannot pass arguments to echo since it is just a statement whereas print is a function and we can pass arguments to it and it returns true or false. print can be used as part of a more complex expression whereas echo cannot. echo is marginally faster since it doesn't set a return value.

 

Python Interview Questions and Answers

 

Ques: 8) What is the difference between require() and include()?

Answer:

Both of these constructs includes and evaluates the specific file. The two functions are identical in every way except how they handle failure. If filepath not found, require() terminates the program and gives fatal error, but include() does not terminate the program; It gives warning message and continues to program.

include() produces a Warning while require() results in a Fatal Error if the filepath is not correct.

 

Python Pandas Interview Questions and Answers


Ques: 9) How do we know properties of the browser?

Answer:

You can gather a lot of information about a person's computer by using $_SERVER['HTTP_USER_AGENT']. This can tell us more about the user's operating system, as well as their browser. For example I am revealed to be Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/418 (KHTML, like Gecko) Safari/417.9.3 when visiting a PHP page.

This can be useful to programmers if they are using special features that may not work for everyone, or if they want to get an idea of their target audience. This also is important when using the get_browser() function for finding out more information about the browser's capabilities. By having this information the user can be directed to a version of your site best suited to their browser.

get_browser() attempts to determine the capabilities of the user's browser. This is done by looking up the browser's information in the browscap.ini file.

echo $_SERVER['HTTP_USER_AGENT'] . "<hr />\n";

$browser = get_browser();

foreach ($browser as $name => $value)  { echo "<b>$name</b> $value <br />\n";

 }

 

SQL Server Interview Questions and Answers

 

Ques: 10) What is difference between require_once(), require(), include(). Because all these function are used to call a file in another file.

Answer:

Difference between require() and require_once(): require() includes and evaluates a specific file, while require_once() does that only if it has not been included before (on the same page).

So, require_once() is recommended to use when you want to include a file where you have a lot of functions for example. This way you make sure you don't include the file more times and you will not get the "function re-declared" error.

Difference between require() and include() is that require() produces a FATAL ERROR if the file you want to include is not found, while include() only produces a WARNING.

There is also include_once() which is the same as include(), but the difference between them is the same as the difference between require() and require_once().

 

Unix interview Questions and Answers

 

Ques: 11) What are the different types of errors in PHP?

Answer:

1. Notices: These are trivial, non-critical errors that PHP encounters while executing a script - for example, accessing a variable that has not yet been defined. By default, such errors are not displayed to the user at all - although you can change this default behavior.

2. Warnings: These are more serious errors - for example, attempting to include() a file which does not exist. By default, these errors are displayed to the user, but they do not result in script termination.

3. Fatal errors: These are critical errors - for example, instantiating an object of a non-existent class, or calling a non-existent function. These errors cause the immediate termination of the script, and PHP’s default behavior is to display them to the user when they take place.

 

C# Language Interview Questions and Answers

 

Ques: 12) How to Create a Cookie & destroy it in PHP?

Answer:

setcookie(”variable”,”value”,”time”);

variable - name of the cookie variable variable - value of the cookie variable time - expiry time

Example: setcookie(”test”,$i,time()+3600);

Test - cookie variable name

$i - value of the variable ‘Test’ time()+3600 - denotes that the cookie will expire after an one hour.

Destroy a cookie by specifying expiry time

Example: setcookie(”test”,$i,time()-3600); // already expired time

Reset a cookie by specifying its name only

setcookie(”test”);

 

CSS (Cascading Style Sheets ) Interview Questions and Answers

 

Ques: 13) What is the difference between the functions unlink and unset?

Answer:

unlink is a function for file system handling. It will simply delete the file in context. unset will set UNSET the specified variable.

unlink is used to delete a file. unset is used to destroy an earlier declared variable.

 

Robotic Process Automation(RPA) Interview Questions and Answers

 

Ques: 14) How do you know (status) whether the recipient of your mail had opened the mail i.e. read the mail?

Answer:

Embed an URL in a say 0-byte image tag may be the better way to go. In other word, you embed an invisible image on you html email and when the src URL is being rendered by the server, you can track whether your recipients have view the emails or not.

 

UX Design Interview Questions and Answers

 

Ques: 15) What is difference between mysql_connect and mysql_pconnect?

Answer:

mysql_connect opens up a database connection every time a page is loaded. mysql_pconnect opens up a connection, and keeps it open across multiple requests.

mysql_pconnect uses less resources, because it does not need to establish a database connection every time a page is loaded.

 

Docker Interview Questions and Answers

 

Ques: 16) What do you need to do to improve the performance (speedy execution) for the script you have written?

Answer:

If your script is to retrieve data from Database, you should use "Limit" syntax. Break down the non dynamic sections of website which need not be repeated over a period of time as include files.

 

Google Cloud Computing Interview Questions and Answers

 

Ques: 17) How do you insert single & double quotes in MySQL db without using PHP?

Answer: 

By using &amp; / &quote;

Alternately, escape single quote using forward slash \' . In double quote you don't need to escape quotes. Insert double quotes as "".

 

Azure Interview Questions and Answers

 

Ques: 18) What is the difference between strstr & stristr?

Answer:

For strstr, the syntax is: string strstr(string $string,string $str ); The function strstr will search $str in $string. If it finds the string means it will return string from where it finds the $str upto end of $string.

For Example:

$string = "http://yahoomail.com"; $str="yahoomail";

The output is "yahoomail.com". The main difference between strstr and stristr is of case sensitivity. The former consider the case difference and later ignore the case difference.

 

Linux Interview Questions and Answers

 

Ques: 19) What is the difference between explode and split?

Answer:

Split function splits string into array by regular expression. Explode splits a string into array by string.

For Example:

explode(" and", "India and Pakistan and Srilanka"); split(" :", "India : Pakistan : Srilanka");

Both of these functions will return an array that contains India, Pakistan, and Srilanka.

 

Data Science Interview Questions and Answers

 

Ques: 20) How can you avoid execution time out error while fetching record from MySQL?

Answer:

set_time_limit -- Limits the maximum execution time

For Example:

set_time_limit(0);

If you set to 0 you say that there is not limit.

 

Edge Computing Interview Questions and Answers

 


More Interview Questions and Answers:


Hadoop Technical Interview Questions and Answers

 

Hyperion Technical Interview Questions and Answers

 

Internet of Things (IOT) Interview Questions and Answers

 

C# Language Interview Questions and Answers