MTA 98-364

Descripción

https://www.exam-labs.com/exam/98-364 MTA 98-364
JOSHUA BEKIARIS
Test por JOSHUA BEKIARIS, actualizado hace más de 1 año
JOSHUA BEKIARIS
Creado por JOSHUA BEKIARIS hace más de 6 años
1171
1

Resumen del Recurso

Pregunta 1

Pregunta
You have the following table definition: CREATE TABLE Road (RoadID INTEGER NOT NULL, Distance INTEGER NOT NULL) The Road table contains the following data: You execute the following statement: INSERT INTO Road VALUES (1234, 36) What is the result?
Respuesta
  • an error stating that NULL values are not allowed
  • a new row in the table
  • an error stating that duplicate IDs are not allowed
  • a syntax error

Pregunta 2

Pregunta
A view can be used to:
Respuesta
  • Save an extra copy of data stored in a separate table.
  • Limit access to specific rows or columns of data in a table.
  • Ensure referential integrity.
  • Save historical data before deleting it from the base table.

Pregunta 3

Pregunta
You are creating a database object named Student to store the following data: Which syntax should you use to create the object? A. CREATE TABLE Student ( ID INT, Name VARCHAR (100), Age INT ) --- B. CREATE ( TABLE Student ID INT, Name VARCHAR(100), Age INT ) --- C. CREATE Student ( ID INT, Name VARCHAR(100), Age INT ) --- D. CREATE TABLE ( ID INT, Name VARCHAR(100), Age INT )
Respuesta
  • Option A
  • Option B
  • Option C
  • Option D

Pregunta 4

Pregunta
Which statement deletes the rows where the employee's phone number is not entered?
Respuesta
  • Option A
  • Option B
  • Option C
  • Option D

Pregunta 5

Pregunta
You have the following SQL query SELECT * FROM dbo.ProAthlete WHERE Salary > 500000 The query takes too much time to return data. You need to improve the performance of the query. Which item should you add to the Salary column?
Respuesta
  • Non-null constraint
  • Default constraint
  • Index
  • Foreign key

Pregunta 6

Pregunta
Which two keys establish a relationship between two tables? (Choose two.)
Respuesta
  • candidate
  • foreign
  • superkey
  • local
  • primary

Pregunta 7

Pregunta
This question requires that you evaluate the underlined text to determine if it is correct. The UNION keyword combines the results of two queries and returns only rows that appear in both result sets. Instructions: Review the underlined text. If it makes the statement correct, select "No change is needed." If the statement is incorrect, select the answer choice that makes the statement correct
Respuesta
  • No change is needed
  • INTERSECT
  • ALL
  • UOIN

Pregunta 8

Pregunta
Your class project requires that you help a charity set up a website. The website collects information about volunteers. Each volunteer record must be uniquely identified. The following information is stored for each volunteer: ✑ Given name ✑ Surname ✑ Date of birth ✑ Phone number ✑ Photo You need to create a table to meet the requirements. Match the Structured Query Language SQL statements to the SQL query. Instructions: To answer, drag the appropriate SQL statement from the column on the left to its place in the SQL query on the right. Each SQL statement may be used once, more than once, or not at all. Each correct match is worth one point.
Respuesta
  • INNT NOT NULL PRIMARY KEY,
  • TIMESTAMP NULL,
  • DATE NULL,
  • IMAGE NULL,
  • XML NULL,
  • INT NOT NULL FOREIGN KEY,

Pregunta 9

Pregunta
This question requires that you evaluate the underlined text to determine if it is correct. Ports 20 and 21 are the default ports to secure a SQL Server. Instructions: Review the underlined text. If it makes the statement correct, select "No change is needed." If the statement is incorrect, select the answer choice that makes the statement correct.
Respuesta
  • No change is needed
  • 1433 and 1434
  • 411 and 412
  • 67 and 68

Pregunta 10

Pregunta
Instructions: For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point. Description of Behavior: A clustered index sorts and stores the data columns of a table or view in order, based on the clustered index key. [blank_start][answer choice][blank_end] A non-clustered index is defined on a table or view by using a clustered index or heap. [blank_start][answer choice][blank_end] A unique index ensures that the index key contains no duplicate values and that every row in the table or view is unique. [blank_start][answer choice][blank_end] A filtered index is a clustered index that is optimized for queries that select a small percentage of rows from a table. [blank_start][answer choice][blank_end]
Respuesta
  • Yes
  • No
  • Yes
  • No
  • Yes
  • No
  • Yes
  • No

Pregunta 11

Pregunta
One reason to add an index is to:
Respuesta
  • Decrease storage space.
  • Increase database security.
  • Improve performance of select statements.
  • Improve performance of insert statements.

Pregunta 12

Pregunta
You have a table named Student that contains 100 rows. Some of the rows have a NULL value in the FirstName column. You execute the following statement: DELETE FROM Student What is the result?
Respuesta
  • All rows in the table will be deleted.
  • All rows containing a NULL value in the FirstName column will be deleted.
  • You will receive an error message.
  • All rows and the table definition will be deleted.

Pregunta 13

Pregunta
Your class project requires that you help a charity to create a website that registers volunteers. The website must store the following data about the volunteers: ✑ Given name ✑ Surname ✑ Telephone number ✑ Email address You need to recommend a correct way to store the data. What do you recommend?
Respuesta
  • Create a table that contains columns that are named given name, surname, phone number, and email.
  • Create a table that contains rows that are named given name, surname, phone number, and email.
  • Create a view that contains columns that are named given name surname, phone number, and email.
  • Create a view that contains rows that are named given name surname, phone number, and email

Pregunta 14

Pregunta
Which keyword would you use in a select statement to return rows that meet a specific condition?
Respuesta
  • WHERE
  • UNION
  • ORDER BY
  • FROM

Pregunta 15

Pregunta
You have a table named Product that contains one million rows. You need to search for product information in the Product table by using the product's unique ID. What will make this type of search more efficient?
Respuesta
  • A cursor
  • A subquery
  • A trigger
  • An index

Pregunta 16

Pregunta
You need to remove a view named EmployeeView from your database. Which statement should you use?
Respuesta
  • DELETE VIEW EmployeeView
  • DELETE EmployeeView
  • DROP EmployeeView
  • DROP VIEW EmployeeView

Pregunta 17

Pregunta
Which category of SQL statements is used to add, remove, and modify database structures?
Respuesta
  • Data access language (DAL)
  • Data manipulation language (DML)
  • Data control language (DCL)
  • Data definition language (DDL)

Pregunta 18

Pregunta
You need to delete a database table. Which data definition language (DDL) keyword should you use?
Respuesta
  • ALTER
  • DELETE
  • DROP
  • TRUNCATE

Pregunta 19

Pregunta
You have the following table definition: CREATE TABLE Product (ProductID INTEGER, Name VARCHAR(20)) You need to insert a new product. The product's name is Plate and the product's ID is 12345. Which statement should you use?
Respuesta
  • Option A
  • Option B
  • Option C
  • Option D

Pregunta 20

Pregunta
One difference between a function and a stored procedure is that a function:
Respuesta
  • Must be called from a trigger.
  • Must return a value.
  • Cannot contain a transaction.
  • Cannot accept parameters.

Pregunta 21

Pregunta
Instructions: For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point. The VARCHAR data type contains only numeric characters. [blank_start][answer choice][blank_end] The NUMERIC data type contains only numbers that have decimal places. [blank_start][answer choice][blank_end] The INT data type contains only whole numbers [blank_start][answer choice][blank_end]
Respuesta
  • Yes
  • No
  • Yes
  • No
  • Yes
  • No

Pregunta 22

Pregunta
At 3:00 P.M. (1500 hours), you create a backup of your database. At 4:00 P.M. (1600 hours), you create a table named Customer and import data into the table. At 5:00 P.M. (1700 hours), your server fails. You run a script to apply only the 3:00 P.M. backup to your database. What is the result of the script?
Respuesta
  • The Customer table no longer exists.
  • The Customer table is unaffected.
  • The Customer table exists but has no data.
  • The script fails.

Pregunta 23

Pregunta
You have a database table named SongInformation as defined below: You need to create a Structured Query Language (SQL) query to retrieve only the names of songs that sold more than 1000 compact discs (CDs). Which query should you use?
Respuesta

Pregunta 24

Pregunta
The terms "bitmap," "b-tree," and "hash" refer to which type of database structure? **Needs to be rechecked on ExamLabs, one person asked why is C correct and it had three likes on that comment**
Respuesta
  • View
  • Function
  • Index
  • Stored procedure
  • Trigger

Pregunta 25

Pregunta
While attending college, you accept an IT internship at a local charity. The charity needs to report on data that is related and exists in two tables. You need to establish a relationship between the data that is in the two tables. Which constraint should you define?
Respuesta
  • Foreign key
  • Index key
  • Link key
  • Default key

Pregunta 26

Pregunta
You have a Department table and an Employee table in your database. You need to ensure that an employee can be assigned to only an existing department. What should you apply to the Employee table?
Respuesta
  • A primary key
  • An index
  • A foreign key
  • A unique constraint
  • A data type

Pregunta 27

Pregunta
The component that holds information for a single entry in a table is called a:
Respuesta
  • Data type
  • Row
  • Column
  • View

Pregunta 28

Pregunta
On which database structure does an insert statement operate?
Respuesta
  • Role
  • Trigger
  • User
  • Stored procedure
  • Table

Pregunta 29

Pregunta
You have a user that has server roles as defined below: Instructions: Use the drop-down menus to select the answer choice that completes each statement. Each correct selection is worth one point. The user can perform [blank_start][answer choice][blank_end] actions on data that is on the server. The user can perform [blank_start][answer choice][blank_end] actions on database objects that are on the server.
Respuesta
  • no
  • read-only
  • unlimited
  • no
  • unlimited
  • configuration

Pregunta 30

Pregunta
You need to disable User1's access to view the data in the Customer table. Which statement should you use?
Respuesta
  • Option A
  • Option B
  • Option C
  • Option D

Pregunta 31

Pregunta
You need to store product names that vary from three to 30 characters. You also need to minimize the amount of storage space that is used. Which data type should you use?
Respuesta
  • VARCHAR (3, 30)
  • CHAR (3, 30)
  • VARCHAR (30)
  • CHAR (30)

Pregunta 32

Pregunta
This question requires that you evaluate the underlined text to determine if it is correct. You combine data from three tables into one table. The new table includes redundancy to optimize read performance. The data in the new table has been denormalized. Instructions: Review the underlined text. If it makes the statement correct, select "No change is needed." If the statement is incorrect, select the answer choice that makes the statement correct.
Respuesta
  • No change is needed
  • Normalized
  • Truncated
  • Indexed

Pregunta 33

Pregunta
You have a table that contains information about all students in your school. Which SQL keyword should you use to change a student's first name in the table?
Respuesta
  • UPDATE
  • CHANGE
  • SELECT
  • INSERT

Pregunta 34

Pregunta
Instructions: For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point. A SQL Server Login can use Windows Authentication. [blank_start][answer choice][blank_end] A SQL Server Role provides permissions at the same level. [blank_start][answer choice][blank_end] A SQL Server Login is granted permissions to database views only. [blank_start][answer choice][blank_end]
Respuesta
  • Yes
  • No
  • Yes
  • No
  • Yes
  • No

Pregunta 35

Pregunta
The Product table contains the following data. You execute the following statement: SELECT COUNT(*) FROM Product WHERE Quantity > 18 What is the value returned by this statement?
Respuesta
  • 1
  • 2
  • 3
  • 4

Pregunta 36

Pregunta
You have two tables named Salesperson and Sales. You need to ensure that each record in the Sales table has a valid associated salesperson record in the Salesperson table. Which database object should you add to the Sales table?
Respuesta
  • Nonclustered index
  • Primary key
  • Foreign key
  • Clustered index

Pregunta 37

Pregunta
You work at a coffee shop. They ask you to set up a website that stores charges on purchases. You need to recommend a data type in a database table to run financial functions against the charged amounts. Which data type should you recommend?
Respuesta
  • Money
  • Bit
  • Varchar
  • Binary

Pregunta 38

Pregunta
You have a table named Employee that includes four columns. You execute the following statement: SELECT * FROM Employee Which columns are returned?
Respuesta
  • all columns
  • only the last column
  • only the first column
  • only the first and last columns

Pregunta 39

Pregunta
This question requires that you evaluate the underlined text to determine if it is correct. ALTER TABLE removes all rows from a table without logging the individual row deletions. Instructions: Review the underlined text. If it makes the statement correct, select "No change is needed." If the statement is incorrect, select the answer choice that makes the statement correct.
Respuesta
  • No change is needed
  • DROP TABLE
  • TRUNCATE TABLE
  • CREATE TABLE

Pregunta 40

Pregunta
You need to insert two new products into the Product table. The first product is named Book and has an ID of 125. The second product is named Movie and has an ID of 126. Which statement should you use?
Respuesta
  • Option A
  • Option B
  • Option C
  • Option D

Pregunta 41

Pregunta
You accept an IT internship at a local charity. The charity has two tables in their data model named Chapter and Language, as defined below: You create a third table named ChapterLanguage to relate the Chapter table and the Language table. You need to select columns from the Chapter and Language tables to create a composite primary key for the ChapterLanguage table. Which two columns should you select? (Choose two.)
Respuesta
  • ChapterId
  • LanguageId
  • Country
  • Region
  • City
  • LanguageName

Pregunta 42

Pregunta
A database contains two tables named Customer and Order. You execute the following statement: DELETE FROM Order WHERE CustomerID = 209 What is the result?
Respuesta
  • The first order for CustomerID 209 is deleted from the Order table.
  • All orders for CustomerID 209 are deleted from the Order table, and CustomerID 209 is deleted from the Customer table.
  • All orders for CustomerID 209 are deleted from the Order table.
  • CustomerID 209 is deleted from the Customer table.

Pregunta 43

Pregunta
You have two database tables as defined below. The StateID column is unique in the State table. The AddressID column is unique in the Address table. The two tables are related by the StateID column. StateID is a/an [blank_start][answer choice][blank_end] in the State table. StateID is a/an [blank_start][answer choice][blank_end] in the Address table.
Respuesta
  • index
  • union
  • foreign key
  • primary key
  • index
  • union
  • foreign key
  • primary key

Pregunta 44

Pregunta
Which keyword must be included in a create view statement?
Respuesta
  • WHERE
  • ORDER BY
  • UPDATE
  • SELECT

Pregunta 45

Pregunta
You have a table of products with fields for ProductID, Name, and Price. You need to write an UPDATE statement that sets the value in the InStock field to Yes for a specific ProductID. Which clause should you use in your update statement?
Respuesta
  • THAT
  • WHERE
  • GROUP BY
  • HAVING

Pregunta 46

Pregunta
You have a table named Customer. You need to add a new column named District. Which statement should you use?
Respuesta
  • Option A
  • Option B
  • Option C
  • Option D

Pregunta 47

Pregunta
Which keyword can be used in a create table statement?
Respuesta
  • ORDER BY
  • DISTINCT
  • GROUP BY
  • UNIQUE

Pregunta 48

Pregunta
This question requires that you evaluate the underlined text to determine if it is correct. You have two tables. Each table has three rows. Nine rows will be included in the Cartesian product of these two tables. Instructions: Review the underlined text. If it makes the statement correct, select "No change is needed." If the statement is incorrect, select the answer choice that makes the statement corrector.
Respuesta
  • No change is needed
  • Zero
  • Three
  • Six

Pregunta 49

Pregunta
You need to store the contact information for each student in your school database. You should store each student's information in a:
Respuesta
  • Stored procedure
  • Function
  • Row
  • Variable

Pregunta 50

Pregunta
You have a table that contains the following data. Which database term is used to describe the relationship between ProductID and ProductCategory?
Respuesta
  • Cohort
  • Relationally dependent
  • Deterministic
  • Functionally dependent
  • Compositional

Pregunta 51

Pregunta
You execute the following statement: This statement is an example of a/an:
Respuesta
  • Subquery
  • Union
  • Outer join
  • Cartesian product

Pregunta 52

Pregunta
You need to set up a database to provide a view of North American mammals. Match the Structured Query Language (SQL) statements to the SQL query. Instructions: To answer, drag the appropriate SQL statement from the column on the left to its place in the SQL query on the right Each SQL statement may be used once, more than once, or not at all. Each correct match is worth one point.
Respuesta
  • CREATE VIEW [dbo] . [NorthAmericanMammal
  • GENERATE VIEW [dbo] . [NorthAmericanMamm
  • AS JOIN a.Id, a.Name
  • JOIN Animal a
  • AS SELECT a.Id, a.Name
  • FROM Animal a

Pregunta 53

Pregunta
Which statement will result in the creation of an index?
Respuesta
  • Option A
  • Option B
  • Option C
  • Option D

Pregunta 54

Pregunta
Your database contains a table named Customer. You need to delete the record from the Customer table that has a CusromerID of 12345. Which statement should you use?
Respuesta
  • Option A
  • Option B
  • Option C
  • Option D

Pregunta 55

Pregunta
The following illustration shows the structure of a clustered index in a single partition: Instructions: Use the drop-down menus to select the answer choice that completes each statement Each correct selection is worth one point. A clustered index improves the performance of queries that [blank_start][answer choice][blank_end]. A clustered index improves the performance of queries on columns that [blank_start][answer choice][blank_end].
Respuesta
  • return large result sets
  • return a range of values by using the =
  • do not use ODER BY or GROUP BY clauses
  • are accessed randomly
  • are accessed sequentially
  • are not unique or contain many common va

Pregunta 56

Pregunta
You have two tables named Cars and Color as defined below. The two tables are related by ColorId. You run the following SQL statement: select: SELECT = FROM Cars LEFT OUTER JOIN Colors ON Cars.ColorID = Colors.ColorID How many rows does the SQL statement return?
Respuesta
  • 0
  • 2
  • 3
  • 6

Pregunta 57

Pregunta
You have a table named Product. You create a view that includes all the products from the Product table that are in the Furniture category. You execute a statement on the Product table that deletes all the products in the Furniture category. After you execute the statement, the result set of the view is:
Respuesta
  • Empty
  • Deleted
  • Unchanged
  • Archived

Pregunta 58

Pregunta
Which command should you use to add a column to an existing table?
Respuesta
  • MODIFY
  • ALTER
  • UPDATE
  • INSERT
  • CHANGE

Pregunta 59

Pregunta
A named group of SQL statements that can be executed in a database is called a:
Respuesta
  • Subroutine
  • Formula
  • Stored procedure
  • Method

Pregunta 60

Pregunta
What defines the amount of storage space that is allocated to a value in a column?
Respuesta
  • format
  • key
  • data type
  • validator

Pregunta 61

Pregunta
You accept an IT internship at a local charity. The charity asks you to keep a record of its volunteers by using a database table named Volunteer. The table has the following columns and rows:

Pregunta 62

Pregunta
You accept an IT internship at a local charity. The charity wants you to help them with compliance and auditing requirements. You need to ensure that a column or combination of columns uniquely identifies each row of a table. Which constraint should you define?
Respuesta
  • Primary key
  • Secondary key
  • Foreign key
  • Default key

Pregunta 63

Pregunta
Instructions: For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point. A full database backup is a copy of all of the data in the entire database. [blank_start][answer choice][blank_end] A transaction log backup backs up all the data in the database. [blank_start][answer choice][blank_end] A differential backup copies only data that was changed before the last full backup. [blank_start][answer choice][blank_end] A file or filegroup restore specifies a portion of the database to recover. [blank_start][answer choice][blank_end]
Respuesta
  • Yes
  • No
  • Yes
  • No
  • Yes
  • No
  • Yes
  • No

Pregunta 64

Pregunta
You have the following table definition: CREATE TABLE Product (ID INTEGER PRIMARY KEY, Name VARCHAR(20), Quantity INTEGER) The Product table contains the following data. You execute the following statement: SELECT Name FROM Product WHERE Quantity IS NOT NULL How many rows are returned?
Respuesta
  • 0
  • 1
  • 2
  • 3
  • 4

Pregunta 65

Pregunta
You need to enable a new employee to authenticate to your database. Which command should you use?
Respuesta
  • ALLOW USER
  • CREATE USER
  • ADD USER
  • INSERT USER
  • ALTER USER

Pregunta 66

Pregunta
You have a table named Product. The Product table has columns for ProductDescription and ProductCategory. You need to change the ProductCategory value for all the spoons in the Product table to 43. Which statement should you use?
Respuesta
  • Option A
  • Option B
  • Option C
  • Option D

Pregunta 67

Pregunta
You need to combine the results of two queries into a single result that contains all of the rows from both queries. Which Structured Query Language (SQL) statement should you use?
Respuesta
  • TRUNCATE
  • JOIN
  • EXCEPT
  • UNION

Pregunta 68

Pregunta
This question requires that you evaluate the underlined text to determine if it is correct. The CREATE TABLE command removes one or more table definitions and all data, indexes, triggers, constraints, and permission specifications for those tables. Instructions: Review the underlined text. If it makes the statement correct, select "No change is needed." If the statement is incorrect, select the answer choice that makes the statement correct
Respuesta
  • No change is needed
  • DROP TABLE
  • TRUNCATE TABLE
  • ALTER TABLE

Pregunta 69

Pregunta
You execute a statement inside a transaction to delete 100 rows from a table. The transaction fails after only 40 rows are deleted. What is the result in the database?
Respuesta
  • The table will be corrupted.
  • Forty (40) rows will be deleted from the table.
  • The transaction will restart.
  • No rows will be deleted from the table.

Pregunta 70

Pregunta
You need to rename a column in a database table. Which data definition language (DDL) statement should you use?
Respuesta
  • ALTER
  • INSERT
  • CREATE
  • UPDATE

Pregunta 71

Pregunta
This question requires that you evaluate the underlined text to determine if it is correct. Use the ALTER statement to add a new table in a database. Instructions: Review the underlined text. If it makes the statement correct, select "No change is needed." If the statement is incorrect, select the answer choice that makes the statement correct.
Respuesta
  • No change is needed
  • UPDATE
  • INSERT
  • CREATE

Pregunta 72

Pregunta
This question requires that you evaluate the underlined text to determine if it is correct. In a database table, each column represents a unique record. Instructions: Review the underlined text. If it makes the statement correct, select "No change is needed." If the statement is incorrect, select the answer choice that makes the statement correct
Respuesta
  • No change is needed
  • Table
  • Index
  • Row

Pregunta 73

Pregunta
This question requires that you evaluate the underlined text to determine if it is correct. A view can be used to ensure referential integrity. Instructions: Review the underlined text. If it makes the statement correct, select "No change is needed." If the statement is incorrect, select the answer choice that makes the statement correct
Respuesta
  • No change is needed.
  • Save an extra copy of data stored in a separate table.
  • Limit access to specific rows or columns of data in a table.
  • Save historical data before deleting it from the base table.

Pregunta 74

Pregunta
This question requires that you evaluate the underlined text to determine if it is correct. First normal form requires that a database excludes repeating groups. Instructions: Review the underlined text. If it makes the statement correct, select "No change is needed." If the statement is incorrect, select the answer choice that makes the statement correct.
Respuesta
  • No change is needed.
  • Composite keys
  • Duplicate rows
  • Foreign keys

Pregunta 75

Pregunta
This question requires that you evaluate the underlined text to determine if it is correct. Views are database objects that contain all of the data in a database. Instructions: Review the underlined text. If it makes the statement correct, select "No change is needed." If the statement is incorrect, select the answer choice that makes the statement correct
Respuesta
  • No change is needed
  • Queries
  • Stored procedures
  • Tables

Pregunta 76

Pregunta
You develop a database to store data about textbooks. The data must be stored to process at a later time. Which database object should you use to store the data?
Respuesta
  • View
  • Table
  • Function
  • Stored procedure

Pregunta 77

Pregunta
You execute the following statement: SELECT EmployeeID, FirstName, DepartmentName FROM Employee, Department This type of operation is called a/an:
Respuesta
  • Intersection
  • Outer join
  • Equi-join
  • Cartesian product

Pregunta 78

Pregunta
Which statement creates a composite key?
Respuesta
  • Option A
  • Option B
  • Option C
  • Option D

Pregunta 79

Pregunta
What is one difference between an update statement and a delete statement?
Respuesta
  • An update statement can change only one row.
  • A delete statement cannot use a where clause.
  • An update statement does not remove rows from a table.
  • A delete statement works only within a stored procedure.

Pregunta 80

Pregunta
You work at a restaurant and they ask you to help them with a data issue. They provide you with the following recipe data: You need to normalize the data to third normal form. How many tables should you create?
Respuesta
  • 1
  • 2
  • 3
  • 4

Pregunta 81

Pregunta
Which command should you use to give a user permission to read the data in a table?
Respuesta
  • ALLOW SELECT
  • LET READ
  • PERMIT READ
  • GRANT SELECT

Pregunta 82

Pregunta
You need to store the first name, last name, and student ID for 100 students. This information will be stored in a table as:
Respuesta
  • 100 items and three cells.
  • 100 rows and three columns.
  • three rows and 100 columns.
  • three items and 100 cells.

Pregunta 83

Pregunta
You have a Customer table and an Order table. You join the Customer table with the Order table by using the CusromerID column. The results include: ✑ All customers and their orders ✑ Customers who have no orders Which type of join do these results represent?
Respuesta
  • Complete join
  • Partial join
  • Inner join
  • Outer join

Pregunta 84

Pregunta
This question requires that you evaluate the underlined text to determine if it is correct. Use the ALLOW SELECT command to give a user permission to read the data in a table. Instructions: Review the underlined text. If it makes the statement correct, select "No change is needed." If the statement is incorrect, select the answer choice that makes the statement correct
Respuesta
  • No change is needed
  • GRANT SELECT
  • LET HEAD
  • PERMIT READ

Pregunta 85

Pregunta
This question requires that you evaluate the underlined text to determine if it is correct. Use the FROM keyword in a SELECT statement to return rows that meet a specific condition. Instructions: Review the underlined text. If it makes the statement correct, select "No change is needed." If the statement is incorrect, select the answer choice that makes the statement correct
Respuesta
  • No change is needed
  • ORDER BY
  • UNION
  • WHERE

Pregunta 86

Pregunta
First normal form requires that a database excludes:
Respuesta
  • Foreign keys
  • Composite keys
  • Duplicate rows
  • Repeating groups

Pregunta 87

Pregunta
You have a database table that contains the following columns:
Respuesta
  • Option A
  • Option B
  • Option C
  • Option D

Pregunta 88

Pregunta
On which database structure does an update statement operate?
Respuesta
  • Table
  • User
  • Trigger
  • Role

Pregunta 89

Pregunta
You need to establish a set of permissions that you can routinely assign to new users. What should you create?
Respuesta
  • Resource
  • Group
  • List
  • Role

Pregunta 90

Pregunta
You need to retrieve data from two related database tables based on a column that exists in both tables. Which command should you use in a query?
Respuesta
  • INTERSECT
  • UNION
  • JOIN
  • TRUNCATE

Pregunta 91

Pregunta
You have a table named Product that contains the following data. The PrcducrID column is the primary key. The CategoryID column is a foreign key to a separate table named Category. You execute the following statement: INSERT INTO Product VALUES (3296, 'Table', 4444) What is the result?
Respuesta
  • a foreign key constraint violation
  • a syntax error
  • a new row in the Product table
  • a primary key constraint violation
  • a new row in the Category table

Pregunta 92

Pregunta
This question requires that you evaluate the underlined text to determine if it is correct. A row holds information for a single record in a table. Instructions: Review the underlined text. If it makes the statement correct, select "No change is needed." If the statement is incorrect, select the answer choice that makes the statement correct
Respuesta
  • No change is needed
  • Column
  • Data type
  • View

Pregunta 93

Pregunta
You have two tables. Each table has three rows. How many rows will be included in the Cartesian product of these two tables?
Respuesta
  • 0
  • 3
  • 6
  • 9

Pregunta 94

Pregunta
In SQL, an insert statement is used to add a:
Respuesta
  • User to a database.
  • Row of data to a table.
  • Table to a database.
  • Column to a table definition.

Pregunta 95

Pregunta
Which type of index changes the order in which the data is stored in a table?
Respuesta
  • non-sequential
  • sequential
  • non-clustered
  • clustered

Pregunta 96

Pregunta
You assign User1 a set of permissions that include the WITH GRANT OPTION. The WITH GRANT OPTION enables User1 to:
Respuesta
  • request a log of permission use.
  • delegate permissions to other users.
  • create new database users.
  • view other users' permissions.

Pregunta 97

Pregunta
You are creating a table to store customer data. The AccountNumber column uses values that always consist of one letter and four digits. Which data type should you use for the AccountNumber column?
Respuesta
  • CHAR
  • BYTE
  • DOUBLE
  • SMALLINT

Pregunta 98

Pregunta
You accept an IT internship at a local charity. The charity asks you to keep a record of its volunteers by using a database table named Volunteer. When volunteers ask to be removed from mailing lists, the table must be updated. You need to use a transaction to ensure that the database has data integrity and referential integrity. Which statement should you use?
Respuesta
  • Option A
  • Option B
  • Option C
  • Option D

Pregunta 99

Pregunta
The following graphic shows the components of a SQL Server application. You access the SQL Server application through Internet Explorer. The [blank_start][answer choice][blank_end] computer is the first line of defense against SQL injections and weak input validation. The [blank_start][answer choice][blank_end] computer should be formatted with NTFS to protect program, database, and log files from unauthorized access.
Respuesta
  • client
  • www.contoso.com
  • s01.contoso.com
  • client
  • www.contoso.com
  • s01.contoso.com

Pregunta 100

Pregunta
In which situation do you need to perform a restore on a database?
Respuesta
  • when data becomes corrupted in the database
  • when you need to roll back a transaction
  • when you encounter an error in your application
  • when data needs to be deleted from the database

Pregunta 101

Pregunta
You have a database table that stores information about school attendance. You have a data set that is defined as follows:
Respuesta
  • BIT
  • DATETIME
  • VARCHAR
  • CHAR
  • INT
  • DECIMAL

Pregunta 102

Pregunta
Which database term is used to describe the process of applying a backup to a damaged or corrupt database?
Respuesta
  • Recover
  • Restore
  • Commit
  • Attach

Pregunta 103

Pregunta
You need to store product quantities, and you want to minimize the amount of storage space that is used. Which data type should you use?
Respuesta
  • INTEGER
  • DOUBLE
  • COUNT
  • FLOAT

Pregunta 104

Pregunta
Which statement should you use to remove a foreign key?
Respuesta
  • ALTER TABLE
  • DELETE TABLE
  • DELETE FOREIGN KEY
  • ALTER FOREIGN KEY

Pregunta 105

Pregunta
You have the following table: Adding a [blank_start][answer choice][blank_end] on the FlightNumber column physically sorts rows in the table by FlightNumber. Adding a [blank_start][answer choice][blank_end] on the Airline column retrieves data faster, but will not physically sort rows in the table by Airline.
Respuesta
  • foreign key
  • clustered index
  • nonclustered index
  • foreign key
  • clustered index
  • nonclustered index

Pregunta 106

Pregunta
What are three valid data manipulation language (DML) commands? (Choose three.)
Respuesta
  • INSERT
  • COMMIT
  • DELETE
  • OUTPUT
  • UPDATE

Pregunta 107

Pregunta
Denormalization is performed in order to:
Respuesta
  • Reduce redundancy.
  • Eliminate repeating groups.
  • Create smaller tables.
  • Improve query performance.

Pregunta 108

Pregunta
You need to add rows to a database table. Which Structured Query Language (SQL) keyword should you use?
Respuesta
  • JOIN
  • INSERT
  • CREATE
  • UPDATE

Pregunta 109

Pregunta
Which permission does a user need in order to run a stored procedure?
Respuesta
  • EXECUTE
  • ALLOW
  • CALL
  • RUN

Pregunta 110

Pregunta
Which command should you use to remove a table from a database?
Respuesta
  • REMOVE TABLE
  • UPDATE TABLE
  • DROP TABLE
  • DELETE TABLE

Pregunta 111

Pregunta
This question requires that you evaluate the underlined text to determine if it is correct. Create a query that returns a set of table data by using the UPDATE statement. Instructions: Review the underlined text. If it makes the statement correct, select "No change is needed." If the statement is incorrect, select the answer choice that makes the statement correct.
Respuesta
  • No change is needed
  • INSERT
  • REPLACE
  • SELECT

Pregunta 112

Pregunta
Instructions: For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point. You can delete data by using a stored procedure. [blank_start][answer choice][blank_end] A function must have a return value. [blank_start][answer choice][blank_end] A stored procedure must have a return value. [blank_start][answer choice][blank_end]
Respuesta
  • Yes
  • No
  • Yes
  • No
  • Yes
  • No

Pregunta 113

Pregunta
Which key uniquely identifies a row in a table?
Respuesta
  • foreign
  • primary
  • local
  • superkey

Pregunta 114

Pregunta
You have a table that contains the following data.
Respuesta
  • defragmentation
  • normalization
  • fragmentation
  • denormalization

Pregunta 115

Pregunta
Which constraint ensures a unique value in the ID column for each customer?
Respuesta
  • DISTINCT
  • FOREIGN KEY
  • SEQUENTIAL
  • PRIMARY KEY

Pregunta 116

Pregunta
You have a table that contains product IDs and product names. You need to write an UPDATE statement to change the name of a specific product to glass. What should you include in the update statement?
Respuesta
  • SET ProduetName = 'glass'
  • LET ProduetName = 'glass'
  • EXEC ProduetName = 'glass'
  • ASSIGN ProduetName = 'glass'

Pregunta 117

Pregunta
You need to populate a table named EmployeeCopy with data from an existing table named Employee. Which statement should you use?
Respuesta
  • Option A
  • Option B
  • Option C
  • Option D

Pregunta 118

Pregunta
You are writing a select statement to find every product whose name contains a specific character. Which keyword should you use in your where clause?
Respuesta
  • FIND
  • BETWEEN
  • INCLUDES
  • LIKE

Pregunta 119

Pregunta
This question requires that you evaluate the underlined text to determine if it is correct. Use indexing to create, remove, or change database objects. Instructions: Review the underlined text. If it makes the statement correct, select "No change is needed." If the statement is incorrect, select the answer choice that makes the statement correct.
Respuesta
  • No change is needed
  • Data manipulation language (DML) statements
  • Data definition language (DDL) statements
  • A unique constraint

Pregunta 120

Pregunta
You delete rows in a table named Order. The corresponding rows in the OrderItem table are automatically deleted. This process is an example of a/an:
Respuesta
  • Inherited delete
  • Cascade delete
  • Functional delete
  • Waterfall delete
  • Domino delete

Pregunta 121

Pregunta
You are writing an SQL statement to retrieve rows from a table. Which data manipulation language (DML) command should you use?
Respuesta
  • READ
  • SELECT
  • OUTPUT
  • GET

Pregunta 122

Pregunta
You need to list the name and price of each product, sorted by price from highest to lowest. Which statement should you use
Respuesta
  • Option A
  • Option B
  • Option C
  • Option D

Pregunta 123

Pregunta
Data in a database is stored in:
Respuesta
  • Tables
  • Queries
  • Data types
  • Stored procedures

Pregunta 124

Pregunta
You have a table named Employee that includes the following columns: EmployeeID Smp1oyeeName Which statement should you use to return the number of rows in the table?
Respuesta
  • Option A
  • Option B
  • Option C
  • Option D

Pregunta 125

Pregunta
Which two elements are required to define a column? (Choose two.)
Respuesta
  • A name
  • A key
  • An index
  • A data type

Pregunta 126

Pregunta
This question requires that you evaluate the underlined text to determine if it is correct. Truncate is a database term used to describe the process of applying a backup to a damaged or corrupt database. Instructions: Review the underlined text. If it makes the statement correct, select "No change is needed." If the statement is incorrect, select the answer choice that makes the statement corrector.
Respuesta
  • No Change is needed
  • Commit
  • Attach
  • Restore

Pregunta 127

Pregunta
The following illustration shows backup strategies that use the simple recovery model and the full recovery model: Using the simple recovery model for database backups provides [blank_start][answer choice][blank_end] work-loss exposure than the full recovery model. Using the simple recovery model for database backups provides [blank_start][answer choice][blank_end] log file backups than the full recovery model.
Respuesta
  • less
  • more
  • the same
  • less
  • more
  • the same

Pregunta 128

Pregunta
One reason to create a stored procedure is to:
Respuesta
  • Improve performance.
  • Minimize storage space.
  • Bypass case sensitivity requirements.
  • Give the user control of the query logic.
Mostrar resumen completo Ocultar resumen completo

Similar

El Cuerpo Humano
Diego Santos
GLOSARIO PARTE I PAA
Valeria de Leon
CRUCIGRAMA
JessicaJA
Pasos para la ejecución de un emprendimiento
lamconsultoria
Ropa de invierno en ingles.
Danna Catalia Salamanca
Métodos anticonceptivos
Sara Donado
Estructura de la Constitución Española de 1978
Joaquín García Venegas
PRESENT SIMPLE 1
Silvia Francisco Llorente
prueba 1
ANGELA HIDALGO
USO DE LA FUERZA Y ARMAS NO LETALES EN LA POLICÍA NACIONAL
ALVARO ENRIQUE MORENO MORENO
LOS MOMENTOS DEL PROCESO DE APRENDIZAJE
Alejandro Correa