- A
A service account with roles/storage.objectViewer to read the bucket.
DLP needs permission to access the objects.
- B
A Cloud Function to send each file to the DLP API.
Why wrong: DLP can directly inspect Cloud Storage files without Cloud Functions.
- C
The bucket must be in the same project as the DLP job.
Why wrong: DLP can inspect buckets across projects.
- D
A Pub/Sub topic to receive inspection results.
Why wrong: Pub/Sub is optional; output can be sent to BigQuery or other locations.
- E
The bucket must contain only text-based files (e.g., CSV, JSON).
DLP inspects text content; binary files are not suported.
Cloud DLP Inspection Prerequisites for Cloud Storage
This PCSE practice question tests your understanding of pcse exam topics. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
Which TWO options are required to use Cloud DLP to successfully inspect data in a Cloud Storage bucket?
Quick Answer
The answer is that the bucket must contain only text-based files, such as CSV or JSON, and the DLP job’s service account must have the roles/storage.objectViewer IAM role. The first requirement is critical because Cloud DLP’s inspection engine can only parse and analyze structured or semi-structured text formats; binary files like images or archives are skipped entirely during scanning. The second requirement ensures the DLP API has read access to list and read objects without needing to download them, which is a core prerequisite for Cloud DLP inspection prerequisites for Cloud Storage. On the Google Professional Cloud Security Engineer exam, this tests your understanding of how DLP integrates with Cloud Storage permissions and file type limitations—a common trap is assuming DLP can inspect any file type or that write access is needed. Remember the mnemonic “Text and Read”: only text files get inspected, and the service account only needs read (objectViewer) access.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
A service account with roles/storage.objectViewer to read the bucket.
Option A is correct because Cloud DLP requires read access to the Cloud Storage bucket to inspect objects. The service account used by the DLP job must have the roles/storage.objectViewer IAM role, which grants permission to list and read objects without needing to download them. This ensures the DLP API can access the data for content inspection.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
A service account with roles/storage.objectViewer to read the bucket.
Why this is correct
DLP needs permission to access the objects.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
A Cloud Function to send each file to the DLP API.
Why it's wrong here
DLP can directly inspect Cloud Storage files without Cloud Functions.
- ✗
The bucket must be in the same project as the DLP job.
Why it's wrong here
DLP can inspect buckets across projects.
- ✗
A Pub/Sub topic to receive inspection results.
Why it's wrong here
Pub/Sub is optional; output can be sent to BigQuery or other locations.
- ✓
The bucket must contain only text-based files (e.g., CSV, JSON).
Why this is correct
DLP inspects text content; binary files are not suported.
Related concept
Read the scenario before looking for a memorised answer.
Common exam traps
Common exam trap: answer the scenario, not the keyword
Google Cloud often tests the misconception that Cloud DLP requires additional infrastructure like Cloud Functions or Pub/Sub to inspect Cloud Storage, when in fact DLP can directly access buckets with the correct IAM permissions.
Trap categories for this question
Command / output trap
Pub/Sub is optional; output can be sent to BigQuery or other locations.
Detailed technical explanation
How to think about this question
Cloud DLP uses a service account (either a user-managed or Google-managed account) to access Cloud Storage via the storage.googleapis.com API. The roles/storage.objectViewer role includes storage.objects.get and storage.objects.list permissions, which are sufficient for DLP to read file contents. For cross-project scenarios, the service account must be granted IAM roles on the target bucket, and the DLP job can be configured with the bucket's URL (e.g., gs://bucket-name) regardless of project boundaries.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
Related practice questions
Related PCSE practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Configuring Access Within a Cloud Solution Environment practice questions
Practise PCSE questions linked to Configuring Access Within a Cloud Solution Environment.
Ensuring Data Protection practice questions
Practise PCSE questions linked to Ensuring Data Protection.
Managing Operations in a Cloud Solution Environment practice questions
Practise PCSE questions linked to Managing Operations in a Cloud Solution Environment.
Configuring Network Security practice questions
Practise PCSE questions linked to Configuring Network Security.
Supporting Compliance Requirements practice questions
Practise PCSE questions linked to Supporting Compliance Requirements.
PCSE fundamentals practice questions
Practise PCSE questions linked to PCSE fundamentals.
PCSE scenario practice questions
Practise PCSE questions linked to PCSE scenario.
PCSE troubleshooting practice questions
Practise PCSE questions linked to PCSE troubleshooting.
Practice this exam
Start a free PCSE practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this PCSE question test?
Read the scenario before looking for a memorised answer.
What is the correct answer to this question?
The correct answer is: A service account with roles/storage.objectViewer to read the bucket. — Option A is correct because Cloud DLP requires read access to the Cloud Storage bucket to inspect objects. The service account used by the DLP job must have the roles/storage.objectViewer IAM role, which grants permission to list and read objects without needing to download them. This ensures the DLP API can access the data for content inspection.
What should I do if I get this PCSE question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Keep practising
More PCSE practice questions
- Match each encryption scope to its description.
- Drag and drop the steps to set up a Private Google Access for on-premises hosts using Private Service Connect in the cor…
- A company is designing a CI/CD pipeline using Cloud Build. Security requirements mandate that the pipeline deploy only t…
- A company must implement data residency requirements that prohibit storing data outside the European Union. They are usi…
- A company wants to allow employees to access a web application running on Google Kubernetes Engine (GKE) using their cor…
- A security engineer is investigating an incident where an attacker gained access to a Compute Engine instance's serial c…
Last reviewed: Jun 30, 2026
This PCSE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PCSE exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.