You are on page 1of 8

Phòng: CNPM

ĐỀ THI NÂNG CV2 – phần chuyên môn


I. Trắc nghiệm
1. Which of the following is the GREATEST risk of an inadequate policy definition
for ownership of dataand systems?
A. User management coordination does not exist.
B. Specific user accountability cannot be established.
C. Unauthorized users may have access to originate, modify or delete data.
D. Audit recommendations may not be implemented.
2. When outsourcing credit card processing, who is accountable for the compliance
with regulatory requirements?
A. The outsourcing vendor is accountable.
B. Accountability is shared.
C. The client enterprise is accountable.
D. Accountability depends on the contract.
3. How does a security information and event management (SIEM) solution MOST
likely detect the existence of an advanced persistent threat (APT) in its
infrastructure?
A. Through analysis of the network traffic history
B. Through stateful inspection of firewall packets
C. Through identification of zero-day attacks
D. Through vulnerability assessments
4. An enterprise is implementing an information security program. During which
phase of the implementation should metrics be established to assess the
effectiveness of the program over time?
A. Testing
B. Initiation
C. Design
D. Development
5. The goal of IT risk analysis is to:
A. enable the alignment of IT risk management with enterprise risk management
(ERM).
B. enable the prioritization of risk responses.
C. satisfy legal and regulatory compliance requirements.
D. identify known threats and vulnerabilities to information assets.
6. Which of the following is the BEST reason to perform a risk assessment?
A. To satisfy regulatory requirements
B. To budget appropriately for needed controls
C. To analyze the effect on the business
D. To help determine the current state of risk
7. Trong SQL, làm thế nào để chọn tất cả các bản ghi từ bảng Persons với giá trị trong
cột FirstName bắt đầu bằng giá trị a:
A. Select * From Persons WHERE FirstName='%a%'
B. Select * From Persons WHERE FirstNameLIKE %
C. Select * From Persons WHERE FirstName=’a’
D. Select * From Persons WHERE FirstName='a%'
8. Trong SQL, làm thế nào để chọn tất cả các bản ghi từ bảng Persons với giá trị trong
cột FirsName là Perter và LastName là Jackson:
A. SELEC * FROM Persons WHERE FirstName LIKE ‘Peter” AND LastName
LIKE ‘Jackson’.
B. SELEC * FROM Persons WHERE FirstName=’Peter’ AND
LastName=’Jackson’.
C. SELECT FirstName=’Peter’, LastName=’Jackson’ FROM Persons
9. Trong SQL, làm thế nào để chọn tất cả các bản ghi từ bảng Persons với giá trị trong
cột FirstName được sắp xếp theo thứ tự bảng chữ cái nằm giữa (và bao gồm)
Hansen và Pettersen:
A. SELECT LastName>’Hansen’ AND LastName<’Pettersen’ FROM Persons.
B. SELECT * FROM Persons WHERE LastName BETWEEN ‘Hansen” AND
‘Pettersen’.
C. SELECT * FROM Persons WHERE LastName>’Hansen’ AND
LastName<’Pettersen’
10.Cú pháp SQL nào được dùng để trả về những giá trị khác nhau:
A. SELECT UNIQUE
B. SELECT INDENTITY
C. SELECT DIFFERENT.
D. SELECT DISTINCT
11.Làm thế nào để chuyển hóa Hansen thành Nilsen trong cột LastName của bảng
Persons:
A. UPDATE Persons SET LastName='Hansen' INTO LastName='Nilsen'
B. UPDATE Persons SET LastName='Nilsen' WHERE LastName='Hansen'
C. MODIFY Persons SET LastName='Hansen' INTO LastName='Nilsen'
D. MODIFY Persons SET LastName='Nilsen' WHERE LastName='Hansen'
12.Trong SQL, làm thế nào để xóa bản ghi Peter trong cột FirstName của bảng
Persons:
A. DELETE FROM Persons WHERE FirstName = ‘Peter’
B. DELETE ROW FirstName= ‘Peter’ FROM Persons
C. DELETE FirstName= ‘Peter’ FROM Persons
13.Your company manufactures and distributes bicycle parts. You have a full-text
catalog on the Inventory table which contains the PartName and Description
columns. You also use a full-text thesaurus to expand common bicycle terms. You
need to write a full-text query that will not only match the exact word in the search,
but also the meaning.
Which Transact-SQL statement should you use?
A. SELECT * FROM Inventory WHERE FREETEXT (*, 'cycle'))
B. SELECT * FROM Inventory WHERE CONTAINS (*, 'cycle')
C. SELECT * FROM Inventory WHERE Description LIKE '%cycle%'
D. SELECT * FROM Inventory WHERE CONTAINS (*,
'FormsOf(Inflectional, cycle)')
14.You need to capture and record a workload for analysis by the Database Engine
Tuning Advisor (DTA). Which tool should you use?
A. DTA utility
B. Activity Monitor
C. SQL Server Profiler
D. Performance Monitor
15.You administer a SQL Server database that contains a table name dbo.Sales, which
contains the following table definition:
CREATE TABLE [dbo].[Sales]( [SalesID] [int] IDENTITY(1,1) NOT NULL PRIMARY
KEY CLUSTERED, [OrderDate] [datetime] NOT NULL, [CustomerID] [int] NOT
NULL, [SalesPersonID] [int] NULL, [CommentDate] [date] NULL);
This table contains millions of orders. You run the following query to determine when
sales persons comment in the dbo.Sales table:
SELECT SalesID,CustomerID,SalesPersonID,CommentDate FROM dbo.Sales WHERE
CommentDate IS NOT NULL AND SalesPersonID IS NOT NULL;
Sql Server 2008 You discover that this query runs slow. After examining the data, you
find only 1% of rows have comment dates and the SalesPersonID is null on 10% of the
rows. You need to create an index to optimize the query. The index must conserve disk
space while optimizing your query. Which index should you create?
A. CREATE NONCLUSTERED INDEX idx1 ON dbo.Sales (CustomerID)
INCLUDE (CommentDate,SalesPersonID);
B. CREATE NONCLUSTERED INDEX idx1 ON dbo.Sales (SalesPersonID)
INCLUDE (CommentDate,CustomerID);
C. CREATE NONCLUSTERED INDEX idx1 ON dbo.Sales (CustomerID)
INCLUDE(CommentDate) WHERE SalesPersonID IS NOT NULL;
D. CREATE NONCLUSTERED INDEX idx1 ON dbo.Sales (CommentDate,
SalesPersonID) INCLUDE(CustomerID) WHERE CommentDate IS NOT
NULL;
16.You have been tasked with creating a table named dbo.Widgets. You need to insert
five rows into the dbo. Widgets table and return WidgetID for each of the five rows
that have been inserted. Which Transact-SQL batch should you use?
A. CREATE TABLE dbo.Widgets ( WidgetID INT IDENTITY PRIMARY
KEY, WidgetName VARCHAR (25)); GO INSERT dbo.Widgets
(WidgetName) OUTPUT inserted.WidgetID, inserted.WidgetName VALUES
('WidgetOne'),('WidgetTwo'),('WidgetThree'),('WidgetFour'),('WidgetFive');
B. CREATE TABLE dbo.Widgets ( WidgetID INT IDENTITY PRIMARY
KEY, WidgetName VARCHAR (25) ); GO INSERT dbo.Widgets
(WidgetName) VALUES ('WidgetOne'),('WidgetTwo'),('WidgetThree'),
('WidgetFour'),('WidgetFive'); SELECT SCOPE_IDENTITY();
C. CREATE TABLE dbo.Widgets ( WidgetID UNIQUEIDENTIFIER
PRIMARY KEY, WidgetName VARCHAR(25) ); GO INSERT dbo.Widgets
(WidgetName) VALUES ('WidgetOne'),('WidgetTwo'),('WidgetThree'),
('WidgetFour'),('WidgetFive'); SELECT SCOPE_IDENTITY();
D. CREATE TABLE dbo.Widgets ( WidgetID UNIQUEIDENTIFIER
PRIMARY KEY, WidgetName VARCHAR(25)); GO INSERT dbo.Widgets
(WidgetName) OUTPUT inserted.WidgetID, inserted.WidgetName VALUES
('WidgetOne'),('WidgetTwo'),('WidgetThree'),('WidgetFour'),('WidgetFive');
17.You have been tasked to delete a number of Database Mail messages that have been
sent. You need to delete all the emails that were sent more than one month ago.
Which Transact-SQL statements should you run?
A. DECLARE @OneMonthAgo datetime = DATEADD(mm,-1,GETDATE())
EXEC msdb.dbo.sysmail_delete_log_sp @OneMonthAgo
B. DECLARE @OneMonthAgo datetime = DATEADD(mm,-1,GETDATE())
EXEC msdb.dbo.sysmail_delete_mailitems_sp @OneMonthAgo
C. DECLARE @OneMonthAgo datetime = DATEADD(mm,-1,GETDATE())
EXEC msdb.dbo.sysmail_delete_log_sp @OneMonthAgo,'Success'
D. DECLARE @OneMonthAgo datetime = DATEADD(mm,-1,GETDATE())
EXEC msdb.dbo.sysmail_delete_mailitems_sp @OneMonthAgo,'Sent'
18.CREATE TRIGGER XY ON Inventory.XY FOR UPDATE,INSERT,DELETE
EXECUTE AS SELF
WebUser do INSERT statement on Inventory.XY table
Which USER will the trigger use?
A. DBO
B. WebUser
C. BuildUser
19.You have a column named TelephoneNumber that stores numbers as varchar(20).
You need to write a query that returns the first three characters of a telephone
number. Which expression should you use?
A. LEFT(TelephoneNumber, 3)
B. SUBSTRING(TelephoneNumber, 3, 3)
C. SUBSTRING (TelephoneNumber, 3, 1)
D. CHARINDEX('[0-9][0-9][0-9]', TelephoneNumber, 3)
20.You notice that a database server is responding slowly to queries. You run the
following dynamic management views (DMV) query on the server.
SELECT TOP (10) wait_type, wait_time_ms FROM sys.dm_os_wait_stats ORDER BY
wait_time_ms DESC;
The query returns a top wait type of SOS_SCHEDULER_YIELD.
You need to identify what is causing the server response issues. Which resource should
you investigate first?
A. Disk
B. CPU
C. Memory
D. Network
21.You need to create a stored procedure that accepts a table-valued parameter named
@Customers. Which code segment should you use?
A. CREATE PROCEDURE AddCustomers (@Customers varchar(max))
B. CREATE PROCEDURE AddCustomers (@Customers Customer
READONLY)
C. CREATE PROCEDURE AddCustomers (@Customers CustomerType
OUTPUT)
D. CREATE PROCEDURE ADDCUSTOMERS (@Customers varchar (max))
AS EXTERNAL NAME Customer.Add.NewCustomer
22.You administer a SQL Server database that contains a table name dbo.Sales, which
contains the following table definition:
CREATE TABLE [dbo].[Sales]( [SalesID] [int] IDENTITY(1,1) NOT NULL PRIMARY
KEY CLUSTERED, [OrderDate] [datetime] NOT NULL, [CustomerID] [int] NOT
NULL, [SalesPersonID] [int] NULL, [CommentDate] [date] NULL);
This table contains millions of orders. You run the following query to determine when
sales persons comment in the dbo.Sales table:
SELECT SalesID,CustomerID,SalesPersonID,CommentDate FROM dbo.Sales WHERE
CommentDate IS NOT NULL AND SalesPersonID IS NOT NULL;
You discover that this query runs slow. After examining the data, you find only 1% of
rows have comment dates and the SalesPersonID is null on 10% of the rows. You need to
create an index to optimize the query. The index must conserve disk space while
optimizing your query. Which index should you create?
A. CREATE NONCLUSTERED INDEX idx1 ON dbo.Sales (CustomerID)
INCLUDE (CommentDate,SalesPersonID);
B. CREATE NONCLUSTERED INDEX idx1 ON dbo.Sales (SalesPersonID)
INCLUDE (CommentDate,CustomerID);
C. CREATE NONCLUSTERED INDEX idx1 ON dbo.Sales (CustomerID)
INCLUDE(CommentDate) WHERE SalesPersonID IS NOT NULL;
D. CREATE NONCLUSTERED INDEX idx1 ON dbo.Sales (CommentDate,
SalesPersonID) INCLUDE(CustomerID) WHERE CommentDate IS NOT
NULL;
23.How do you explicitly kill a user session?
A.   Session.Close( )
B.   Session.Discard( )
C.   Session.Abandon
D.   Session.End
E.   Session.Exit
24.Select the control which does not have any visible interface.
A.   Datalist
B.   DropdownList
C.   Repeater
D.   Datagrid
 
25.Which one of the following namespaces contains the definition for
IdbConnection?
A.   System.Data.Interfaces
B.   System.Data.Common
C.   System.Data
D.   System.Data.Connection

26.You need to store state data that is accessible to any user who connects to your
Web application. Which object should you use?
A.  Session
B.  Application
C.  Response.Cookies
D.  Response.ViewState
 
27.Where is the default Session data is stored in ASP.Net?
A.   InProcess
B.   StateServer
C.   Session Object
D.   al of the above
28. ______________ element in the web.config file to run code using the
permissions of a specific user
A.  < credential> element
B.  < authentication> element
C.  < authorization> element
D.  < identity> element
29. Which method do you invoke on the Data Adapter control to load your
generated dataset?
A.   Fill( )
B.   ExecuteQuery( )
C.   Read( )

30.Select the caching type supported by ASP.Net


A.   Output Caching
B.   DataCaching
C.   a and b
D.   none of the above

II. Tự luận
1. Câu 1. Giải thích tại sao mô hình lôgíc lại đóng vai trò quan trọng trong phân tích hệ
thống?
 Các mô hình lôgíc loại bỏ tư tưởng thiên lệch do ảnh hưởng bởi cách thức cài đặt hệ
thống đã có hoặc ý kiến chủ quan của một người nào đó về cách cài đặt cho hệ thống. Do
đó, chúng khuyến khích tính sáng tạo.
 Các mô hình lôgíc làm giảm khả năng bỏ sót các yêu cầu nghiệp vụ trong trường hợp
con người bị chi phối quá nhiều vì các kết quả mang tính kỹ thuật. Nhờ việc tách biệt
những gì hệ thống phải làm với cách thức hệ thống thực hiện mà chúng ta có thể phân tích
tốt hơn các yêu cầu nhằm đảm bảo tính hoàn thiện, chính xác và nhất quán.
 Các mô hình lôgíc cho phép truyền đạt với người dùng cuối dưới dạng ngôn ngữ phi kỹ
thuật hoặc ít kỹ thuật hơn.
2. Câu 2. Quản lý xuất kho
Một công ty cần quản lý các thông tin về Vật tư, kho, khách hàng có dữ liệu ban đầu gồm:
Số chứng từ xuất vật tư hàng ngày, Ngày xuất, Diễn giải, Mã khách hàng, Tên khách hàng,
Địa chỉ khách hàng, Mã số thuế khách hàng, Chi tiết hàng xuất: (Mã hàng, chủng loại, Mô
tả, Đơn vị tính, Số lượng, Đơn giá), Kho, tên kho, địa điểm. Các thông tin này giúp cho
việc thống kê và làm báo cáo có thể thực hiện các công việc sau:
a. Tổng hợp những vật tư xuất trong một khoảng thời gian nhất định tại từng
kho và toàn đơn vị.
b. Tổng hợp các vật tư được cấp cho khách hàng trong 1 tháng.
c. Tìm kiếm vật tư mã vật tư đã xuất theo kho, theo chủng loại vật tư (vd : công
tơ, sứ, dầu biến áp...).
Yêu cầu: Thiết kế cơ sở dữ liệu để quản lý hoạt động này.

You might also like