Courseiva

CompTIA Cloud+ CV0-004 (CV0-004) — Questions 175

977 questions total · 14pages · All types, answers revealed

Page 1 of 14

Page 2
1
MCQmedium

A company uses a cloud-based load balancer to distribute traffic to web servers. Recently, a new security policy was applied that restricts traffic to certain geographic regions. Users from an allowed region report they cannot access the website. The load balancer status shows health checks are passing. What should the administrator check?

A.The DNS resolution for the website
B.The SSL certificate expiration
C.The web server logs for application errors
D.The load balancer's access control lists (ACLs)
AnswerD

ACLs enforce geographic restrictions and could be misconfigured, blocking allowed regions.

Why this answer

Geographic restrictions on a load balancer are typically implemented via access control lists (ACLs). Since health checks are passing, the web servers are functional, so the issue lies in the load balancer's ACLs blocking traffic from the allowed region. Option A is wrong: DNS resolution would affect all users similarly, not just those from a specific region.

Option B is wrong: SSL certificate issues would generate browser warnings or errors, not complete inaccessibility. Option C is wrong: web server logs are irrelevant as the traffic is not reaching the servers due to the ACL block.

2
MCQmedium

A company is migrating its on-premises workloads to a public cloud. The security team requires that all data in transit between the cloud resources and on-premises be encrypted. Which solution should the cloud architect recommend?

A.Deploy a hardware security module (HSM) for key management.
B.Enable encryption on the cloud storage buckets.
C.Use TLS for all application traffic.
D.Implement a VPN tunnel between the cloud VPC and the on-premises network.
AnswerD

Correct. A VPN encrypts all network traffic between sites, ensuring all data in transit is encrypted.

Why this answer

A VPN tunnel encrypts all IP traffic between the cloud VPC and the on-premises network, ensuring data in transit is protected regardless of the application protocol. This satisfies the security requirement for encrypting all data in transit between the two environments, as VPNs typically use IPsec (RFC 4301) to provide confidentiality and integrity at the network layer.

Exam trap

Candidates often mistake TLS as sufficient for all data in transit, but TLS only encrypts application-level communications. A VPN encrypts the entire IP packet, ensuring all traffic between the cloud VPC and on-premises network is protected, regardless of the application.

How to eliminate wrong answers

Option A is wrong because an HSM is a hardware appliance for secure key storage and cryptographic operations, but it does not directly encrypt data in transit; it only manages keys used by other services. Option B is wrong because enabling encryption on cloud storage buckets (e.g., server-side encryption) protects data at rest, not data in transit between cloud resources and on-premises. Option C is wrong because TLS encrypts application-layer traffic only for specific protocols (e.g., HTTPS), but it does not cover all traffic types (e.g., non-HTTP, legacy protocols, or management traffic) that may traverse the connection between cloud and on-premises.

3
MCQhard

An application log shows the entries above. The application is a web server running on a virtual machine in a cloud environment. The database is a managed cloud database service. Which of the following is the MOST likely root cause of the failure?

A.A network firewall is blocking traffic to the database.
B.The database connection pool is exhausted.
C.The application's database credentials are incorrect or the application's IP is not whitelisted.
D.The database service is down.
AnswerC

The 'Failed to authenticate' error indicates credential or firewall whitelist issue.

Why this answer

The log entries show authentication failures. This indicates that the application's database credentials are incorrect or the application's IP address is not whitelisted in the managed database service. Option A is wrong because a network firewall blocking traffic would likely result in connection timeouts, not authentication errors.

Option B is incorrect because connection pool exhaustion would lead to resource contention errors, not authentication failures. Option D is wrong because if the database service was down, the application would likely encounter a connection refusal or timeout, not specific authentication errors.

4
MCQmedium

A cloud administrator is configuring a web application hosted on a public cloud VM. The application must be accessible over HTTPS, and the administrator needs to ensure that all traffic between the client and the server is encrypted. The cloud provider offers a managed certificate service. Which of the following is the BEST practice for securing the application?

A.Use the cloud provider's managed certificate service to provision and attach the certificate to the load balancer.
B.Generate a self-signed certificate and configure the web server to use it.
C.Disable HTTPS and rely on network-level encryption provided by the cloud provider.
D.Create a certificate signing request (CSR) and submit it to a public CA, then install the certificate and private key on the VM.
AnswerA

The managed service automates certificate lifecycle, reducing administrative overhead and risk.

Why this answer

The cloud provider's managed certificate service automatically handles certificate provisioning, renewal, and attachment to the load balancer, ensuring HTTPS traffic is encrypted with a trusted certificate from a public CA. This is the best practice because it offloads TLS termination to the load balancer, reducing the VM's CPU overhead and centralizing certificate management. It also ensures the certificate is automatically renewed before expiry, preventing service disruptions.

Exam trap

The trap here is that candidates may think manually installing a certificate from a public CA (Option D) is more secure or gives more control, but the cloud provider's managed service is the best practice because it automates lifecycle management and offloads TLS termination to the load balancer, reducing attack surface and operational burden.

How to eliminate wrong answers

Option B is wrong because a self-signed certificate is not trusted by client browsers, causing security warnings and breaking the trust model required for public HTTPS. Option C is wrong because disabling HTTPS removes application-layer encryption, leaving traffic vulnerable to interception even if network-level encryption (like IPsec) is used, as it does not protect against man-in-the-middle attacks at the application layer. Option D is wrong because manually installing a certificate and private key on the VM increases management overhead, risks exposing the private key, and does not leverage the cloud provider's automated renewal and load balancer integration.

5
MCQmedium

A company needs to choose a disaster recovery strategy with an RTO of 4 hours and an RPO of 15 minutes. Which of the following is the most cost-effective approach that meets these requirements?

A.Multi-site active-active
B.Warm standby
C.Pilot light
D.Cold standby
AnswerC

Pilot light can recover in minutes to hours with low RPO.

Why this answer

Pilot light keeps a minimal environment running and can be scaled up quickly; it offers a balance between cost and recovery time. Warm standby would be more expensive, cold standby would not meet RTO/RPO, and multi-site active-active is overkill.

6
MCQeasy

A company is migrating its on-premises database to a cloud-managed database service. The database contains sensitive financial data. Which of the following is the MOST important security configuration to implement after migration?

A.Enable encryption at rest using a customer-managed key
B.Configure automated patching schedule
C.Enable public read access for monitoring tools
D.Set up cross-region replication for high availability
AnswerA

Encryption at rest protects data from unauthorized access to storage media.

Why this answer

Encryption at rest using a customer-managed key is the most important security configuration because it directly protects sensitive financial data stored in the database. Even if the underlying storage is compromised, the data remains unreadable without the key. Customer-managed keys provide additional control and help meet compliance requirements.

While automated patching (B) is important for overall security, it does not protect data at rest. Public read access (C) should be disabled, not enabled, as it would expose sensitive data. Cross-region replication (D) ensures disaster recovery and availability, but does not address data confidentiality.

7
MCQmedium

A cloud administrator is starting the nginx web server on a new cloud VM but it fails. According to the exhibit, what is the most likely cause of the failure?

A.Another service is already listening on port 80
B.The VM does not have network connectivity
C.SELinux is blocking nginx from binding to the port
D.The nginx configuration file has a syntax error
AnswerA

The error explicitly states address already in use.

Why this answer

The error 'bind() to 0.0.0.0:80 failed (98: Address already in use)' indicates that port 80 is already occupied by another process. Option A is correct. Option B is wrong because SELinux would give a permission denied error, not address in use.

Option C is wrong because the error says address in use, not file not found. Option D is wrong because the error is about binding, not about configuration syntax.

8
MCQeasy

A company uses multiple AWS accounts. The cloud team wants to allocate costs to specific business units. What should they implement?

A.Cost Explorer
B.AWS Budgets
C.AWS Organizations
D.Tagging strategy
AnswerD

Tags allow cost tracking by business unit.

Why this answer

A tagging strategy with tags like environment, team, and project enables cost allocation.

9
MCQhard

Refer to the exhibit. A cloud administrator runs the above command on a Linux virtual machine. What is the effect of the current firewall rules?

A.All outgoing traffic is controlled by these rules.
B.All incoming traffic is allowed except RDP, which is dropped.
C.The firewall is blocking all traffic by default.
D.Only SSH, HTTP, and HTTPS are allowed; all other traffic is dropped.
AnswerB

The default policy is ACCEPT, so only the explicitly dropped port (3389) is blocked; all other ports are allowed.

Why this answer

The rules show ACCEPT for SSH (22), HTTP (80), and HTTPS (443), and DROP for RDP (3389). Since the default policy on the INPUT chain is ACCEPT, all other traffic is allowed, which is not secure. The administrator should set the default policy to DROP and only allow necessary ports.

10
Multi-Selecthard

Which THREE are common reasons why a cloud database instance may become unreachable?

Select 3 answers
A.Firewall rules blocking the database port
B.Incorrect connection string in the application
C.Storage volume is full on the database server
D.Database service not started
E.Hypervisor maintenance causing VM reboot
AnswersA, B, D

Security groups or firewalls can block inbound traffic.

Why this answer

The three most common reasons a cloud database instance becomes unreachable are firewall rules blocking the database port (A), an incorrect connection string in the application (B), and the database service not being started (D). A full storage volume (C) may cause write failures but does not always result in unreachability, and hypervisor maintenance (E) typically uses live migration to avoid downtime.

11
Multi-Selectmedium

A cloud administrator is configuring cost management for a multi-account cloud environment. The company wants to allocate costs by department and project. Which TWO steps should the administrator take to achieve this? (Choose two.)

Select 2 answers
A.Enable the cloud provider's cost reporting tools
B.Create separate cloud accounts for each department
C.Activate cost allocation tags in the billing console
D.Use the cloud provider's budgeting tools to set spending limits
E.Apply tags to resources such as Department and Project
AnswersC, E

Must activate tags for them to appear in reports.

Why this answer

Tagging resources and enabling cost allocation tags in the billing console allow cost breakdown by department and project. The cloud provider's cost reporting tools can then filter by these tags.

12
MCQmedium

A cloud engineer is troubleshooting a connectivity issue between two virtual networks in different regions. The engineer has verified that the virtual networks are peered and the routing tables are correct. Which of the following is the MOST likely cause of the issue?

A.Incorrect route tables on the virtual network gateway
B.A physical cable disconnection in the datacenter
C.A network security group blocking the traffic
D.Incorrect DNS resolution
AnswerC

NSGs are stateful firewalls that can block inter-VNet traffic if not properly configured.

Why this answer

Network security groups (NSGs) operate at the subnet or NIC level and can filter traffic between peered virtual networks even when routing is correctly configured. Since the engineer has verified peering and routing tables, the most likely remaining cause is an NSG rule explicitly or implicitly denying the traffic, as NSGs are stateful and evaluated after routing decisions.

Exam trap

The trap here is that candidates often overlook NSGs and jump to routing or gateway issues, but in a peered VNet scenario with correct routing, NSGs are the primary layer-4 filter that can silently drop traffic.

How to eliminate wrong answers

Option A is wrong because virtual network gateways are used for VPN or ExpressRoute connections, not for VNet peering; VNet peering uses the Azure backbone without a gateway, so incorrect route tables on a gateway are irrelevant. Option B is wrong because physical cable disconnections in a datacenter are abstracted away by the cloud provider's software-defined networking; the engineer has no access to physical infrastructure, and such issues would manifest as broader outages, not isolated inter-VNet connectivity. Option D is wrong because DNS resolution affects name-to-IP mapping, not IP-level connectivity; if the engineer can ping or test connectivity via IP address, DNS is not the bottleneck.

13
MCQeasy

Which of the following is a stateless network access control that requires explicit allow rules for both inbound and outbound traffic?

A.Security group
B.Network ACL
C.DDoS protection
D.Web application firewall
AnswerB

NACLs are stateless and require rules for both directions.

Why this answer

Network ACLs (NACLs) are stateless; security groups are stateful.

14
MCQmedium

A cloud administrator needs to audit all API calls made in a GCP project for compliance purposes. Which service should be enabled to log these actions?

A.GCP Cloud Audit Logs
B.Azure Monitor
C.GCP Security Command Center
D.AWS CloudTrail
AnswerA

Cloud Audit Logs track API calls in GCP.

Why this answer

Cloud Audit Logs in GCP record administrative activities and data access. CloudTrail is AWS-specific, Azure Monitor is for Azure, and Security Command Center is a security dashboard.

15
MCQeasy

A cloud engineer is implementing a tagging strategy for cost allocation. Which tags should be applied to resources to track costs by business unit and environment?

A.BusinessUnit and Environment
B.Owner and Department
C.Project and Application
D.Location and Region
AnswerA

These tags directly support cost allocation by business unit and environment (e.g., dev, prod).

Why this answer

Tags like 'BusinessUnit' and 'Environment' are commonly used for cost allocation and reporting. Tags must be applied consistently for accurate cost tracking.

16
Drag & Dropmedium

Arrange the steps to implement a cloud security group that allows only specific IPs to access an application.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4

Why this order

The correct sequence ensures that the security group is properly configured with the known allowed IPs before being attached to the resource, and then tested. Identifying IPs first prevents misconfiguration, and setting the source within the rule during creation ensures the rule is complete before association.

17
MCQmedium

An organization uses AWS CloudFormation to deploy resources across multiple AWS accounts. They need to manage a common set of resources in several accounts from a single template. Which CloudFormation feature should they use?

A.Change sets
B.Nested stacks
C.Drift Detection
D.StackSets
AnswerD

StackSets enable deployment of stacks across multiple accounts and regions.

Why this answer

StackSets allow deploying stacks across multiple accounts and regions. Change sets show changes before execution; Drift Detection detects configuration drift; Nested stacks are for reusability within a single account.

18
MCQhard

A company runs a stateless web application on auto-scaling EC2 instances behind an Application Load Balancer. The application experiences sudden traffic spikes. Which scaling approach will handle the spikes most efficiently while minimizing cost?

A.Horizontal scaling with auto-scaling based on CPU utilization
B.Vertical scaling of existing instances
C.Using reserved instances for all capacity
D.Pre-provisioning a large number of instances
AnswerA

Correct. Horizontal scaling adds instances as needed, and auto-scaling ensures cost efficiency.

Why this answer

Horizontal scaling (adding instances) combined with auto-scaling based on metrics is best for handling spikes cost-effectively in a stateless app.

19
MCQmedium

Refer to the exhibit. A cloud administrator launched a CloudFormation stack to deploy an EC2 instance, but the stack is rolling back. What is the MOST likely cause?

A.The security group referenced in the template does not exist.
B.The subnet ID is in a different VPC.
C.The AMI ID is invalid or has been deregistered.
D.The instance type is not available in the selected region.
AnswerC

The error directly states 'ImageId is invalid', so the AMI ID is incorrect or no longer exists.

Why this answer

CloudFormation validates the AMI ID during stack creation. If the AMI ID is invalid (e.g., mistyped, belongs to a different region, or has been deregistered), the EC2 instance launch fails, causing CloudFormation to roll back the stack. This is a common misconfiguration when copying templates across regions without updating AMI IDs.

Exam trap

The trap here is that candidates often assume a missing security group or wrong subnet causes rollbacks, but CloudFormation performs upfront validation for those parameters, whereas an invalid AMI ID is only detected at launch time, making it the most likely cause of a rollback.

How to eliminate wrong answers

Option A is wrong because CloudFormation validates security group references before launching resources; if the security group does not exist, the stack would fail with a validation error rather than rolling back after launch attempts. Option B is wrong because a subnet ID in a different VPC would cause a network interface error, but CloudFormation would catch this during parameter validation or resource creation, not typically trigger a rollback after launch. Option D is wrong because if the instance type is unavailable in the region, CloudFormation would fail with an 'Unsupported' error during resource creation, but the question specifies the stack is rolling back, which implies the launch was attempted and failed, whereas instance type unavailability is usually caught earlier.

20
Multi-Selecteasy

A cloud administrator is planning to migrate a large on-premises database (several TB) to Amazon RDS with minimal downtime. Which TWO AWS services should be considered for this migration?

Select 2 answers
A.AWS Database Migration Service
B.AWS Schema Conversion Tool
C.AWS DataSync
D.AWS Snowball
E.S3 Transfer Acceleration
AnswersA, B

DMS supports minimal downtime migrations via CDC.

Why this answer

AWS Database Migration Service (DMS) can perform online migrations with minimal downtime using CDC. Schema Conversion Tool helps convert database schema if needed.

21
Multi-Selecteasy

Which TWO of the following are best practices for securing access to a cloud management console?

Select 2 answers
A.Use complex passwords and rotate them every 30 days
B.Restrict access based on IP address ranges
C.Use the root account for daily administration
D.Enable multi-factor authentication (MFA)
E.Enable guest access for external auditors
AnswersB, D

IP restrictions reduce attack surface.

Why this answer

Restricting access based on IP address ranges (B) is a best practice because it limits the attack surface by allowing only trusted network sources to reach the management console. This is often implemented via security group rules, network ACLs, or cloud provider-specific features like AWS Security Groups or Azure NSGs, reducing exposure to brute-force and unauthorized access attempts.

Exam trap

This question tests the misconception that frequent password rotation is still a security best practice, but the CompTIA Cloud+ exam emphasizes NIST-aligned guidance that prioritizes MFA and IP restrictions over arbitrary password expiry.

22
MCQmedium

An organization is subject to PCI DSS compliance and must demonstrate that it is meeting security requirements. Which cloud service can aggregate compliance findings and provide a dashboard?

A.AWS CloudTrail
B.AWS Security Hub
C.AWS Shield
D.AWS Config
AnswerB

Security Hub provides a centralized view of security alerts and compliance status.

Why this answer

AWS Security Hub aggregates security findings from multiple AWS services and provides a compliance dashboard.

23
MCQhard

A company runs a critical e-commerce application on a private cloud using OpenStack. The application consists of web servers, application servers, and a MySQL database running on separate VMs. Recently, users have reported intermittent 502 Bad Gateway errors during peak hours. The operations team notices that the web server VMs show high CPU ready times and the application server VMs have increased network latency. Storage performance also shows high await times on the SSD-based Ceph cluster. The team suspects resource contention. Which of the following is the BEST course of action to diagnose and resolve the issue?

A.Migrate the web server VMs to a different compute host using live migration.
B.Increase the number of vCPUs for each web server VM to reduce CPU ready time.
C.Implement quality of service (QoS) policies on the Ceph cluster to guarantee IOPS for the database.
D.Review the hypervisor's CPU and memory allocation ratios and adjust overcommitment settings.
AnswerD

Reviewing and adjusting hypervisor CPU and memory allocation ratios directly addresses the root cause of overcommitment, reducing contention across CPU, memory, and storage.

Why this answer

High CPU ready times and overall contention indicate overcommitment on the hypervisors. Adjusting overcommitment ratios can reduce contention across CPU, memory, and storage. Option A is incorrect because migrating VMs to a different host is a temporary workaround that does not address the root cause of overcommitment.

Option B is incorrect because adding more vCPUs can worsen contention by increasing scheduling overhead. Option C is incorrect because QoS policies on storage only address storage contention and do not resolve CPU or network issues.

24
Multi-Selectmedium

A cloud architect is designing a disaster recovery plan. Which TWO strategies ensure minimal data loss?

Select 2 answers
A.Daily backups stored in the same data center
B.Synchronous replication across regions
C.Asynchronous replication with hourly snapshots
D.Application-level multi-region writes
E.Periodic manual exports to on-premises storage
AnswersB, D

Synchronous replication guarantees zero data loss as data is written to both sites before acknowledgment.

Why this answer

Synchronous replication across regions (B) ensures that every write is committed to both the primary and secondary sites before acknowledging the client, resulting in zero data loss (RPO=0) in the event of a failover. Application-level multi-region writes (D) allow the application to write directly to multiple independent databases simultaneously, ensuring that all regions have the latest data and no data is lost if one region fails.

Exam trap

The trap here is that candidates often confuse asynchronous replication (which has a non-zero RPO) with synchronous replication (which has zero RPO), or they mistakenly believe that daily backups in the same data center are sufficient for disaster recovery, ignoring the need for geographic separation and low RPO.

25
MCQmedium

A cloud engineer needs to store database backups that must be retained for seven years. The backups are rarely accessed. Which storage type is most cost-effective for this use case?

A.Object storage
B.Block storage
C.Archive storage
D.File storage
AnswerC

Archive storage is designed for long-term, low-cost retention.

Why this answer

Archive storage (like Glacier or Azure Archive) is designed for long-term cold storage at low cost.

26
Drag & Dropmedium

Sequence the steps to set up a cloud storage bucket with versioning and lifecycle policies.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4

Why this order

Create bucket, enable versioning, add lifecycle rules for transitions and deletions, then test.

27
Multi-Selecthard

A data scientist is migrating a 10 TB on-premises PostgreSQL database to Amazon RDS for PostgreSQL. The migration must have minimal downtime. Which TWO AWS services should the data scientist use together to achieve this? (Select TWO.)

Select 2 answers
A.AWS Snowball
B.AWS Direct Connect
C.AWS Schema Conversion Tool (SCT)
D.AWS Database Migration Service (DMS)
E.AWS DataSync
AnswersB, D

Direct Connect provides stable network for DMS replication.

Why this answer

To migrate a 10 TB PostgreSQL database to RDS with minimal downtime, AWS DMS provides ongoing replication via change data capture (CDC), allowing continuous data synchronization after the full load. AWS Direct Connect offers a dedicated, stable network connection with consistent bandwidth and low latency, which is critical for replicating such a large volume of data reliably and quickly. Without Direct Connect, internet-based replication could suffer from variable performance, risking the ability to keep the target in sync during the final cutover.

28
Multi-Selecteasy

Which TWO factors should be considered when selecting a cloud region for deploying a latency-sensitive application serving a global user base?

Select 2 answers
A.Cost of compute and storage
B.Number of availability zones
C.Proximity to the majority of users
D.Data sovereignty and compliance requirements
E.Available network bandwidth between zones
AnswersB, C

Allows high availability and low latency via local replication.

Why this answer

The number of availability zones within a region directly impacts the resilience and fault tolerance of a latency-sensitive application. Deploying across multiple availability zones allows for high availability and failover without adding significant latency, as zones are typically within a few milliseconds of each other. This ensures the application remains responsive even if one zone fails, which is critical for a global user base.

Exam trap

Candidates often mistakenly select cost (A) or compliance (D) as primary factors affecting latency, failing to recognize that physical proximity (C) and multi-zone deployment (B) are critical for global latency-sensitive applications.

29
MCQhard

A company uses Google Cloud Platform and wants to enforce that all Compute Engine instances use a specific Customer-Managed Encryption Key (CMEK) for disk encryption. Which GCP service should be used to enforce this policy?

A.IAM Conditions
B.Organization Policies
C.Cloud Security Command Center
D.Cloud Key Management Service
AnswerB

Organization policies can enforce that only CMEK-protected disks are allowed.

Why this answer

Organization Policies (formerly known as 'Constraints') allow administrators to define and enforce guardrails for Google Cloud resources at the hierarchy level. The specific constraint `compute.requireCsekEncryption` (or the newer CMEK-based equivalent) can be applied to a folder or project to mandate that all Compute Engine disks use a Customer-Managed Encryption Key, rejecting any instance creation or disk attachment that does not comply.

Exam trap

The trap here is that candidates often confuse the key management service (which creates keys) with the policy enforcement service (which enforces their usage).

How to eliminate wrong answers

Option A is wrong because IAM Conditions control access to resources based on attributes like time or resource tags, but they cannot enforce encryption key requirements on Compute Engine instances. Option C is wrong because Cloud Security Command Center is a security and risk dashboard that provides visibility and threat detection, not a policy enforcement mechanism for resource configuration. Option D is wrong because Cloud Key Management Service is the service that creates, manages, and stores encryption keys, but it does not enforce policies that require their use on Compute Engine disks.

30
MCQeasy

Refer to the exhibit. A cloud administrator runs the command to inspect an instance and notices that it is running, but the web application hosted on it is unreachable from the internet. The instance is in a public subnet with an internet gateway attached to the VPC. Which of the following is the most likely cause?

A.The instance type t2.medium does not support public IP addresses.
B.The instance's security group does not allow inbound HTTP/HTTPS traffic from 0.0.0.0/0.
C.The subnet subnet-abc is not associated with a route table that has a route to the internet gateway.
D.The volume vol-111 is not encrypted.
AnswerB

Correct. Security group rules control inbound traffic; missing HTTP/HTTPS rules would prevent internet access.

Why this answer

The instance has a security group named "sg-web" which likely does not allow inbound HTTP/HTTPS traffic from the internet. Other options are less plausible given the configuration.

31
Multi-Selectmedium

A cloud engineer is using Terraform to manage infrastructure and wants to store the state file remotely for team collaboration. Which THREE backends support state locking and encryption at rest?

Select 3 answers
A.Azure Blob Storage
B.Google Cloud Storage (GCS)
C.AWS S3 with DynamoDB for locking
D.HashiCorp Consul
E.Git repository
AnswersA, B, C

Azure Blob Storage supports state locking with lease blobs.

Why this answer

AWS S3 with DynamoDB locks, Azure Blob Storage with leasing, and GCS with object versioning all support locking and encryption. Terraform Cloud also does, but it's not listed. Git and Consul are not recommended for production state.

32
Multi-Selecthard

A cloud engineer is troubleshooting a performance issue in a microservices application. Which THREE tools can help with distributed tracing and latency diagnosis?

Select 3 answers
A.AWS CloudTrail
B.GCP Cloud Trace
C.Azure Application Insights
D.AWS X-Ray
E.VPC Flow Logs
AnswersB, C, D

Cloud Trace provides tracing for GCP.

Why this answer

AWS X-Ray, Azure Application Insights, and GCP Cloud Trace are distributed tracing services.

33
MCQeasy

A cloud administrator needs to monitor CPU utilization for a fleet of EC2 instances and receive notifications when utilization exceeds 80%. Which AWS service should be used to create a metric alarm that triggers an SNS notification?

A.AWS Config
B.AWS Trusted Advisor
C.Amazon CloudWatch
D.AWS CloudTrail
AnswerC

CloudWatch provides metrics and alarm functionality, including SNS notifications.

Why this answer

Amazon CloudWatch is the AWS service for monitoring metrics and creating alarms. CloudWatch Alarms can be configured to trigger SNS notifications when a metric crosses a threshold.

34
Matchingmedium

Match each storage type to its characteristic.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Data stored as objects with metadata

Data divided into blocks; used in SAN

Data stored in a hierarchical file system

Temporary storage tied to instance lifecycle

Why these pairings

Object storage uses objects with metadata (scalable for unstructured data), block storage uses fixed blocks (low-latency for databases), file storage uses hierarchical files (shared access), and SAN provides block-level access over a high-speed network. Common confusions swap object and block definitions.

35
MCQmedium

A cloud administrator is troubleshooting an issue where a user in the finance department cannot access a critical application hosted on a private cloud. The user can access other applications in the same subnet. The security team recently implemented a new network security policy. Which of the following is MOST likely causing the issue?

A.The user's VM is isolated from the subnet due to a misconfigured VLAN.
B.The user's account has been disabled due to a failed login attempt.
C.The hypervisor is denying access to the application due to a resource quota violation.
D.A host-based firewall rule is blocking the specific application port on the user's VM.
AnswerD

A host-based firewall rule could block only the specific port used by the application, which explains why other applications work.

Why this answer

The user can access other applications in the same subnet, indicating network connectivity is intact, but a specific application is blocked. A host-based firewall rule on the user's VM (e.g., Windows Firewall or iptables) can filter traffic by port or protocol, and a newly implemented security policy likely added a rule blocking the port used by the critical application. This explains why only that application is inaccessible while others work.

Exam trap

The trap here is that candidates often assume network-level issues (like VLAN misconfiguration) or account problems, but the key clue is that other applications in the same subnet are accessible, pointing to a host-based filter rather than a network-wide or authentication issue.

How to eliminate wrong answers

Option A is wrong because a misconfigured VLAN would isolate the entire VM from the subnet, preventing access to all applications, not just one. Option B is wrong because a disabled account would prevent authentication to the application or network, but the user can still access other applications, indicating the account is active. Option C is wrong because a hypervisor resource quota violation would affect all VMs or applications on that host, not a single user's access to one application, and would typically cause performance issues or VM failure, not selective port blocking.

36
MCQmedium

A cloud engineer receives an alert that the root filesystem (/) is at 93% usage. The /data volume has plenty of free space. The application stores logs in /var/log/app/ on the root filesystem. Which of the following is the BEST long-term solution?

A.Move the /var/log/app directory to the /data partition and create a symlink
B.Increase the size of the root filesystem
C.Delete the /data partition and merge it with root
D.Configure log rotation to delete logs more frequently
AnswerA

This frees root space and leverages the /data volume's capacity.

Why this answer

Moving the /var/log/app directory to the /data partition and creating a symlink is the best long-term solution because it permanently relocates the log data to a volume with ample free space without requiring application reconfiguration. The symlink (/var/log/app -> /data/app) makes the application continue to write to the same logical path, while the actual storage is on the /data filesystem. This resolves the root filesystem capacity issue without altering the application's logging behavior or risking data loss.

Exam trap

CompTIA often tests the misconception that increasing filesystem size or deleting partitions is a valid long-term fix, when in reality the correct approach is to relocate data to a separate volume using a symlink or mount bind.

How to eliminate wrong answers

Option B is wrong because increasing the size of the root filesystem only provides a temporary fix and does not address the underlying issue of log growth; it may also be impractical if the underlying disk or LVM has no free extents. Option C is wrong because deleting the /data partition and merging it with root is destructive, risks data loss on /data, and violates the principle of separating application data from the OS filesystem. Option D is wrong because configuring log rotation to delete logs more frequently reduces historical data needed for troubleshooting and compliance, and does not prevent future root filesystem exhaustion if log volume continues to grow.

37
MCQeasy

A cloud administrator manages a multi-tier web application running on AWS. The application consists of a load balancer, web servers in an auto scaling group, and a MySQL RDS database. Recently, users have reported slow page load times during peak hours. The cloud administrator has checked the load balancer metrics and found that response times are high, but CPU utilization on the web servers is below 60%. The RDS instance shows high read IOPS and a high number of database connections. The administrator suspects the database is the bottleneck. Which of the following actions should the administrator take FIRST to resolve the performance issue?

A.Migrate the database to a larger instance class.
B.Add read replicas to offload read queries from the primary database.
C.Increase the size of the web servers to handle more requests faster.
D.Enable an in-memory caching layer such as ElastiCache to reduce database load.
AnswerD

Caching frequently accessed data reduces database reads and improves response times quickly.

Why this answer

The database is the bottleneck due to high read IOPS and connections. Enabling an in-memory caching layer (e.g., ElastiCache) reduces read queries hitting the database, alleviating the bottleneck with minimal changes. Option A is incorrect because migrating to a larger instance class is more costly and disruptive; caching is a simpler first step.

Option B is incorrect because adding read replicas can help distribute read load but requires application changes to route queries; caching is often more immediate. Option C is incorrect because web server CPU is low, so increasing web server size does not address the database bottleneck.

38
MCQeasy

A cloud administrator needs to automate the process of patching multiple virtual machines in a private cloud. Which of the following is the best tool for this purpose?

A.Virtual machine templates
B.Ansible playbook
C.SSH with manual commands
D.Scheduled tasks in the hypervisor management console
AnswerB

Ansible provides automated, repeatable patching across multiple systems.

Why this answer

An Ansible playbook is the best tool for automating patching across multiple VMs because it is agentless, uses SSH for Linux or WinRM for Windows, and supports idempotent execution. This allows the administrator to define the desired patch state declaratively and apply it consistently across the entire fleet without manual intervention.

Exam trap

The trap here is that candidates confuse hypervisor-level automation (scheduled tasks in the console) with guest OS automation, forgetting that patching requires executing commands inside the VM, which hypervisor tools cannot do natively.

How to eliminate wrong answers

Option A is wrong because virtual machine templates are used to create new VMs from a golden image, not to patch existing running VMs. Option C is wrong because SSH with manual commands requires the administrator to connect to each VM individually, which does not scale and is not automated. Option D is wrong because scheduled tasks in the hypervisor management console typically handle hypervisor-level operations (e.g., VM snapshots or power actions) and lack the ability to run OS-level patch commands inside guest VMs.

39
MCQhard

A Kubernetes StatefulSet is deployed to run a database. The pods are stuck in pending state. The administrator checks and finds that the PersistentVolumeClaim is not bound to any PersistentVolume. Which of the following is the MOST likely cause?

A.The PVC and PV have different access modes.
B.The PV is already bound to another PVC.
C.The PVC requests storage size that exceeds available PV capacity.
D.The storage class provisioner is not installed.
AnswerB

If the PV is already claimed, the new PVC cannot bind, leaving it unbound. This is a common scenario.

Why this answer

When a PersistentVolumeClaim (PVC) remains unbound, the most common cause is that no PersistentVolume (PV) matches its requirements. If a PV is already bound to another PVC, it cannot be reused unless released and reclaimed. This leaves the PVC in a pending state, preventing the StatefulSet pods from starting.

Exam trap

CompTIA often tests the distinction between a PVC being unbound due to no matching PV versus a PV being already bound, leading candidates to incorrectly select access mode or size mismatches when the real issue is PV exhaustion.

How to eliminate wrong answers

Option A is wrong because different access modes (e.g., ReadWriteOnce vs. ReadWriteMany) prevent binding, but the question states the PVC is not bound to any PV, implying a lack of available PVs rather than a mismatch. Option C is wrong because while a size mismatch can prevent binding, the PV would still exist and be available; the issue here is that no PV is bound at all.

Option D is wrong because if the storage class provisioner were not installed, dynamic provisioning would fail, but the PVC would still attempt to bind to an existing PV; the question does not mention dynamic provisioning or a StorageClass.

40
MCQeasy

Which cloud characteristic allows a user to provision additional resources automatically without requiring human intervention?

A.Measured service
B.Resource pooling
C.Rapid elasticity
D.Broad network access
AnswerC

Rapid elasticity allows automatic scaling of resources up or down.

Why this answer

Rapid elasticity enables automatic scaling of resources based on demand.

41
MCQmedium

A company runs a stateless web application on virtual machines. To handle increased traffic, they add more virtual machines and distribute incoming requests among them. What is this scaling method called?

A.Right-sizing
B.Vertical scaling
C.Auto-scaling
D.Horizontal scaling
AnswerD

Horizontal scaling adds more instances.

Why this answer

Horizontal scaling adds more instances to handle load, as opposed to vertical scaling which increases the resources of a single instance.

42
MCQmedium

A cloud architect is designing a disaster recovery plan. The application requires a Recovery Time Objective (RTO) of 15 minutes and a Recovery Point Objective (RPO) of 1 hour. Which strategy best meets these requirements?

A.Daily snapshots replicated to another region
B.Scheduled cross-region snapshots every 6 hours
C.Backup to tape and store offsite
D.Continuous replication to a warm standby site
AnswerD

Continuous replication ensures RPO within minutes, and warm standby allows fast failover meeting RTO.

Why this answer

Continuous replication to a standby environment (pilot light or warm standby) can achieve low RTO and RPO. Snapshot-based with daily backups has RPO of 1 day. Cross-region replication of snapshots can have RPO hours.

Warm standby with continuous replication meets both RTO and RPO.

43
MCQmedium

A cloud engineer is designing a disaster recovery plan with an RTO of 2 hours and RPO of 15 minutes. Which strategy best meets these requirements?

A.Pilot light with hourly snapshots
B.Warm standby with continuous replication
C.Cold standby with daily backups
D.Active-active across regions
AnswerB

Provides near-real-time RPO and quick recovery meeting the requirements.

Why this answer

A warm standby with replication keeps a scaled-down copy running, allowing recovery within hours and data loss limited to minutes.

44
MCQhard

A cloud database cluster is experiencing replication lag. The primary node shows high write activity, and the replicas are on different availability zones. Which of the following is the most likely cause?

A.Replication is configured as synchronous.
B.Network latency between the primary and replica zones is high.
C.The replica nodes have insufficient storage.
D.The primary node's vCPU is over-allocated.
AnswerB

Geographic distance increases latency, causing replication lag.

Why this answer

Network latency between availability zones is a common cause of replication lag in asynchronous replication setups, especially when the primary has high write activity. Option A is incorrect because synchronous replication would cause the primary to wait for acknowledgment from replicas, leading to write slowdown rather than lag on replicas. Option C is incorrect because insufficient storage on replicas would typically cause disk-full errors, not replication lag.

Option D is incorrect because vCPU over-allocation on the primary primarily affects compute performance, not the replication process which is more sensitive to network and disk I/O.

45
Multi-Selecteasy

A hybrid cloud deployment connects an on-premises data center to a public cloud. Which TWO components are typically required to establish this connectivity? (Select TWO.)

Select 2 answers
A.Load balancer in the cloud
B.Direct peering or dedicated connection (e.g., AWS Direct Connect)
C.Virtual private network (VPN) gateway
D.Public internet with HTTPS
E.Cloud-based DNS resolver
AnswersB, C

Direct connection provides a private, high-bandwidth link between on-premises and cloud.

Why this answer

A dedicated connection like AWS Direct Connect provides a private, high-bandwidth, low-latency link between an on-premises data center and a public cloud, bypassing the public internet for consistent performance and security. Option C is correct because a VPN gateway establishes an encrypted tunnel over the public internet (using protocols like IPsec) to securely connect the on-premises network to the cloud VPC, which is a standard requirement for hybrid cloud connectivity.

Exam trap

The trap here is that candidates confuse application-layer components (like load balancers or DNS) with network-layer connectivity components, or mistakenly think that public internet with HTTPS alone is sufficient for site-to-site hybrid cloud connectivity.

46
MCQmedium

A cloud operations team receives an alert that the CPU usage of a VM has exceeded 90% for the past 30 minutes. The VM is part of an auto-scaling group configured to scale out when CPU exceeds 80% for 5 minutes. However, no new instances have been launched. What is the MOST likely reason the auto-scaling failed to trigger?

A.The VM failed a health check and is being replaced.
B.The auto-scaling group is in a cooldown period after a previous scaling action.
C.The auto-scaling group has reached the minimum instance count.
D.The CPU threshold is set too high.
AnswerB

Cooldown periods prevent rapid successive scaling actions.

Why this answer

The auto-scaling group failed to trigger because it was in a cooldown period after a previous scaling action. Cooldown periods are designed to prevent rapid, successive scaling events that could destabilize the environment. During this time, the auto-scaling group ignores new alarms, even if the CPU threshold is exceeded, until the cooldown timer expires.

Exam trap

The trap here is that candidates assume a high CPU alarm always triggers a scale-out, overlooking the cooldown period which is a deliberate mechanism to throttle scaling actions and maintain stability.

How to eliminate wrong answers

Option A is wrong because a failed health check would trigger instance replacement, not prevent a scale-out; the auto-scaling group would still attempt to launch new instances if the alarm condition is met. Option C is wrong because reaching the minimum instance count does not block scale-out; it only prevents scale-in actions. Option D is wrong because the CPU threshold is set at 80%, which is below the actual 90% usage, so the alarm condition is met; the issue is not the threshold value but the cooldown period.

47
MCQmedium

A cloud architect is designing a multi-tier application on a public cloud. To minimize costs while maintaining performance for variable workloads, the architect decides to use a mix of reserved and spot instances. Which design principle is being applied?

A.Scalability
B.High availability
C.Cost optimization
D.Security
AnswerC

Mixing reserved and spot instances reduces costs while meeting performance needs, a core cost optimization strategy.

Why this answer

Using a mix of reserved and spot instances directly reduces compute costs by committing to predictable workloads with reserved instances (which offer significant discounts over on-demand) and using spot instances for fault-tolerant, flexible workloads at steep discounts (often 60-90% off on-demand). This hybrid approach is a core cost optimization strategy in public cloud design, as it balances upfront commitment with opportunistic savings without sacrificing performance for variable workloads.

Exam trap

CompTIA often tests the distinction between cost optimization and scalability, where candidates mistakenly think that using spot instances alone is a scalability strategy, but the key is that mixing reserved and spot instances is a financial optimization, not an architectural scaling mechanism.

How to eliminate wrong answers

Option A is wrong because scalability refers to the ability to automatically increase or decrease resources based on demand (e.g., using auto-scaling groups), not specifically to the financial strategy of mixing instance purchasing options. Option B is wrong because high availability focuses on ensuring application uptime through redundancy across availability zones or regions, not on minimizing costs via instance pricing models. Option D is wrong because security involves protecting data and resources via IAM policies, encryption, and network controls, not on selecting instance types or pricing models to reduce expenditure.

48
Multi-Selecteasy

A company is considering using a public cloud provider. Which TWO characteristics are typical of a public cloud deployment? (Select TWO.)

Select 2 answers
A.The customer has full control over the physical infrastructure
B.The deployment is isolated to a single organization
C.Resources are shared among multiple customers
D.The customer pays only for the resources they use
E.Resources are hosted on-premises
AnswersC, D

Public cloud is multi-tenant by nature.

Why this answer

A public cloud is characterized by multi-tenancy (resources shared among multiple customers) and pay-as-you-go pricing, where the customer pays only for the resources they use. Options C and D describe these typical characteristics. Option A is incorrect because the cloud provider manages the physical infrastructure, not the customer.

Option B describes a private cloud, which is isolated to a single organization. Option E describes on-premises deployment, not public cloud.

49
MCQhard

A cloud operations team is troubleshooting a performance issue with a web application hosted on a cloud platform. The application uses an auto-scaling group behind a load balancer. Users report slow response times during peak hours. Monitoring shows high CPU utilization on all instances. Which of the following should the team do first to improve performance?

A.Increase the instance size of the auto-scaling group.
B.Add a content delivery network (CDN) in front of the application.
C.Enable caching at the database layer.
D.Adjust the auto-scaling policy to scale out at lower CPU threshold.
AnswerD

Correct. Scaling out earlier distributes workload across more instances, reducing CPU utilization and improving response times.

Why this answer

The immediate symptom is high CPU utilization on all instances during peak hours, indicating that the current instances are being overwhelmed. Adjusting the auto-scaling policy to scale out at a lower CPU threshold (e.g., from 70% to 50%) will proactively add more instances before CPU becomes saturated, distributing the load and improving response times. This directly addresses the root cause—insufficient compute capacity—without requiring architectural changes or additional services.

Exam trap

The trap here is that candidates confuse symptom (high CPU) with cause, and choose vertical scaling (Option A) or caching (Option C) instead of recognizing that the auto-scaling policy's threshold is misconfigured, which is the first and most direct control to adjust for performance under load.

How to eliminate wrong answers

Option A is wrong because increasing the instance size (vertical scaling) is a reactive, slower approach that may not handle sudden spikes as effectively as horizontal scaling, and it can lead to higher costs without solving the underlying scaling trigger issue. Option B is wrong because a CDN caches static content (e.g., images, CSS) but does not reduce CPU utilization on the application instances, which are processing dynamic requests. Option C is wrong because enabling database caching reduces database load, not CPU load on the application instances; the high CPU is on the web/application tier, not the database tier.

50
MCQmedium

A cloud security analyst is reviewing a compliance report and sees that the organization needs to ensure encryption keys are rotated periodically. Which of the following would best satisfy this requirement?

A.Disabling key rotation to prevent key loss
B.Storing keys in the application configuration file
C.Using customer-managed keys with a defined rotation policy
D.Using provider-managed keys with automatic rotation
AnswerC

Customer-managed keys allow custom rotation schedules.

Why this answer

Customer-managed keys allow the customer to set rotation policies. Provider-managed keys are automatically rotated but the customer cannot control the schedule. Storing keys in the application configuration file violates security best practices.

Disabling rotation does not meet the requirement.

51
Multi-Selectmedium

A cloud architect is designing a disaster recovery plan for a critical application. Which TWO metrics should be defined to establish recovery objectives?

Select 2 answers
A.RPO (Recovery Point Objective)
B.MTBF (Mean Time Between Failures)
C.RTO (Recovery Time Objective)
D.SLA (Service Level Agreement)
E.MTTR (Mean Time to Repair)
AnswersA, C

RPO defines the maximum acceptable data loss.

Why this answer

RTO and RPO are the key metrics for disaster recovery: time to recover and acceptable data loss.

52
Drag & Dropmedium

Sequence the steps to configure a cloud monitoring alert for high memory usage on a virtual machine.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4

Why this order

Go to monitoring, create alarm, set threshold, configure notification, then test.

53
MCQeasy

A cloud engineer is reviewing a Terraform configuration for deploying a web server. The instance is created successfully, but the web server does not start. What is the most likely cause?

A.The subnet is in a private zone without internet access.
B.The security group does not allow inbound HTTP traffic.
C.The AMI ID is for a Windows instance, but the script uses yum.
D.The user_data script lacks execute permissions.
AnswerC

Correct. Using a Windows AMI but executing Linux-specific commands (yum) causes the user_data script to fail, preventing the web server from starting. This is a common configuration error.

Why this answer

If the AMI ID is for a Windows instance but the user_data script uses yum (a Linux package manager), the script will fail to execute, causing the web server not to start. This is a common mismatch when using Terraform with incorrect AMI types. Option B (security group) would not prevent the web server process from starting; it would only block inbound access, which does not match the symptom 'web server does not start.' Options A and D are less likely causes for the server not starting.

Exam trap

The trap here is that candidates may confuse the web server not starting with it being unreachable, and may incorrectly choose the security group option. The actual cause is an AMI mismatch, which is a common oversight when using Terraform with a user_data script designed for a different OS.

How to eliminate wrong answers

Option A is wrong because a private subnet without internet access would prevent the instance from reaching external resources, but the web server itself can still start and serve traffic within the VPC; the issue is that the web server does not start, not that it cannot be reached from the internet. Option C is wrong because if the AMI ID were for a Windows instance, the user_data script using yum would fail during provisioning, but the instance would still be created and the web server might not start due to the script failure; however, the question states the instance is created successfully, implying the script ran, so a mismatched AMI is less likely than a missing security group rule. Option D is wrong because user_data scripts in cloud-init are executed with root privileges by default and do not require explicit execute permissions; the script's content is passed as a directive, not a file, so permissions are not a factor.

54
MCQhard

A company has a cloud environment with multiple virtual networks that need to communicate with each other using private IP addresses. The company wants a centrally managed solution that simplifies routing and security. Which networking architecture should the architect implement?

A.Virtual network peering between all virtual networks
B.Dedicated connection to each virtual network
C.VPN connections between all virtual networks
D.Transit network with a VPN appliance
AnswerD

Centralized hub for routing and security.

Why this answer

A transit network with a VPN appliance provides a centrally managed hub-and-spoke architecture that simplifies routing and security for multiple virtual networks. The VPN appliance (e.g., a software VPN or cloud marketplace appliance) establishes encrypted tunnels between the transit network and each spoke network, allowing private IP communication without the need for full-mesh peering or complex route tables. This design centralizes traffic inspection, policy enforcement, and routing, meeting the requirement for simplified management.

Exam trap

The trap here is that candidates often choose virtual network peering (Option A) because it is a native cloud provider service, but they overlook that it lacks centralized management and becomes unwieldy for more than a few networks, whereas the transit network with a VPN appliance provides the required centralization and simplified routing.

How to eliminate wrong answers

Option A is wrong because VPC peering requires a full-mesh or partial-mesh configuration between all VPCs, which does not provide centralized management and becomes complex to scale as the number of VPCs increases. Option B is wrong because Direct Connect is a dedicated physical connection from on-premises to a single VPC, not a solution for inter-VPC communication; it would require additional routing and does not simplify multi-VPC connectivity. Option C is wrong because VPN connections between all VPCs would create a full-mesh of tunnels, leading to high operational overhead, lack of centralization, and potential routing loops, contradicting the need for a centrally managed solution.

55
Multi-Selectmedium

A development team is adopting Kubernetes for container orchestration. They need to ensure that a new deployment can handle rolling updates and automatically recover from pod failures. Which THREE Kubernetes concepts should be included in the deployment manifest?

Select 3 answers
A.Readiness probe
B.Service
C.Deployment
D.Liveness probe
E.StatefulSet
AnswersA, C, D

Readiness probe indicates when a pod is ready to receive traffic.

Why this answer

Deployment resource manages rolling updates. Readiness probes ensure traffic is sent only to ready pods. Liveness probes restart unhealthy pods.

56
MCQeasy

The above condition is included in an IAM policy. What does this condition restrict?

A.Access through a VPN connection.
B.Access to only requests from the IP range 192.168.1.0/24.
C.Access to only private IP addresses.
D.Access from a specific VPC.
AnswerB

The condition directly limits source IPs to that range.

Why this answer

The aws:SourceIp condition key limits the source IP addresses to the specified range.

57
MCQmedium

A company wants to deploy a new version of a web application with zero downtime. They decide to use a blue/green deployment strategy. Which action is essential to switching traffic from the blue environment to the green environment?

A.Scale down the blue environment before traffic is switched
B.Deploy a canary release that sends 10% of traffic to green first
C.Update the load balancer target group to point to the green environment
D.Modify the DNS TTL to 0 and update A records
AnswerC

Correct. Changing the load balancer routing effectively shifts traffic.

Why this answer

In a blue/green deployment, the load balancer is the traffic router. Updating the load balancer target group to point to the green environment is essential because it instantly shifts production traffic from the blue (current) to the green (new) environment without downtime. This action ensures the load balancer forwards requests to the healthy green targets, completing the cutover.

Exam trap

Exam takers often confuse the distinction between DNS-based traffic switching (which has propagation delays and is not instantaneous) and load balancer configuration updates (which provide immediate, atomic traffic shifting), leading them to incorrectly choose DNS modifications for zero-downtime blue/green deployments.

How to eliminate wrong answers

Option A is wrong because scaling down the blue environment before switching traffic would cause downtime if the switch fails or is delayed; the blue environment must remain fully operational until traffic is confirmed on green. Option B is wrong because a canary release (sending 10% of traffic to green) is a separate progressive delivery strategy, not a required step for a standard blue/green deployment, which aims for an immediate full cutover. Option D is wrong because modifying DNS TTL to 0 and updating A records is a DNS-based traffic shift that introduces propagation delays and is not the immediate, atomic switch provided by a load balancer target group update; blue/green deployments typically rely on the load balancer, not DNS changes, for zero-downtime traffic switching.

58
Multi-Selecteasy

Which TWO steps should be performed to ensure that a new cloud user has only the minimum required permissions to perform their job? (Choose two.)

Select 2 answers
A.Assign the user to a group with broad administrator access for flexibility.
B.Provide permissions based on the user's specific job functions.
C.Remove the user's account immediately after granting access.
D.Create a custom role that includes all possible permissions.
E.Review and remove unnecessary permissions periodically.
AnswersB, E

Granting only what is needed for the job is the core of least privilege.

Why this answer

The principle of least privilege involves granting only necessary permissions and periodically reviewing them. Using a broad policy is the opposite. Removing the user is not appropriate.

Creating a group is good for management but not directly for least privilege.

59
MCQhard

A cloud administrator is troubleshooting why a newly launched VM did not complete its initialization. According to the exhibit, what is the most likely cause?

A.Cloud-init is not installed on the VM
B.The package repository is not configured correctly
C.The cloud-init user data script contains a syntax error
D.The VM does not have internet access
AnswerB

The 'Unable to locate package' error typically means the repository list is outdated or missing.

Why this answer

The error 'E: Unable to locate package python3-pip' indicates that the package repository is not configured correctly or the package does not exist in the configured sources. This prevents cloud-init from installing the specified package, so the most likely cause is an incorrect repository configuration. Therefore, option B is correct.

Option A is incorrect because cloud-init is executing commands, showing it is installed. Option C is incorrect because the error is about a missing package, not a syntax error. Option D is incorrect because the command ran successfully, indicating no network issues; the problem is repository configuration.

60
Multi-Selecthard

A cloud engineer is designing an auto-scaling solution for a stateful application. The scaling policy must ensure that instances are properly drained before termination and that new instances are fully initialized before receiving traffic. Which THREE features should be used? (Choose THREE.)

Select 3 answers
A.Scheduled scaling actions
B.Elastic Load Balancer target group health checks
C.Auto-scaling group launch configurations with user data
D.Cooldown periods
E.Lifecycle hooks
AnswersB, C, E

Health checks ensure instances are healthy before receiving traffic from the load balancer.

Why this answer

Lifecycle hooks allow custom actions during scale-in (draining) and scale-out (initialization). Health checks ensure instances are healthy before receiving traffic. Cooldown periods prevent rapid scaling.

Elastic Load Balancer target group ensures traffic distribution. CloudWatch alarms trigger scaling.

61
MCQhard

A web application is deployed across multiple availability zones behind a load balancer. The administrator notices that all traffic is being routed to instances in only one availability zone, causing performance issues. The load balancer is configured to distribute traffic across all zones evenly. What is the most likely cause?

A.The firewall rules for the load balancer only allow traffic from one zone.
B.The instances in the other zones are marked as unhealthy due to failing health checks.
C.The route table for the subnets in the other zones is missing a default route.
D.The listener rules are configured to forward traffic to a single backend pool.
AnswerB

When cross-zone load balancing is enabled, the load balancer should distribute traffic across all availability zones. However, if instances in other zones fail health checks, they are marked as unhealthy and removed from the target group's rotation, causing all traffic to go to healthy instances in only one zone.

Why this answer

When the load balancer is configured to distribute traffic across all zones, it should balance traffic across all availability zones. However, if instances in other zones fail health checks, they are marked as unhealthy and removed from the rotation, causing all traffic to go to healthy instances in only one zone. Option A is incorrect because firewall rules are not zone-specific; they apply to resources regardless of zone.

Option C is incorrect because route tables affect outbound traffic from instances, not load balancer traffic distribution. Option D is incorrect because a single backend pool can contain instances from multiple zones; this does not limit traffic to one zone.

62
MCQeasy

A cloud administrator is troubleshooting a failed deployment of a new application version using a continuous integration/continuous deployment (CI/CD) pipeline. The pipeline fails at the 'test' stage. What is the first step the administrator should take?

A.Re-run the pipeline
B.Increase the timeout of the test stage
C.Roll back to the previous version
D.Check the test logs for specific errors
AnswerD

Logs reveal the exact cause, such as failed unit tests or configuration issues.

Why this answer

Checking the test logs for specific errors is the first step in troubleshooting a failed pipeline. It provides detailed information about what went wrong during the test stage. Option A is incorrect because re-running the pipeline without investigating the failure is unlikely to fix the underlying issue and wastes time.

Option B is incorrect because increasing the timeout does not address the root cause of the failure; it only delays the timeout, which may not be the problem. Option C is incorrect because rolling back should be done only after understanding the failure and deciding to revert, not as a first step.

63
Multi-Selecteasy

A company uses AWS CloudFormation to manage infrastructure. The operations team needs to be alerted when a stack update fails. Which TWO methods can be used to send notifications? (Choose two.)

Select 2 answers
A.Use AWS Trusted Advisor to monitor CloudFormation
B.Enable CloudTrail to log stack updates and send logs to CloudWatch Logs
C.Configure CloudFormation to send events to an SNS topic
D.Use AWS Config to detect stack failures
E.Create a CloudWatch Events rule that matches CloudFormation stack update failure events
AnswersC, E

SNS can notify subscribers of stack events.

Why this answer

CloudFormation can use SNS topics for stack events. CloudWatch Events (now Amazon EventBridge) can also match stack update failures and trigger notifications.

64
MCQeasy

A cloud administrator notices that a virtual machine in a public cloud is running slower than expected. The VM is part of a production web application. The administrator has verified that the VM's CPU and memory utilization are below 50%. What should the administrator check next?

A.Check the network bandwidth and I/O throttling limits.
B.Migrate the VM to a different availability zone.
C.Increase the VM's vCPU count.
D.Reboot the VM.
AnswerA

Correct. Performance issues with low CPU/memory often point to network or disk throttling.

Why this answer

When CPU and memory are well below capacity, performance degradation in a public cloud VM is often caused by resource throttling at the network or storage layer. Cloud providers enforce bandwidth caps and I/O limits per VM size, and hitting those limits can cause packet loss, queuing, and high latency even when compute resources are idle. Checking network bandwidth and I/O throttling limits is the correct next step to identify if the VM is being rate-limited.

Exam trap

CompTIA often tests the misconception that low CPU/memory always means the VM is underutilized, when in fact network or I/O throttling can cause severe performance issues without affecting compute metrics.

How to eliminate wrong answers

Option B is wrong because migrating to a different availability zone addresses physical infrastructure failures or zone-level outages, not performance throttling caused by resource caps. Option C is wrong because increasing vCPU count does not resolve network or I/O throttling and may actually increase cost without fixing the bottleneck. Option D is wrong because rebooting the VM clears transient software issues but does not change the underlying resource limits or throttling policies that are causing the slowdown.

65
MCQmedium

A DevOps team is implementing a CI/CD pipeline using Jenkins. They want to ensure that code is automatically built, tested, and deployed to a staging environment before manual approval for production. Which stage should include the deployment to staging?

A.Build
B.Deploy
C.Source
D.Verify
AnswerB

Deploy stage pushes artifacts to environments like staging.

Why this answer

In a typical CI/CD pipeline, the deploy stage follows build and test, and before production.

66
Multi-Selectmedium

Which THREE design principles are fundamental to building a highly available cloud architecture?

Select 3 answers
A.Eliminate single points of failure
B.Deploy across multiple availability zones
C.Implement health checks and auto-recovery
D.Scale vertically to increase capacity
E.Use a single, powerful database instance
AnswersA, B, C

Critical for high availability.

Why this answer

Eliminating single points of failure (A) is fundamental because if any single component (e.g., a load balancer, a storage volume, or a compute instance) fails, the entire system can become unavailable. In cloud architectures, this is achieved by deploying redundant components so that no single failure can cause a complete outage. For example, using multiple load balancers in an active-passive or active-active configuration ensures traffic can still be routed if one fails.

Exam trap

CompTIA often tests the misconception that vertical scaling (Option D) is a valid high-availability strategy, when in reality it only addresses capacity and not fault tolerance, and that a single powerful database (Option E) can be made highly available through backups alone, ignoring the need for real-time replication and automatic failover.

67
MCQmedium

A cloud architect is designing a multi-tier application. To ensure secure communication between the web tier and the application tier within the same VPC, which approach should be used?

A.Use a VPN between tiers.
B.Use internal IP addresses with network ACLs allowing all traffic from the web tier subnet.
C.Use public IP addresses with security groups.
D.Use a transit gateway with encryption.
AnswerB

Internal IPs and network ACLs securely isolate traffic within the VPC.

Why this answer

Using internal IP addresses within the same VPC avoids exposure to the internet, and network ACLs provide subnet-level stateless traffic filtering, allowing only the required traffic from the web tier subnet to the application tier. Option A is unnecessary since both tiers are in the same VPC; VPN is for connecting external networks. Option C uses public IPs, which introduces unnecessary internet exposure and security risks.

Option D is overkill as transit gateway with encryption is designed for complex network interconnections, not simple intra-VPC traffic.

68
MCQmedium

A cloud engineer is configuring a web application that must comply with PCI DSS. The application runs on virtual machines in a public cloud. Which of the following security responsibilities falls under the customer's scope according to the shared responsibility model?

A.Replacing failed physical drives in the storage array
B.Patching the guest operating system of the virtual machines
C.Configuring the physical network firewall
D.Applying hypervisor patches
AnswerB

The customer is responsible for guest OS patching.

Why this answer

In the shared responsibility model, the customer is responsible for patching the guest OS, while the cloud provider manages the physical infrastructure and hypervisor.

69
MCQeasy

A cloud administrator is setting up monitoring for a web application. The application must be highly available across multiple availability zones. Which of the following metrics should be monitored to ensure that the application meets its service level agreement (SLA) for uptime?

A.Network throughput per minute.
B.The result of the load balancer health check for each instance.
C.Percentage of disk space used on each instance.
D.Average CPU utilization across all instances.
AnswerB

Health check status indicates whether the application is responding correctly.

Why this answer

The load balancer health check result directly indicates whether each instance is reachable and responding correctly to application traffic. Monitoring these results allows the administrator to detect instance failures and verify that the application remains available across multiple availability zones, which is the core requirement for meeting an uptime SLA. Other metrics like throughput, disk space, or CPU utilization are performance indicators but do not directly confirm application availability.

Exam trap

The trap here is that candidates confuse performance metrics (CPU, disk, throughput) with availability metrics, assuming that high resource usage or low throughput directly indicates an outage, when in fact only the load balancer health check result provides a definitive binary signal of instance availability for SLA compliance.

How to eliminate wrong answers

Option A is wrong because network throughput per minute measures data transfer volume, not application availability; high throughput does not guarantee the application is serving requests correctly. Option C is wrong because percentage of disk space used is a capacity metric that can affect performance but does not directly indicate whether the application is up and responding to user requests. Option D is wrong because average CPU utilization across all instances is a performance metric that can be high even when the application is fully available, and it does not detect individual instance failures that would violate an uptime SLA.

70
MCQhard

A company is migrating on-premises workloads to a public cloud. The disaster recovery plan requires an RTO of 15 minutes and an RPO of 5 minutes. Which replication strategy should be used for a critical database?

A.Weekly full backups with daily incrementals stored in the same region
B.Continuous replication to a standby instance in another region
C.Scheduled snapshots every hour with cross-region copy
D.Daily snapshots replicated cross-region
AnswerB

Continuous replication can achieve near-zero RPO and fast failover, meeting the requirements.

Why this answer

Continuous replication with synchronous or near-synchronous updates can achieve very low RPO (minutes) and low RTO. Cross-region replication may have higher latency, and snapshot-based backup typically has higher RPO and RTO.

71
MCQeasy

Which of the following is a best practice for managing secrets in cloud applications?

A.Embed secrets in application code
B.Store secrets in environment variables
C.Use a cloud secrets manager with automatic rotation
D.Share secrets via email
AnswerC

Secrets managers provide encrypted storage and rotation capabilities.

Why this answer

Secrets should be stored in a dedicated secrets manager and rotated regularly, never hard-coded.

72
MCQeasy

A cloud administrator needs to monitor CPU utilization of a group of virtual machines and automatically add more instances when utilization exceeds 80% for 5 minutes. Which cloud service should the administrator use to define this scaling policy?

A.Configuration management service
B.Audit logging service
C.Auto scaling service
D.Systems management service
AnswerC

Auto Scaling manages scaling policies including step scaling.

Why this answer

Auto scaling groups can use scaling policies to add instances based on monitoring alarms. The scenario describes a scaling policy triggered by an alarm on CPU utilization.

73
MCQhard

A company is planning its disaster recovery strategy for a critical application. The application runs on EC2 with data in EBS volumes. The RTO is 2 hours and RPO is 15 minutes. Which approach meets these requirements most cost-effectively?

A.Hourly AMI backups to the same region
B.Pilot light with replication every 30 minutes
C.Cross-region continuous replication of EBS volumes
D.Daily snapshots to the same region
AnswerC

Continuous replication provides low RPO and cross-region failover meets RTO.

Why this answer

Continuous replication to another region achieves a low RPO (minutes) and can be failed over quickly to meet RTO.

74
MCQhard

An organization uses AWS and wants to control inbound traffic to its EC2 instances. They need a solution that automatically allows response traffic for any permitted inbound request. Which of the following should they use?

A.DDoS protection
B.Web Application Firewall
C.Security groups
D.Network ACLs
AnswerC

Security groups are stateful and automatically allow return traffic.

Why this answer

Security groups are stateful, meaning if you allow inbound traffic, the response is automatically allowed regardless of outbound rules. Network ACLs are stateless and require explicit rules for both directions.

75
MCQhard

A financial services company is subject to strict compliance requirements. They need to ensure that all cloud storage objects are written to a write-once-read-many (WORM) state for a defined retention period. Which feature should be enabled?

A.Versioning
B.Object lock
C.Replication
D.Lifecycle policies
AnswerB

Object Lock is specifically designed for WORM compliance, allowing administrators to set retention periods and legal holds to prevent object modification or deletion.

Why this answer

Object Lock is the correct feature for WORM compliance because it enforces a write-once-read-many (WORM) state on objects, preventing modification or deletion until the specified retention period expires. Lifecycle policies manage data transitions and deletions but do not provide immutability guarantees required for strict compliance.

Exam trap

CompTIA often tests the distinction between features that manage object versions (versioning) versus those that enforce legal holds or retention (Object Lock). Candidates may incorrectly choose Lifecycle policies for compliance, but only Object Lock provides true WORM immutability.

How to eliminate wrong answers

Option A is wrong because versioning preserves multiple versions of an object but does not prevent deletion or overwrite of any version, so it cannot enforce a WORM state. Option B is wrong because object lock is the actual feature that enforces WORM, but it is not listed as an option; the question asks which feature should be enabled, and lifecycle policies are used to apply object lock settings automatically. Option C is wrong because replication copies objects to another bucket or region but does not impose any write-once-read-many restrictions on the source or destination objects.

Page 1 of 14

Page 2