CET_TARDE - MTA Database - DIAGNOSTIC1

Beschreibung

Database Quizzes preparing certified
Hawerth Castro
Quiz von Hawerth Castro, aktualisiert more than 1 year ago
Hawerth Castro
Erstellt von Hawerth Castro vor mehr als 7 Jahre
57
0

Zusammenfassung der Ressource

Frage 1

Frage
John works as a Database Administrator for Bluewell Inc. The company has a SQL Server database. A table in the database has a candidate key and an attribute that is not a constituent of the candidate key. The non-key attribute depends upon the whole of the candidate key rather than just a part of it. Which of the following normal forms is represented in the scenario?
Antworten
  • 4 NF
  • 2 NF
  • 1 NF
  • 3 NF

Frage 2

Frage
You work as a Database Designer for DataOneWorld Inc. The company has a SQL Server database. You are assigned the task of creating a data model of an enterprise based on a specific data model. The model to be created should be independent of a particular DBMS. Which of the following database designs will help you accomplish the task?
Antworten
  • Logical database design
  • Conceptual database design
  • Physical database design
  • Application design

Frage 3

Frage
Which of the following steps in database planning helps to determine the requirements of the database through interviewing?
Antworten
  • Gathering information
  • Identifying the relationship between objects
  • Identify the objects
  • Identifying the type of information for each objects
  • Modeling the object

Frage 4

Frage
Consider the case of a fruit juice company. The company manufactures fruit juices and supplies them to wholesalers. The Database Designer creates a table named Production. The code is given below: 1. CREATE Table Production 2. (Fruit_type VarChar, 3. Fruit_name Char(20), 4. Quantity Int(3)) Which of the above-mentioned lines has an error?
Antworten
  • Line 3
  • Line 2
  • Line 1
  • Line 4

Frage 5

Frage
John works as a Database Administrator for DataOneWorld Inc. The company has a SQL Server database. John wants to insert records in a table where the database is structured in a fixed format. Which of the following data models will he use to accomplish the task?
Antworten
  • Object relational data model
  • Entity-Relationship Model
  • Network data model
  • Relational model

Frage 6

Frage
You manage a database named Customers, which includes a table named Orders. The Orders table is frequently queried, but only orders with a sales total of more than $1000.00 are required in the query. You want to create an index to speed up these types of queries at the same time, ensuring the index is as small as possible. What type of index should you use?
Antworten
  • Non-clustered
  • Filtered
  • Clustered
  • XML

Frage 7

Frage
Which of the following database terms is described in the statement below? "It prevents the current database operation from reading or writing a data item while the data item is being accessed by another operation."
Antworten
  • Lock
  • Encryption
  • Constraint
  • Deadlock

Frage 8

Frage
Your Company is designing and developing a number of databases for a stock exchange. One of the databases will contain highly sensitive data for which high level of security will be required. Although high processing speed is one of the prime requirements of the customer, for this database, security of the data will take priority over the processing speed. It needs to be ensured that even if unauthorized access to the database is obtained, the rogue user is unable to read the data. Which of the following protection techniques will you suggest for this database?
Antworten
  • Authentication
  • Encryption
  • Native auditing
  • Integrity controls

Frage 9

Frage
You work as a Database Administrator for DataOneWorld Inc. Management instructs you to remove an object from the relational database management system. Which of the following statements will you use to accomplish the task?
Antworten
  • DROP
  • SELECT
  • CREATE
  • ALTER

Frage 10

Frage
Which of the following is a building working model of a database system?
Antworten
  • Prototyping
  • Bottom-up approach
  • Conceptual database design
  • Top-down approach

Frage 11

Frage
Remo works as a Database Designer for Tech Inc. He wants to create a table named Product. He issues the following query to create the Product table: CREATE Product ( ProductID Char (10) NOT NULL, OrderID Char (10) NULL ProductName Varchar NOT NULL, Primary key (OrderID, ProductID)) What are the errors in the above query? Each correct answer represents a complete solution. (Choose two.)
Antworten
  • An attribute declared as a primary key cannot contain NULL values.
  • Each attribute should be defined as a primary key separately.
  • A table cannot have two primary keys.
  • ProductName is declared as Varchar without specifying the width of the column.

Frage 12

Frage
You are a database developer for a database named Customers hosted on a SQL Server 2008 server. Recently, several customers were deleted from the Customers database. To ensure this is not repeated in future, you have decided to create a DML trigger to prevent it. What code will create the trigger to meet your goals? Each correct answer represents a complete solution. (Choose all that apply.)
Antworten
  • CREATE TRIGGER trgDeleteCustomer ON dbo.Customers BEFORE DELETE AS RAISERROR ('Customers cannot be deleted. An error has been logged', 16, 10) WITH LOG ROLLBACK TRANSACTION
  • CREATE TRIGGER trgDeleteCustomer ON dbo.Customers AFTER DELETE AS RAISERROR ('Customers cannot be deleted. An error has been logged', 16, 10) WITH LOG ROLLBACK TRANSACTION
  • CREATE TRIGGER trgDeleteCustomer ON dbo.Customers AFTER DELETE AS IF (SELECT COUNT(*) FROM DELETED) > 1 BEGIN RAISERROR ('Customers cannot be deleted. An error has been logged', 16, 10) WITH LOG ROLLBACK TRANSACTION END
  • ) CREATE TRIGGER trgDeleteCustomer ON dbo.Customers AFTER DELETE AS IF (SELECT COUNT(*) FROM DELETED) > 0 BEGIN RAISERROR ('Customers cannot be deleted. An error has been logged', 16, 10) WITH LOG ROLLBACK TRANSACTION END
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

CET_TARDE - MTA Database - DIAGNOSTIC2
Hawerth Castro
SQL Comands
Marcelo Braga2690
CET_TARDE - MTA Database - DIAGNOSTIC3
Hawerth Castro
CET_TARDE - MTA Database - E_Join_Union_Intersect
Hawerth Castro
CET_TARDE - MTA Database - STANDARDS
Hawerth Castro
CET_TARDE - MTA HTML5 Application Development Fundamentals 2
Hawerth Castro
CET_TARDE - MTA Software Development Fundamentals 3
Hawerth Castro
CET_TARDE - MTA Windows OS Fundamentals 5
Hawerth Castro
CET_TARDE - MTA Mobility and Devices Fundamentals 1
Hawerth Castro
CET_TARDE - MTA Software Development Fundamentals 2
Hawerth Castro
CET_TARDE - MTA Software Development Fundamentals 1
Hawerth Castro