CompTIA CV0-004 (CompTIA Cloud+) Practice Test 19

Question 180

A payment service should reach only approved external settlement endpoints. Which security control or security concept best applies?

  1. Network security group (NSG)
  2. Network access control list (network ACL)
  3. Egress network filtering
  4. Data loss prevention (DLP)

Explanation

Correct Answer

C:

When a payment service should reach only approved external settlement endpoints, outbound firewall policies restrict which external destinations workloads can contact; the corresponding design boundary is that they do not replace detection of application compromise or data classification.

Incorrect Answers

A:

When a payment service should reach only approved external settlement endpoints, the needed mechanism is egress network filtering, not this option: security groups apply virtual firewall policies to cloud network interfaces, instances or similar scope; also, provider defaults and statefulness vary; rules alone do not create missing routes.

B:

For the situation where a payment service should reach only approved external settlement endpoints, choosing this would miss the central need for egress network filtering, because network ACLs filter network traffic at an associated network boundary or subnet scope using defined rules; note that stateful versus stateless behavior differs by provider and should be verified.

D:

Although DLP policies detect or restrict sensitive information leaving approved channels or destinations, this does not replace egress network filtering in a case where a payment service should reach only approved external settlement endpoints; moreover, accurate classification and policy scope determine effectiveness.

Question 181

A tightly coupled database and app are redesigned for region-level resilience. What deployment or migration action is indicated?

  1. Migration data seeding with delta sync
  2. Refactor migration
  3. Retain migration strategy
  4. Re-architect migration

Explanation

Correct Answer

D:

For a situation where a tightly coupled database and app are redesigned for region-level resilience, re-architecting makes broader structural changes to application components, dependencies or topology to meet new design goals, although it usually needs deeper analysis and testing than changing hosting location alone.

Incorrect Answers

A:

For the situation where a tightly coupled database and app are redesigned for region-level resilience, choosing this would miss the central need for re-architect migration, because bulk initial copies followed by incremental synchronization reduce final downtime for large data migrations; note that the last delta and consistency checkpoint must finish before authoritative cutover.

B:

The situation in which a tightly coupled database and app are redesigned for region-level resilience needs re-architect migration; in contrast, refactoring changes application code and internal design to exploit cloud-native capabilities, with the additional constraint that development effort and regression risk are usually greater than for a direct rehost.

C:

Although retaining leaves a workload in its current environment when moving it is not yet justified, this does not replace re-architect migration in a case where a tightly coupled database and app are redesigned for region-level resilience; moreover, dependencies and future review dates should be documented.

Question 182

Invoices arrive as photographs and must yield machine-readable printed words. What mechanism does this situation call for?

  1. Optical character recognition
  2. IoT gateway and edge aggregation
  3. Speech-to-text recognition
  4. Generative AI

Explanation

Correct Answer

A:

Where invoices arrive as photographs and must yield machine-readable printed words, text recognition extracts characters from scanned images or photographs; implementation must also recognize that it does not automatically translate language or understand document intent.

Incorrect Answers

B:

Although an IoT gateway bridges sensors to networks or cloud services and can aggregate, filter or translate telemetry, this does not replace optical character recognition in a case where invoices arrive as photographs and must yield machine-readable printed words; moreover, gateway placement and network protocols must satisfy device security and offline requirements.

C:

When invoices arrive as photographs and must yield machine-readable printed words, the needed mechanism is optical character recognition, not this option: speech recognition transforms spoken audio into written words; also, it differs from text-to-speech synthesis and sentiment classification.

D:

For the situation where invoices arrive as photographs and must yield machine-readable printed words, choosing this would miss the central need for optical character recognition, because generative models produce new text or other content based on prompts and learned patterns; note that outputs require review for factual accuracy, privacy and policy compliance.

Question 183

A container needs a database password without embedding it in the image. An analyst identifies Managed secrets storage and rotation. Which statement correctly characterizes this security concept?

  1. Storage ACLs and IAM policies restrict which principals can read, write or list cloud objects and files.
  2. At-rest encryption protects stored data if underlying media or storage copies are exposed without authorized keys.
  3. A secrets manager stores sensitive credentials centrally and supports controlled retrieval and rotation.
  4. API controls restrict abusive requests through authentication, authorization, input validation and suitable throttling.

Explanation

Correct Answer

C:

This applies to the situation in which a container needs a database password without embedding it in the image, by describing the distinctive operation of Managed secrets storage and rotation; the operational boundary is that secrets must not be exposed through logs, unrestricted identities or copied into source code.

Incorrect Answers

A:

That description belongs to Private storage permissions, which solves a different need; it does not describe Managed secrets storage and rotation for the case in which a container needs a database password without embedding it in the image. A limitation of that alternative, distinct from Managed secrets storage and rotation, is that encryption alone is insufficient if an anonymous principal has read permission.

B:

That description belongs to Encryption at rest, which solves a different need; it does not describe Managed secrets storage and rotation for the case in which a container needs a database password without embedding it in the image. A limitation of that alternative, distinct from Managed secrets storage and rotation, is that it does not prevent an already authorized account from reading data through the service.

D:

That description belongs to API request protection and rate limits, which solves a different need; it does not describe Managed secrets storage and rotation for the case in which a container needs a database password without embedding it in the image. A limitation of that alternative, distinct from Managed secrets storage and rotation, is that rate limiting alone cannot repair broken authorization or injection weaknesses.

Question 184

A message-processing service should increase worker count when queue depth rises. Which mechanism should the operations team use?

  1. Vertical instance scaling
  2. Safe scale-in and connection draining
  3. Predictive scaling
  4. Horizontal autoscaling
  5. Manual scaling

Explanation

Correct Answer

D:

For a situation where a message-processing service should increase worker count when queue depth rises, horizontal scaling adds or removes instances as demand changes and can distribute load across replicas, although applications need suitable session handling and shared dependencies.

Incorrect Answers

A:

When a message-processing service should increase worker count when queue depth rises, the needed mechanism is horizontal autoscaling, not this option: vertical scaling increases CPU or memory of an existing resource rather than adding replicas; also, it may require restart and has instance-size ceilings.

B:

For the situation where a message-processing service should increase worker count when queue depth rises, choosing this would miss the central need for horizontal autoscaling, because scale-in should stop new work and allow existing requests or jobs to finish before removing capacity; note that abrupt termination can drop sessions or lose in-flight tasks.

C:

The situation in which a message-processing service should increase worker count when queue depth rises needs horizontal autoscaling; in contrast, predictive scaling uses learned or forecast demand trends to provision capacity ahead of anticipated load, with the additional constraint that forecast error requires safe minimum capacity and monitoring.

E:

When a message-processing service should increase worker count when queue depth rises, the needed mechanism is horizontal autoscaling, not this option: manual scaling involves an operator explicitly changing capacity based on an approved judgment or test; also, it does not react automatically to unexpected traffic unless paired with other controls.

Question 185

Stateless API replicas write transient caches that need not survive rescheduling. What mechanism does this situation call for?

  1. Container orchestration
  2. Standalone container runtime
  3. Persistent container volume
  4. Container port mapping
  5. Ephemeral container filesystem

Explanation

Correct Answer

E:

Where stateless API replicas write transient caches that need not survive rescheduling, an ephemeral container layer or temporary volume suits scratch data intentionally discarded with the workload; implementation must also recognize that restart or replacement can erase this data and should not hold irreplaceable state.

Incorrect Answers

A:

For the situation where stateless API replicas write transient caches that need not survive rescheduling, choosing this would miss the central need for ephemeral container filesystem, because an orchestrator schedules replicas, reconciles desired state and supports service discovery or rolling updates; note that it requires control-plane and application-health configuration, not just building an image.

B:

The situation in which stateless API replicas write transient caches that need not survive rescheduling needs ephemeral container filesystem; in contrast, a standalone runtime launches individual container processes without a multi-node scheduler, with the additional constraint that it lacks automatic cluster placement and desired replica reconciliation.

C:

Although persistent volumes keep application data independent of the life cycle of an individual container, this does not replace ephemeral container filesystem in a case where stateless API replicas write transient caches that need not survive rescheduling; moreover, applications still need compatible access modes and backup protection.

D:

When stateless API replicas write transient caches that need not survive rescheduling, the needed mechanism is ephemeral container filesystem, not this option: port mapping publishes or forwards traffic from a host or service port to a container listening port; also, it does not by itself establish authorization, healthy processes or network routes.

Question 186

New finance employees must inherit approved storage access when added to a directory group. Which security practice is most directly relevant?

  1. Directory-based identity authentication
  2. Role-based access control (RBAC)
  3. Group-based access management
  4. Secure Shell (SSH)
  5. Bastion host for administration

Explanation

Correct Answer

C:

When new finance employees must inherit approved storage access when added to a directory group, group-based grants assign permissions to identity groups so membership drives access for many users; the corresponding design boundary is that group membership and role scope must both be governed.

Incorrect Answers

A:

The situation in which new finance employees must inherit approved storage access when added to a directory group needs group-based access management; in contrast, a directory service centrally validates identities and can supply group or account attributes, with the additional constraint that directory login alone does not grant every cloud resource permission.

B:

Although RBAC grants permissions through named roles assigned to principals at defined resource scopes, this does not replace group-based access management in a case where new finance employees must inherit approved storage access when added to a directory group; moreover, a role assignment must match the required actions and not be broader than necessary.

D:

For the situation where new finance employees must inherit approved storage access when added to a directory group, choosing this would miss the central need for group-based access management, because SSH establishes encrypted remote shell sessions and supports key-based authentication for Unix-like systems; note that network reachability, host-key verification and endpoint permissions remain important.

E:

The situation in which new finance employees must inherit approved storage access when added to a directory group needs group-based access management; in contrast, a hardened bastion provides a controlled entry point for management access to private workloads, with the additional constraint that authentication and target-host authorization remain necessary behind the bastion.

Question 187

A Java workload crashes despite low CPU usage because available RAM is exhausted. Which cloud deployment consideration does this describe?

  1. Provisioning compliant encryption
  2. Provisioning region eligibility
  3. Provisioning for network throughput
  4. Compute memory sizing

Explanation

Correct Answer

D:

For a situation where a Java workload crashes despite low CPU usage because available RAM is exhausted, compute provisioning must satisfy peak memory working sets and runtime headroom, although CPU count alone cannot resolve out-of-memory termination.

Incorrect Answers

A:

Although encryption configuration and key control need to meet the workload's data-handling policy, this does not replace compute memory sizing in a case where a Java workload crashes despite low CPU usage because available RAM is exhausted; moreover, encryption alone does not establish correct authorization or retention settings.

B:

When a Java workload crashes despite low CPU usage because available RAM is exhausted, the needed mechanism is compute memory sizing, not this option: region selection must satisfy residency, supported-service and disaster-design constraints; also, not all instance families or managed features are offered in every region.

C:

For the situation where a Java workload crashes despite low CPU usage because available RAM is exhausted, choosing this would miss the central need for compute memory sizing, because network sizing must provide sufficient sustained transfer capacity for the intended application flow; note that fast storage cannot compensate for a saturated network interface.

Question 188

An application release needs managed runtime patching while developers retain responsibility for their code. An architect proposes Platform as a service (PaaS). Which statement accurately describes its role?

  1. Customers typically remain accountable for data classification, identities and access configuration even when using managed services.
  2. The customer administers guest operating systems and deployed applications while the provider supplies virtualized compute and physical facilities.
  3. A managed application runtime lets developers deploy code without maintaining the underlying guest operating system or runtime infrastructure.
  4. An event-invoked function runs short units of code without a permanently managed server process.

Explanation

Correct Answer

C:

This applies to the situation in which an application release needs managed runtime patching while developers retain responsibility for their code, by describing the distinctive operation of Platform as a service (PaaS); the operational boundary is that application code, data and application identities still require customer governance.

Incorrect Answers

A:

That description belongs to Shared responsibility for tenant data and identities, which solves a different need; it does not describe Platform as a service (PaaS) for the case in which an application release needs managed runtime patching while developers retain responsibility for their code. A limitation of that alternative, distinct from Platform as a service (PaaS), is that provider security of the cloud does not automatically make tenant configurations secure.

B:

That description belongs to Infrastructure as a service (IaaS), which solves a different need; it does not describe Platform as a service (PaaS) for the case in which an application release needs managed runtime patching while developers retain responsibility for their code. A limitation of that alternative, distinct from Platform as a service (PaaS), is that guest patching and workload access controls remain the customer's duties.

D:

That description belongs to Function as a service (FaaS), which solves a different need; it does not describe Platform as a service (PaaS) for the case in which an application release needs managed runtime patching while developers retain responsibility for their code. A limitation of that alternative, distinct from Platform as a service (PaaS), is that execution limits, cold starts and state handling can affect suitability for long-running tasks.

Question 189

Compliance staff need a content-aware control to reduce unauthorized data exfiltration. An analyst identifies Data loss prevention (DLP). Which statement correctly characterizes this security concept?

  1. Explicit deny or restrictive IAM policies can block prohibited resource actions despite other grants when the platform's policy model supports them.
  2. Network ACLs filter network traffic at an associated network boundary or subnet scope using defined rules.
  3. Outbound firewall policies restrict which external destinations workloads can contact.
  4. DLP policies detect or restrict sensitive information leaving approved channels or destinations.

Explanation

Correct Answer

D:

This applies to the situation in which compliance staff need a content-aware control to reduce unauthorized data exfiltration, by describing the distinctive operation of Data loss prevention (DLP); the operational boundary is that accurate classification and policy scope determine effectiveness.

Incorrect Answers

A:

That description belongs to IAM deny policy, which solves a different need; it does not describe Data loss prevention (DLP) for the case in which compliance staff need a content-aware control to reduce unauthorized data exfiltration. A limitation of that alternative, distinct from Data loss prevention (DLP), is that IAM controls resource API rights, not transport-level packet routing.

B:

That description belongs to Network access control list (network ACL), which solves a different need; it does not describe Data loss prevention (DLP) for the case in which compliance staff need a content-aware control to reduce unauthorized data exfiltration. A limitation of that alternative, distinct from Data loss prevention (DLP), is that stateful versus stateless behavior differs by provider and should be verified.

C:

That description belongs to Egress network filtering, which solves a different need; it does not describe Data loss prevention (DLP) for the case in which compliance staff need a content-aware control to reduce unauthorized data exfiltration. A limitation of that alternative, distinct from Data loss prevention (DLP), is that they do not replace detection of application compromise or data classification.

Question 190

A service migrates to new VMs but customer uploads must remain available. The operations team considers Persistent data life-cycle management. Which explanation describes its function?

  1. Ownership and expiration metadata help route maintenance and identify resources to review or retire.
  2. Decommissioning must revoke access, remove dependencies, handle data securely and stop billing.
  3. Persistent data requires explicit retention, migration and protection when compute is replaced or decommissioned.
  4. Ephemeral compute instances should be recreated from a known-good image and externalized state.

Explanation

Correct Answer

C:

This applies to the situation in which a service migrates to new VMs but customer uploads must remain available, by describing the distinctive operation of Persistent data life-cycle management; the operational boundary is that deleting a compute resource must not inadvertently erase required records.

Incorrect Answers

A:

That description belongs to Asset ownership and life-cycle tagging, which solves a different need; it does not describe Persistent data life-cycle management for the case in which a service migrates to new VMs but customer uploads must remain available. A limitation of that alternative, distinct from Persistent data life-cycle management, is that tags are governance aids and require processes to act on them.

B:

That description belongs to Secure decommissioning, which solves a different need; it does not describe Persistent data life-cycle management for the case in which a service migrates to new VMs but customer uploads must remain available. A limitation of that alternative, distinct from Persistent data life-cycle management, is that deletion without retention and ownership review can destroy required records.

D:

That description belongs to Ephemeral workload replacement, which solves a different need; it does not describe Persistent data life-cycle management for the case in which a service migrates to new VMs but customer uploads must remain available. A limitation of that alternative, distinct from Persistent data life-cycle management, is that changes made only inside an instance may disappear on replacement.

CompTIA Cloud+ (CV0-004) Practice Tests