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

Question 220

An API has long inactive periods and brief high traffic bursts. An architect proposes Serverless workload execution. Which statement accurately describes its role?

  1. Latency is the delay experienced by an operation or network request, often sensitive to distance and hop count.
  2. Managed serverless compute abstracts persistent server management for event-oriented or variable workloads.
  3. Input/output operations per second measures how many storage requests a device or volume serves over time.
  4. Horizontal scaling adds more workload instances to divide traffic or work.

Explanation

Correct Answer

B:

This applies to the situation in which an API has long inactive periods and brief high traffic bursts, by describing the distinctive operation of Serverless workload execution; the operational boundary is that concurrency, execution duration and platform limits must fit the application.

Incorrect Answers

A:

That description belongs to Network latency optimization, which solves a different need; it does not describe Serverless workload execution for the case in which an API has long inactive periods and brief high traffic bursts. A limitation of that alternative, distinct from Serverless workload execution, is that more bandwidth does not automatically reduce round-trip time.

C:

That description belongs to Storage IOPS optimization, which solves a different need; it does not describe Serverless workload execution for the case in which an API has long inactive periods and brief high traffic bursts. A limitation of that alternative, distinct from Serverless workload execution, is that it is different from bytes per second and must match request size and latency.

D:

That description belongs to Horizontal compute scaling, which solves a different need; it does not describe Serverless workload execution for the case in which an API has long inactive periods and brief high traffic bursts. A limitation of that alternative, distinct from Serverless workload execution, is that application state and shared dependencies must support multiple active replicas.

Question 221

A legal request overrides the standard seven-day deletion policy for specific records. Which security practice is most directly relevant?

  1. Data locality and residency
  2. Data classification policy
  3. Litigation hold
  4. Data sovereignty

Explanation

Correct Answer

C:

Where a legal request overrides the standard seven-day deletion policy for specific records, a litigation hold preserves relevant information despite ordinary deletion schedules during legal proceedings; implementation must also recognize that it applies to identified material and does not substitute for all routine backup obligations.

Incorrect Answers

A:

For the situation where a legal request overrides the standard seven-day deletion policy for specific records, choosing this would miss the central need for litigation hold, because data locality specifies where information physically resides or is processed under applicable policy; note that backups, caches and support operations may use separate locations.

B:

The situation in which a legal request overrides the standard seven-day deletion policy for specific records needs litigation hold; in contrast, classification labels data by sensitivity and business value so appropriate safeguards can be assigned, with the additional constraint that classification is useful only when enforced through access, handling and retention controls.

D:

When a legal request overrides the standard seven-day deletion policy for specific records, the needed mechanism is litigation hold, not this option: data sovereignty addresses which legal jurisdiction's rules govern data based on residency and processing arrangements; also, a nearby region does not automatically satisfy a specific national legal obligation.

Question 222

A migrated service must be abandoned if real transactions fail within the first hour. Which implementation approach is appropriate?

  1. Migration data seeding with delta sync
  2. Migration cutover and rollback plan
  3. Application dependency mapping
  4. Retire migration strategy

Explanation

Correct Answer

B:

When a migrated service must be abandoned if real transactions fail within the first hour, a cutover plan defines measurable acceptance criteria, traffic switching and a tested route back to the old system; the corresponding design boundary is that database divergence can make simplistic reversals unsafe after writes switch.

Incorrect Answers

A:

The situation in which a migrated service must be abandoned if real transactions fail within the first hour needs migration cutover and rollback plan; in contrast, bulk initial copies followed by incremental synchronization reduce final downtime for large data migrations, with the additional constraint that the last delta and consistency checkpoint must finish before authoritative cutover.

C:

When a migrated service must be abandoned if real transactions fail within the first hour, the needed mechanism is migration cutover and rollback plan, not this option: dependency discovery identifies application calls, identity, data and network flows before migration sequencing; also, moving only one component without its dependencies can produce hidden failures.

D:

For the situation where a migrated service must be abandoned if real transactions fail within the first hour, choosing this would miss the central need for migration cutover and rollback plan, because retiring decommissions obsolete applications rather than relocating them; note that data retention, dependencies and ownership sign-off must precede deletion.

Question 223

An application makes hundreds of sequential remote database calls across continents. The team suspects Excessive network latency. Which explanation supports that diagnosis?

  1. NTP keeps system clocks aligned to reduce timestamp, certificate and token-validation problems.
  2. Private instances commonly require a configured NAT path to initiate Internet access without public inbound addresses.
  3. High round-trip delay can degrade chatty applications even when available bandwidth is ample.
  4. Overlapping IP address ranges create ambiguous routing or peering conflicts between connected networks.

Explanation

Correct Answer

C:

This explains the situation in which an application makes hundreds of sequential remote database calls across continents, by describing the distinctive operation of Excessive network latency; the operational boundary is that adding link bandwidth alone may not reduce propagation or service processing delay.

Incorrect Answers

A:

That description belongs to NTP clock synchronization, which solves a different need; it does not describe Excessive network latency for the case in which an application makes hundreds of sequential remote database calls across continents. A limitation of that alternative, distinct from Excessive network latency, is that time sync does not repair missing DNS or blocked application ports.

B:

That description belongs to Missing NAT egress gateway, which solves a different need; it does not describe Excessive network latency for the case in which an application makes hundreds of sequential remote database calls across continents. A limitation of that alternative, distinct from Excessive network latency, is that NAT does not grant IAM permissions or fix DNS independently.

D:

That description belongs to Overlapping CIDR networks, which solves a different need; it does not describe Excessive network latency for the case in which an application makes hundreds of sequential remote database calls across continents. A limitation of that alternative, distinct from Excessive network latency, is that an allow-all firewall rule cannot distinguish duplicate destination address spaces.

Question 224

A legacy app works in a lab but relies on an undocumented local license server. Which deployment practice best meets this requirement?

  1. Network transfer feasibility
  2. Application dependency mapping
  3. Data residency evaluation
  4. Rehost migration
  5. Migration platform compatibility testing

Explanation

Correct Answer

B:

Where a legacy app works in a lab but relies on an undocumented local license server, dependency discovery identifies application calls, identity, data and network flows before migration sequencing; implementation must also recognize that moving only one component without its dependencies can produce hidden failures.

Incorrect Answers

A:

When a legacy app works in a lab but relies on an undocumented local license server, the needed mechanism is application dependency mapping, not this option: migration planning must account for bandwidth, throughput, latency and the available transfer window; also, nominal link speed does not guarantee effective end-to-end transfer throughput.

C:

The situation in which a legacy app works in a lab but relies on an undocumented local license server needs application dependency mapping; in contrast, data location and jurisdiction requirements must be mapped to permissible regions and service processing paths, with the additional constraint that choosing a region alone may not control all support, replication or transfer flows.

D:

Although rehosting moves an existing workload with minimal application architecture changes, often described as lift and shift, this does not replace application dependency mapping in a case where a legacy app works in a lab but relies on an undocumented local license server; moreover, it may preserve legacy inefficiencies and operational responsibilities.

E:

When a legacy app works in a lab but relies on an undocumented local license server, the needed mechanism is application dependency mapping, not this option: compatibility checks confirm target runtimes, CPU architecture, drivers and external interfaces support the source workload; also, matching a VM's nominal size does not guarantee driver or application support.

Question 225

Lost storage media should not reveal raw database records. What security measure or risk does the scenario illustrate?

  1. Least-privilege permissions
  2. CIS security benchmarks
  3. Private storage permissions
  4. Encryption in transit with TLS
  5. Encryption at rest

Explanation

Correct Answer

E:

When lost storage media should not reveal raw database records, at-rest encryption protects stored data if underlying media or storage copies are exposed without authorized keys; the corresponding design boundary is that it does not prevent an already authorized account from reading data through the service.

Incorrect Answers

A:

For the situation where lost storage media should not reveal raw database records, choosing this would miss the central need for encryption at rest, because least privilege limits principals to only necessary actions, resources and durations; note that broad administrator roles increase blast radius even when access is authenticated.

B:

The situation in which lost storage media should not reveal raw database records needs encryption at rest; in contrast, CIS benchmarks provide recommended configuration hardening baselines for many platforms, with the additional constraint that recommendations require applicability review and may need controlled exceptions.

C:

Although storage ACLs and IAM policies restrict which principals can read, write or list cloud objects and files, this does not replace encryption at rest in a case where lost storage media should not reveal raw database records; moreover, encryption alone is insufficient if an anonymous principal has read permission.

D:

When lost storage media should not reveal raw database records, the needed mechanism is encryption at rest, not this option: TLS protects network data confidentiality and integrity between correctly authenticated endpoints; also, it does not encrypt plaintext already stored on disks or fix excessive IAM rights.

Question 226

A build log accidentally prints an API secret passed as a command-line argument. Which deployment practice best meets this requirement?

  1. Secrets outside source control
  2. Correct scripting data type
  3. Drift detection
  4. Version-controlled infrastructure definitions

Explanation

Correct Answer

A:

For a situation where a build log accidentally prints an API secret passed as a command-line argument, credentials should be injected from protected secret stores or short-lived identity mechanisms rather than embedded in code, although marking an input sensitive does not guarantee secrets are absent from all state or logs.

Incorrect Answers

B:

Although selecting numbers, strings, booleans or collections correctly prevents malformed parameters and comparisons, this does not replace secrets outside source control in a case where a build log accidentally prints an API secret passed as a command-line argument; moreover, implicit coercion can lead to unintended conditions in provisioning logic.

C:

When a build log accidentally prints an API secret passed as a command-line argument, the needed mechanism is secrets outside source control, not this option: drift detection compares actual resources with approved declared configuration to find out-of-band changes; also, detection alone may require a reviewed reconciliation plan rather than blind replacement.

D:

For the situation where a build log accidentally prints an API secret passed as a command-line argument, choosing this would miss the central need for secrets outside source control, because version control records code history and supports reviewed changes and rollback of configuration sources; note that reverting a commit is not necessarily sufficient to undo every destructive infrastructure change.

Question 227

An approved feature branch must become part of the main development line. Which integration or operations tool fits this need?

  1. Git merge
  2. Git commit
  3. Pull request review
  4. Git push

Explanation

Correct Answer

A:

Where an approved feature branch must become part of the main development line, merging integrates the histories and content changes from separate branches; implementation must also recognize that conflicts may need resolution and tests after combining changes.

Incorrect Answers

B:

When an approved feature branch must become part of the main development line, the needed mechanism is git merge, not this option: a commit records a local repository snapshot and message in the version history; also, a commit does not automatically publish changes to a remote repository.

C:

For the situation where an approved feature branch must become part of the main development line, choosing this would miss the central need for git merge, because a pull request proposes integrating changes and creates an auditable discussion and review workflow; note that opening a pull request does not automatically merge or test every change.

D:

The situation in which an approved feature branch must become part of the main development line needs git merge; in contrast, pushing transfers local commits and updated references to a remote Git repository, with the additional constraint that a push does not itself mean a change has been reviewed or merged into the default branch.

Question 228

An infrequent queue message needs a stateless handler rather than a continuously provisioned instance. What mechanism does this situation call for?

  1. Shared responsibility for tenant data and identities
  2. Function as a service (FaaS)
  3. Platform as a service (PaaS)
  4. Infrastructure as a service (IaaS)
  5. Software as a service (SaaS)

Explanation

Correct Answer

B:

When an infrequent queue message needs a stateless handler rather than a continuously provisioned instance, an event-invoked function runs short units of code without a permanently managed server process; the corresponding design boundary is that execution limits, cold starts and state handling can affect suitability for long-running tasks.

Incorrect Answers

A:

When an infrequent queue message needs a stateless handler rather than a continuously provisioned instance, the needed mechanism is function as a service (faas), not this option: customers typically remain accountable for data classification, identities and access configuration even when using managed services; also, provider security of the cloud does not automatically make tenant configurations secure.

C:

The situation in which an infrequent queue message needs a stateless handler rather than a continuously provisioned instance needs function as a service (faas); in contrast, a managed application runtime lets developers deploy code without maintaining the underlying guest operating system or runtime infrastructure, with the additional constraint that application code, data and application identities still require customer governance.

D:

Although the customer administers guest operating systems and deployed applications while the provider supplies virtualized compute and physical facilities, this does not replace function as a service (faas) in a case where an infrequent queue message needs a stateless handler rather than a continuously provisioned instance; moreover, guest patching and workload access controls remain the customer's duties.

E:

When an infrequent queue message needs a stateless handler rather than a continuously provisioned instance, the needed mechanism is function as a service (faas), not this option: the provider delivers a complete application that subscribers configure and use over a network; also, customers still govern users, permissions, settings and their content in the hosted application.

Question 229

A service repeatedly adds and removes replicas every two minutes during noisy traffic. Which mechanism should the operations team use?

  1. Autoscaling cooldown and stabilization
  2. Autoscaling minimum and maximum bounds
  3. Metric-triggered scaling
  4. Safe scale-in and connection draining

Explanation

Correct Answer

A:

For a situation where a service repeatedly adds and removes replicas every two minutes during noisy traffic, cooldown or stabilization intervals prevent rapid scale reversals caused by short-lived metric changes, although overly long cooldowns can delay response to genuine changes.

Incorrect Answers

B:

The situation in which a service repeatedly adds and removes replicas every two minutes during noisy traffic needs autoscaling cooldown and stabilization; in contrast, scale bounds set resource floors and ceilings for availability, quotas or cost controls, with the additional constraint that a maximum too low can cause capacity pressure during extreme demand.

C:

Although a metric-triggered rule adjusts capacity when measurements cross chosen thresholds and evaluation windows, this does not replace autoscaling cooldown and stabilization in a case where a service repeatedly adds and removes replicas every two minutes during noisy traffic; moreover, poor thresholds and short windows may create oscillation.

D:

When a service repeatedly adds and removes replicas every two minutes during noisy traffic, the needed mechanism is autoscaling cooldown and stabilization, not this option: scale-in should stop new work and allow existing requests or jobs to finish before removing capacity; also, abrupt termination can drop sessions or lose in-flight tasks.

Question 230

Architects must estimate effort required to exit a service with nonportable APIs. Which deployment practice best meets this requirement?

  1. Application dependency mapping
  2. Cloud-to-cloud migration
  3. Refactor migration
  4. Cloud repatriation
  5. Vendor lock-in assessment

Explanation

Correct Answer

E:

Where architects must estimate effort required to exit a service with nonportable APIs, lock-in analysis examines dependencies on proprietary services, APIs or data formats that impede future moves; implementation must also recognize that a vendor-neutral interface may mitigate risk but cannot eliminate all conversion cost.

Incorrect Answers

A:

The situation in which architects must estimate effort required to exit a service with nonportable APIs needs vendor lock-in assessment; in contrast, dependency discovery identifies application calls, identity, data and network flows before migration sequencing, with the additional constraint that moving only one component without its dependencies can produce hidden failures.

B:

Although cloud-to-cloud migration transfers workloads or data between distinct cloud provider environments, this does not replace vendor lock-in assessment in a case where architects must estimate effort required to exit a service with nonportable APIs; moreover, APIs, identity, network and data service differences can complicate portability.

C:

When architects must estimate effort required to exit a service with nonportable APIs, the needed mechanism is vendor lock-in assessment, not this option: refactoring changes application code and internal design to exploit cloud-native capabilities; also, development effort and regression risk are usually greater than for a direct rehost.

D:

For the situation where architects must estimate effort required to exit a service with nonportable APIs, choosing this would miss the central need for vendor lock-in assessment, because repatriation moves workload capacity from public cloud back to private or on-premises infrastructure; note that the destination must support the performance, skills and capital requirements.

CompTIA Cloud+ (CV0-004) Practice Tests