Friday, 24 May 2024

Solution Architect QA

 interview-proPersonalised questions

Common questions

Commonly asked questions for your role

cross-icon

Q.

What are the different types of database indexes in RDBMS, and how would you choose the appropriate index type for a given scenario?

A.

Sample answer

In RDBMS, there are several types of database indexes that Solution Architects should be familiar with. These include clustered indexes, non-clustered indexes, unique indexes, and composite indexes. Clustered indexes determine the physical order of data in a table, which affects the order of data retrieval. Non-clustered indexes are separate structures that provide faster access to data based on specific columns. Unique indexes ensure that values in a particular column or combination of columns are unique. Composite indexes are created on multiple columns to improve query performance when filtering based on those columns. The key factor in choosing the appropriate index type for a given scenario is to analyze the query patterns and performance requirements. Clustered indexes work well for range-based queries, while non-clustered indexes are suitable for filtering and sorting. Unique indexes are beneficial for enforcing data uniqueness, and composite indexes are effective when filtering on multiple columns simultaneously. By considering the query workload and performance goals, Solution Architects can make informed decisions regarding index selection and optimize the overall system's performance.

footer-thumbs-upfooter-thumbs-down

Q.

What are the benefits of using an object-relational mapping (ORM) framework in solution architectures, and what considerations should be made when choosing one?

A.

Sample answer

Object-relational mapping (ORM) frameworks provide libraries and tools to map object-oriented code with relati...Read more

footer-thumbs-upfooter-thumbs-down

Q.

Can you explain how you have used SQL in your role as a Solution Architect?

A.

Sample answer

As a Solution Architect, SQL has been a crucial tool for working with relational databases and designing effic...Read more

footer-thumbs-upfooter-thumbs-down

Q.

How have you utilized Linux in your role as a Solution Architect?

A.

Sample answer

Linux has been a fundamental component of my role as a Solution Architect. I have extensive experience working...Read more

footer-thumbs-upfooter-thumbs-down

Q.

How would you design a CI/CD pipeline for a Java application that uses Git for version control and deploys to AWS using Jenkins?

A.

Sample answer

To design a CI/CD pipeline for a Java application that uses Git for version control and deploys to AWS using J...Read more

footer-thumbs-upfooter-thumbs-down

Q.

How have you utilized Python in your role as a Solution Architect?

A.

Sample answer

Python has been a valuable tool in my role as a Solution Architect. I have used Python to automate repetitive ...Read more

footer-thumbs-upfooter-thumbs-down

Q.

Discuss the role of relational database management systems (RDBMS) in supporting complex data modeling requirements.

A.

Sample answer

Relational database management systems (RDBMS) play a crucial role in supporting complex data modeling require...Read more

footer-thumbs-upfooter-thumbs-down

Q.

How would you automate the deployment of a Spring Boot application to an AWS Elastic Beanstalk environment using Jenkins?

A.

Sample answer

To automate the deployment of a Spring Boot application to an AWS Elastic Beanstalk environment using Jenkins,...Read more

footer-thumbs-upfooter-thumbs-down

Q.

How would you ensure data security in an RDBMS solution architecture?

A.

Sample answer

As a Solution Architect, ensuring data security in an RDBMS solution architecture is vital. There are several ...Read more

footer-thumbs-upfooter-thumbs-down

Q.

Explain the concept of relational database management system (RDBMS) and how it is used in solution architecture.

A.

Sample answer

As a Solution Architect, one of the key skills is understanding RDBMS concepts and utilizing them in solution ...Read more

footer-thumbs-upfooter-thumbs-down

Q.

How have you utilized Git in your role as a Solution Architect?

A.

Sample answer

Git has been an essential version control system in my role as a Solution Architect. I have used Git to manage...Read more

footer-thumbs-upfooter-thumbs-down

Q.

What are the common challenges faced by Solution Architects in relation to database management and how do you address them?

A.

Sample answer

As a Solution Architect, there are several common challenges related to database management that need to be ad...Read more

footer-thumbs-upfooter-thumbs-down

Q.

How would you deploy and manage a Java application in a Kubernetes cluster using Jenkins and Helm?

A.

Sample answer

To deploy and manage a Java application in a Kubernetes cluster using Jenkins and Helm, you can follow these s...Read more

footer-thumbs-upfooter-thumbs-down

Q.

Explain the role of database transactions in ensuring data consistency and integrity in solution architectures.

A.

Sample answer

Database transactions play a vital role in solution architectures by ensuring data consistency and integrity. ...Read more

footer-thumbs-upfooter-thumbs-down

Q.

Can you provide an example of how you have utilized Ansible in your previous projects? How does it contribute to solution architecture?

A.

Sample answer

In my previous projects, I have extensively utilized Ansible for configuration management and infrastructure a...Read more

footer-thumbs-upfooter-thumbs-down

Q.

Discuss the concept of database sharding and its relevance in large-scale solution architectures.

A.

Sample answer

Database sharding is a technique used in large-scale solution architectures to horizontally partition data acr...Read more

footer-thumbs-upfooter-thumbs-down

Q.

How would you ensure high availability and fault tolerance in a CI/CD pipeline for a cloud-based microservices architecture?

A.

Sample answer

To ensure high availability and fault tolerance in a CI/CD pipeline for a cloud-based microservices architectu...Read more

footer-thumbs-upfooter-thumbs-down

Q.

Can you explain the importance of requirement gathering in the role of a Solution Architect?

A.

Sample answer

Requirement gathering is a crucial aspect of a Solution Architect's role. In order to design a robust and effe...Read more

footer-thumbs-upfooter-thumbs-down

Q.

How have you utilized Kubernetes in your previous projects? How does it contribute to solution architecture?

A.

Sample answer

In my previous projects, I have extensively used Kubernetes for container orchestration and managing scalable ...Read more

footer-thumbs-upfooter-thumbs-down

Q.

How would you design and implement a CI/CD pipeline for a JavaScript-based web application using Jenkins, Git, and AWS S3?

A.

Sample answer


To design and implement a CI/CD pipeline for a JavaScript-based web application using Jenkins, Git, and AWS S3...Read more

Tuesday, 12 September 2023

AA Test Challenge AA360 RPA Challenge | XPATH Manipulation for Dynamic Web Page - Automation Anywhere A2019

 watch full video to learn get value from dynamic website using xpath

https://www.youtube.com/watch?v=oySEjR1cdYA&t=1630s



AA Assessment Preparation

 https://www.youtube.com/watch?v=VJGWjMwqVLg&list=PLwWoMnMnFx2T0A429bsPQoiA49kjUkltK

watch complete video

https://www.youtube.com/watch?v=AV9gRop2nxs&list=PLwWoMnMnFx2SvxWpAQJT4triel5eKDfbR&index=5



Prepare AA from https://www.youtube.com/@aibrahma1150/playlists




Novatiosolutions AA Assessment



 1-Read Input data from Excel (Gender Name set, Country)


2-Open the browser url (https://www.fakenamegenerator.com/gen-female-en-za.php)

3-Set Gender, Nameset & Country value in Website 

                                    




4-Click on Generate Button  after screen refresh 
5-capture value from webpage 




6-then set value in excel cell for above value


=============Question 2=====================

Q=Format string A@B@@C@@@D@@@ like A,B,C,D

how you will do it

Ans =Replace string @ to ,

then replace comma to single comma


2nd Methode

we can use loop to with single replace replace 

3rd Methode 

we can use regex


==========Question3=============

Q=use of try catch finally

Q= whats the use of throw



Friday, 8 September 2023

Interview R1RCM -AA360


R1 RCM Interview Question

-----------------------------------

1-short Introduction

2-Roles and responsibility

3-Education completed year

4-AA 360 Development question

5-Datetime command in AA360

6-how we can get date difference in AA

7-without another script or language?

8-Knowledge of Database

9 Can we use Excel as DB

10-how we can Excel as DB

11-can we perform select Insert update delete in Excel using SQL query

12-how we can call script

13-you have knowledge of script language 

14- Which script language you have used?

15. How many variables we can use to call the script

16-how to retrieve variables from the script

17-In Databse what is consistency? 

18-where you use? consistency

19-how you can define an input-output variable in AA

20-what is the public and private mode in AA

21-can we see changes in Public mode

22-what is a credential vault?

23-how many variable type in credential

24-consumed* who are credential consumer


Here’s a structured answer guide for your interview questions related to Automation Anywhere A360, scripting, Excel as a DB, variables, and database concepts:


1. Short Introduction

I’m Rakesh Kumar, an RPA professional with over 9 years of experience, specializing in Automation Anywhere A360. I have delivered automation solutions in healthcare, BFSI, and life sciences domains, working with both Indian and international clients.


2. Roles and Responsibilities

  • Requirement gathering and feasibility analysis

  • Design and development of bots using AA360

  • Handling exception management and reusable components

  • Integration with APIs, databases, and Excel

  • Deployment and maintenance

  • Mentoring junior developers and ensuring best practices


3. Education Completed Year

  • B.Tech in 2009

  • MCA in 2012


🔹 Automation Anywhere A360 Technical Questions

4. AA360 Development Question

Q: How do you handle error logging in bots?
A: I use Try-Catch blocks, custom error handler sub-bots, and capture screenshots. Errors are logged with metadata like timestamp, bot name, line number, and exception message.


5. DateTime Command in AA360

The DateTime package provides actions like:

  • Get current date/time

  • Format date/time

  • Add/Subtract time

  • Calculate difference between two dates

  • Convert date strings to DateTime object


6. How to Get Date Difference in AA?

Use the “Calculate Date/Time Difference” action in the DateTime package.
Input: Start Date, End Date, Unit (Days, Hours, etc.)
Output: Stores difference in a variable.


7. Without Another Script or Language?

Yes, this is natively supported using DateTime commands — no external scripting is needed.


🔹 Database and Excel Knowledge

8. Knowledge of Database

Yes, I have hands-on experience with SQL Server, MySQL, and using Excel as a data source in AA360. I write queries for CRUD operations and use stored procedures as well.


9. Can We Use Excel as a DB?

Yes, using Database package with OLEDB/ODBC connection, Excel can be treated as a database.


10. How We Can Use Excel as DB?

  • Use ODBC DSN or OLEDB connection string

  • Connect via Database: Connect

  • Use SQL queries like SELECT * FROM [Sheet1$]


11. Can We Perform SELECT, INSERT, UPDATE, DELETE in Excel Using SQL Query?

Yes, but:

  • SELECT and INSERT work well

  • UPDATE and DELETE have limited support depending on driver and Excel version

  • All operations must refer to the sheet name with $


🔹 Scripting and Variables

12. How We Can Call Script

Use Run Script command in Script package, or call a Python, VBScript, or JavaScript via the Execute Script command.


13. Knowledge of Script Language?

Yes, I’ve used JavaScript, Python, and VBScript inside AA bots.


14. Which Script Language You Have Used?

Primarily JavaScript and Python to handle string manipulation, file operations, or complex logic.


15. How Many Variables We Can Use to Call the Script?

You can pass multiple input variables using the "Input Parameters" section. No fixed limit but practical usage depends on script and memory.


16. How to Retrieve Variables from the Script

You can return values using the “Output variable” option in script execution. The return value of the script is captured into a bot variable.


🔹 Database Theory

17. What is Consistency in Database?

Consistency means data integrity is maintained after any transaction. It ensures that all rules (constraints, relations) are preserved.


18. Where You Use Consistency?

Consistency is crucial in transaction management, for example when inserting records across multiple related tables. Also used in bot data validations before performing DB insert/update.


🔹 AA360 Variables & Security

19. How You Can Define an Input-Output Variable in AA?

  • In sub-bots, define input/output variables in “Bot Variables” section

  • Mark the variable as Input or Output based on data flow


20. What is the Public and Private Mode in AA?

  • Public: Variables are visible in the recorder and logs

  • Private: Values are masked (like passwords), useful for secure data handling


21. Can We See Changes in Public Mode?

Yes, public variables’ values can be logged and seen in debug output and log files.


22. What is a Credential Vault?

A secure repository in AA360 used to store and manage sensitive data like usernames and passwords. Access controlled via Roles and Policies.


23. How Many Variable Types in Credential?

Credential vault supports:

  • Username

  • Password

  • Key-value pairs


24. Consumed Who Are Credential Consumers?*

Credential consumers are bots or bot runners/users who use credentials stored in the vault. Permissions are controlled by the credential locker policy.



Wednesday, 9 May 2018

SQL Server Interview Questions

SQL SERVER INTERVIEW QUESTIONS – If you are looking for SQL Interview Questions, here is the comprehensive list from basic to most advanced SQL server interview questions for 2+, 3+, 4+, 5+ years of experienced professionals.

SQL Server Interview Questions

This list also includes concept based SQL interview questions on different topics in SQL.

General Relational DBMS Interview Questions

Q) What is a candidate key?
Q) What are alternate keys?
Q) What is a primary key?
Q) What is the difference between a primary key and a unique key? Are they the same?
Q) What is referential integrity?
Q) What is an Entity-Relationship Diagram (ERD)?
Q) What is a subquery?
Q) What is a correlated subquery?
Q) How do you use a subquery to find records that exist in one table and do not exist in another?
Q) What does it mean to normalize a database and why would you do it?
Q) What is denormalization?

Design and Programming Interview Questions

 Q) How can I detect whether a given connection is blocked?
Q) How would you design a database for an online site, which would average a million hits a day?
Q) You are testing the performance of a query The first time you run the query, the performance is slow  The second time you run the query, the performance is fast  Why is this?
Q) What you can do to remove data from the cache and query plans from memory for testing the performance of a query repeatedly?
Q) What is wrong in the following SQL statement?
Q) Write the fastest query to find out how many rows exist in a table
Q) The COUNT() function always returns a int value type What should you do if you need to count rows from a query which you know will return a value that is too large for an int value type?
Q) What is a derived table?
Q) You have a table with three columns: Amount1, Amount2, and Amount3 In a single row only one of these three columns will have a value and the other two will be null  Write a SQL query to retrieve the values from these columns
Q) How can you fix a poorly performing query?
Q) What is the physical representation for a many-to-many relationship?
Q) What is the maximum length of an extended property?
Q) In which database can extended stored procedures be added?
Q) Why does this query return 0?
Q) If a column is an image value type, how you can compare column values? How can you use this column in join clause?
Q) Which data type cannot be used as a parameter in a UDF?
Q) Which four data types cannot be used as a return type from a user-defined function?
Q) Can an extended stored procedure be called from inside a user-defined function?
Q) How you can make a parameterized view?
Q) How long can an Error message be in RAISEERROR function?
Q) What are the constraints on severity level in RAISEERROR?
Q) How can you log an error to the server event log from a stored procedure?
Q) Explain the Rollup operator
Q) Explain the Cube operator
Q) What is an application role and explain a scenario when you would use one?
Q) On Friday, you issued several INSERT statements using Query Analyzer. You then verified the data had been correctly entered with a SELECT statement  On Monday, your users report that the data is not there  What happened?
Q) You have two tables with a one to many join based on a field named ID. You need to find records in the parent table that are not represented in the child table  How would you accomplish this?

SQL Interview Questions For Experienced

Q) Give an example of why you would want to denormalize a database
Q) Explain extended properties
Q) You have couple of stored procedures that depend on a table You dropped the table and recreated it  What do you have to do to reestablish those stored procedure dependencies?
Q) How can you append an identity column to a temporary table?
Q) You schedule a job to run every minute What will happen if the first job runs more than 1 min? Will the second instance of the job start?
Q) Why should you use or avoid SELECT * … statements?
Q) What is wrong with this statement?
Q) You have several tables, and they are joined together for querying. The tables contain both clustered indexes and non clustered indexes  To optimize performance, how should you distribute the tables and their indexes onto different file groups?
Q) Which event (Check constraints, Foreign Key, Rule, Trigger, Primary key check) will be performed last for an integrity check?
Q) What is the fastest way to permanently delete a 1 million row table named customers?
Q) After removing a table from database, what other related objects have to be dropped explicitly?
Q) You want to check the syntax of a complicated Update SQL statement without executing it. What command should you use?
Q) You are the database developer for a leasing company. Your leasing database includes a lease table that has a column which keeps Social security numbers  Each SSN must be unique  You want the data to be physically stored in order by SSN  What constraint should you add to the SSN column on the lease table?Q) You are designing a database for your company Your Company has 10 departments and each
Q) You are designing a database for your company Your Company has 10 departments and each department has between 25 to 100 employees  Each employee may work for one or more departments  How can you represent this relationship in your ERD (entity relationship diagram)?
Q) Mary’s company is a research company that does experiments Mary’s company database includes an Experiment table  The Experiments table stores all the Experiments and their ID  There is also a Project table, which keeps all the Projects with their ID  How should the database be designed, so that an experiment cannot be repeated in a Project, but a single experiment can belong to more than one Project?
Q) John exports information periodically from a Microsoft SQL Server database to an Oracle Database  What is the best way to do this?
Q) You are designing a database for your human resources department In the employee table, there is a field for Social Security Number, which cannot contain NULL values  If no value is given, you want a value of UNKNOWN to be inserted in this field  What is the best approach?
Q) Is it true that rules do not apply to data already existing in a database at the time the rule is created?
Q) Is it true, that there is no difference between a rule and a check constraint?
Q) Can a rule be bound to any column of any data type?
Q) You are responsible for designing the physical architecture of an OLTP system. You have two tables TableA and TableB that will be joined together by several queries  You need good reliability and high performance for these queries  What should you do?Q) What is RAID, and how it can influence database performance?
Q) What is RAID, and how it can influence database performance?
Q) You work at the corporate office of a Fortune 500 company that has regional offices in 100 countries  Each regional office maintains its own customer table  This information needs to be brought to the corporate office and merged, to do some analysis for the marketing department  The marketing department also needs to uniquely identify each customer  How should you design the customer table?
Q) Explain the DBCC PINTABLE command When would you use it?
Q) You have to design a database for a manufacturing plant Among other things, this database maintains the attendance of the workshop employees who work in 3 shifts  The Attendance table should have a field named ‘Shift’, which stores the shift that the employee worked  The Workshop supervisor should be able to input only 1, 2 or 3 in this field  What is the best design, to implement this requirement?

SQL Interview Questions For 5+ Years Experienced

Q) What is a transaction and why is it important?
Q) What is deadlock?
Q) What is a livelock?
Q) How you can minimize the deadlock situation?
Q) What is the importance of concurrency control?
Q) Define Joins
Q) What is an outer join?
Q) Define a cross join?
Q) How you can change a cross join into an inner join?
Q) Define constraints and give an example of their use?
Q) Write a SQL Query to sort on different column name according to the parameters passed in the Function?
Q) What is the downside of using UDF?
Q) You have a stored procedure, which execute a lengthy batch job. This stored procedure is called from a trigger  You do not want to slow the data entry process  You do not want trigger to wait for this batch job to finish before it completes itself  What you can do to speed up the process?
Q) Write a SQL Query to delete duplicate records from a table called TABLE1
Q) What is an index?
Q) What is the preferred way to create a clustered and non-clustered index? Which index should you create first the clustered or non-clustered?
Q) Can a unique index be created on a column, which contains NULL?
Q) How would you choose between a clustered and a non-clustered index?
Q) Your table has a large character field There are queries that use this field in their search clause What should you do?
Q) What is a fill factor?
Q) When you should use a low fill factor?
Q) What are statistics?
Q) What is clustering?
Q) What is the difference between DBCC INDEXDEFRAG and DBCC REINDEX?
Q) How you can find out if an index is useful to the optimizer?
Q) Where are full-text indexes stored?
Q) How many full-text indexes can a table have?
Q) Indexes are updated automatically Is the full-text index also updated automatically?
Q) How is a full-text index updated?
Q) Can you force a query to use a specific Index?
Q) Which data type columns are the best candidates for full-text indexing?
Q) When would you prefer to have a minimum number of indexes?
Q) You created a table as follows
How you would rewrite the SQL Query to return the CUSTOMERID sorted numerically?
Q) Why is there a performance difference between two similar queries where one uses UNION and the other uses UNION ALL?
Q) You have a table ‘test’ which is a copy of northwind employee table You have written a trigger to update the field ‘HireDate’ with the current date
Q) What is the difference between OPENROWSET and OPENQUERY?
Q) How you can add messages to the NT event log from within a stored procedure?
Q) What are three ways you can use an identity value inside a trigger? Why would you prefer one way over another?

SQL Server View Interview Questions

Q) List some of the rules that apply to creating and using a ‘view’
Q) You added a row to a view, but the row is not shown on the view. Explain how this can happen, and how you can remedy the situation
Q) Can an ORDER BY clause be used in a creation of a view?
Q) ‘Order by’ is not allowed in a view How can you sort information from a view?
Q) What is a derived Table?
Q) What are Information Schema Views?
Q) What is a partitioned view?
Q) What is an Indexed View?

SQL Server Administration Interview Questions

 Q) How you can get a list of all the table constraints in a database?
Q) How you can get the list of largest tables in a database?
Q) How you can move data or databases between servers and databases in SQL Server?
Q) If no size is defined while creating the database, what size will the database have?
Q) Can a database be shrunk with users active?
As a general practice, it is recommended to have dbo be the owner of all database objects However, in your database you find number of tables owned by a user other than dbo, how could you fix this?
Q) Why does a SQL statement work correctly outside of a user-defined function, but incorrectly inside it?
Q) Can a table be moved to different Filegroup?
Q) Can a database be shrunk to 0 Bytes, if not, why?
Q) What does the Automatic recovery do?
Q) Can an automatic recovery be initiated by a user?
Q) What is the primary use of the model database?
Q) What information is maintained within the msdb database?
Q) What stored procedure can you use to display the current processes?
Q) What stored procedure would you use to view lock information?
Q) How can a database be repaired?
Q) How can you find out if the current user is a member of the specified Microsoft® Windows NT® group or Microsoft SQL Server™ role?
Q) Your SQL Server is running out of disk space. You notice that there are several large files with LDF extensions  What are these files?
Q) You notice that the transaction log on one of your databases is over 4GB The size of the data file is 2MB  What could cause this situation, and how can you fix it?
Q) You accidentally delete the MSDB database What effect does this have on your existing SQL databases, and how do you recover?
Q) Where can you add custom error messages to SQL Server?
Q) Is it important for a Database Administrator to understand the operating system and file access?
Q) What is the difference between writing data to mirrored drives versus RAID5 drives
Q) In the physical file layout, where should the transaction log be stored in relation to the data file?
Q) You have separate development and production systems You want to move a copy of a development database into production  To do this, you do a backup on the development system and restore to the production system  After a few minutes, you begin getting calls from several customers saying that they are denied access to the system  Why?
Q) What is a mixed extent?
Q) You have a table with close to 100 million records Recently, a huge amount of this data was updated  Now, various queries against this table have slowed down considerably  What is the quickest option to remedy the situation?
Q) How can you check the level of fragmentation on a table?
Q) You have developed an application which uses many stored procedures and triggers to update various tables  Users ocassionally get locking problems  Which tool is best suited to help you diagnose the problem?
Q) Which table keeps the locking information?
Q) You want to be sure that queries in a database always execute at the maximum possible speed. To achieve this goal you have created various indexes on tables  Which other statement will keep the database in good condition?

Advanced SQL Server Interview Questions

Q) During a recent migration project, John inserted 10,000 records in a table that has an Identity Column called ticketID, which automatically increases by 1 each time a record is inserted in the table  A month after the database went live; John noticed that record with ticketID 5123 has some incorrect information  So John deletes this record and decides to re-insert this record in the table  He wants to re-use the ticketID 5123  He needs to achieve this while the database is in production  What should he do?
Q) Jenny wants to export data to Pivot table in Excel spreadsheet from a table in SQL Server This data changes frequently  She wants to automate the process of updating the Excel spreadsheet using the SQL Job Scheduler  What tool is the best choice for the task?
Q) You have written an application in VB which uses SQL 7 for its database You have used many stored procedure and triggers to make your application fast  However, users complain that saving records take too much time  To rectify the problem, you start the profiler and create a trace using the trace wizard  How would you go about identifying the cause of the problem?
Q) You have a table with employee information that rarely changes However this table is used from many applications in the organization to validate the data and to produce reports  What would be the optimal fill factor to choose for indexes created on this table?
Q) What is the difference between a fill factor of 100 and 0?
Q) How will you know when statistics on a table are obsolete?
Q) Explain different backup plans
Q) What is a full backup?
Q) Explain a differential backup
Q) Explain an incremental backup
Q) What is Log shipping?
Q) Every night you run a full backup After every 3 three hours you make a differential backup  Every hour you make an incremental backup  In a worst-case scenario, how much work you can lose?
Q) Explain a Checkpoint?
Q) Explain an Automatic Checkpoint
Q) How you can list all the tables in a database?
Q) How can you list all the columns in a database?
Q) How can you list all the table constraints in a database?
Q) What are the advantages DTS has over bcp?
Q) How do you rebuild an identity column?
Q) Create a DTS package to produce a text file using the ‘UPDATE STATISTICS’ command for the tables in a database with obsolete statistics.
Q) How can you transfer data from a text file to a database table? Or how can you export data from a table to a comma delimited (CSV) file? Or how can you import data from MS Access to a table in a database? Or how can you export data from a table to an Excel file?
Q) When does the auto update index statistics feature in SQL server turn itself on?Q) What specific conditions database should meet, before you can Bulk copy data into it using BCP
Q) What specific conditions database should meet, before you can Bulk copy data into it using BCP

SQL Server Replication Interview Questions

 Q) What is database replication? What are the different types of replication you can set up in SQL Server?
Q) Which database stores information about replication?
Q) Your company has 50 branches all over the country All the branches, including the Head Office have SQL Server as the database  Every night all 50 branches upload certain information to the Head Office  Which Replication topology is best suited for the above scenario?
Q) Which of the following option(s) is(are) an inappropriate usage of merge replication: a company time sheet database, a static look up table, a high transaction based application that requires real time replication to subscribers or a company information price list that is updated at remote sites and replicated to a central databaseQ) What are the restraints imposed on the table design by a Merge Replication?
Q) What are the restraints imposed on the table design by a Merge Replication? 

SQL Server Security Interview Questions

 Q) A user is a member of the Public role and the Sales role  The Public role has select permission on all the tables  The Sales role does not have select permission on some of the tables  Will the user be able to select from all tables?
Q) If a user does not have permission to a table, but has permission to a view created on it, will he be able to view the data in table?
Q) Tony works in the Sales Department and has created a table named OrderDetail for the Sales department  You write a stored procedure which will help Mark, a sales representative, update the OrderDetail table  However, when Mark uses the stored procedure he gets an error  You realize that this is a security issue  What is required to enable Mark to use your stored procedure?

SQL Transactions Interview Questions

 Q) Define Concurrency Control
Q) What is Pessimistic Concurrency Control?
Q) What is Optimistic Concurrency Control?
Q) Explain Isolation levels
Q) What is the difference between the REPEATABLE READ and SERIALIZABLE isolation levels?
Q) What is the default isolation level in SQL server?
Q) What is the most restrictive isolation level?
Q) What is the least restrictive isolation level?
Q) How do you determine the current isolation level?
Q) What are the conditions an underlying table must satisfy before a cursor can be used by a positioned UPDATE or DELETE statement?
Q) Explain Locks
Q) Explain Lock escalation
Q) Under what condition it is possible to have a page level lock and row lock at the same time for a query?
Q) Explain how to use transactions efficiently

SQL Triggers Interview Questions

 Q) What you can do to delete a table without the delete trigger firing?
Q) Other than Truncate statement, which other command can by-pass the trigger on the tables?
Q) What are the differences between Triggers and Stored Procedures?
Q) Is this statement true: A trigger can reference objects outside the current database?
Q) Can a trigger be created on a view?
Q) Will the WRITETEXT statement activate a trigger?
Q) Can a table be created inside a Trigger?
Q) When should you use an INSTEAD OF trigger?
Q) Can the “If Update (colName)” statement be used in a delete trigger? 

Stored Procedures Interview Questions

 Q) Why should one not prefix user stored procedures with ‘sp_’?
Q) What are the results of running this script?
Q) Which table keeps information about Stored Procedures?
Q) What will be the value of @@FETCH_STATUS if a row that was a part of the cursor resultset has been deleted from the database after the time the stored procedure that opened the cursor was executed?Q) Why and when do stored procedure recompile?
Q) Why and when do stored procedure recompile?
Q) How can you find out which stored procedures are recompiling?
Q) How can you stop stored procedures from recompiling?

SQL CURSORS INTERVIEW QUESTIONS

 Q) How many types of cursor type are there?
Q) What is the difference between insensitive and scroll cursor?
Q) If a table does not have a unique index, can a cursor be opened on it?
Q) Can a cursor be updated? If yes, how you can protect which columns are updated?
Q) While using a cursor, how can you differentiate between a deleted row and a row that has been inserted with NULL data values?

Concept-Based SQL Interview Questions

Q) How can you know if the row fetched from cursor is still valid in underlying table?
Q) How can you find out how many rows returned in a cursor?
Q) What does it mean if @@CURSOR_ROW returns a negative number?
Q) How can you set the threshold at which SQL Server will generate keysets asynchronously?
Q) What is the difference between Deallocate cursor and Close cursor?
Q) Define Cursor Locking

SQL Server Datatypes Interview Questions

Q) Between Cast and Convert which function would you prefer and why?
Q) What are the new data types are introduced in SQL 2000?
Q) Why it is recommended to avoid referencing a floating point column in the WHERE clause?
Q) You have to store user responses of ‘Yes’ and ‘No’ What kind of data type is best suited for this task?
Q) What is the Exact Numeric data type in SQL?
Q) Explain timestamp datatype?
Q) How can a user-defined datatype be created?
Q) What are the approximate numeric data types?
Q) You are creating an application where Users are asked their gender In the gender combo box you have three options: ‘Male’ , ‘Female’ and ‘I choose not to disclose’  These options are stored in the table as 1, 0 or NULL  Which datatype should you use?
Q) Which data types generate inaccurate results if used with an = or <> comparison in a WHERE clause of a SQL statement?
Q) Beginning with SQL Server Version 7 0, a new enhanced data type nchar was added What type of data is supported with this data type?
Q) What will happen if a column containing char type data is changed to the nchar data type?
Q) To automatically record the time on which the data was modified in a table, which data type should you choose for the column?

XML in SQL Server Interview Questions

 Q) What is XDR?
Q) What is the difference between FOR AUTO and FOR NESTED?
Q) What is the difference between FOR XML RAW and FOR XML AUTO?
Q)Explain FOR XML EXPLICIT Mode?
Q) Using the Customer, and Order table in Northwind database, Please write a query to produce XML?
Q) What is XML Schema?
Q) What is mapping schema?
Q) You have a table ‘customers’ , which has three fields, Address, CustomerID and ContactName You would like to retrieve rows as follows:
Q) What is XPath?
Q) What keyword you will use to get schema appended to the result set of a ‘for XML’ query?
 Q) Explain Active/Passive and Active/Active cluster configurations?

Angular 2 Interview Questions

1. What are the possible ways to bind component properties to an associated template?
2. What kind of classes can you import (meta) in an angular module?
3. What are template reference variables and how are they different from variables in classes?
4. How do you define optional fields in a TypeScript class?
5. Why are components not marked with @injectable annotation, but services need to be?
6. What’s the difference between for..in and for..of?
7. How does the event emitter work in Angular 2? Explain it with pseudo code.
8. Why do we need provider aliases? And how do you create one?
9. What's the difference between a TypeScript class and an interface?
10. What's the expression context in Angular 2? Explain it with an example.
11. What are a few subclasses of @Injectable?
12. What are HTML attributes and DOM properties; and how are they related?
13. What is the NgForTrackBy directive?
14. How do you resolve a template URL relative to a Component class?
15. How do you use a JavaScript (Non TypeScript) third party lib in an Angular 2 App?
16. Can we create two Components with the same name in two different .ts files?
17. What types of pipes are supported in Angular 2?
18. How would you intercept 404 errors in Angular 2?
19. What's the difference between RouterModule.forChild and RouterModule.forRoot?
20. How do you create and show pop-up windows in Angular 2?
21. Can we import a module twice?
22. Can you re-export classes and modules?
23. How to make sure that single instance will be used in an entire application?
24. How can you connect to remotely deployed backed while in development?
25. What’s the difference between a promise and Observable?
26. What are different kinds of directives supported in Angular 2?
27. How do you reference the host of a component?

Saturday, 16 December 2017

Difference Between ViewResult() and ActionResult() in MVC?

Difference Between ViewResult() and ActionResult() in MVC?


“ActionResult is an abstract parent class from which ViewResult class has been derived”.