What is the purpose of setting a default region in AWS CLI configuration?

Reason Description
Avoids needing to specify --region each time Simplifies command usage by setting a default
Ensures consistent behavior Prevents accidental operations in the wrong region
Required for some commands Some AWS CLI commands will fail without a region set
Supports automation scripts Useful in scripts where region consistency is critical

What is the primary reason for configuring multiple named profiles in AWS CLI?

Multiple AWS accounts Easily switch between accounts (e.g., Dev, Prod)
Assuming different IAM roles Access different resources with different permissions
Different AWS regions or output formats Customize CLI behavior per profile
Separation of duties or projects Avoid conflicts by isolating credentials/configs

How can you securely access an Amazon EC2 instance for the first time?

Launch with a Key Pair
Connect Securely Based on OS
Network Security

What happens when you modify an EBS volume type from gp2 to gp3?

OS-level reachability: Whether the instance's operating system is accepting traffic.

Boot-level problems: OS is stuck in a boot loop or hung.

Software configuration issues: Critical services not running or misconfigured.

Kernel issues: Crashes, panics, or hangs at the OS level.

Vertical scaling is also known as?

Vertical scaling involves increasing the capacity (CPU, RAM, storage, etc.) of a single server or instance rather than adding more servers.

Vertical scaling involves increasing the capacity (CPU, RAM, storage, etc.) of a single server or instance rather than adding more servers.

Vertical scaling involves increasing the capacity (CPU, RAM, storage, etc.) of a single server or instance rather than adding more servers.