0
0
GCPcloud~30 mins

Compliance certifications in GCP - Mini Project: Build & Apply

Choose your learning style9 modes available
Setting Up Compliance Certifications in GCP
📖 Scenario: You work for a company that needs to ensure its cloud resources meet specific compliance standards. Your task is to create a simple configuration that lists compliance certifications and associates them with a GCP project.
🎯 Goal: Build a configuration that defines a GCP project with a list of compliance certifications attached as metadata labels.
📋 What You'll Learn
Create a dictionary called compliance_certifications with exact keys and values
Create a variable called project_id with the exact string value
Create a dictionary called project_config that includes project_id and labels referencing compliance_certifications
Add a final key compliance_enabled set to true in project_config
💡 Why This Matters
🌍 Real World
Companies must track compliance certifications on their cloud projects to meet legal and security requirements.
💼 Career
Cloud engineers and compliance officers often configure and verify compliance metadata in cloud environments.
Progress0 / 4 steps
1
Create compliance certifications dictionary
Create a dictionary called compliance_certifications with these exact entries: 'ISO27001': 'Certified', 'SOC2': 'In Progress', 'HIPAA': 'Certified'
GCP
Need a hint?

Use curly braces to create a dictionary with the exact keys and values.

2
Create project ID variable
Create a variable called project_id and set it to the exact string 'my-gcp-project-123'
GCP
Need a hint?

Assign the exact string to the variable project_id.

3
Create project configuration dictionary
Create a dictionary called project_config with keys 'project_id' set to the variable project_id and 'labels' set to the dictionary compliance_certifications
GCP
Need a hint?

Use curly braces to create project_config with the specified keys and values.

4
Add compliance enabled flag
Add a key 'compliance_enabled' with the boolean value true to the existing project_config dictionary
GCP
Need a hint?

Add the key and value inside the project_config dictionary.