Implement Sensitive Data Protection on Google Cloud: Challenge Lab - ARC116

A passionate full-stack developer from @ePlus.DEV
Search for a command to run...

A passionate full-stack developer from @ePlus.DEV
No comments yet. Be the first to comment.
Quick and practical tips to help users optimize tasks, improve skills, and solve common problems effectively across various areas like tech, lifestyle, productivity, and more.
Overview Managed Service for Apache Spark is a fast, easy-to-use, fully-managed cloud service for running Apache Spark and Apache Hadoop clusters in a simpler, more cost-efficient way. Operations that
Một bản tin giúp Developer cập nhật nhanh AI, Cloud, Open Source và những công nghệ đáng chú ý trong ngày. 📌 Executive Summary OpenAI thay đổi thời điểm tính phí seat mới của ChatGPT Business từ n

Overview Dataplex is an intelligent data fabric that enables organizations to centrally discover, manage, monitor, and govern their data across data lakes, data warehouses, and data marts to power ana

Daily Tech Brief — 06/08/2026 Một bản tin giúp Developer cập nhật nhanh AI, Cloud, Open Source và những công nghệ đáng chú ý trong ngày. 📌 Executive Summary Claude Code 2.1.223 vá nhiều đường обх

Overview In a challenge lab you’re given a scenario and a set of tasks. Instead of following step-by-step instructions, you will use the skills learned from the labs in the course to figure out how to

🏕️ Arcade Base Camp August 2026 Welcome to Arcade Base Camp August 2026, where you’ll develop key Google Cloud skills and earn an exclusive credential that will open doors to the cloud for you. No pr

In a challenge lab you’re given a scenario and a set of tasks. Instead of following step-by-step instructions, you will use the skills learned from the labs in the course to figure out how to complete the tasks on your own! An automated scoring system (shown on this page) will provide feedback on whether you have completed your tasks correctly.
When you take a challenge lab, you will not be taught new Google Cloud concepts. You are expected to extend your learned skills, like changing default values and reading and researching error messages to fix your own mistakes.
To score 100% you must successfully complete all tasks within the time period!
Read these instructions. Labs are timed and you cannot pause them. The timer, which starts when you click Start Lab, shows how long Google Cloud resources are made available to you.
This hands-on lab lets you do the lab activities in a real cloud environment, not in a simulation or demo environment. It does so by giving you new, temporary credentials you use to sign in and access Google Cloud for the duration of the lab.
To complete this lab, you need:
Note: Use an Incognito (recommended) or private browser window to run this lab. This prevents conflicts between your personal account and the student account, which may cause extra charges incurred to your personal account.
Note: Use only the student account for this lab. If you use a different Google Cloud account, you may incur charges to that account.
You are working as a junior cloud engineer in your organization. You're part of a team of cloud engineers assigned to using Sensitive Data Protection API's powerful detection engine to protect and screen for personally identifiable information (PII) and other privacy-sensitive data. As part of this project, you are asked to use the Sensitive Data Protection service in Google Cloud to redact sensitive information from text, de-identify sensitive data, and create a DLP template to use for inspecting data.
You are expected to have the skills and knowledge for the tasks that follow.
For this challenge, you have been tasked with redacting and de-identifying sensitive information, and creating templates to inspect structured and unstructured data.
You need to:
Inspect strings and files to perform de-identification.
Create de-identification inspection templates.
Configure a job trigger to run DLP inspections.
Each task is described in detail below, good luck!
To complete this task, set an environmental variable for your project ID and obtain an authorization token in Cloud Shell.
Create a JSON file called redact-request.json using the code that follows and use curl to make a content:deidentify request.
Save the curl command output in a file called redact-response.txt.
Upload the output file, redact-response.txt, to the Cloud Storage Bucket qwiklabs-gcp-03-e70864e117d9-redact.
```
sdsd
``
For this task, you create two de-identification templates that are used to inspect structured and unstructured data, respectively.
structured_data_template (in Multi-region > us (multiple regions in United States) that has two transformation rules:a. First transformation rule:
| Parameter | Configuration |
|---|---|
| Transformation Rule fields | bank name, zip code |
| Transformation type | Primitive field transformation |
| Transformation method | Mask with character |
| Masking Character | # |
| Mask all characters | Enable mask all characters checkbox and do not ignore any characters |
b. Second transformation rule:
| Parameter | Configuration |
|---|---|
| Transformation Rule fields | message |
| Transformation type | Match on infoType |
| Transformation method | Replace with infoType name |
unstructured_data_template (in Multi-region > us (multiple regions in United States), configured as:| Parameter | Configuration |
|---|---|
| Transformation Rule | Replace |
| String value | [redacted] |
Click Check my progress to verify the objective.
For this task, you configure a job trigger to run the Cloud Data Loss Prevention API. A few sample files have been provided for you in the Cloud Storage Bucket named qwiklabs-gcp-03-e70864e117d9-input.
dlp_job (in Multi-region > us (multiple regions in United States).| Parameter | Configuration |
|---|---|
| Storage type | Cloud Storage |
| Location Type | Scan a bucket with optional include/exclude rules. |
| Cloud Storage Input location | qwiklabs-gcp-03-e70864e117d9-input |
| Percentage of included objects scanned within the bucket | 100% |
| Sampling method | No sampling |
| Actions | Toggle Make a de-identify copy. Enter the names of the two templates that you created into the appropriate boxes |
| Cloud Storage output location | gs://qwiklabs-gcp-03-e70864e117d9-output |
| Schedule | Create a trigger to run the job on a periodic schedule (Weekly) |
gs://qwiklabs-gcp-03-e70864e117d9-output to verify the redacted data.Click Check my progress to verify the objective.
Configure a job trigger to run DLP inspection
https://youtu.be/GP-3t4aJuIQ?si=uKsMpp110ldIBfy8
curl -LO raw.githubusercontent.com/ePlus-DEV/storage/refs/heads/main/labs/ARC116/lab.sh
source lab.sh
Script Alternative
curl -LO raw.githubusercontent.com/Cloud-Wala-Banda/Labs-Solutions/refs/heads/main/Get%20Started%20with%20Sensitive%20Data%20Protection%20Challenge%20Lab/arc116.sh
sudo chmod +x *.sh
./*.sh