InterviewTreedInterviewTreed

InterviewTreed Question Bank

Cloud Computing, Azure & AWS Interview Questions and Answers

Prepare for cloud computing, Microsoft Azure, AWS, cloud architecture, identity management, networking, storage, serverless computing, deployment, and cloud security.

Total Questions

100

Beginner

39

Intermediate

45

Advanced

16

Beginner Questions

Foundational concepts, terminology, and core ideas.

Q1Cloud Fundamentals

What is cloud computing?

What is cloud computing? Begin with functional, security, performance, compliance, and recovery requirements. Select services that satisfy them w…

Answer

What is cloud computing? Begin with functional, security, performance, compliance, and recovery requirements. Select services that satisfy them without unnecessary complexity, define identity and network boundaries, automate repeatable operations, and validate the design with monitoring and failure testing.

Syntax

requirements → service choice → secure configuration → monitor

Example

Choose the simplest service that satisfies the requirements, then test access, scaling, backup, monitoring, and cost before launch.

Code example

# Readiness checklist
# 1. Define requirements and recovery objectives
# 2. Apply identity/network controls
# 3. Automate deployment and validation
# 4. Monitor cost, health, and security

Diagram

Requirements → cloud services → network/identity controls → telemetry → operations

Key Points

  • Requirements first
  • service fit
  • security
  • operational readiness
  • cost
Q2Cloud Fundamentals

Compare IaaS, PaaS, and SaaS.

Compare IaaS, PaaS, and SaaS. Begin with functional, security, performance, compliance, and recovery requirements. Select services that satisfy t…

Answer

Compare IaaS, PaaS, and SaaS. Begin with functional, security, performance, compliance, and recovery requirements. Select services that satisfy them without unnecessary complexity, define identity and network boundaries, automate repeatable operations, and validate the design with monitoring and failure testing.

Syntax

requirements → service choice → secure configuration → monitor

Example

Choose the simplest service that satisfies the requirements, then test access, scaling, backup, monitoring, and cost before launch.

Code example

# Readiness checklist
# 1. Define requirements and recovery objectives
# 2. Apply identity/network controls
# 3. Automate deployment and validation
# 4. Monitor cost, health, and security

Diagram

Requirements → cloud services → network/identity controls → telemetry → operations

Key Points

  • Requirements first
  • service fit
  • security
  • operational readiness
  • cost
Q3Cloud Fundamentals

Explain the shared responsibility model.

Explain the shared responsibility model. Begin with functional, security, performance, compliance, and recovery requirements. Select services tha…

Answer

Explain the shared responsibility model. Begin with functional, security, performance, compliance, and recovery requirements. Select services that satisfy them without unnecessary complexity, define identity and network boundaries, automate repeatable operations, and validate the design with monitoring and failure testing.

Syntax

requirements → service choice → secure configuration → monitor

Example

Choose the simplest service that satisfies the requirements, then test access, scaling, backup, monitoring, and cost before launch.

Code example

# Readiness checklist
# 1. Define requirements and recovery objectives
# 2. Apply identity/network controls
# 3. Automate deployment and validation
# 4. Monitor cost, health, and security

Diagram

Requirements → cloud services → network/identity controls → telemetry → operations

Key Points

  • Requirements first
  • service fit
  • security
  • operational readiness
  • cost
Q4Cloud Fundamentals

What are cloud regions and availability zones?

What are cloud regions and availability zones? Design for failure domains, dependency behavior, data consistency, and business recovery objective…

Answer

What are cloud regions and availability zones? Design for failure domains, dependency behavior, data consistency, and business recovery objectives. Use redundancy, health checks, bounded retries, tested backups, and clear runbooks; verify recovery against measured RTO and RPO targets.

Syntax

detect → isolate → recover/fail over → verify → learn

Example

Set recovery objectives, test a realistic failure scenario, and measure recovery rather than relying on documentation alone.

Code example

# Bounded retry pseudocode
for attempt in range(3):
    try:
        return call_with_timeout(2.0)
    except TransientError:
        wait_with_exponential_backoff_and_jitter(attempt)

Diagram

Failure signal → health/telemetry → failover or restore → verification → review

Key Points

  • Failure domains
  • RTO/RPO
  • monitoring
  • bounded retries
  • recovery drills
Q5Cloud Fundamentals

High availability vs disaster recovery: what is the difference?

High availability vs disaster recovery: what is the difference? Design for failure domains, dependency behavior, data consistency, and business r…

Answer

High availability vs disaster recovery: what is the difference? Design for failure domains, dependency behavior, data consistency, and business recovery objectives. Use redundancy, health checks, bounded retries, tested backups, and clear runbooks; verify recovery against measured RTO and RPO targets.

Syntax

detect → isolate → recover/fail over → verify → learn

Example

Set recovery objectives, test a realistic failure scenario, and measure recovery rather than relying on documentation alone.

Code example

# Bounded retry pseudocode
for attempt in range(3):
    try:
        return call_with_timeout(2.0)
    except TransientError:
        wait_with_exponential_backoff_and_jitter(attempt)

Diagram

Failure signal → health/telemetry → failover or restore → verification → review

Key Points

  • Failure domains
  • RTO/RPO
  • monitoring
  • bounded retries
  • recovery drills
Q6Cloud Fundamentals

Explain scalability and elasticity.

Explain scalability and elasticity. Begin with functional, security, performance, compliance, and recovery requirements. Select services that sat…

Answer

Explain scalability and elasticity. Begin with functional, security, performance, compliance, and recovery requirements. Select services that satisfy them without unnecessary complexity, define identity and network boundaries, automate repeatable operations, and validate the design with monitoring and failure testing.

Syntax

requirements → service choice → secure configuration → monitor

Example

Choose the simplest service that satisfies the requirements, then test access, scaling, backup, monitoring, and cost before launch.

Code example

# Readiness checklist
# 1. Define requirements and recovery objectives
# 2. Apply identity/network controls
# 3. Automate deployment and validation
# 4. Monitor cost, health, and security

Diagram

Requirements → cloud services → network/identity controls → telemetry → operations

Key Points

  • Requirements first
  • service fit
  • security
  • operational readiness
  • cost
Q7Cloud Fundamentals

Compare public, private, and hybrid cloud.

Compare public, private, and hybrid cloud. Begin with functional, security, performance, compliance, and recovery requirements. Select services t…

Answer

Compare public, private, and hybrid cloud. Begin with functional, security, performance, compliance, and recovery requirements. Select services that satisfy them without unnecessary complexity, define identity and network boundaries, automate repeatable operations, and validate the design with monitoring and failure testing.

Syntax

requirements → service choice → secure configuration → monitor

Example

Choose the simplest service that satisfies the requirements, then test access, scaling, backup, monitoring, and cost before launch.

Code example

# Readiness checklist
# 1. Define requirements and recovery objectives
# 2. Apply identity/network controls
# 3. Automate deployment and validation
# 4. Monitor cost, health, and security

Diagram

Requirements → cloud services → network/identity controls → telemetry → operations

Key Points

  • Requirements first
  • service fit
  • security
  • operational readiness
  • cost
Q10Cloud Architecture

What does cloud-native architecture mean?

What does cloud-native architecture mean? Define address ranges, routes, ingress/egress controls, DNS, and failure boundaries explicitly. Private…

Answer

What does cloud-native architecture mean? Define address ranges, routes, ingress/egress controls, DNS, and failure boundaries explicitly. Private addressing alone is not a security boundary; validate effective routes and both directions of traffic, then use flow logs and health probes to diagnose failures.

Syntax

source → DNS → route → security rule → listener → destination

Example

Troubleshoot DNS, effective routes, security rules, listener health, TLS, and application logs in that order.

Code example

# Diagnostics
nslookup app.example.com
curl -v https://app.example.com/health
# Inspect effective routes and firewall/security rules

Diagram

Client → DNS → route table → firewall/NSG/security group → load balancer → workload

Key Points

  • CIDR planning
  • routes
  • security rules
  • DNS
  • health checks
Q11Compute

When would you choose a VM over a container?

When would you choose a VM over a container? Begin with functional, security, performance, compliance, and recovery requirements. Select services…

Answer

When would you choose a VM over a container? Begin with functional, security, performance, compliance, and recovery requirements. Select services that satisfy them without unnecessary complexity, define identity and network boundaries, automate repeatable operations, and validate the design with monitoring and failure testing.

Syntax

requirements → service choice → secure configuration → monitor

Example

Choose the simplest service that satisfies the requirements, then test access, scaling, backup, monitoring, and cost before launch.

Code example

# Readiness checklist
# 1. Define requirements and recovery objectives
# 2. Apply identity/network controls
# 3. Automate deployment and validation
# 4. Monitor cost, health, and security

Diagram

Requirements → cloud services → network/identity controls → telemetry → operations

Key Points

  • Requirements first
  • service fit
  • security
  • operational readiness
  • cost
Q13Compute

What is serverless computing?

What is serverless computing? Begin with functional, security, performance, compliance, and recovery requirements. Select services that satisfy t…

Answer

What is serverless computing? Begin with functional, security, performance, compliance, and recovery requirements. Select services that satisfy them without unnecessary complexity, define identity and network boundaries, automate repeatable operations, and validate the design with monitoring and failure testing.

Syntax

requirements → service choice → secure configuration → monitor

Example

Choose the simplest service that satisfies the requirements, then test access, scaling, backup, monitoring, and cost before launch.

Code example

# Readiness checklist
# 1. Define requirements and recovery objectives
# 2. Apply identity/network controls
# 3. Automate deployment and validation
# 4. Monitor cost, health, and security

Diagram

Requirements → cloud services → network/identity controls → telemetry → operations

Key Points

  • Requirements first
  • service fit
  • security
  • operational readiness
  • cost
Q14Compute

What operational tasks does a managed service remove?

What operational tasks does a managed service remove? Begin with functional, security, performance, compliance, and recovery requirements. Select…

Answer

What operational tasks does a managed service remove? Begin with functional, security, performance, compliance, and recovery requirements. Select services that satisfy them without unnecessary complexity, define identity and network boundaries, automate repeatable operations, and validate the design with monitoring and failure testing.

Syntax

requirements → service choice → secure configuration → monitor

Example

Choose the simplest service that satisfies the requirements, then test access, scaling, backup, monitoring, and cost before launch.

Code example

# Readiness checklist
# 1. Define requirements and recovery objectives
# 2. Apply identity/network controls
# 3. Automate deployment and validation
# 4. Monitor cost, health, and security

Diagram

Requirements → cloud services → network/identity controls → telemetry → operations

Key Points

  • Requirements first
  • service fit
  • security
  • operational readiness
  • cost
Q15Compute & Deployment

What is a container registry?

What is a container registry? Begin with functional, security, performance, compliance, and recovery requirements. Select services that satisfy t…

Answer

What is a container registry? Begin with functional, security, performance, compliance, and recovery requirements. Select services that satisfy them without unnecessary complexity, define identity and network boundaries, automate repeatable operations, and validate the design with monitoring and failure testing.

Syntax

requirements → service choice → secure configuration → monitor

Example

Choose the simplest service that satisfies the requirements, then test access, scaling, backup, monitoring, and cost before launch.

Code example

# Readiness checklist
# 1. Define requirements and recovery objectives
# 2. Apply identity/network controls
# 3. Automate deployment and validation
# 4. Monitor cost, health, and security

Diagram

Requirements → cloud services → network/identity controls → telemetry → operations

Key Points

  • Requirements first
  • service fit
  • security
  • operational readiness
  • cost
Q18Networking

What is a load balancer?

What is a load balancer? Define address ranges, routes, ingress/egress controls, DNS, and failure boundaries explicitly. Private addressing alone…

Answer

What is a load balancer? Define address ranges, routes, ingress/egress controls, DNS, and failure boundaries explicitly. Private addressing alone is not a security boundary; validate effective routes and both directions of traffic, then use flow logs and health probes to diagnose failures.

Syntax

source → DNS → route → security rule → listener → destination

Example

Troubleshoot DNS, effective routes, security rules, listener health, TLS, and application logs in that order.

Code example

# Diagnostics
nslookup app.example.com
curl -v https://app.example.com/health
# Inspect effective routes and firewall/security rules

Diagram

Client → DNS → route table → firewall/NSG/security group → load balancer → workload

Key Points

  • CIDR planning
  • routes
  • security rules
  • DNS
  • health checks
Q19Networking

What role does DNS play in cloud architecture?

What role does DNS play in cloud architecture? Define address ranges, routes, ingress/egress controls, DNS, and failure boundaries explicitly. Pr…

Answer

What role does DNS play in cloud architecture? Define address ranges, routes, ingress/egress controls, DNS, and failure boundaries explicitly. Private addressing alone is not a security boundary; validate effective routes and both directions of traffic, then use flow logs and health probes to diagnose failures.

Syntax

source → DNS → route → security rule → listener → destination

Example

Troubleshoot DNS, effective routes, security rules, listener health, TLS, and application logs in that order.

Code example

# Diagnostics
nslookup app.example.com
curl -v https://app.example.com/health
# Inspect effective routes and firewall/security rules

Diagram

Client → DNS → route table → firewall/NSG/security group → load balancer → workload

Key Points

  • CIDR planning
  • routes
  • security rules
  • DNS
  • health checks
Q20Networking

What are AWS VPC and Azure VNet?

What are AWS VPC and Azure VNet? Configure the relevant Azure resource using the correct subscription, region, SKU, network boundary, and access …

Answer

What are AWS VPC and Azure VNet? Configure the relevant Azure resource using the correct subscription, region, SKU, network boundary, and access policy. Use least-privilege Azure RBAC, enable appropriate diagnostics, and verify service-specific limits and recovery options.

Syntax

az account show
az resource list -g <resource-group> -o table

Example

Inspect the active subscription and target resource group before changing configuration.

Code example

# Azure CLI examples; replace placeholders
az account show
az resource list -g rg-demo -o table

Diagram

Entra ID / Azure RBAC → Subscription → Resource group → Azure resource

Key Points

  • Azure CLI
  • scope
  • RBAC
  • region/SKU
  • diagnostics
Q21Networking

What is a subnet and how should you size it?

What is a subnet and how should you size it? Define address ranges, routes, ingress/egress controls, DNS, and failure boundaries explicitly. Priv…

Answer

What is a subnet and how should you size it? Define address ranges, routes, ingress/egress controls, DNS, and failure boundaries explicitly. Private addressing alone is not a security boundary; validate effective routes and both directions of traffic, then use flow logs and health probes to diagnose failures.

Syntax

source → DNS → route → security rule → listener → destination

Example

Troubleshoot DNS, effective routes, security rules, listener health, TLS, and application logs in that order.

Code example

# Diagnostics
nslookup app.example.com
curl -v https://app.example.com/health
# Inspect effective routes and firewall/security rules

Diagram

Client → DNS → route table → firewall/NSG/security group → load balancer → workload

Key Points

  • CIDR planning
  • routes
  • security rules
  • DNS
  • health checks
Q24Azure Networking

What is an Azure Network Security Group?

What is an Azure Network Security Group? Configure the relevant Azure resource using the correct subscription, region, SKU, network boundary, and…

Answer

What is an Azure Network Security Group? Configure the relevant Azure resource using the correct subscription, region, SKU, network boundary, and access policy. Use least-privilege Azure RBAC, enable appropriate diagnostics, and verify service-specific limits and recovery options.

Syntax

az account show
az resource list -g <resource-group> -o table

Example

Inspect the active subscription and target resource group before changing configuration.

Code example

# Azure CLI examples; replace placeholders
az account show
az resource list -g rg-demo -o table

Diagram

Entra ID / Azure RBAC → Subscription → Resource group → Azure resource

Key Points

  • Azure CLI
  • scope
  • RBAC
  • region/SKU
  • diagnostics
Q29Networking

What is a content delivery network?

What is a content delivery network? Define address ranges, routes, ingress/egress controls, DNS, and failure boundaries explicitly. Private addre…

Answer

What is a content delivery network? Define address ranges, routes, ingress/egress controls, DNS, and failure boundaries explicitly. Private addressing alone is not a security boundary; validate effective routes and both directions of traffic, then use flow logs and health probes to diagnose failures.

Syntax

source → DNS → route → security rule → listener → destination

Example

Troubleshoot DNS, effective routes, security rules, listener health, TLS, and application logs in that order.

Code example

# Diagnostics
nslookup app.example.com
curl -v https://app.example.com/health
# Inspect effective routes and firewall/security rules

Diagram

Client → DNS → route table → firewall/NSG/security group → load balancer → workload

Key Points

  • CIDR planning
  • routes
  • security rules
  • DNS
  • health checks
Q32Storage

Compare block, file, and object storage.

Compare block, file, and object storage. Choose storage based on access pattern, performance, durability, consistency, and recovery requirements.…

Answer

Compare block, file, and object storage. Choose storage based on access pattern, performance, durability, consistency, and recovery requirements. Apply least-privilege access, encryption, lifecycle/retention policies, and monitoring. Versioning or snapshots help recovery but are not a substitute for tested backups.

Syntax

identity → storage API → object/volume/share → policy + encryption + lifecycle

Example

Keep storage private, grant access to the workload identity, enable encryption, and test retention and restore procedures.

Code example

# Inspect storage and access controls
aws s3 ls
aws s3api get-public-access-block --bucket <bucket-name>

Diagram

Application identity → storage endpoint → data + keys + backup/lifecycle

Key Points

  • Access policy
  • encryption
  • lifecycle
  • durability
  • restore testing
Q33AWS Services

What is Amazon S3?

What is Amazon S3? In AWS, select the suitable managed or self-managed service, confirm account and region, and grant narrowly scoped IAM permiss…

Answer

What is Amazon S3? In AWS, select the suitable managed or self-managed service, confirm account and region, and grant narrowly scoped IAM permissions. Review quotas, cost, availability, and operational responsibilities before production use.

Syntax

aws sts get-caller-identity
aws <service> describe-<resource>

Example

Verify the active AWS identity/account and inspect the resource before applying changes.

Code example

# AWS CLI examples; verify the service-specific command
aws sts get-caller-identity
aws ec2 describe-vpcs --output table

Diagram

AWS account → IAM role/policy → VPC/service resource → CloudWatch/CloudTrail

Key Points

  • AWS account/region
  • IAM
  • service settings
  • telemetry
  • cost
Q34Azure Services

What is Azure Blob Storage?

What is Azure Blob Storage? Configure the relevant Azure resource using the correct subscription, region, SKU, network boundary, and access polic…

Answer

What is Azure Blob Storage? Configure the relevant Azure resource using the correct subscription, region, SKU, network boundary, and access policy. Use least-privilege Azure RBAC, enable appropriate diagnostics, and verify service-specific limits and recovery options.

Syntax

az account show
az resource list -g <resource-group> -o table

Example

Inspect the active subscription and target resource group before changing configuration.

Code example

# Azure CLI examples; replace placeholders
az account show
az resource list -g rg-demo -o table

Diagram

Entra ID / Azure RBAC → Subscription → Resource group → Azure resource

Key Points

  • Azure CLI
  • scope
  • RBAC
  • region/SKU
  • diagnostics
Q35Storage

What are storage lifecycle policies?

What are storage lifecycle policies? Choose storage based on access pattern, performance, durability, consistency, and recovery requirements. App…

Answer

What are storage lifecycle policies? Choose storage based on access pattern, performance, durability, consistency, and recovery requirements. Apply least-privilege access, encryption, lifecycle/retention policies, and monitoring. Versioning or snapshots help recovery but are not a substitute for tested backups.

Syntax

identity → storage API → object/volume/share → policy + encryption + lifecycle

Example

Keep storage private, grant access to the workload identity, enable encryption, and test retention and restore procedures.

Code example

# Inspect storage and access controls
aws s3 ls
aws s3api get-public-access-block --bucket <bucket-name>

Diagram

Application identity → storage endpoint → data + keys + backup/lifecycle

Key Points

  • Access policy
  • encryption
  • lifecycle
  • durability
  • restore testing
Q37Storage & Security

Explain encryption at rest and in transit.

Explain encryption at rest and in transit. Choose storage based on access pattern, performance, durability, consistency, and recovery requirement…

Answer

Explain encryption at rest and in transit. Choose storage based on access pattern, performance, durability, consistency, and recovery requirements. Apply least-privilege access, encryption, lifecycle/retention policies, and monitoring. Versioning or snapshots help recovery but are not a substitute for tested backups.

Syntax

identity → storage API → object/volume/share → policy + encryption + lifecycle

Example

Keep storage private, grant access to the workload identity, enable encryption, and test retention and restore procedures.

Code example

# Inspect storage and access controls
aws s3 ls
aws s3api get-public-access-block --bucket <bucket-name>

Diagram

Application identity → storage endpoint → data + keys + backup/lifecycle

Key Points

  • Access policy
  • encryption
  • lifecycle
  • durability
  • restore testing
Q41Identity & Access

What is cloud IAM?

What is cloud IAM? Begin with functional, security, performance, compliance, and recovery requirements. Select services that satisfy them without…

Answer

What is cloud IAM? Begin with functional, security, performance, compliance, and recovery requirements. Select services that satisfy them without unnecessary complexity, define identity and network boundaries, automate repeatable operations, and validate the design with monitoring and failure testing.

Syntax

requirements → service choice → secure configuration → monitor

Example

Choose the simplest service that satisfies the requirements, then test access, scaling, backup, monitoring, and cost before launch.

Code example

# Readiness checklist
# 1. Define requirements and recovery objectives
# 2. Apply identity/network controls
# 3. Automate deployment and validation
# 4. Monitor cost, health, and security

Diagram

Requirements → cloud services → network/identity controls → telemetry → operations

Key Points

  • Requirements first
  • service fit
  • security
  • operational readiness
  • cost
Q42Identity & Access

Authentication vs authorization: explain the difference.

Authentication vs authorization: explain the difference. Identify the principal, authenticate it with an approved identity provider, and authoriz…

Answer

Authentication vs authorization: explain the difference. Identify the principal, authenticate it with an approved identity provider, and authorize only the actions required at the narrowest practical scope. Prefer managed identities or short-lived federated credentials to embedded long-lived secrets, and audit privileged operations.

Syntax

principal + action + resource + condition → allow/deny

Example

Grant a workload identity only the read actions it needs on the required resource, and review that assignment regularly.

Code example

# Illustrative least-privilege policy shape
{
  "Effect": "Allow",
  "Action": ["service:Read"],
  "Resource": "specific-resource"
}

Diagram

User/workload → authentication → policy evaluation → resource access

Key Points

  • Authentication vs authorization
  • least privilege
  • scoped roles
  • audit
  • credential hygiene
Q43Identity & Access

What is role-based access control?

What is role-based access control? Identify the principal, authenticate it with an approved identity provider, and authorize only the actions req…

Answer

What is role-based access control? Identify the principal, authenticate it with an approved identity provider, and authorize only the actions required at the narrowest practical scope. Prefer managed identities or short-lived federated credentials to embedded long-lived secrets, and audit privileged operations.

Syntax

principal + action + resource + condition → allow/deny

Example

Grant a workload identity only the read actions it needs on the required resource, and review that assignment regularly.

Code example

# Illustrative least-privilege policy shape
{
  "Effect": "Allow",
  "Action": ["service:Read"],
  "Resource": "specific-resource"
}

Diagram

User/workload → authentication → policy evaluation → resource access

Key Points

  • Authentication vs authorization
  • least privilege
  • scoped roles
  • audit
  • credential hygiene
Q44Identity & Access

Explain the principle of least privilege.

Explain the principle of least privilege. Identify the principal, authenticate it with an approved identity provider, and authorize only the acti…

Answer

Explain the principle of least privilege. Identify the principal, authenticate it with an approved identity provider, and authorize only the actions required at the narrowest practical scope. Prefer managed identities or short-lived federated credentials to embedded long-lived secrets, and audit privileged operations.

Syntax

principal + action + resource + condition → allow/deny

Example

Grant a workload identity only the read actions it needs on the required resource, and review that assignment regularly.

Code example

# Illustrative least-privilege policy shape
{
  "Effect": "Allow",
  "Action": ["service:Read"],
  "Resource": "specific-resource"
}

Diagram

User/workload → authentication → policy evaluation → resource access

Key Points

  • Authentication vs authorization
  • least privilege
  • scoped roles
  • audit
  • credential hygiene
Q48Identity & Access

Why is MFA important for cloud administrators?

Why is MFA important for cloud administrators? Identify the principal, authenticate it with an approved identity provider, and authorize only the…

Answer

Why is MFA important for cloud administrators? Identify the principal, authenticate it with an approved identity provider, and authorize only the actions required at the narrowest practical scope. Prefer managed identities or short-lived federated credentials to embedded long-lived secrets, and audit privileged operations.

Syntax

principal + action + resource + condition → allow/deny

Example

Grant a workload identity only the read actions it needs on the required resource, and review that assignment regularly.

Code example

# Illustrative least-privilege policy shape
{
  "Effect": "Allow",
  "Action": ["service:Read"],
  "Resource": "specific-resource"
}

Diagram

User/workload → authentication → policy evaluation → resource access

Key Points

  • Authentication vs authorization
  • least privilege
  • scoped roles
  • audit
  • credential hygiene
Q52Azure Governance

What are Azure subscriptions, resource groups, and management groups?

What are Azure subscriptions, resource groups, and management groups? Configure the relevant Azure resource using the correct subscription, regio…

Answer

What are Azure subscriptions, resource groups, and management groups? Configure the relevant Azure resource using the correct subscription, region, SKU, network boundary, and access policy. Use least-privilege Azure RBAC, enable appropriate diagnostics, and verify service-specific limits and recovery options.

Syntax

az account show
az resource list -g <resource-group> -o table

Example

Inspect the active subscription and target resource group before changing configuration.

Code example

# Azure CLI examples; replace placeholders
az account show
az resource list -g rg-demo -o table

Diagram

Entra ID / Azure RBAC → Subscription → Resource group → Azure resource

Key Points

  • Azure CLI
  • scope
  • RBAC
  • region/SKU
  • diagnostics
Q55Governance & Cost

What is resource tagging and why does it matter?

What is resource tagging and why does it matter? Define standards and enforce them with policy, tagging, budgets, alerts, and reviewed exceptions…

Answer

What is resource tagging and why does it matter? Define standards and enforce them with policy, tagging, budgets, alerts, and reviewed exceptions. Assign owners to alerts and include data transfer, backups, high availability, and non-production usage in cost estimates; budget alerts are not always hard spending caps.

Syntax

measure → allocate → set guardrail → alert → remediate

Example

Tag resources with owners and environments, alert on budget thresholds, and review actual spend against usage and reliability needs.

Code example

# Example metadata convention
Environment=production
Owner=platform-team
CostCenter=1234
# Configure budgets and alerts in cloud cost-management tooling

Diagram

Cloud resources → tags/usage telemetry → cost & policy reports → owner action

Key Points

  • Ownership
  • policy
  • budget alerts
  • quotas
  • auditability
Q59Azure Services

What is Azure App Service?

What is Azure App Service? Configure the relevant Azure resource using the correct subscription, region, SKU, network boundary, and access policy…

Answer

What is Azure App Service? Configure the relevant Azure resource using the correct subscription, region, SKU, network boundary, and access policy. Use least-privilege Azure RBAC, enable appropriate diagnostics, and verify service-specific limits and recovery options.

Syntax

az account show
az resource list -g <resource-group> -o table

Example

Inspect the active subscription and target resource group before changing configuration.

Code example

# Azure CLI examples; replace placeholders
az account show
az resource list -g rg-demo -o table

Diagram

Entra ID / Azure RBAC → Subscription → Resource group → Azure resource

Key Points

  • Azure CLI
  • scope
  • RBAC
  • region/SKU
  • diagnostics
Q60Azure Services

What is Azure Functions?

What is Azure Functions? Configure the relevant Azure resource using the correct subscription, region, SKU, network boundary, and access policy. …

Answer

What is Azure Functions? Configure the relevant Azure resource using the correct subscription, region, SKU, network boundary, and access policy. Use least-privilege Azure RBAC, enable appropriate diagnostics, and verify service-specific limits and recovery options.

Syntax

az account show
az resource list -g <resource-group> -o table

Example

Inspect the active subscription and target resource group before changing configuration.

Code example

# Azure CLI examples; replace placeholders
az account show
az resource list -g rg-demo -o table

Diagram

Entra ID / Azure RBAC → Subscription → Resource group → Azure resource

Key Points

  • Azure CLI
  • scope
  • RBAC
  • region/SKU
  • diagnostics
Q63Azure Observability

What is Azure Monitor?

What is Azure Monitor? Configure the relevant Azure resource using the correct subscription, region, SKU, network boundary, and access policy. Us…

Answer

What is Azure Monitor? Configure the relevant Azure resource using the correct subscription, region, SKU, network boundary, and access policy. Use least-privilege Azure RBAC, enable appropriate diagnostics, and verify service-specific limits and recovery options.

Syntax

az account show
az resource list -g <resource-group> -o table

Example

Inspect the active subscription and target resource group before changing configuration.

Code example

# Azure CLI examples; replace placeholders
az account show
az resource list -g rg-demo -o table

Diagram

Entra ID / Azure RBAC → Subscription → Resource group → Azure resource

Key Points

  • Azure CLI
  • scope
  • RBAC
  • region/SKU
  • diagnostics
Q66AWS Services

What is AWS EC2?

What is AWS EC2? In AWS, select the suitable managed or self-managed service, confirm account and region, and grant narrowly scoped IAM permissio…

Answer

What is AWS EC2? In AWS, select the suitable managed or self-managed service, confirm account and region, and grant narrowly scoped IAM permissions. Review quotas, cost, availability, and operational responsibilities before production use.

Syntax

aws sts get-caller-identity
aws <service> describe-<resource>

Example

Verify the active AWS identity/account and inspect the resource before applying changes.

Code example

# AWS CLI examples; verify the service-specific command
aws sts get-caller-identity
aws ec2 describe-vpcs --output table

Diagram

AWS account → IAM role/policy → VPC/service resource → CloudWatch/CloudTrail

Key Points

  • AWS account/region
  • IAM
  • service settings
  • telemetry
  • cost
Q67AWS Services

What is AWS Lambda?

What is AWS Lambda? In AWS, select the suitable managed or self-managed service, confirm account and region, and grant narrowly scoped IAM permis…

Answer

What is AWS Lambda? In AWS, select the suitable managed or self-managed service, confirm account and region, and grant narrowly scoped IAM permissions. Review quotas, cost, availability, and operational responsibilities before production use.

Syntax

aws sts get-caller-identity
aws <service> describe-<resource>

Example

Verify the active AWS identity/account and inspect the resource before applying changes.

Code example

# AWS CLI examples; verify the service-specific command
aws sts get-caller-identity
aws ec2 describe-vpcs --output table

Diagram

AWS account → IAM role/policy → VPC/service resource → CloudWatch/CloudTrail

Key Points

  • AWS account/region
  • IAM
  • service settings
  • telemetry
  • cost
Q68AWS Services

What is Amazon RDS?

What is Amazon RDS? In AWS, select the suitable managed or self-managed service, confirm account and region, and grant narrowly scoped IAM permis…

Answer

What is Amazon RDS? In AWS, select the suitable managed or self-managed service, confirm account and region, and grant narrowly scoped IAM permissions. Review quotas, cost, availability, and operational responsibilities before production use.

Syntax

aws sts get-caller-identity
aws <service> describe-<resource>

Example

Verify the active AWS identity/account and inspect the resource before applying changes.

Code example

# AWS CLI examples; verify the service-specific command
aws sts get-caller-identity
aws ec2 describe-vpcs --output table

Diagram

AWS account → IAM role/policy → VPC/service resource → CloudWatch/CloudTrail

Key Points

  • AWS account/region
  • IAM
  • service settings
  • telemetry
  • cost
Q73Infrastructure as Code

What is infrastructure as code?

What is infrastructure as code? Infrastructure as code makes changes reviewable and repeatable. Validate configuration, inspect planned changes, …

Answer

What is infrastructure as code? Infrastructure as code makes changes reviewable and repeatable. Validate configuration, inspect planned changes, protect state and credentials, and detect drift. Use controlled state storage and do not blindly apply destructive changes.

Syntax

init → validate → plan/diff → review → apply

Example

Validate configuration and review the plan in CI before applying through a controlled identity.

Code example

# Terraform workflow
terraform init
terraform fmt -check
terraform validate
terraform plan

Diagram

Versioned IaC → validation/plan → review/approval → cloud control plane

Key Points

  • Version control
  • plan review
  • state protection
  • least privilege
  • drift detection
Q77Deployment

How should cloud resources be deployed through CI/CD?

How should cloud resources be deployed through CI/CD? Automate repeatable validation, build an identifiable artifact, apply security checks, and …

Answer

How should cloud resources be deployed through CI/CD? Automate repeatable validation, build an identifiable artifact, apply security checks, and deploy through controlled environments. Use minimal pipeline permissions, protect production credentials, observe rollout health, and define rollback criteria before release.

Syntax

commit → build → test/scan → immutable artifact → deploy → verify

Example

Build a versioned artifact once, promote the same digest through staging and production, and verify health after rollout.

Code example

# Pipeline outline
npm ci
npm test
docker build -t registry.example.com/app:${GIT_SHA} .
# scan, publish, deploy, then run smoke tests

Diagram

Source → CI checks → artifact registry → staging → approval/traffic shift → production

Key Points

  • Automated checks
  • immutable artifacts
  • least privilege
  • rollout health
  • rollback
Q93Cloud Architecture

How do you design a multi-tier cloud application?

How do you design a multi-tier cloud application? Begin with functional, security, performance, compliance, and recovery requirements. Select ser…

Answer

How do you design a multi-tier cloud application? Begin with functional, security, performance, compliance, and recovery requirements. Select services that satisfy them without unnecessary complexity, define identity and network boundaries, automate repeatable operations, and validate the design with monitoring and failure testing.

Syntax

requirements → service choice → secure configuration → monitor

Example

Choose the simplest service that satisfies the requirements, then test access, scaling, backup, monitoring, and cost before launch.

Code example

# Readiness checklist
# 1. Define requirements and recovery objectives
# 2. Apply identity/network controls
# 3. Automate deployment and validation
# 4. Monitor cost, health, and security

Diagram

Requirements → cloud services → network/identity controls → telemetry → operations

Key Points

  • Requirements first
  • service fit
  • security
  • operational readiness
  • cost

Intermediate Questions

Implementation details, practical patterns, and common workflows.

Q8Cloud Architecture

What is a cloud landing zone?

What is a cloud landing zone? Begin with functional, security, performance, compliance, and recovery requirements. Select services that satisfy t…

Answer

What is a cloud landing zone? Begin with functional, security, performance, compliance, and recovery requirements. Select services that satisfy them without unnecessary complexity, define identity and network boundaries, automate repeatable operations, and validate the design with monitoring and failure testing.

Syntax

requirements → service choice → secure configuration → monitor

Example

Choose the simplest service that satisfies the requirements, then test access, scaling, backup, monitoring, and cost before launch.

Code example

# Readiness checklist
# 1. Define requirements and recovery objectives
# 2. Apply identity/network controls
# 3. Automate deployment and validation
# 4. Monitor cost, health, and security

Diagram

Requirements → cloud services → network/identity controls → telemetry → operations

Key Points

  • Requirements first
  • service fit
  • security
  • operational readiness
  • cost
Q9Cloud Architecture

What are the benefits and trade-offs of multi-cloud?

What are the benefits and trade-offs of multi-cloud? Begin with functional, security, performance, compliance, and recovery requirements. Select …

Answer

What are the benefits and trade-offs of multi-cloud? Begin with functional, security, performance, compliance, and recovery requirements. Select services that satisfy them without unnecessary complexity, define identity and network boundaries, automate repeatable operations, and validate the design with monitoring and failure testing.

Syntax

requirements → service choice → secure configuration → monitor

Example

Choose the simplest service that satisfies the requirements, then test access, scaling, backup, monitoring, and cost before launch.

Code example

# Readiness checklist
# 1. Define requirements and recovery objectives
# 2. Apply identity/network controls
# 3. Automate deployment and validation
# 4. Monitor cost, health, and security

Diagram

Requirements → cloud services → network/identity controls → telemetry → operations

Key Points

  • Requirements first
  • service fit
  • security
  • operational readiness
  • cost
Q12Compute

What is autoscaling and how does it work?

What is autoscaling and how does it work? Begin with functional, security, performance, compliance, and recovery requirements. Select services th…

Answer

What is autoscaling and how does it work? Begin with functional, security, performance, compliance, and recovery requirements. Select services that satisfy them without unnecessary complexity, define identity and network boundaries, automate repeatable operations, and validate the design with monitoring and failure testing.

Syntax

requirements → service choice → secure configuration → monitor

Example

Choose the simplest service that satisfies the requirements, then test access, scaling, backup, monitoring, and cost before launch.

Code example

# Readiness checklist
# 1. Define requirements and recovery objectives
# 2. Apply identity/network controls
# 3. Automate deployment and validation
# 4. Monitor cost, health, and security

Diagram

Requirements → cloud services → network/identity controls → telemetry → operations

Key Points

  • Requirements first
  • service fit
  • security
  • operational readiness
  • cost
Q16Compute & Deployment

What is Kubernetes and when is it useful?

What is Kubernetes and when is it useful? Begin with functional, security, performance, compliance, and recovery requirements. Select services th…

Answer

What is Kubernetes and when is it useful? Begin with functional, security, performance, compliance, and recovery requirements. Select services that satisfy them without unnecessary complexity, define identity and network boundaries, automate repeatable operations, and validate the design with monitoring and failure testing.

Syntax

requirements → service choice → secure configuration → monitor

Example

Choose the simplest service that satisfies the requirements, then test access, scaling, backup, monitoring, and cost before launch.

Code example

# Readiness checklist
# 1. Define requirements and recovery objectives
# 2. Apply identity/network controls
# 3. Automate deployment and validation
# 4. Monitor cost, health, and security

Diagram

Requirements → cloud services → network/identity controls → telemetry → operations

Key Points

  • Requirements first
  • service fit
  • security
  • operational readiness
  • cost
Q22Networking

What is a route table?

What is a route table? Define address ranges, routes, ingress/egress controls, DNS, and failure boundaries explicitly. Private addressing alone i…

Answer

What is a route table? Define address ranges, routes, ingress/egress controls, DNS, and failure boundaries explicitly. Private addressing alone is not a security boundary; validate effective routes and both directions of traffic, then use flow logs and health probes to diagnose failures.

Syntax

source → DNS → route → security rule → listener → destination

Example

Troubleshoot DNS, effective routes, security rules, listener health, TLS, and application logs in that order.

Code example

# Diagnostics
nslookup app.example.com
curl -v https://app.example.com/health
# Inspect effective routes and firewall/security rules

Diagram

Client → DNS → route table → firewall/NSG/security group → load balancer → workload

Key Points

  • CIDR planning
  • routes
  • security rules
  • DNS
  • health checks
Q23Networking

Compare AWS security groups and network ACLs.

Compare AWS security groups and network ACLs. In AWS, select the suitable managed or self-managed service, confirm account and region, and grant …

Answer

Compare AWS security groups and network ACLs. In AWS, select the suitable managed or self-managed service, confirm account and region, and grant narrowly scoped IAM permissions. Review quotas, cost, availability, and operational responsibilities before production use.

Syntax

aws sts get-caller-identity
aws <service> describe-<resource>

Example

Verify the active AWS identity/account and inspect the resource before applying changes.

Code example

# AWS CLI examples; verify the service-specific command
aws sts get-caller-identity
aws ec2 describe-vpcs --output table

Diagram

AWS account → IAM role/policy → VPC/service resource → CloudWatch/CloudTrail

Key Points

  • AWS account/region
  • IAM
  • service settings
  • telemetry
  • cost
Q25Networking

What is NAT and why is it used?

What is NAT and why is it used? Define address ranges, routes, ingress/egress controls, DNS, and failure boundaries explicitly. Private addressin…

Answer

What is NAT and why is it used? Define address ranges, routes, ingress/egress controls, DNS, and failure boundaries explicitly. Private addressing alone is not a security boundary; validate effective routes and both directions of traffic, then use flow logs and health probes to diagnose failures.

Syntax

source → DNS → route → security rule → listener → destination

Example

Troubleshoot DNS, effective routes, security rules, listener health, TLS, and application logs in that order.

Code example

# Diagnostics
nslookup app.example.com
curl -v https://app.example.com/health
# Inspect effective routes and firewall/security rules

Diagram

Client → DNS → route table → firewall/NSG/security group → load balancer → workload

Key Points

  • CIDR planning
  • routes
  • security rules
  • DNS
  • health checks
Q26Networking

What is VPC/VNet peering?

What is VPC/VNet peering? Define address ranges, routes, ingress/egress controls, DNS, and failure boundaries explicitly. Private addressing alon…

Answer

What is VPC/VNet peering? Define address ranges, routes, ingress/egress controls, DNS, and failure boundaries explicitly. Private addressing alone is not a security boundary; validate effective routes and both directions of traffic, then use flow logs and health probes to diagnose failures.

Syntax

source → DNS → route → security rule → listener → destination

Example

Troubleshoot DNS, effective routes, security rules, listener health, TLS, and application logs in that order.

Code example

# Diagnostics
nslookup app.example.com
curl -v https://app.example.com/health
# Inspect effective routes and firewall/security rules

Diagram

Client → DNS → route table → firewall/NSG/security group → load balancer → workload

Key Points

  • CIDR planning
  • routes
  • security rules
  • DNS
  • health checks
Q27Networking

VPN vs dedicated cloud connectivity: what are the trade-offs?

VPN vs dedicated cloud connectivity: what are the trade-offs? Define address ranges, routes, ingress/egress controls, DNS, and failure boundaries…

Answer

VPN vs dedicated cloud connectivity: what are the trade-offs? Define address ranges, routes, ingress/egress controls, DNS, and failure boundaries explicitly. Private addressing alone is not a security boundary; validate effective routes and both directions of traffic, then use flow logs and health probes to diagnose failures.

Syntax

source → DNS → route → security rule → listener → destination

Example

Troubleshoot DNS, effective routes, security rules, listener health, TLS, and application logs in that order.

Code example

# Diagnostics
nslookup app.example.com
curl -v https://app.example.com/health
# Inspect effective routes and firewall/security rules

Diagram

Client → DNS → route table → firewall/NSG/security group → load balancer → workload

Key Points

  • CIDR planning
  • routes
  • security rules
  • DNS
  • health checks
Q30Networking

What is TLS termination and should backend traffic be encrypted?

What is TLS termination and should backend traffic be encrypted? Define address ranges, routes, ingress/egress controls, DNS, and failure boundar…

Answer

What is TLS termination and should backend traffic be encrypted? Define address ranges, routes, ingress/egress controls, DNS, and failure boundaries explicitly. Private addressing alone is not a security boundary; validate effective routes and both directions of traffic, then use flow logs and health probes to diagnose failures.

Syntax

source → DNS → route → security rule → listener → destination

Example

Troubleshoot DNS, effective routes, security rules, listener health, TLS, and application logs in that order.

Code example

# Diagnostics
nslookup app.example.com
curl -v https://app.example.com/health
# Inspect effective routes and firewall/security rules

Diagram

Client → DNS → route table → firewall/NSG/security group → load balancer → workload

Key Points

  • CIDR planning
  • routes
  • security rules
  • DNS
  • health checks
Q31Networking

How do you troubleshoot a cloud connectivity issue?

How do you troubleshoot a cloud connectivity issue? Define address ranges, routes, ingress/egress controls, DNS, and failure boundaries explicitl…

Answer

How do you troubleshoot a cloud connectivity issue? Define address ranges, routes, ingress/egress controls, DNS, and failure boundaries explicitly. Private addressing alone is not a security boundary; validate effective routes and both directions of traffic, then use flow logs and health probes to diagnose failures.

Syntax

source → DNS → route → security rule → listener → destination

Example

Troubleshoot DNS, effective routes, security rules, listener health, TLS, and application logs in that order.

Code example

# Diagnostics
nslookup app.example.com
curl -v https://app.example.com/health
# Inspect effective routes and firewall/security rules

Diagram

Client → DNS → route table → firewall/NSG/security group → load balancer → workload

Key Points

  • CIDR planning
  • routes
  • security rules
  • DNS
  • health checks
Q36Storage

What is object versioning?

What is object versioning? Begin with functional, security, performance, compliance, and recovery requirements. Select services that satisfy them…

Answer

What is object versioning? Begin with functional, security, performance, compliance, and recovery requirements. Select services that satisfy them without unnecessary complexity, define identity and network boundaries, automate repeatable operations, and validate the design with monitoring and failure testing.

Syntax

requirements → service choice → secure configuration → monitor

Example

Choose the simplest service that satisfies the requirements, then test access, scaling, backup, monitoring, and cost before launch.

Code example

# Readiness checklist
# 1. Define requirements and recovery objectives
# 2. Apply identity/network controls
# 3. Automate deployment and validation
# 4. Monitor cost, health, and security

Diagram

Requirements → cloud services → network/identity controls → telemetry → operations

Key Points

  • Requirements first
  • service fit
  • security
  • operational readiness
  • cost
Q38Storage & Security

What does a cloud key management service do?

What does a cloud key management service do? Choose storage based on access pattern, performance, durability, consistency, and recovery requireme…

Answer

What does a cloud key management service do? Choose storage based on access pattern, performance, durability, consistency, and recovery requirements. Apply least-privilege access, encryption, lifecycle/retention policies, and monitoring. Versioning or snapshots help recovery but are not a substitute for tested backups.

Syntax

identity → storage API → object/volume/share → policy + encryption + lifecycle

Example

Keep storage private, grant access to the workload identity, enable encryption, and test retention and restore procedures.

Code example

# Inspect storage and access controls
aws s3 ls
aws s3api get-public-access-block --bucket <bucket-name>

Diagram

Application identity → storage endpoint → data + keys + backup/lifecycle

Key Points

  • Access policy
  • encryption
  • lifecycle
  • durability
  • restore testing
Q39Storage

How do snapshots differ from backups?

How do snapshots differ from backups? Choose storage based on access pattern, performance, durability, consistency, and recovery requirements. Ap…

Answer

How do snapshots differ from backups? Choose storage based on access pattern, performance, durability, consistency, and recovery requirements. Apply least-privilege access, encryption, lifecycle/retention policies, and monitoring. Versioning or snapshots help recovery but are not a substitute for tested backups.

Syntax

identity → storage API → object/volume/share → policy + encryption + lifecycle

Example

Keep storage private, grant access to the workload identity, enable encryption, and test retention and restore procedures.

Code example

# Inspect storage and access controls
aws s3 ls
aws s3api get-public-access-block --bucket <bucket-name>

Diagram

Application identity → storage endpoint → data + keys + backup/lifecycle

Key Points

  • Access policy
  • encryption
  • lifecycle
  • durability
  • restore testing
Q40Storage & Data

What is a data lake?

What is a data lake? Choose storage based on access pattern, performance, durability, consistency, and recovery requirements. Apply least-privile…

Answer

What is a data lake? Choose storage based on access pattern, performance, durability, consistency, and recovery requirements. Apply least-privilege access, encryption, lifecycle/retention policies, and monitoring. Versioning or snapshots help recovery but are not a substitute for tested backups.

Syntax

identity → storage API → object/volume/share → policy + encryption + lifecycle

Example

Keep storage private, grant access to the workload identity, enable encryption, and test retention and restore procedures.

Code example

# Inspect storage and access controls
aws s3 ls
aws s3api get-public-access-block --bucket <bucket-name>

Diagram

Application identity → storage endpoint → data + keys + backup/lifecycle

Key Points

  • Access policy
  • encryption
  • lifecycle
  • durability
  • restore testing
Q45Azure Identity

What are managed identities in Azure?

What are managed identities in Azure? Configure the relevant Azure resource using the correct subscription, region, SKU, network boundary, and ac…

Answer

What are managed identities in Azure? Configure the relevant Azure resource using the correct subscription, region, SKU, network boundary, and access policy. Use least-privilege Azure RBAC, enable appropriate diagnostics, and verify service-specific limits and recovery options.

Syntax

az account show
az resource list -g <resource-group> -o table

Example

Inspect the active subscription and target resource group before changing configuration.

Code example

# Azure CLI examples; replace placeholders
az account show
az resource list -g rg-demo -o table

Diagram

Entra ID / Azure RBAC → Subscription → Resource group → Azure resource

Key Points

  • Azure CLI
  • scope
  • RBAC
  • region/SKU
  • diagnostics
Q46AWS Identity

What are IAM roles in AWS?

What are IAM roles in AWS? In AWS, select the suitable managed or self-managed service, confirm account and region, and grant narrowly scoped IAM…

Answer

What are IAM roles in AWS? In AWS, select the suitable managed or self-managed service, confirm account and region, and grant narrowly scoped IAM permissions. Review quotas, cost, availability, and operational responsibilities before production use.

Syntax

aws sts get-caller-identity
aws <service> describe-<resource>

Example

Verify the active AWS identity/account and inspect the resource before applying changes.

Code example

# AWS CLI examples; verify the service-specific command
aws sts get-caller-identity
aws ec2 describe-vpcs --output table

Diagram

AWS account → IAM role/policy → VPC/service resource → CloudWatch/CloudTrail

Key Points

  • AWS account/region
  • IAM
  • service settings
  • telemetry
  • cost
Q49Azure Identity

What are Microsoft Entra ID and service principals?

What are Microsoft Entra ID and service principals? Configure the relevant Azure resource using the correct subscription, region, SKU, network bo…

Answer

What are Microsoft Entra ID and service principals? Configure the relevant Azure resource using the correct subscription, region, SKU, network boundary, and access policy. Use least-privilege Azure RBAC, enable appropriate diagnostics, and verify service-specific limits and recovery options.

Syntax

az account show
az resource list -g <resource-group> -o table

Example

Inspect the active subscription and target resource group before changing configuration.

Code example

# Azure CLI examples; replace placeholders
az account show
az resource list -g rg-demo -o table

Diagram

Entra ID / Azure RBAC → Subscription → Resource group → Azure resource

Key Points

  • Azure CLI
  • scope
  • RBAC
  • region/SKU
  • diagnostics
Q51Identity & Access

How should cloud secrets be stored and rotated?

How should cloud secrets be stored and rotated? Identify the principal, authenticate it with an approved identity provider, and authorize only th…

Answer

How should cloud secrets be stored and rotated? Identify the principal, authenticate it with an approved identity provider, and authorize only the actions required at the narrowest practical scope. Prefer managed identities or short-lived federated credentials to embedded long-lived secrets, and audit privileged operations.

Syntax

principal + action + resource + condition → allow/deny

Example

Grant a workload identity only the read actions it needs on the required resource, and review that assignment regularly.

Code example

# Illustrative least-privilege policy shape
{
  "Effect": "Allow",
  "Action": ["service:Read"],
  "Resource": "specific-resource"
}

Diagram

User/workload → authentication → policy evaluation → resource access

Key Points

  • Authentication vs authorization
  • least privilege
  • scoped roles
  • audit
  • credential hygiene
Q53AWS Governance

What is AWS Organizations and a multi-account strategy?

What is AWS Organizations and a multi-account strategy? In AWS, select the suitable managed or self-managed service, confirm account and region, …

Answer

What is AWS Organizations and a multi-account strategy? In AWS, select the suitable managed or self-managed service, confirm account and region, and grant narrowly scoped IAM permissions. Review quotas, cost, availability, and operational responsibilities before production use.

Syntax

aws sts get-caller-identity
aws <service> describe-<resource>

Example

Verify the active AWS identity/account and inspect the resource before applying changes.

Code example

# AWS CLI examples; verify the service-specific command
aws sts get-caller-identity
aws ec2 describe-vpcs --output table

Diagram

AWS account → IAM role/policy → VPC/service resource → CloudWatch/CloudTrail

Key Points

  • AWS account/region
  • IAM
  • service settings
  • telemetry
  • cost
Q54Governance & Security

What are cloud policy guardrails?

What are cloud policy guardrails? Define standards and enforce them with policy, tagging, budgets, alerts, and reviewed exceptions. Assign owners…

Answer

What are cloud policy guardrails? Define standards and enforce them with policy, tagging, budgets, alerts, and reviewed exceptions. Assign owners to alerts and include data transfer, backups, high availability, and non-production usage in cost estimates; budget alerts are not always hard spending caps.

Syntax

measure → allocate → set guardrail → alert → remediate

Example

Tag resources with owners and environments, alert on budget thresholds, and review actual spend against usage and reliability needs.

Code example

# Example metadata convention
Environment=production
Owner=platform-team
CostCenter=1234
# Configure budgets and alerts in cloud cost-management tooling

Diagram

Cloud resources → tags/usage telemetry → cost & policy reports → owner action

Key Points

  • Ownership
  • policy
  • budget alerts
  • quotas
  • auditability
Q56Governance & Cost

How do budgets, alerts, and quotas control cloud spend?

How do budgets, alerts, and quotas control cloud spend? Define standards and enforce them with policy, tagging, budgets, alerts, and reviewed exc…

Answer

How do budgets, alerts, and quotas control cloud spend? Define standards and enforce them with policy, tagging, budgets, alerts, and reviewed exceptions. Assign owners to alerts and include data transfer, backups, high availability, and non-production usage in cost estimates; budget alerts are not always hard spending caps.

Syntax

measure → allocate → set guardrail → alert → remediate

Example

Tag resources with owners and environments, alert on budget thresholds, and review actual spend against usage and reliability needs.

Code example

# Example metadata convention
Environment=production
Owner=platform-team
CostCenter=1234
# Configure budgets and alerts in cloud cost-management tooling

Diagram

Cloud resources → tags/usage telemetry → cost & policy reports → owner action

Key Points

  • Ownership
  • policy
  • budget alerts
  • quotas
  • auditability
Q57Governance & Cost

How do you estimate cloud costs before deployment?

How do you estimate cloud costs before deployment? Automate repeatable validation, build an identifiable artifact, apply security checks, and dep…

Answer

How do you estimate cloud costs before deployment? Automate repeatable validation, build an identifiable artifact, apply security checks, and deploy through controlled environments. Use minimal pipeline permissions, protect production credentials, observe rollout health, and define rollback criteria before release.

Syntax

commit → build → test/scan → immutable artifact → deploy → verify

Example

Build a versioned artifact once, promote the same digest through staging and production, and verify health after rollout.

Code example

# Pipeline outline
npm ci
npm test
docker build -t registry.example.com/app:${GIT_SHA} .
# scan, publish, deploy, then run smoke tests

Diagram

Source → CI checks → artifact registry → staging → approval/traffic shift → production

Key Points

  • Automated checks
  • immutable artifacts
  • least privilege
  • rollout health
  • rollback
Q58Reliability

What is an SLA, and how does it differ from an SLO?

What is an SLA, and how does it differ from an SLO? Define standards and enforce them with policy, tagging, budgets, alerts, and reviewed excepti…

Answer

What is an SLA, and how does it differ from an SLO? Define standards and enforce them with policy, tagging, budgets, alerts, and reviewed exceptions. Assign owners to alerts and include data transfer, backups, high availability, and non-production usage in cost estimates; budget alerts are not always hard spending caps.

Syntax

measure → allocate → set guardrail → alert → remediate

Example

Tag resources with owners and environments, alert on budget thresholds, and review actual spend against usage and reliability needs.

Code example

# Example metadata convention
Environment=production
Owner=platform-team
CostCenter=1234
# Configure budgets and alerts in cloud cost-management tooling

Diagram

Cloud resources → tags/usage telemetry → cost & policy reports → owner action

Key Points

  • Ownership
  • policy
  • budget alerts
  • quotas
  • auditability
Q61Azure Networking

What is Azure Virtual Network peering?

What is Azure Virtual Network peering? Configure the relevant Azure resource using the correct subscription, region, SKU, network boundary, and a…

Answer

What is Azure Virtual Network peering? Configure the relevant Azure resource using the correct subscription, region, SKU, network boundary, and access policy. Use least-privilege Azure RBAC, enable appropriate diagnostics, and verify service-specific limits and recovery options.

Syntax

az account show
az resource list -g <resource-group> -o table

Example

Inspect the active subscription and target resource group before changing configuration.

Code example

# Azure CLI examples; replace placeholders
az account show
az resource list -g rg-demo -o table

Diagram

Entra ID / Azure RBAC → Subscription → Resource group → Azure resource

Key Points

  • Azure CLI
  • scope
  • RBAC
  • region/SKU
  • diagnostics
Q62Azure Identity

What is Azure Key Vault?

What is Azure Key Vault? Configure the relevant Azure resource using the correct subscription, region, SKU, network boundary, and access policy. …

Answer

What is Azure Key Vault? Configure the relevant Azure resource using the correct subscription, region, SKU, network boundary, and access policy. Use least-privilege Azure RBAC, enable appropriate diagnostics, and verify service-specific limits and recovery options.

Syntax

az account show
az resource list -g <resource-group> -o table

Example

Inspect the active subscription and target resource group before changing configuration.

Code example

# Azure CLI examples; replace placeholders
az account show
az resource list -g rg-demo -o table

Diagram

Entra ID / Azure RBAC → Subscription → Resource group → Azure resource

Key Points

  • Azure CLI
  • scope
  • RBAC
  • region/SKU
  • diagnostics
Q64Azure Networking

Compare Azure Application Gateway and Azure Load Balancer.

Compare Azure Application Gateway and Azure Load Balancer. Configure the relevant Azure resource using the correct subscription, region, SKU, net…

Answer

Compare Azure Application Gateway and Azure Load Balancer. Configure the relevant Azure resource using the correct subscription, region, SKU, network boundary, and access policy. Use least-privilege Azure RBAC, enable appropriate diagnostics, and verify service-specific limits and recovery options.

Syntax

az account show
az resource list -g <resource-group> -o table

Example

Inspect the active subscription and target resource group before changing configuration.

Code example

# Azure CLI examples; replace placeholders
az account show
az resource list -g rg-demo -o table

Diagram

Entra ID / Azure RBAC → Subscription → Resource group → Azure resource

Key Points

  • Azure CLI
  • scope
  • RBAC
  • region/SKU
  • diagnostics
Q69AWS Services

What is Amazon DynamoDB?

What is Amazon DynamoDB? In AWS, select the suitable managed or self-managed service, confirm account and region, and grant narrowly scoped IAM p…

Answer

What is Amazon DynamoDB? In AWS, select the suitable managed or self-managed service, confirm account and region, and grant narrowly scoped IAM permissions. Review quotas, cost, availability, and operational responsibilities before production use.

Syntax

aws sts get-caller-identity
aws <service> describe-<resource>

Example

Verify the active AWS identity/account and inspect the resource before applying changes.

Code example

# AWS CLI examples; verify the service-specific command
aws sts get-caller-identity
aws ec2 describe-vpcs --output table

Diagram

AWS account → IAM role/policy → VPC/service resource → CloudWatch/CloudTrail

Key Points

  • AWS account/region
  • IAM
  • service settings
  • telemetry
  • cost
Q70AWS Services

What is Amazon CloudFront?

What is Amazon CloudFront? In AWS, select the suitable managed or self-managed service, confirm account and region, and grant narrowly scoped IAM…

Answer

What is Amazon CloudFront? In AWS, select the suitable managed or self-managed service, confirm account and region, and grant narrowly scoped IAM permissions. Review quotas, cost, availability, and operational responsibilities before production use.

Syntax

aws sts get-caller-identity
aws <service> describe-<resource>

Example

Verify the active AWS identity/account and inspect the resource before applying changes.

Code example

# AWS CLI examples; verify the service-specific command
aws sts get-caller-identity
aws ec2 describe-vpcs --output table

Diagram

AWS account → IAM role/policy → VPC/service resource → CloudWatch/CloudTrail

Key Points

  • AWS account/region
  • IAM
  • service settings
  • telemetry
  • cost
Q71AWS Observability

What are Amazon CloudWatch and CloudTrail used for?

What are Amazon CloudWatch and CloudTrail used for? In AWS, select the suitable managed or self-managed service, confirm account and region, and …

Answer

What are Amazon CloudWatch and CloudTrail used for? In AWS, select the suitable managed or self-managed service, confirm account and region, and grant narrowly scoped IAM permissions. Review quotas, cost, availability, and operational responsibilities before production use.

Syntax

aws sts get-caller-identity
aws <service> describe-<resource>

Example

Verify the active AWS identity/account and inspect the resource before applying changes.

Code example

# AWS CLI examples; verify the service-specific command
aws sts get-caller-identity
aws ec2 describe-vpcs --output table

Diagram

AWS account → IAM role/policy → VPC/service resource → CloudWatch/CloudTrail

Key Points

  • AWS account/region
  • IAM
  • service settings
  • telemetry
  • cost
Q72AWS Networking

Compare AWS Internet Gateway and NAT Gateway.

Compare AWS Internet Gateway and NAT Gateway. In AWS, select the suitable managed or self-managed service, confirm account and region, and grant …

Answer

Compare AWS Internet Gateway and NAT Gateway. In AWS, select the suitable managed or self-managed service, confirm account and region, and grant narrowly scoped IAM permissions. Review quotas, cost, availability, and operational responsibilities before production use.

Syntax

aws sts get-caller-identity
aws <service> describe-<resource>

Example

Verify the active AWS identity/account and inspect the resource before applying changes.

Code example

# AWS CLI examples; verify the service-specific command
aws sts get-caller-identity
aws ec2 describe-vpcs --output table

Diagram

AWS account → IAM role/policy → VPC/service resource → CloudWatch/CloudTrail

Key Points

  • AWS account/region
  • IAM
  • service settings
  • telemetry
  • cost
Q74Infrastructure as Code

Compare Terraform, Bicep, and CloudFormation.

Compare Terraform, Bicep, and CloudFormation. Infrastructure as code makes changes reviewable and repeatable. Validate configuration, inspect pla…

Answer

Compare Terraform, Bicep, and CloudFormation. Infrastructure as code makes changes reviewable and repeatable. Validate configuration, inspect planned changes, protect state and credentials, and detect drift. Use controlled state storage and do not blindly apply destructive changes.

Syntax

init → validate → plan/diff → review → apply

Example

Validate configuration and review the plan in CI before applying through a controlled identity.

Code example

# Terraform workflow
terraform init
terraform fmt -check
terraform validate
terraform plan

Diagram

Versioned IaC → validation/plan → review/approval → cloud control plane

Key Points

  • Version control
  • plan review
  • state protection
  • least privilege
  • drift detection
Q76Infrastructure as Code

What is configuration drift and how can you detect it?

What is configuration drift and how can you detect it? Infrastructure as code makes changes reviewable and repeatable. Validate configuration, in…

Answer

What is configuration drift and how can you detect it? Infrastructure as code makes changes reviewable and repeatable. Validate configuration, inspect planned changes, protect state and credentials, and detect drift. Use controlled state storage and do not blindly apply destructive changes.

Syntax

init → validate → plan/diff → review → apply

Example

Validate configuration and review the plan in CI before applying through a controlled identity.

Code example

# Terraform workflow
terraform init
terraform fmt -check
terraform validate
terraform plan

Diagram

Versioned IaC → validation/plan → review/approval → cloud control plane

Key Points

  • Version control
  • plan review
  • state protection
  • least privilege
  • drift detection
Q79Deployment

What is a rolling deployment?

What is a rolling deployment? Automate repeatable validation, build an identifiable artifact, apply security checks, and deploy through controlle…

Answer

What is a rolling deployment? Automate repeatable validation, build an identifiable artifact, apply security checks, and deploy through controlled environments. Use minimal pipeline permissions, protect production credentials, observe rollout health, and define rollback criteria before release.

Syntax

commit → build → test/scan → immutable artifact → deploy → verify

Example

Build a versioned artifact once, promote the same digest through staging and production, and verify health after rollout.

Code example

# Pipeline outline
npm ci
npm test
docker build -t registry.example.com/app:${GIT_SHA} .
# scan, publish, deploy, then run smoke tests

Diagram

Source → CI checks → artifact registry → staging → approval/traffic shift → production

Key Points

  • Automated checks
  • immutable artifacts
  • least privilege
  • rollout health
  • rollback
Q80Deployment

How do feature flags help cloud releases?

How do feature flags help cloud releases? Automate repeatable validation, build an identifiable artifact, apply security checks, and deploy throu…

Answer

How do feature flags help cloud releases? Automate repeatable validation, build an identifiable artifact, apply security checks, and deploy through controlled environments. Use minimal pipeline permissions, protect production credentials, observe rollout health, and define rollback criteria before release.

Syntax

commit → build → test/scan → immutable artifact → deploy → verify

Example

Build a versioned artifact once, promote the same digest through staging and production, and verify health after rollout.

Code example

# Pipeline outline
npm ci
npm test
docker build -t registry.example.com/app:${GIT_SHA} .
# scan, publish, deploy, then run smoke tests

Diagram

Source → CI checks → artifact registry → staging → approval/traffic shift → production

Key Points

  • Automated checks
  • immutable artifacts
  • least privilege
  • rollout health
  • rollback
Q85Security Architecture

What is a WAF and what does it protect against?

What is a WAF and what does it protect against? Begin with functional, security, performance, compliance, and recovery requirements. Select servi…

Answer

What is a WAF and what does it protect against? Begin with functional, security, performance, compliance, and recovery requirements. Select services that satisfy them without unnecessary complexity, define identity and network boundaries, automate repeatable operations, and validate the design with monitoring and failure testing.

Syntax

requirements → service choice → secure configuration → monitor

Example

Choose the simplest service that satisfies the requirements, then test access, scaling, backup, monitoring, and cost before launch.

Code example

# Readiness checklist
# 1. Define requirements and recovery objectives
# 2. Apply identity/network controls
# 3. Automate deployment and validation
# 4. Monitor cost, health, and security

Diagram

Requirements → cloud services → network/identity controls → telemetry → operations

Key Points

  • Requirements first
  • service fit
  • security
  • operational readiness
  • cost
Q86Security Architecture

How does DDoS protection work?

How does DDoS protection work? Begin with functional, security, performance, compliance, and recovery requirements. Select services that satisfy …

Answer

How does DDoS protection work? Begin with functional, security, performance, compliance, and recovery requirements. Select services that satisfy them without unnecessary complexity, define identity and network boundaries, automate repeatable operations, and validate the design with monitoring and failure testing.

Syntax

requirements → service choice → secure configuration → monitor

Example

Choose the simplest service that satisfies the requirements, then test access, scaling, backup, monitoring, and cost before launch.

Code example

# Readiness checklist
# 1. Define requirements and recovery objectives
# 2. Apply identity/network controls
# 3. Automate deployment and validation
# 4. Monitor cost, health, and security

Diagram

Requirements → cloud services → network/identity controls → telemetry → operations

Key Points

  • Requirements first
  • service fit
  • security
  • operational readiness
  • cost
Q88Security Architecture

How do you secure a public storage bucket?

How do you secure a public storage bucket? Choose storage based on access pattern, performance, durability, consistency, and recovery requirement…

Answer

How do you secure a public storage bucket? Choose storage based on access pattern, performance, durability, consistency, and recovery requirements. Apply least-privilege access, encryption, lifecycle/retention policies, and monitoring. Versioning or snapshots help recovery but are not a substitute for tested backups.

Syntax

identity → storage API → object/volume/share → policy + encryption + lifecycle

Example

Keep storage private, grant access to the workload identity, enable encryption, and test retention and restore procedures.

Code example

# Inspect storage and access controls
aws s3 ls
aws s3api get-public-access-block --bucket <bucket-name>

Diagram

Application identity → storage endpoint → data + keys + backup/lifecycle

Key Points

  • Access policy
  • encryption
  • lifecycle
  • durability
  • restore testing
Q89Security Architecture

What is a cloud security baseline?

What is a cloud security baseline? Begin with functional, security, performance, compliance, and recovery requirements. Select services that sati…

Answer

What is a cloud security baseline? Begin with functional, security, performance, compliance, and recovery requirements. Select services that satisfy them without unnecessary complexity, define identity and network boundaries, automate repeatable operations, and validate the design with monitoring and failure testing.

Syntax

requirements → service choice → secure configuration → monitor

Example

Choose the simplest service that satisfies the requirements, then test access, scaling, backup, monitoring, and cost before launch.

Code example

# Readiness checklist
# 1. Define requirements and recovery objectives
# 2. Apply identity/network controls
# 3. Automate deployment and validation
# 4. Monitor cost, health, and security

Diagram

Requirements → cloud services → network/identity controls → telemetry → operations

Key Points

  • Requirements first
  • service fit
  • security
  • operational readiness
  • cost
Q90Observability

What are logs, metrics, and traces?

What are logs, metrics, and traces? Combine logs for event detail, metrics for trends, and traces for request flow. Define actionable alerts, pro…

Answer

What are logs, metrics, and traces? Combine logs for event detail, metrics for trends, and traces for request flow. Define actionable alerts, protect telemetry from sensitive-data leakage, and assign clear ownership for incident response.

Syntax

instrument → collect → correlate → alert → investigate

Example

Correlate a request trace with logs and latency metrics to determine whether a delay comes from the application or a downstream dependency.

Code example

# Example structured log
{"level":"error","service":"api","traceId":"abc-123","message":"Request timed out"}

Diagram

Application → logs + metrics + traces → dashboards/alerts → incident response

Key Points

  • Logs
  • metrics
  • traces
  • actionable alerts
  • privacy and retention
Q91Observability

What are liveness and readiness health checks?

What are liveness and readiness health checks? Combine logs for event detail, metrics for trends, and traces for request flow. Define actionable …

Answer

What are liveness and readiness health checks? Combine logs for event detail, metrics for trends, and traces for request flow. Define actionable alerts, protect telemetry from sensitive-data leakage, and assign clear ownership for incident response.

Syntax

instrument → collect → correlate → alert → investigate

Example

Correlate a request trace with logs and latency metrics to determine whether a delay comes from the application or a downstream dependency.

Code example

# Example structured log
{"level":"error","service":"api","traceId":"abc-123","message":"Request timed out"}

Diagram

Application → logs + metrics + traces → dashboards/alerts → incident response

Key Points

  • Logs
  • metrics
  • traces
  • actionable alerts
  • privacy and retention
Q94Cloud Architecture

What is a hub-and-spoke network topology?

What is a hub-and-spoke network topology? Define address ranges, routes, ingress/egress controls, DNS, and failure boundaries explicitly. Private…

Answer

What is a hub-and-spoke network topology? Define address ranges, routes, ingress/egress controls, DNS, and failure boundaries explicitly. Private addressing alone is not a security boundary; validate effective routes and both directions of traffic, then use flow logs and health probes to diagnose failures.

Syntax

source → DNS → route → security rule → listener → destination

Example

Troubleshoot DNS, effective routes, security rules, listener health, TLS, and application logs in that order.

Code example

# Diagnostics
nslookup app.example.com
curl -v https://app.example.com/health
# Inspect effective routes and firewall/security rules

Diagram

Client → DNS → route table → firewall/NSG/security group → load balancer → workload

Key Points

  • CIDR planning
  • routes
  • security rules
  • DNS
  • health checks
Q96Cloud Architecture

How do you choose between multi-zone and multi-region architecture?

How do you choose between multi-zone and multi-region architecture? Begin with functional, security, performance, compliance, and recovery requir…

Answer

How do you choose between multi-zone and multi-region architecture? Begin with functional, security, performance, compliance, and recovery requirements. Select services that satisfy them without unnecessary complexity, define identity and network boundaries, automate repeatable operations, and validate the design with monitoring and failure testing.

Syntax

requirements → service choice → secure configuration → monitor

Example

Choose the simplest service that satisfies the requirements, then test access, scaling, backup, monitoring, and cost before launch.

Code example

# Readiness checklist
# 1. Define requirements and recovery objectives
# 2. Apply identity/network controls
# 3. Automate deployment and validation
# 4. Monitor cost, health, and security

Diagram

Requirements → cloud services → network/identity controls → telemetry → operations

Key Points

  • Requirements first
  • service fit
  • security
  • operational readiness
  • cost

Advanced Questions

Architecture, optimization, and design trade-offs.

Q17Compute & Deployment

Managed Kubernetes vs serverless containers: how do you choose?

Managed Kubernetes vs serverless containers: how do you choose? Begin with functional, security, performance, compliance, and recovery requiremen…

Answer

Managed Kubernetes vs serverless containers: how do you choose? Begin with functional, security, performance, compliance, and recovery requirements. Select services that satisfy them without unnecessary complexity, define identity and network boundaries, automate repeatable operations, and validate the design with monitoring and failure testing.

Syntax

requirements → service choice → secure configuration → monitor

Example

Choose the simplest service that satisfies the requirements, then test access, scaling, backup, monitoring, and cost before launch.

Code example

# Readiness checklist
# 1. Define requirements and recovery objectives
# 2. Apply identity/network controls
# 3. Automate deployment and validation
# 4. Monitor cost, health, and security

Diagram

Requirements → cloud services → network/identity controls → telemetry → operations

Key Points

  • Requirements first
  • service fit
  • security
  • operational readiness
  • cost
Q47Identity & Access

What is workload identity federation?

What is workload identity federation? Identify the principal, authenticate it with an approved identity provider, and authorize only the actions …

Answer

What is workload identity federation? Identify the principal, authenticate it with an approved identity provider, and authorize only the actions required at the narrowest practical scope. Prefer managed identities or short-lived federated credentials to embedded long-lived secrets, and audit privileged operations.

Syntax

principal + action + resource + condition → allow/deny

Example

Grant a workload identity only the read actions it needs on the required resource, and review that assignment regularly.

Code example

# Illustrative least-privilege policy shape
{
  "Effect": "Allow",
  "Action": ["service:Read"],
  "Resource": "specific-resource"
}

Diagram

User/workload → authentication → policy evaluation → resource access

Key Points

  • Authentication vs authorization
  • least privilege
  • scoped roles
  • audit
  • credential hygiene
Q50Identity & Access

What is conditional access?

What is conditional access? Identify the principal, authenticate it with an approved identity provider, and authorize only the actions required a…

Answer

What is conditional access? Identify the principal, authenticate it with an approved identity provider, and authorize only the actions required at the narrowest practical scope. Prefer managed identities or short-lived federated credentials to embedded long-lived secrets, and audit privileged operations.

Syntax

principal + action + resource + condition → allow/deny

Example

Grant a workload identity only the read actions it needs on the required resource, and review that assignment regularly.

Code example

# Illustrative least-privilege policy shape
{
  "Effect": "Allow",
  "Action": ["service:Read"],
  "Resource": "specific-resource"
}

Diagram

User/workload → authentication → policy evaluation → resource access

Key Points

  • Authentication vs authorization
  • least privilege
  • scoped roles
  • audit
  • credential hygiene
Q75Infrastructure as Code

What is Terraform state and why must it be protected?

What is Terraform state and why must it be protected? Infrastructure as code makes changes reviewable and repeatable. Validate configuration, ins…

Answer

What is Terraform state and why must it be protected? Infrastructure as code makes changes reviewable and repeatable. Validate configuration, inspect planned changes, protect state and credentials, and detect drift. Use controlled state storage and do not blindly apply destructive changes.

Syntax

init → validate → plan/diff → review → apply

Example

Validate configuration and review the plan in CI before applying through a controlled identity.

Code example

# Terraform workflow
terraform init
terraform fmt -check
terraform validate
terraform plan

Diagram

Versioned IaC → validation/plan → review/approval → cloud control plane

Key Points

  • Version control
  • plan review
  • state protection
  • least privilege
  • drift detection
Q78Deployment

What is the difference between blue-green and canary deployments?

What is the difference between blue-green and canary deployments? Automate repeatable validation, build an identifiable artifact, apply security …

Answer

What is the difference between blue-green and canary deployments? Automate repeatable validation, build an identifiable artifact, apply security checks, and deploy through controlled environments. Use minimal pipeline permissions, protect production credentials, observe rollout health, and define rollback criteria before release.

Syntax

commit → build → test/scan → immutable artifact → deploy → verify

Example

Build a versioned artifact once, promote the same digest through staging and production, and verify health after rollout.

Code example

# Pipeline outline
npm ci
npm test
docker build -t registry.example.com/app:${GIT_SHA} .
# scan, publish, deploy, then run smoke tests

Diagram

Source → CI checks → artifact registry → staging → approval/traffic shift → production

Key Points

  • Automated checks
  • immutable artifacts
  • least privilege
  • rollout health
  • rollback
Q81Deployment

How do you build and publish a container image securely?

How do you build and publish a container image securely? Automate repeatable validation, build an identifiable artifact, apply security checks, a…

Answer

How do you build and publish a container image securely? Automate repeatable validation, build an identifiable artifact, apply security checks, and deploy through controlled environments. Use minimal pipeline permissions, protect production credentials, observe rollout health, and define rollback criteria before release.

Syntax

commit → build → test/scan → immutable artifact → deploy → verify

Example

Build a versioned artifact once, promote the same digest through staging and production, and verify health after rollout.

Code example

# Pipeline outline
npm ci
npm test
docker build -t registry.example.com/app:${GIT_SHA} .
# scan, publish, deploy, then run smoke tests

Diagram

Source → CI checks → artifact registry → staging → approval/traffic shift → production

Key Points

  • Automated checks
  • immutable artifacts
  • least privilege
  • rollout health
  • rollback
Q82Deployment

How can you ensure the same artifact reaches staging and production?

How can you ensure the same artifact reaches staging and production? Automate repeatable validation, build an identifiable artifact, apply securi…

Answer

How can you ensure the same artifact reaches staging and production? Automate repeatable validation, build an identifiable artifact, apply security checks, and deploy through controlled environments. Use minimal pipeline permissions, protect production credentials, observe rollout health, and define rollback criteria before release.

Syntax

commit → build → test/scan → immutable artifact → deploy → verify

Example

Build a versioned artifact once, promote the same digest through staging and production, and verify health after rollout.

Code example

# Pipeline outline
npm ci
npm test
docker build -t registry.example.com/app:${GIT_SHA} .
# scan, publish, deploy, then run smoke tests

Diagram

Source → CI checks → artifact registry → staging → approval/traffic shift → production

Key Points

  • Automated checks
  • immutable artifacts
  • least privilege
  • rollout health
  • rollback
Q83Deployment

What is GitOps?

What is GitOps? Automate repeatable validation, build an identifiable artifact, apply security checks, and deploy through controlled environments…

Answer

What is GitOps? Automate repeatable validation, build an identifiable artifact, apply security checks, and deploy through controlled environments. Use minimal pipeline permissions, protect production credentials, observe rollout health, and define rollback criteria before release.

Syntax

commit → build → test/scan → immutable artifact → deploy → verify

Example

Build a versioned artifact once, promote the same digest through staging and production, and verify health after rollout.

Code example

# Pipeline outline
npm ci
npm test
docker build -t registry.example.com/app:${GIT_SHA} .
# scan, publish, deploy, then run smoke tests

Diagram

Source → CI checks → artifact registry → staging → approval/traffic shift → production

Key Points

  • Automated checks
  • immutable artifacts
  • least privilege
  • rollout health
  • rollback
Q84Security & Deployment

How do you secure a cloud deployment pipeline?

How do you secure a cloud deployment pipeline? Automate repeatable validation, build an identifiable artifact, apply security checks, and deploy …

Answer

How do you secure a cloud deployment pipeline? Automate repeatable validation, build an identifiable artifact, apply security checks, and deploy through controlled environments. Use minimal pipeline permissions, protect production credentials, observe rollout health, and define rollback criteria before release.

Syntax

commit → build → test/scan → immutable artifact → deploy → verify

Example

Build a versioned artifact once, promote the same digest through staging and production, and verify health after rollout.

Code example

# Pipeline outline
npm ci
npm test
docker build -t registry.example.com/app:${GIT_SHA} .
# scan, publish, deploy, then run smoke tests

Diagram

Source → CI checks → artifact registry → staging → approval/traffic shift → production

Key Points

  • Automated checks
  • immutable artifacts
  • least privilege
  • rollout health
  • rollback
Q87Security Architecture

What does zero trust mean in cloud architecture?

What does zero trust mean in cloud architecture? Begin with functional, security, performance, compliance, and recovery requirements. Select serv…

Answer

What does zero trust mean in cloud architecture? Begin with functional, security, performance, compliance, and recovery requirements. Select services that satisfy them without unnecessary complexity, define identity and network boundaries, automate repeatable operations, and validate the design with monitoring and failure testing.

Syntax

requirements → service choice → secure configuration → monitor

Example

Choose the simplest service that satisfies the requirements, then test access, scaling, backup, monitoring, and cost before launch.

Code example

# Readiness checklist
# 1. Define requirements and recovery objectives
# 2. Apply identity/network controls
# 3. Automate deployment and validation
# 4. Monitor cost, health, and security

Diagram

Requirements → cloud services → network/identity controls → telemetry → operations

Key Points

  • Requirements first
  • service fit
  • security
  • operational readiness
  • cost
Q92Observability

What are SLI, SLO, and error budget?

What are SLI, SLO, and error budget? Define standards and enforce them with policy, tagging, budgets, alerts, and reviewed exceptions. Assign own…

Answer

What are SLI, SLO, and error budget? Define standards and enforce them with policy, tagging, budgets, alerts, and reviewed exceptions. Assign owners to alerts and include data transfer, backups, high availability, and non-production usage in cost estimates; budget alerts are not always hard spending caps.

Syntax

measure → allocate → set guardrail → alert → remediate

Example

Tag resources with owners and environments, alert on budget thresholds, and review actual spend against usage and reliability needs.

Code example

# Example metadata convention
Environment=production
Owner=platform-team
CostCenter=1234
# Configure budgets and alerts in cloud cost-management tooling

Diagram

Cloud resources → tags/usage telemetry → cost & policy reports → owner action

Key Points

  • Ownership
  • policy
  • budget alerts
  • quotas
  • auditability
Q95Cloud Architecture

Compare active-active and active-passive disaster recovery.

Compare active-active and active-passive disaster recovery. Design for failure domains, dependency behavior, data consistency, and business recov…

Answer

Compare active-active and active-passive disaster recovery. Design for failure domains, dependency behavior, data consistency, and business recovery objectives. Use redundancy, health checks, bounded retries, tested backups, and clear runbooks; verify recovery against measured RTO and RPO targets.

Syntax

detect → isolate → recover/fail over → verify → learn

Example

Set recovery objectives, test a realistic failure scenario, and measure recovery rather than relying on documentation alone.

Code example

# Bounded retry pseudocode
for attempt in range(3):
    try:
        return call_with_timeout(2.0)
    except TransientError:
        wait_with_exponential_backoff_and_jitter(attempt)

Diagram

Failure signal → health/telemetry → failover or restore → verification → review

Key Points

  • Failure domains
  • RTO/RPO
  • monitoring
  • bounded retries
  • recovery drills
Q97Reliability & DR

How should RTO and RPO influence a DR design?

How should RTO and RPO influence a DR design? Design for failure domains, dependency behavior, data consistency, and business recovery objectives…

Answer

How should RTO and RPO influence a DR design? Design for failure domains, dependency behavior, data consistency, and business recovery objectives. Use redundancy, health checks, bounded retries, tested backups, and clear runbooks; verify recovery against measured RTO and RPO targets.

Syntax

detect → isolate → recover/fail over → verify → learn

Example

Set recovery objectives, test a realistic failure scenario, and measure recovery rather than relying on documentation alone.

Code example

# Bounded retry pseudocode
for attempt in range(3):
    try:
        return call_with_timeout(2.0)
    except TransientError:
        wait_with_exponential_backoff_and_jitter(attempt)

Diagram

Failure signal → health/telemetry → failover or restore → verification → review

Key Points

  • Failure domains
  • RTO/RPO
  • monitoring
  • bounded retries
  • recovery drills
Q98Reliability & DR

How do you test backups and disaster recovery?

How do you test backups and disaster recovery? Choose storage based on access pattern, performance, durability, consistency, and recovery require…

Answer

How do you test backups and disaster recovery? Choose storage based on access pattern, performance, durability, consistency, and recovery requirements. Apply least-privilege access, encryption, lifecycle/retention policies, and monitoring. Versioning or snapshots help recovery but are not a substitute for tested backups.

Syntax

identity → storage API → object/volume/share → policy + encryption + lifecycle

Example

Keep storage private, grant access to the workload identity, enable encryption, and test retention and restore procedures.

Code example

# Inspect storage and access controls
aws s3 ls
aws s3api get-public-access-block --bucket <bucket-name>

Diagram

Application identity → storage endpoint → data + keys + backup/lifecycle

Key Points

  • Access policy
  • encryption
  • lifecycle
  • durability
  • restore testing
Q99Reliability Patterns

What are retries, timeouts, and circuit breakers?

What are retries, timeouts, and circuit breakers? Design for failure domains, dependency behavior, data consistency, and business recovery object…

Answer

What are retries, timeouts, and circuit breakers? Design for failure domains, dependency behavior, data consistency, and business recovery objectives. Use redundancy, health checks, bounded retries, tested backups, and clear runbooks; verify recovery against measured RTO and RPO targets.

Syntax

detect → isolate → recover/fail over → verify → learn

Example

Set recovery objectives, test a realistic failure scenario, and measure recovery rather than relying on documentation alone.

Code example

# Bounded retry pseudocode
for attempt in range(3):
    try:
        return call_with_timeout(2.0)
    except TransientError:
        wait_with_exponential_backoff_and_jitter(attempt)

Diagram

Failure signal → health/telemetry → failover or restore → verification → review

Key Points

  • Failure domains
  • RTO/RPO
  • monitoring
  • bounded retries
  • recovery drills
Q100Cloud Architecture

What is eventual consistency?

What is eventual consistency? Design for failure domains, dependency behavior, data consistency, and business recovery objectives. Use redundancy…

Answer

What is eventual consistency? Design for failure domains, dependency behavior, data consistency, and business recovery objectives. Use redundancy, health checks, bounded retries, tested backups, and clear runbooks; verify recovery against measured RTO and RPO targets.

Syntax

detect → isolate → recover/fail over → verify → learn

Example

Set recovery objectives, test a realistic failure scenario, and measure recovery rather than relying on documentation alone.

Code example

# Bounded retry pseudocode
for attempt in range(3):
    try:
        return call_with_timeout(2.0)
    except TransientError:
        wait_with_exponential_backoff_and_jitter(attempt)

Diagram

Failure signal → health/telemetry → failover or restore → verification → review

Key Points

  • Failure domains
  • RTO/RPO
  • monitoring
  • bounded retries
  • recovery drills

Share this question bank

Send this page to someone preparing for an interview.