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?
31 comments · newest first
MA
Margart
7 months ago
Triggers aren't suitable for this scenario either.
GA
Galen
7 months ago
Views are flexible and secure for user access.
SA
Sabine
7 months ago
A CSV export won't protect the restricted data.
RO
Rory
8 months ago
I agree, a stored procedure might be too complex for this.
SH
Shayne
8 months ago
It can restrict access to specific columns easily.
RI
Rikki
8 months ago
Why a view?
SH
Shayne
8 months ago
I think creating a view is the best option.
KA
Kandis
8 months ago
Not sure about that... what if they find a way around it?
LU
Lucille
8 months ago
A stored procedure could work too, but views are cleaner.
PE
Pete
9 months ago
I agree, views are super useful for this!
JA
Jamal
9 months ago
Definitely B) Create a view. It's the best way to restrict access.
SA
Santos
9 months ago
I'm going with B. Can't go wrong with a good old view. Keeps the data locked down tight.
DA
Dana
10 months ago
B) Create a view. Easy peasy, lemon squeezy.
CO
Corinne
10 months ago
Definitely B. Views are the way to go for this scenario. Keeps things simple and secure.
AD
Adelina
10 months ago
B) Create a view. This is the best option to restrict access to specific columns while still providing access to the necessary data.
JO
Josefa
10 months ago
A trigger seems like it would be overkill for just providing access. I feel like it’s more about automating actions rather than controlling visibility.
AI
Aide
10 months ago
I practiced a similar question where views were mentioned as a way to limit data exposure. It seems like the right choice here too.
RO
Ronna
10 months ago
I'm not entirely sure, but I remember something about stored procedures being more for data manipulation rather than just providing access.
MO
Mose
11 months ago
I'm a little confused on the differences between a view and a stored procedure in this case. I'll need to review those concepts before deciding which one is the best solution.
RO
Rozella
11 months ago
The view makes the most sense to me. It's a simple and straightforward way to restrict access to the sensitive columns while still providing the necessary data to the users.
KE
Kenneth
11 months ago
Creating a CSV export seems like it would be a lot of extra work. And a trigger doesn't really fit what we're trying to do here. I'm leaning towards the view option.
HA
Hailey
11 months ago
I think creating a view might be the best option since it can restrict access to certain columns while still allowing users to see the data they need.
BE
Berry
12 months ago
I'd go with B as well. Creating a view is the cleanest and most efficient solution here.
DE
Dean
12 months ago
Wait, can users really not see restricted columns with a view?
SA
Sarah
1 year ago
Hmm, I'm not sure. A stored procedure might also work, but that seems a bit overkill for this scenario. I'll have to think it through.
MI
Mireya
1 year ago
I think creating a view would be the best approach here. That way we can control which columns are exposed to the users.
DO
Dominque
7 months ago
Plus, views can simplify complex queries for users.
KE
Keneth
7 months ago
Views are easier to manage for user access.
AM
Ammie
7 months ago
A stored procedure could work, but views are cleaner.
DA
Daren
11 months ago
Definitely! It keeps sensitive info hidden.
NY
Nydia
11 months ago
I agree, a view is the way to go.