0
0
GCPcloud~30 mins

Well-Architected Framework review in GCP - Mini Project: Build & Apply

Choose your learning style9 modes available
Well-Architected Framework Review on GCP
📖 Scenario: You are a cloud architect helping a small company understand how to review their Google Cloud Platform (GCP) setup using the Well-Architected Framework. This framework helps ensure their cloud infrastructure is reliable, secure, efficient, and cost-effective.
🎯 Goal: Build a simple checklist in code that represents the five pillars of the Well-Architected Framework on GCP. Then, add a configuration to mark which pillars have been reviewed. Finally, create logic to list the pillars that still need review and complete the checklist by marking all pillars as reviewed.
📋 What You'll Learn
Create a dictionary with the five Well-Architected Framework pillars as keys and their descriptions as values.
Add a configuration variable to track which pillars have been reviewed.
Write code to find and list pillars that are not yet reviewed.
Complete the checklist by marking all pillars as reviewed.
💡 Why This Matters
🌍 Real World
Cloud architects use the Well-Architected Framework to review and improve cloud infrastructure setups, ensuring they meet best practices for reliability, security, and cost.
💼 Career
Understanding how to represent and track cloud architecture reviews programmatically is useful for cloud engineers and architects managing GCP environments.
Progress0 / 4 steps
1
Create the Well-Architected Framework pillars dictionary
Create a dictionary called pillars with these exact entries: 'Operational Excellence' with value 'Focus on operations and monitoring', 'Security' with value 'Protect information and systems', 'Reliability' with value 'Ensure workload availability', 'Performance Efficiency' with value 'Use resources efficiently', and 'Cost Optimization' with value 'Manage costs effectively'.
GCP
Need a hint?

Use a Python dictionary with the exact pillar names as keys and their descriptions as values.

2
Add a reviewed pillars set
Create a set called reviewed_pillars that contains exactly these two strings: 'Security' and 'Reliability' to represent the pillars already reviewed.
GCP
Need a hint?

Use a Python set with the exact pillar names 'Security' and 'Reliability'.

3
List pillars not yet reviewed
Create a list called pending_review that contains all keys from pillars which are not in reviewed_pillars. Use a list comprehension with variables pillar for iteration.
GCP
Need a hint?

Use a list comprehension to select pillars not in the reviewed_pillars set.

4
Mark all pillars as reviewed
Update the reviewed_pillars set to include all keys from pillars by assigning it to a set of all keys from pillars.
GCP
Need a hint?

Assign reviewed_pillars to a set of all keys from pillars using set(pillars.keys()).