Update Cloud Configs
Stripe ☯️ Medium Linux
Beginner Mode

Start your terminal to use beginner mode.

Scenario

Each application environment (staging, dev, prod) has its own configuration file stored under /etc/app/envs/, and each file currently has multi_az = false and availability_zone = "us-east-1a". Manually editing each file is error-prone and inefficient, so the change must be automated.

Task

Locate all .conf files under /etc/app/envs/ across different environment subdirectories, update the multi_az setting from false to true, modify the availability_zone line to include two zones "us-east-1a,us-east-1b", perform these edits in-place while preserving all other configuration values.

Example

# Before (single-AZ configuration)

region = "us-east-1"
availability_zone = "us-east-1a"
multi_az = false
# After (multi-AZ configuration enabled)

region = "us-east-1"
availability_zone = "us-east-1a,us-east-1b"
multi_az = true

Terminal requires a larger screen

Open this page on a desktop or tablet (≥ 768px) to launch the terminal and practice hands-on.

Linux Terminal Environment

Write and execute your solution in the terminal below.

Sign In

Track

Question Difficulty Company Access
Need more practice in this area? Explore more questions →