
始める前に
- ラボでは、Google Cloud プロジェクトとリソースを一定の時間利用します
- ラボには時間制限があり、一時停止機能はありません。ラボを終了した場合は、最初からやり直す必要があります。
- 画面左上の [ラボを開始] をクリックして開始します
As Lead AI Solutions Architect at Cymbal Bank, your task is to enforce strict data privacy for the Zermatt Holiday Helper agent, which is an app used by high-value customers. To comply with internal policies and industry regulations, you must ensure that personally identifiable information (PII) is not stored in logs, the conversation history, or exports.
This involves using Google Cloud’s Data Loss Prevention (DLP) API, Conversational Agents security settings, and BigQuery redaction to automatically detect and redact sensitive data such as credit card numbers.
In this lab, you learn how to perform the following tasks:
By the end of this lab, your Conversational Agents agent should be fully compliant with Cymbal Bank’s privacy and data retention standards to ensure sensitive information is redacted across all data flows.
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 will be made available to you.
This Qwiklabs hands-on lab lets you do the lab activities yourself in a real cloud environment, not in a simulation or demo environment. It does so by giving you new, temporary credentials that you use to sign in and access Google Cloud for the duration of the lab.
To complete this lab, you need:
Note: If you already have your own personal Google Cloud account or project, do not use it for this lab.
Note: If you are using a Pixelbook, open an Incognito window to run this lab.
Click the Start Lab button. If you need to pay for the lab, a dialog opens for you to select your payment method. On the left is the Lab Details pane with the following:
Click Open Google Cloud console (or right-click and select Open Link in Incognito Window if you are running the Chrome browser).
The lab spins up resources, and then opens another tab that shows the Sign in page.
Tip: Arrange the tabs in separate windows, side-by-side.
If necessary, copy the Username below and paste it into the Sign in dialog.
You can also find the Username in the Lab Details pane.
Click Next.
Copy the Password below and paste it into the Welcome dialog.
You can also find the Password in the Lab Details pane.
Click Next.
Click through the subsequent pages:
After a few moments, the Google Cloud console opens in this tab.
In this task, you help to uphold Cymbal Bank's data security and privacy standards by ensuring that PII is stored only in specially managed environments. Specifically, you avoid storing sensitive data in the Conversational Agents conversation history, Conversational Agents log entries, or conversations exported into BigQuery.
Here is a breakdown of the test-related activities in this task:
Go to the Conversational Agents console and in the Select Project window, choose
Under Agents, click Zermatt Holiday Helper.
Click the Toggle Simulator button at the top of the screen to close the Simulator window.
In the left-hand menu, select Tools, and select snow_conditions to edit the OpenAPI schema.
Scroll down to the Schema section and ensure YAML is selected. Replace the url
under servers
with
In the Google Cloud console, search for Data Loss Prevention
, and select Data Loss Prevention in the search results.
On the Sensitive Data Protection page that opens, click the Configuration tab, and select Templates > Inspect. Click on Create Template and configure a template with the following settings:
Setting | Value |
---|---|
Template type | Inspect (find sensitive data) |
Template ID | zhh-pii-template-lab |
Display name | Lab Agent PII |
Region |
Click Continue.
Under Configure detection, in the InfoTypes field, click Manage Infotypes.
In the Filter field where it says Enter property name or value
, search for CREDIT_CARD_NUMBER
.
Select the relevant result in the Value dropdown list, and click Done.
In the Confidence threshold ("minimum likelihood") section, in the Minimum likelihood dropdown list, select Very unlikely.
Click Create.
Click the Settings () icon in the toolbar.
On the General tab, scroll down to Logging settings, and select the Enable conversation history checkbox.
In the BigQuery export section, select the Enable BigQuery export checkbox.
Configure the BigQuery export settings as follows:
Setting | Value |
---|---|
Project name | |
BigQuery dataset | agent_exports |
BigQuery table | dialogflow_bigquery_export_data |
Click Save on the toolbar.
Switch to the Security tab. In the Data security section, click on Manage Security Settings.
In the new CES (it might still say CCAI but it's being rebranded to CES) browser tab that opens, click Create Security Settings, and configure it as follows:
Setting | Value |
---|---|
Display Name | zhh-pii-security-lab-settings |
Location | |
Redaction Strategy | REDACT_WITH_SERVICE |
Redaction Scope | REDACT_DISK_STORAGE |
Purge Data Type | DIALOGFLOW_HISTORY |
Inspect template | |
Select how to retain data | Use a retention window |
Retention Window Days | 365 |
Click Create.
Return to the Security tab in the Conversational Agents console. Refresh the page, and in the Security settings dropdown list, select zhh-pii-security-lab-settings
.
Click Save on the toolbar.
Click on Toggle Simulator in the toolbar to enable the Preview: Zermatt Holiday Helper
.
In the prompt field where it says Enter text (@ for other options)
, enter inputs as per the following sample conversation to test your redaction setup against the Draft environment:
User Input | Agent Response |
---|---|
Hi | |
Hi! How can I help you today? | |
Can you check if my credit card is locked? The number is 4111-1111-1111-1111 | |
I'm sorry, but I can't help you with that. I am a virtual assistant for Zermatt and am not able to provide credit card information. | |
OK, bye | |
Have a great day! |
Click Conversation history in the left-hand menu.
In the Session Id section, choose the most recent interaction listed in the Conversation History
, and verify that the credit card number shows in the conversation preview as [redacted]
.
In the Google Cloud console, go to Logs Explorer, search for redacted
against Project logs, and click Run query.
In the results, click on Expand nested fields to expand each query to view the full results.
Verify that the sensitive data was [redacted]
.
From the Navigation menu (☰), go to BigQuery. In the BigQuery console, in the Untitled query tab, run the following query and confirm that the number was redacted:
In the result, the query_text
value should read: Can you check if my credit card is locked? The number is [redacted]
.
In this lab, you explored how to safeguard personally identifiable information for conversational agents, which includes the detection of sensitive data using a DLP Inspect template, applying redaction policies across Conversational Agents, and protecting PII in conversation history, logs, and BigQuery exports.
When you have completed your lab, click End Lab. Qwiklabs removes the resources you’ve used and cleans the account for you.
You will be given an opportunity to rate the lab experience. Select the applicable number of stars, type a comment, and then click Submit.
The number of stars indicates the following:
You can close the dialog box if you don't want to provide feedback.
For feedback, suggestions, or corrections, please use the Support tab.
Manual last updated September 17, 2025
Lab last tested September 17, 2025
Copyright 2023 Google LLC All rights reserved. Google and the Google logo are trademarks of Google LLC. All other company and product names may be trademarks of the respective companies with which they are associated.
このコンテンツは現在ご利用いただけません
利用可能になりましたら、メールでお知らせいたします
ありがとうございます。
利用可能になりましたら、メールでご連絡いたします
1 回に 1 つのラボ
既存のラボをすべて終了して、このラボを開始することを確認してください
This lab explores how to detect and redact sensitive data across Conversational Agents using the Data Loss Prevention (DLP) API.
期間: 7 分設定 · アクセス時間: 90 分 · 完了までの時間: 90 分
AWS リージョン []
レベル: intermediate
パーマリンク: https://www.cloudskillsboost.google/catalog_lab/32310