In this article, we provide 30 multiple-choice questions (MCQs) on SQL Server integration with other systems. The topics include Linked Servers, OPENQUERY, Power BI, JSON and XML data handling, and SQL Server Integration Services (SSIS). These questions are designed to test your knowledge and understanding of various integration techniques in SQL Server, essential for professionals in database administration and data analysis.
MCQs on SQL Server Integration with Other Systems
Linked Servers and OPENQUERY
What is the purpose of a Linked Server in SQL Server?
A) To connect SQL Server to a remote server
B) To store large amounts of data
C) To perform data backups
D) To enable SQL query execution within SQL Server
Which SQL Server command is used to query a linked server?
A) SELECT
B) OPENQUERY
C) EXECUTE
D) LINKQUERY
Which of the following is required to create a Linked Server in SQL Server?
A) Server credentials
B) IP address
C) SQL Server Management Studio
D) All of the above
What type of data can be accessed via OPENQUERY in SQL Server?
A) Local server data only
B) External data through a linked server
C) Data from an Excel file
D) Data from CSV files only
In SQL Server, what does the OPENQUERY function do?
A) Executes a pass-through query on the linked server
B) Opens a new query window in SSMS
C) Runs a query on the local server
D) Opens a connection to a new database
When using OPENQUERY, which of the following is true?
A) The query is processed by the local SQL Server
B) The query is processed by the remote linked server
C) OPENQUERY does not support SELECT statements
D) OPENQUERY cannot join remote and local data
Which of these is NOT a valid data provider for Linked Servers in SQL Server?
A) OLE DB
B) ODBC
C) SQLNCLI
D) API Connector
What happens if a Linked Server query fails?
A) The query is automatically rerun
B) An error message is returned
C) The query continues to run in the background
D) The SQL Server service is restarted
Integration with Power BI
What is Power BI used for?
A) Database management
B) Data visualization and reporting
C) Data mining
D) Database migration
Which feature allows Power BI to integrate with SQL Server?
A) SQL Server Management Studio
B) Power Query
C) Data Modeling
D) Power Pivot
In Power BI, which method is used to connect directly to SQL Server data?
A) ODBC connection
B) Power Query
C) Web API
D) DirectQuery
What is the recommended mode to use when integrating Power BI with large SQL Server datasets?
A) Import mode
B) DirectQuery mode
C) Hybrid mode
D) Scheduled refresh
When using DirectQuery in Power BI, which of the following is true?
A) Data is stored in Power BI
B) Queries are executed in real-time against SQL Server
C) Data refresh occurs every day
D) Data is aggregated in SQL Server
How does Power BI fetch data from SQL Server via DirectQuery?
A) By storing data in Power BI cloud
B) By executing queries directly on SQL Server
C) By importing data into Power BI
D) By generating reports offline
Which of these is necessary for Power BI to connect to SQL Server using DirectQuery?
A) A VPN connection
B) A local database instance
C) A supported version of SQL Server
D) A dedicated server for Power BI
Which of the following SQL Server features can be used to optimize queries for Power BI reports?
A) Indexed views
B) Data compression
C) Stored procedures
D) All of the above
Working with JSON and XML Data
In SQL Server, which function is used to query JSON data?
A) JSON_VALUE
B) XML_VALUE
C) JSON_QUERY
D) OPENJSON
How does SQL Server store JSON data?
A) As text data in VARCHAR columns
B) In a dedicated JSON column type
C) In XML format
D) As binary data in IMAGE columns
Which of the following is the correct method for parsing JSON data in SQL Server?
A) OPENJSON
B) SELECT JSON
C) JSON_XML
D) JSON_PARSE
How is XML data represented in SQL Server?
A) As a string in TEXT columns
B) In an XML column type
C) As binary large objects (BLOBs)
D) In a JSON format
Which SQL Server function can extract a specific value from XML data?
A) XML_VALUE
B) XML_QUERY
C) XML_NODE
D) XML_EXTRACT
How can you modify an XML document in SQL Server?
A) Using the XML_MODIFY function
B) By updating the XML column directly
C) Using the ALTER XML command
D) SQL Server does not support XML modification
Which of the following is a correct example of a JSON query in SQL Server?
A) SELECT JSON_PARSE(column)
B) SELECT JSON_VALUE(column, ‘key’)
C) SELECT XML_VALUE(column)
D) SELECT JSON_EXTRACT(column)
How is JSON data stored in SQL Server?
A) As a native JSON type
B) In NVARCHAR or VARCHAR columns
C) In a separate JSON table
D) In XML columns
SQL Server Integration Services (SSIS)
What is SQL Server Integration Services (SSIS) used for?
A) Database security management
B) Data extraction, transformation, and loading (ETL)
C) Data visualization
D) Data modeling
Which of the following is an SSIS package control flow task?
A) Data Flow Task
B) Execute SQL Task
C) FTP Task
D) All of the above
In SSIS, what is the primary function of the Data Flow Task?
A) To move data between different servers
B) To transform and load data
C) To execute SQL queries
D) To control workflow execution
Which of the following is NOT a valid SSIS component?
A) Data Flow Task
B) Data Conversion Transformation
C) Excel Task
D) Power Query Task
How can you schedule SSIS packages to run automatically?
A) Using SQL Server Agent
B) Manually within SSMS
C) Using Windows Task Scheduler
D) Both A and C
What is the default execution mode for SSIS packages?
A) Synchronous
B) Asynchronous
C) Batch
D) Streaming
Answer Key
Qno
Answer
1
A) To connect SQL Server to a remote server
2
B) OPENQUERY
3
D) All of the above
4
B) External data through a linked server
5
A) Executes a pass-through query on the linked server
6
B) The query is processed by the remote linked server
7
D) API Connector
8
B) An error message is returned
9
B) Data visualization and reporting
10
B) Power Query
11
B) Power Query
12
B) DirectQuery mode
13
B) Queries are executed in real-time against SQL Server
14
B) By executing queries directly on SQL Server
15
C) A supported version of SQL Server
16
D) All of the above
17
A) JSON_VALUE
18
A) As text data in VARCHAR columns
19
A) OPENJSON
20
B) In an XML column type
21
A) XML_VALUE
22
B) By updating the XML column directly
23
B) SELECT JSON_VALUE(column, ‘key’)
24
B) In NVARCHAR or VARCHAR columns
25
B) Data extraction, transformation, and loading (ETL)