Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free EC-Council Certified Cloud Security Engineer 312-40 Exam Questions

Last updated: · 15 practice questions with answers and explanations

Page: 1 / 15 Total 147 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Introduction to Cloud Security

Skill tested: Evaluates application of the AWS shared responsibility model to managed services.

A financial services company is moving a transaction-processing workload to Amazon RDS for PostgreSQL. The database will use a managed deployment, and the company must retain responsibility for protecting customer records and controlling database access. The team proposes that AWS will handle all security because the database engine and host are managed. Which allocation of responsibility is most appropriate?

Correct Answer: B. AWS secures the physical infrastructure and managed database service; the customer configures access, data protection, and workload-specific controls.
Explanation:

With Amazon RDS, AWS manages the underlying facilities, hardware, and managed-service components, while the customer remains responsible for the data placed in the service, identity and access configuration, and workload-level security choices. The precise division varies by service, but managed hosting does not transfer responsibility for customer data or access policy. The other choices either assign customer duties to AWS or incorrectly make the customer responsible for AWS-operated physical infrastructure and managed components.

Question 2

New Single answer

Topic: Platform and Infrastructure Security in Cloud

Skill tested: Assesses secure AWS network segmentation and private access to managed services.

A company runs application servers in private subnets within an Amazon VPC. The servers need to retrieve objects from an S3 bucket containing sensitive reports. They must not have general outbound internet access, and administrators want to avoid routing this traffic through a NAT gateway. Which configuration best meets these requirements?

Correct Answer: D. Create an S3 gateway VPC endpoint, associate it with the relevant route tables, and restrict the bucket policy to the endpoint or authorized principals.
Explanation:

An S3 gateway VPC endpoint provides private routing from selected VPC route tables to S3 without requiring an internet gateway or NAT gateway. A bucket policy can further limit access to the intended principals and, where appropriate, the endpoint. An internet gateway or public subnet is unnecessary and increases exposure; a NAT gateway adds cost and still does not provide the specific endpoint-based restriction. Permitting requests broadly from AWS networks would not meaningfully constrain access.

Question 3

New Multiple answers

Topic: Application Security in Cloud

Skill tested: Evaluates CI/CD controls for protecting deployment credentials and production releases.

A software team deploys a customer-facing application to AWS through a CI/CD pipeline. A recent review found long-lived AWS access keys stored in pipeline variables, and developers can currently deploy directly to production from feature branches. The company wants short-lived access and a controlled release path while keeping routine deployment automated. Which TWO changes best address these risks? Select TWO.

Correct Answer: A. Use the pipeline's supported OIDC federation to assume a narrowly scoped IAM role with temporary credentials.; D. Require protected, reviewed release branches or an equivalent approval gate before production deployment.
Explanation:

Federated identity lets the pipeline obtain temporary credentials by assuming a restricted IAM role, avoiding persistent AWS keys in pipeline configuration. A protected release path with review or approval prevents arbitrary feature branches from reaching production while preserving automation after the gate. Rotation reduces the lifetime of a leaked key but leaves a long-lived secret in the pipeline. Broad administrator access and keys embedded in images increase risk and do not create a controlled release process.

Question 4

New Single answer

Topic: Data Security in Cloud

Skill tested: Assesses S3 encryption-key choices and separation of key-management responsibilities.

A healthcare provider stores regulated documents in Amazon S3. Its policy requires server-side encryption, auditability of key use, and the ability to disable or rotate encryption keys independently of the storage bucket. The team does not need to operate its own cryptographic infrastructure. Which approach is MOST appropriate?

Correct Answer: C. Use server-side encryption with an AWS KMS customer managed key, apply a restrictive key policy, and enable appropriate key-usage logging.
Explanation:

An AWS KMS customer managed key gives the organization independent control over key policy and lifecycle actions, including disabling the key, while S3 performs server-side encryption. KMS records key-use activity through AWS audit mechanisms such as CloudTrail, subject to the configured logging and account setup. S3-managed keys provide less customer control over key policy, local application keys are difficult to govern securely, and network-path restrictions do not encrypt stored data.

Question 5

New Multiple answers

Topic: Penetration Testing in Cloud

Skill tested: Assesses authorization, scope definition, and safe testing practices for AWS environments.

A security consultancy is preparing a penetration test of a customer's AWS-hosted application. The customer controls the AWS account and has authorized testing of its application endpoints and selected EC2 instances. The plan also proposes password spraying against unrelated AWS accounts and a stress test that could affect shared service infrastructure. Which TWO actions should the consultancy take before testing begins? Select TWO.

Correct Answer: A. Document the approved targets, methods, timing, source addresses, and escalation contacts in the rules of engagement.; D. Exclude testing of other customers' accounts and avoid prohibited or potentially disruptive activities; obtain provider approval where required.
Explanation:

Cloud testing must have a clearly bounded scope and rules of engagement, including targets, timing, techniques, and incident contacts. Customer authorization does not grant rights over other tenants or override provider restrictions. The consultancy should exclude unrelated accounts and avoid prohibited or disruptive testing; it should confirm applicable provider policies and seek approval when a planned activity requires it. Unannounced stress testing and credential use against unrelated accounts exceed the stated authorization and create legal and operational risk.

Question 6

New Single answer

Topic: Incident Response in Cloud

Skill tested: Evaluates AWS containment actions that preserve evidence during credential compromise.

An AWS security team detects that an IAM access key used by an application has been exposed publicly. CloudTrail shows recent API calls from an unfamiliar location, but the team has not yet determined whether persistent resources were created. The key must be stopped quickly, and investigators need to preserve evidence for later analysis. What should the team do FIRST?

Correct Answer: D. Disable the compromised access key, preserve relevant CloudTrail and service evidence, and begin scoping activity by the key and principal.
Explanation:

Disabling the exposed key is an immediate, targeted containment action that prevents its continued use while preserving the IAM principal and account for investigation. The team should retain and examine CloudTrail and relevant resource evidence to identify the activity, persistence, and impact, then remediate any unauthorized changes. Waiting allows further misuse, deleting the account is disproportionate and destroys context, and deleting audit records compromises the investigation.

Question 7

New Multiple answers

Topic: Forensic Investigation in Cloud

Skill tested: Assesses evidence preservation and timeline reconstruction using Azure audit and resource logs.

A response team is investigating an unauthorized change to a Microsoft Azure virtual machine. The VM may have been accessed through a compromised administrative account, and the organization needs a defensible timeline without altering evidence unnecessarily. The VM is still running, and the team has centralized diagnostic data for the subscription. Which TWO actions are most appropriate early in the investigation? Select TWO.

Correct Answer: B. Preserve relevant Azure Activity Log and identity sign-in audit records, including their time range and provenance.; E. Capture a managed disk snapshot or other approved evidence copy, documenting the collection time and chain of custody.
Explanation:

Azure Activity Log records subscription-level control-plane operations, while identity sign-in records can help establish who authenticated and when. Preserving these records promptly supports timeline reconstruction. A documented disk snapshot or other controlled evidence copy preserves the VM's storage state for examination while reducing the risk of changing the original. Rebuilding or interactively exploring the VM before collection can destroy or modify evidence, and disabling logging removes useful future telemetry rather than preserving it.

Question 8

New Single answer

Topic: Business Continuity and Disaster Recovery in Cloud

Skill tested: Evaluates Azure SQL failover-group design for regional database recovery.

A customer portal uses Azure SQL Database in one Azure region. The business requires a managed regional recovery path with a defined failover mechanism for the database, while application operators need to switch the application to the secondary region with minimal connection-string changes. The organization does not require synchronous zero-data-loss replication and wants to avoid building a custom database replication process. Which solution is MOST appropriate?

Correct Answer: A. Configure an Azure SQL failover group with a secondary database in another region and use its listener endpoint for application connectivity.
Explanation:

An Azure SQL failover group provides a managed cross-region recovery arrangement and listener endpoints that can simplify application connection changes after failover. The chosen setup should be tested and configured according to the required failover policy and recovery objectives; it does not promise synchronous zero-data-loss replication. Nightly exports are backup artifacts rather than a managed failover path, manual table copying is an improvised recovery process, and availability zones address zonal - not regional - failure.

Question 9

New Multiple answers

Topic: Governance, Risk Management, and Compliance in Cloud

Skill tested: Assesses AWS governance controls for detecting and preventing noncompliant resource configurations.

A multinational organization has several AWS accounts owned by separate product teams. Security policy requires consistent detection of public storage exposure and unapproved regions, with a centralized view for governance. Teams may retain autonomy over application deployments, but they must not be able to bypass organization-wide restrictions. Which TWO controls best support these requirements? Select TWO.

Correct Answer: B. Aggregate AWS Config compliance data across accounts and use organization-wide rules or delegated governance for detection.; E. Use AWS Organizations with service control policies to restrict prohibited actions or regions across member accounts.
Explanation:

Service control policies set organization-level permission guardrails for member accounts; they do not grant permissions themselves, but they can limit what identities in those accounts may do. AWS Config can record resource configurations and assess them against rules, with aggregation providing a centralized compliance view across accounts and Regions as configured. Email-based reviews are less continuous and harder to verify. Shared administrator credentials and disabled audit recording undermine accountability and do not enforce policy.

Question 10

New Single answer

Topic: Standards, Policies, and Legal Issues in Cloud

Skill tested: Evaluates cloud data-location controls against contractual and privacy requirements.

A European company contracts with a cloud provider to process personal data only in specified EU regions. Its architecture team proposes enabling cross-region replication to improve recovery, but the target region is outside the approved locations. The contract does not authorize that transfer, and the organization has no legal assessment supporting it. What is the MOST appropriate action?

Correct Answer: C. Keep replication within approved locations unless the organization obtains the necessary legal, contractual, and governance approval for another transfer.
Explanation:

Data-location commitments and applicable privacy obligations must be addressed through the organization's legal and governance processes before changing where personal data is processed or stored. Encryption is an important safeguard but does not automatically remove transfer or residency obligations. Cloud providers may offer regional controls, but customers remain responsible for selecting a compliant architecture and honoring their contractual commitments. Object-name changes do not resolve the location issue.

Question 11

New Multiple answers

Topic: Security Operations in Cloud

Skill tested: Assesses Azure security monitoring and operational response to exposed management access.

A cloud operations team manages Azure virtual machines across multiple subscriptions. A review finds that some machines have public IP addresses and that security findings are reviewed manually only after monthly reports. The organization wants continuous visibility and prioritized remediation, but cannot immediately redesign every workload. Which TWO actions provide the strongest near-term operational improvement? Select TWO.

Correct Answer: C. Centralize relevant Azure activity and security logs in a monitoring workspace with retention and alerting suited to incident response.; E. Enable Microsoft Defender for Cloud plans appropriate to the workloads and use its recommendations and security alerts for prioritized remediation.
Explanation:

Microsoft Defender for Cloud can provide workload security findings and alerts that help teams prioritize remediation, while centralized logging and alerting improve visibility into control-plane and security events across subscriptions. These measures improve operations without requiring an immediate full redesign, though exposed management access should also be remediated promptly through restricted access paths and least privilege. Disabling assessments, leaving management ports open, or monitoring only guest antivirus omits important cloud and identity signals.

Question 12

New Single answer

Topic: Platform and Infrastructure Security in Cloud

Skill tested: Assesses Azure private connectivity design for administrative access to virtual machines.

An Azure operations team must administer Linux virtual machines in private subnets. Security policy prohibits assigning public IP addresses to the VMs and disallows inbound SSH directly from the internet. Administrators need browser-based access through the Azure portal, and the solution should use a managed Azure service rather than a self-hosted jump server. Which configuration best meets the requirement?

Correct Answer: A. Use Azure Bastion in the virtual network and connect to the private VM addresses without assigning the VMs public IPs.
Explanation:

Azure Bastion provides managed RDP and SSH connectivity to virtual machines over their private addresses through the Azure portal, without requiring public IP addresses on those VMs. This aligns with the stated access and exposure constraints. Public IPs with restricted SSH remain contrary to the policy, and a publicly exposed load balancer or self-hosted proxy creates the direct internet access path the organization prohibits.

Question 13

New Single answer

Topic: Application Security in Cloud

Skill tested: Evaluates Azure application secret management using managed identities and Key Vault.

A web application runs on Azure App Service and calls a downstream service using a credential stored in application settings. The credential must be removed from application configuration, and operators want to rotate it centrally without distributing a new secret to each deployment. The app is eligible to use a managed identity. Which approach is BEST?

Correct Answer: C. Enable a managed identity for the App Service, grant it least-privilege access to Azure Key Vault, and retrieve the secret at runtime.
Explanation:

A managed identity gives the App Service an Azure-managed identity without storing a client secret in the application. Granting that identity narrowly scoped Key Vault permissions allows the application to retrieve the credential at runtime, while operators can update the secret centrally. Source control and hard-coded encryption keys preserve the secret-management problem, and an obscure public object name is not access control.

Question 14

New Single answer

Topic: Data Security in Cloud

Skill tested: Assesses Azure Storage access restrictions using private endpoints and identity-based authorization.

A company stores confidential project files in Azure Blob Storage. The storage account must not be reachable over its public endpoint, and access should be granted to a private application subnet using Microsoft Entra identities rather than shared account keys. The application does not need access from the public internet. Which configuration is MOST appropriate?

Correct Answer: D. Create a private endpoint for Blob Storage, restrict public network access, and grant the application identity the required data-plane role.
Explanation:

A private endpoint provides private IP connectivity to the storage service from the designated network, while disabling or restricting public network access prevents use of the public endpoint. Assigning the application identity a least-privilege Azure role provides identity-based data-plane authorization without distributing account keys. TLS should remain enabled. Anonymous access and permanently embedded broad SAS tokens weaken authorization and do not meet the stated identity requirement.

Question 15

New Multiple answers

Topic: Incident Response in Cloud

Skill tested: Assesses coordinated GCP incident containment and evidence preservation for compromised service accounts.

A Google Cloud team discovers that a service account key was committed to a public repository. Audit Logs show unusual calls against a production project, and investigators have not yet identified all affected resources. The team must stop further use of the exposed credential while preserving information for scope analysis. Which TWO actions are most appropriate? Select TWO.

Correct Answer: C. Disable or revoke the exposed service account key and replace the workload's authentication with a safer credential mechanism where feasible.; D. Preserve relevant Cloud Audit Logs and correlate the calls with affected resources and timestamps.
Explanation:

Disabling or revoking the exposed key limits continued use; the team should also move the workload away from a long-lived key where feasible. Preserving Cloud Audit Logs and correlating service-account activity with resource changes supports scoping and remediation. Deleting the project is unnecessarily destructive, deleting logs removes evidence, and waiting to revoke the credential leaves the attacker able to continue using it.