Your company's users access data in a BigQuery table. You want to ensure they can only access the data during working hours.
What should you do?
Suggested Answer: A
Get Premium Professional Cloud Security Engineer Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
35 comments · newest first
LI
Linette
12 months ago
D sounds risky, what if the script fails?
AM
Ammie
1 year ago
C is too complicated, just keep it simple with A.
GE
Geoffrey
1 year ago
Wait, can we really automate role changes like that?
JO
Johnathon
1 year ago
I disagree, B seems more flexible with Cloud Scheduler.
SH
Shannan
1 year ago
Option A sounds right, IAM conditions are perfect for this!
RA
Raul
1 year ago
Option D seems like it could work, but I’m not confident about using gsutil for this purpose. I thought we were supposed to focus on IAM roles instead.
FR
Franklyn
1 year ago
I'm leaning towards option C, but it seems a bit complicated to manage user access daily. I wonder if there's a simpler way.
JA
Jamie
1 year ago
I remember practicing a question similar to this, and I feel like using Cloud Scheduler could be a good approach, but I can't recall the details.
AR
Aracelis
1 year ago
I think option A sounds familiar because we discussed IAM conditions in class, but I'm not entirely sure if they can limit access by time.
TA
Tabetha
1 year ago
This is an interesting question. I'll need to explore the different options and make sure I understand how to properly configure the access policies and scheduling to meet the requirements.
TO
Tommy
1 year ago
I'm feeling pretty confident about this one. I've worked with similar access control and scheduling challenges before, so I think I can come up with a solid solution.
CH
Chanel
1 year ago
Okay, I think I've got a strategy for this. I'll focus on using the access control features in BigQuery to limit the data access to the specified working hours.
BR
Bronwyn
1 year ago
Hmm, I'm a bit unsure about this one. I'll need to review the details on how to set up access controls and time-based policies in BigQuery.
DI
Dion
1 year ago
This seems like a tricky one. I'll need to carefully consider the different options and think through the pros and cons of each approach.
CE
Celia
1 year ago
Wait, I'm confused. If the script name is the first argument, shouldn't the value of $# be 4? I need to double-check my understanding of how the $# variable works.
VA
Vanna
1 year ago
Hmm, I'm a bit unsure about the exact steps here. I'll need to carefully read through the options to make sure I understand the right way to insert the page break.
JE
Jenelle
3 years ago
I think option C could work too, assigning a BigQuery Data Viewer role to a service account that adds and removes users daily.
TY
Ty
3 years ago
I agree with Michal, option A sounds simpler and more straightforward.
TA
Tamar
3 years ago
I disagree, I believe option B is the best choice. Configuring Cloud Scheduler to trigger Cloud Functions seems more efficient.
MI
Michal
3 years ago
I think we should go with option A, assigning a BigQuery Data Viewer role along with a 1AM condition.
ME
Meaghan
3 years ago
But what if we need a more automated solution? Option B might be the way to go for that.
NO
Nohemi
3 years ago
I'm leaning towards option C. Assigning a BigQuery Data Viewer role to a service account that handles user management daily seems practical.
NI
Nickie
3 years ago
I disagree, I believe option B is more efficient. Using Cloud Scheduler to trigger Cloud Functions for policy modification is a better approach.
ME
Meaghan
3 years ago
I think option A is the best choice. Assigning a BigQuery Data Viewer role along with a time condition makes sense.
SU
Susy
3 years ago
Option D with the gsuttl script sounds interesting, but I'm not sure how reliable that would be. Imagine if someone forgets to run the script, then we'd have a security breach!
IS
Isadora
3 years ago
I'm leaning towards Option C. Using a service account to add and remove users daily during the specified hours seems like a simpler approach. Plus, we can easily manage the access that way.
AL
Alfred
3 years ago
I agree, Grover. Option A looks like it might work, but I'm not sure how to set up that 1AM condition. Option B sounds a bit complicated with the Cloud Functions and Scheduler.
RA
Raul
3 years ago
D) Run a gsuttl script that assigns a BigQuery Data Viewer role, and remove it only during the specified working hours.
TA
Talia
3 years ago
I think setting up that 1AM condition shouldn't be too difficult.
NI
Nichelle
3 years ago
A) Assign a BigQuery Data Viewer role along with an 1AM condition that limits the access to specified working hours.
MA
Maynard
3 years ago
That could work too, but it might be a manual process daily.
MA
Malcolm
3 years ago
C) Assign a BigQuery Data Viewer role to a service account that adds and removes the users daily during the specified working hours.
DU
Dulce
3 years ago
Option A seems like the easiest solution.
TW
Twanna
3 years ago
A) Assign a BigQuery Data Viewer role along with an 1AM condition that limits the access to specified working hours.
GR
Grover
3 years ago
You know, with all these options, I'm starting to feel like we're playing a game of 'Guess the Correct Answer'. I wish the question was a little more straightforward.