ExamGecko
Question list
Search
Search

Question 23 - DS0-001 discussion

Report
Export

A database administrator needs to provide access to data from two different tables to multiple group users in order to facilitate ongoing reporting. However, some columns in each table are restricted, and users should not be able to see the values in these columns.

Which of the following is the best action for the administrator to take?

A.
Create a stored procedure.
Answers
A.
Create a stored procedure.
B.
Create a view.
Answers
B.
Create a view.
C.
Create a csv export.
Answers
C.
Create a csv export.
D.
Create a trigger.
Answers
D.
Create a trigger.
Suggested answer: B

Explanation:

The best action for the administrator to take is to create a view. A view is a virtual table that shows a subset of data from one or more tables. The administrator can use a view to provide access to data from two different tables to multiple group users without exposing the restricted columns. The view can also simplify the queries and improve the performance of the reporting process. The other options are either not suitable for this scenario or do not address the requirement of hiding some columns from users. For example, creating a stored procedure would require additional coding and execution, creating a csv export would create a static file that may not reflect the latest data changes, and creating a trigger would perform an action in response to an event rather than provide access to data.Reference:CompTIA DataSys+ Course Outline, Domain 2.0 Database Deployment, Objective 2.2 Given a scenario, create database objects using scripting and programming languages.

asked 02/10/2024
Madhankumar Rathinakumar
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first