Skip to content

Cloud Security Engineer interview questions

100 real questions with model answers and explanations for Junior candidates.

See a Cloud Security Engineer resume example

Practice with flashcards

Spaced repetition · Hunter Pass

Questions

cloud-security

The shared responsibility model divides security duties between the cloud provider and the customer.

  • The provider protects the physical facilities, hardware, and foundational managed infrastructure.
  • The customer protects identities, data, workload configuration, and access according to the services used.
  • The exact boundary changes by service model, so moving to cloud does not transfer all security responsibility to the provider.

Why interviewers ask this: The interviewer is checking whether you understand the basic security boundary between a provider and its customer.

cloud

The provider manages more of the technology stack as services move from IaaS to PaaS to SaaS, while the customer always retains responsibilities such as identity and data governance.

  • In IaaS, the customer commonly secures the guest operating system, applications, and network configuration.
  • In PaaS, the provider manages more runtime and operating-system layers, but the customer still secures code, data, and service settings.
  • In SaaS, the customer mainly controls users, permissions, data handling, tenant configuration, and connected devices.

Why interviewers ask this: A strong answer adjusts the responsibility boundary by service model without claiming that customer duties disappear.

authidentity-accesscloud-security

Authentication proves an identity, while authorization decides which actions that identity may perform on which resources.

  • Passwords, MFA, certificates, and federated sign-in are authentication mechanisms.
  • IAM policies, roles, and resource policies express authorization decisions.
  • A valid login does not grant broad access unless the authorization configuration allows it.

Why interviewers ask this: The interviewer is evaluating whether you separate identity verification from permission evaluation.

identity-access

An IAM user represents a long-lived identity, while a role is assumed to obtain temporary permissions for a session.

  • Roles are preferred for workloads and cross-account access because they avoid embedded long-lived access keys.
  • A role has a trust policy defining who may assume it and permission policies defining what it may do.
  • Human access is commonly federated through an identity provider into roles rather than managed as separate cloud users.

Why interviewers ask this: A strong answer connects roles to temporary credentials, trust, and modern workforce or workload access.

identity-access

An IAM policy states whether selected actions are allowed or denied on selected resources under optional conditions.

  • Effect expresses Allow or Deny, while Action names API operations.
  • Resource limits the objects to which the statement applies.
  • Condition can restrict access by context such as source network, resource tags, time, or MFA state.

Why interviewers ask this: The interviewer is checking whether you can identify the core parts of a cloud authorization rule.

least-privilegeaccess-controlidentity-access

Least privilege means granting an identity only the actions, resources, and conditions required for its current task.

  • Permissions should use specific actions and resource scopes instead of broad wildcards where the service supports them.
  • Temporary elevation is safer than permanent administrative access for occasional tasks.
  • Access reviews and usage data help remove permissions that are no longer needed.

Why interviewers ask this: A strong answer treats least privilege as an ongoing scope and lifecycle practice rather than a one-time policy setting.

identity-access

An explicit deny overrides an allow, while access without an applicable allow is denied by default.

  • Multiple identity, resource, organization, boundary, and session policies may participate in one decision.
  • A broad allow cannot bypass a matching explicit deny.
  • Permission boundaries and organization guardrails limit maximum permissions but do not grant access by themselves.

Why interviewers ask this: The interviewer is evaluating whether you know the central deny-first behavior of policy evaluation.

identity-accesscloud-security

MFA requires another factor beyond a password and reduces the chance that a stolen password alone compromises an account.

  • It is especially important for privileged users, billing owners, and root or break-glass identities.
  • Phishing-resistant factors such as hardware security keys provide stronger protection than SMS codes.
  • MFA should complement short sessions, conditional access, and least privilege rather than justify excessive permissions.

Why interviewers ask this: A strong answer explains the threat MFA reduces and recognizes that factor strength and surrounding controls matter.

cloud-security

Temporary credentials expire automatically and can be issued with a narrowly scoped session, reducing the lifetime of stolen access.

  • Roles and federation generate temporary credentials without storing a permanent secret in application code.
  • Short duration limits persistence after a credential leak.
  • Session context and role assumptions also improve auditability compared with shared static keys.

Why interviewers ask this: The interviewer is checking whether you connect credential lifetime and attribution to reduced cloud risk.

cloud-security

A workload should use a platform-provided service identity or role with temporary credentials instead of a hardcoded user key.

  • Virtual machines, containers, and serverless functions can receive credentials from their execution identity.
  • The role policy should permit only the APIs and resources the workload needs.
  • Metadata and token endpoints must be protected from untrusted code and request-forgery paths.

Why interviewers ask this: A strong answer chooses workload identity and scopes it without embedding durable secrets.

cloud-securityidentity-access

Identity federation lets an external identity provider authenticate users and exchange that identity for temporary cloud access.

  • Standards such as SAML and OpenID Connect carry identity information and claims.
  • Centralized federation supports one workforce lifecycle, MFA policy, and account disablement process.
  • Cloud roles map groups or claims to permissions without creating a separate long-lived user in every account.

Why interviewers ask this: The interviewer is evaluating whether you understand centralized identity and temporary role-based access.

identity-access

IAM Access Analyzer helps identify resources shared with external principals and can analyze permissions for broader-than-intended access.

  • It evaluates supported resource policies and trust relationships for access outside a defined zone of trust.
  • Findings still require review because some cross-account or public access may be intentional.
  • Policy validation and access activity can also support writing narrower permissions.

Why interviewers ask this: The interviewer is checking whether you know the tool's access-analysis purpose and the need for human validation.

encryptioncryptographyrest

Encryption at rest protects stored data, while encryption in transit protects data moving between systems.

  • Disk, database, object-storage, and backup encryption are common at-rest controls.
  • TLS is the standard control for data moving over a network.
  • Both controls are needed because they address different exposure points and neither replaces access control.

Why interviewers ask this: A strong answer distinguishes storage and network protections and keeps authorization as a separate control.

tlscryptographycloud-security

TLS encrypts traffic, authenticates the server through certificates, and protects messages from undetected modification in transit.

  • Certificate validation confirms that the client reached the intended service identity.
  • Modern configurations disable obsolete protocol versions and weak cipher suites.
  • TLS protects the connection but does not determine whether the authenticated caller is authorized to access the data.

Why interviewers ask this: The interviewer is evaluating whether you understand TLS confidentiality, integrity, authentication, and its limits.

encryptioncryptography

Envelope encryption encrypts data with a data key and then encrypts that data key with a separate key-encryption key.

  • Data keys efficiently encrypt large payloads close to the workload.
  • A KMS protects the key-encryption key and controls operations that unwrap data keys.
  • The encrypted data key can be stored beside ciphertext without exposing the plaintext key.

Why interviewers ask this: The interviewer is checking whether you understand the common cloud pattern for scalable encryption and key protection.

cloud-securitycryptography

A cloud KMS creates and protects cryptographic keys and controls audited cryptographic operations with those keys.

  • IAM and key policies determine who may encrypt, decrypt, sign, or administer a key.
  • Managed services can integrate with KMS for storage encryption without exposing key material to applications.
  • KMS manages cryptographic keys, while passwords and API tokens belong in a secrets-management service.

Why interviewers ask this: A strong answer covers key protection, access control, service integration, and the boundary with secret storage.

encryptioncryptography

Provider-managed keys favor simplicity, while customer-managed keys provide more control over policy, lifecycle, audit, and separation.

  • Provider-managed keys are created and operated by the cloud service with limited customer configuration.
  • Customer-managed keys can support custom permissions, cross-account use, disablement, and rotation settings.
  • More control also creates responsibility for key availability, policy correctness, cost, and lifecycle management.

Why interviewers ask this: The interviewer is evaluating whether you can state the control-versus-operations trade-off between key options.

encryptioncryptography

Key rotation limits how much new data is protected by one key version and supports organizational or regulatory cryptoperiod requirements.

  • New encryption operations use the current key material after rotation.
  • Old key material must remain available while data encrypted with it still needs decryption.
  • Rotation does not automatically correct excessive key permissions or replace the need to revoke a compromised key deliberately.

Why interviewers ask this: A strong answer explains cryptoperiods and continued decryption without treating rotation as a cure for every key risk.

Separating key administration from cryptographic use prevents one identity from both changing key controls and freely decrypting protected data.

  • Administrators may manage aliases, rotation, or policy without receiving decrypt permission.
  • Workloads may use encrypt or decrypt operations without permission to alter or delete the key.
  • This separation supports least privilege, dual control, and clearer audit trails.

Why interviewers ask this: The interviewer is checking whether you understand separation of duties for high-impact cryptographic access.

encryptioncryptography

Encryption is reversible with the appropriate key, while a cryptographic hash is designed as a one-way digest.

  • Encryption protects confidentiality when authorized users need to recover the original data.
  • Hashes support integrity checks and password verification when used with an appropriate salted password-hashing function.
  • A plain fast hash is not suitable password storage because attackers can test guesses efficiently.

Why interviewers ask this: A strong answer distinguishes reversibility and names the special requirements of password hashing.

Locked questions

  • 21

    What security boundary does a VPC provide?

    networking
  • 22

    What makes a cloud subnet public or private?

    cloud-securitynetworking
  • 23

    How do security groups protect cloud resources?

    cloud-securitynetworking
  • 24

    How do network ACLs protect AWS subnets?

    networking
  • 25

    What are the practical differences between security groups and network ACLs?

    networking
  • 26

    What security benefit does a private cloud service endpoint provide?

    cloud-securityendpoints
  • 27

    Why is outbound network traffic controlled in cloud environments?

    formscloud-security
  • 28

    What layer does a cloud web application firewall protect?

    network-securitycloud-securitynetworking
  • 29

    What is data classification in cloud security?

    classificationcloud-security
  • 30

    What is data minimization?

  • 31

    What controls protect cloud backups?

    cloud-securitybackups
  • 32

    What does Amazon Macie do?

  • 33

    How are compliance and security different?

    compliance
  • 34

    What does a SOC 2 report assess?

    compliancesoc-operations
  • 35

    What is ISO/IEC 27001?

  • 36

    What cloud-security concerns does GDPR introduce?

    gdprcompliancecloud-security
  • 37

    What is compliance evidence in a cloud environment?

    compliancecloud-security
  • 38

    What does Amazon GuardDuty detect?

  • 39

    What is AWS Security Hub used for?

  • 40

    What does AWS Config provide for cloud security?

    cloud-securityconfig
  • 41

    What does a CSPM tool such as Wiz provide?

  • 42

    What do Checkov and tfsec check in a cloud-security workflow?

    cloud-security
  • 43

    What does AWS CloudTrail record?

    cloud-security
  • 44

    How do CloudTrail management events and data events differ?

    cloud-security
  • 45

    Why are cloud audit logs centralized and protected?

    cloud-security
  • 46

    What is a cloud secrets manager used for?

    secretscloud-security
  • 47

    How should secrets, configuration, and encryption keys be separated?

    secretsencryptioncryptography
  • 48

    What does secret rotation require beyond generating a new value?

    secrets
  • 49

    Why are publicly accessible object-storage buckets a common cloud threat?

    cloud-security
  • 50

    What are common categories of cloud security threats?

    cloud-security
  • 51

    How would you respond to a finding that an S3 bucket is publicly accessible?

    aws
  • 52

    How would you respond to an AWS access key committed to a public repository?

  • 53

    How would you handle a finding that an IAM role has AdministratorAccess?

    identity-access
  • 54

    How would you write a least-privilege policy for an application that reads one S3 prefix?

    aws
  • 55

    How would you review an IAM role trust policy?

    identity-access
  • 56

    How would you clean up unused IAM users and access keys?

    identity-access
  • 57

    How would you address privileged cloud accounts without MFA?

    identity-accesscloud-security
  • 58

    How would you triage an IAM Access Analyzer finding for cross-account access?

    identity-access
  • 59

    How would you enable encryption for an existing S3 bucket?

    encryptioncryptographyaws
  • 60

    How would you troubleshoot an application denied access to a KMS-encrypted object?

    encryption
  • 61

    How would you configure and verify KMS key rotation?

    config
  • 62

    How would you respond to a database password found in source code?

    databasepasswords
  • 63

    How would you set up rotation for a database secret in Secrets Manager?

    databasesecrets
  • 64

    How would you protect a public API with encryption in transit?

    encryptioncryptographyapi
  • 65

    How would you remediate an unencrypted cloud database or snapshot?

    databasesnapshotcloud-security
  • 66

    How would you handle a security group that allows SSH from 0.0.0.0/0?

    networkingssh
  • 67

    How would you review a security group for least-privilege network access?

    networking
  • 68

    How would you review a network ACL without breaking return traffic?

  • 69

    How would you verify that a workload intended to be private is not internet reachable?

  • 70

    How would you move access to an AWS managed service onto a private endpoint?

    endpoints
  • 71

    How would you restrict unnecessary outbound access from a workload subnet?

    networking
  • 72

    How would you use VPC Flow Logs to review suspicious network activity?

    networking
  • 73

    How would you protect a managed database accidentally exposed to the internet?

    database
  • 74

    How would you configure basic WAF protection for an internet-facing application?

    config
  • 75

    How would you investigate an unexpected IAM policy change with CloudTrail?

    identity-accessincident-responsecloud-security
  • 76

    How would you fix gaps in CloudTrail coverage?

    cloud-securitycoverage
  • 77

    How would you protect a centralized CloudTrail log bucket?

    cloud-security
  • 78

    How would you alert on use of the AWS root user?

    alerting
  • 79

    How would you triage a high-severity GuardDuty finding?

    severity-priority
  • 80

    How would you route GuardDuty findings to the right responders?

  • 81

    How would you handle an AWS Config finding that a resource is noncompliant?

    config
  • 82

    How would you configure an alert for security groups open to the internet?

    configalertingnetworking
  • 83

    How would you triage a Security Hub finding?

  • 84

    How would you prioritize a large queue of Wiz findings?

    data-structures
  • 85

    How would you reduce duplicate security findings from several cloud tools?

    cloud-security
  • 86

    How would you fix a Checkov failure for a public Terraform S3 bucket?

    terraformaws
  • 87

    When would you accept a tfsec or Checkov suppression?

  • 88

    How would you review a Terraform change that adds IAM permissions?

    identity-accessterraform
  • 89

    How would you handle a manual cloud change that drifted from Terraform?

    terraformiaccloud-security
  • 90

    How would you respond to a Macie finding for sensitive data in an S3 bucket?

    aws
  • 91

    How would you protect a newly identified restricted dataset in the cloud?

    cloud-security
  • 92

    How would you check whether a cloud workload handling personal data meets basic GDPR expectations?

    gdprcompliancecloud-security
  • 93

    How would you harden cloud backups against deletion by a compromised administrator?

    incident-responsecloud-securitybackups
  • 94

    How would you collect evidence that S3 encryption is enforced for an audit?

    encryptioncryptographyaws
  • 95

    What steps would you follow for a basic cloud security incident?

    incidentscloud-security
  • 96

    How would you preserve evidence during a cloud investigation?

    incident-responsecloud-security
  • 97

    How would you contain suspicious use of a cloud role without deleting production resources?

    cloud-security
  • 98

    How would you escalate a cloud security finding you cannot fully investigate?

    incident-responsecloud-securityescalation
  • 99

    How would you close a cloud security finding as a false positive?

    detection-tuningcloud-security
  • 100

    How would you establish a basic security baseline for a new AWS account?