McAfee Secured

Exam Code: 220-1202

Exam Name: CompTIA A+ Certification Exam: Core 2

Certification Provider: CompTIA

Corresponding Certification: CompTIA A+

100% CompTIA 220-1202 Guaranteed Success With Testking Training Materials

Get Real 220-1202 Exam Questions & Expert Verified Answers as Experienced on the Real Exam!

417 Questions & Answers with Testing Engine

"CompTIA A+ Certification Exam: Core 2 Exam", also known as 220-1202 exam, is a CompTIA certification exam.

Pass your tests with the always up-to-date 220-1202 Exam Engine. Your 220-1202 training materials keep you at the head of the pack!

Satisfaction Guaranteed

Money Back Guarantee

Testking provides hassle-free money back guarantee with our products. That is because we have 100% trust in the abilities of our professional and experience product team, and our record is a proof of that.

99.6% PASS RATE
Was: $137.49
Now: $124.99

CompTIA 220-1202 Practice Test 78

Question 770

A script stored in a shared repository includes a plain-text administrator password needed for nightly inventory. What should the technician do next to address this specific issue?

  1. Base64-encode the password inside the repository and continue to distribute the decryption command alongside it.
  2. Restrict repository read access but retain the leaked password indefinitely without rotating it.
  3. Replace the password with a shared administrator SSH key committed to the same repository.
  4. Use managed identities or an approved secrets vault and restrict script execution rights.

Explanation

Correct Answer

D:

Anyone who can read the source may recover the credential, regardless of whether the script is signed. Credential disclosure can permit privileged access unrelated to the inventory job.

Incorrect Answers

A:

Encoding is reversible and does not protect a shared plaintext-equivalent secret.

B:

Exposure has already occurred; access restrictions do not invalidate the copied credential.

C:

A reusable high-privilege private key in shared source control creates an equivalent secret-exposure problem.

Question 771

A file cleanup script uses wildcard patterns and is proposed for immediate production execution on a shared folder. Which response directly addresses the documented problem?

  1. Execute the wildcard cleanup once as administrator and use the success message to confirm it targeted the right files.
  2. Run an approved dry-run or safe test dataset, log targets and add explicit path guards.
  3. Change the wildcard from a single extension to *.* so that no generated files are missed.
  4. Suppress confirmation prompts and logs to reduce the time required for the first production run.

Explanation

Correct Answer

B:

A mistyped path or wildcard could match important user files beyond the intended temporary area. A bulk deletion error may destroy production documents before anyone notices.

Incorrect Answers

A:

A successful command can still delete unintended data; target scope must be previewed before production.

C:

Broader matching increases the risk of deleting unrelated files in the shared directory.

D:

Removing safeguards prevents review of destructive matches and makes recovery harder.

Question 772

A support script passes a user-entered filename directly into a command line without separating arguments. How should the support team proceed?

  1. Concatenate the entered filename directly into a shell command after removing only spaces.
  2. Put the entire untrusted value inside a longer command string and execute that string with a shell interpreter.
  3. Validate inputs and use safe argument APIs or escaping supported by the scripting language.
  4. Accept any input ending in .txt and ignore path traversal or embedded command separators.

Explanation

Correct Answer

C:

Unsanitized input may alter command structure or target unintended locations. Malicious or accidental input can cause command injection or destructive file operations.

Incorrect Answers

A:

Metacharacters, quoting and separator syntax can still change command behavior after spaces are removed.

B:

A shell still parses the interpolated value as syntax rather than treating it solely as a filename argument.

D:

A suffix check does not neutralize unsafe path components or command injection.

Question 773

A nightly software inventory script stops halfway but the dashboard reports success because it always returns exit code zero. How should this script or automation be handled safely?

  1. Leave the unconditional success exit code in place and add a warning only to the operators local terminal.
  2. Restart the entire inventory on every machine after the first error without recording which host or step failed.
  3. Handle errors explicitly, log context and return a failure status when a required step fails.
  4. Modify the dashboard to interpret exit code zero as failure for every scheduled job.

Explanation

Correct Answer

C:

Unreported exceptions and ignored exit codes hide failed automation from monitoring. Incomplete inventory data may be treated as complete and lead to incorrect patch decisions.

Incorrect Answers

A:

A scheduler cannot reliably detect a failed run from an interactive warning while the process reports zero.

B:

Restarting without scoped diagnostics repeats work and leaves the dashboard outcome untrustworthy.

D:

Reversing a standard success signal globally breaks healthy jobs rather than fixing this scripts error propagation.

Question 774

A read-only report script runs as a full domain administrator solely because that credential is available. How should this script or automation be handled safely?

  1. Keep the domain-admin token but store it in a private folder so the script output remains read-only.
  2. Assign a narrowly scoped identity and restrict files, network access and execution rights.
  3. Share the same domain administrator credential with all operators who need to run the report.
  4. Disable logging of the administrator sessions while keeping the account broadly privileged.

Explanation

Correct Answer

B:

The script's task does not require broad domain privileges, increasing the impact of compromise. A compromised script could perform directory-wide administrative actions instead of just reporting.

Incorrect Answers

A:

A script that only reads reports does not need privileged domain-wide authority, regardless of where the token is stored.

C:

Shared privileged credentials expand exposure and eliminate useful individual accountability.

D:

Removing the audit trail compounds the excessive-rights problem.

Question 775

A helpdesk script writes all environment variables into publicly accessible logs to help diagnose a failed API call. How should this script or automation be handled safely?

  1. Keep dumping all environment variables but rotate the public log URL each night.
  2. Log only nonsecret diagnostic fields, redact sensitive values and use approved secret storage.
  3. Hash environment-variable values and include the hashes beside every API request in an open log.
  4. Temporarily disable API authentication so there are no credentials to print during debugging.

Explanation

Correct Answer

B:

Environment variables may contain tokens and other sensitive configuration values. Exposed logs can leak API keys that grant unintended access to business systems.

Incorrect Answers

A:

A changing link does not remove secrets from log contents or guarantee the logs remain private.

C:

Published secret-derived values can still reveal sensitive relationships and are not needed for diagnosing the HTTP failure.

D:

Removing authentication weakens security rather than implementing safe diagnostic redaction.

Question 776

A scheduled Bash script fails across standard Windows workstations where the Bash runtime is not installed or approved. How should this script or automation be handled safely?

  1. Rename the .sh file as .ps1 without adapting shell syntax or verifying required modules.
  2. Force-install an unapproved Bash subsystem on every endpoint to support one maintenance task.
  3. Run the Bash script from Command Prompt and assume cmd.exe interprets Bash pipelines and shell constructs.
  4. Select a supported PowerShell implementation or approved runtime and test endpoint compatibility.

Explanation

Correct Answer

D:

Script syntax must match an available supported interpreter on the target operating systems. A script that depends on missing tooling will fail fleet-wide despite being correct on the author's laptop.

Incorrect Answers

A:

Changing an extension does not translate Bash commands into PowerShell or make the runtime compatible.

B:

A mass unauthorized runtime deployment violates endpoint standards and adds unnecessary operational dependencies.

C:

Windows Command Prompt does not implement the Bash language required by the script.

Question 777

A technician needs RDP access to a sensitive server VLAN that intentionally has no direct route from employee laptops. What should the technician do next to address this specific issue?

  1. Create a direct route from every employee VLAN to the sensitive server subnet for convenience.
  2. Use an approved bastion or jump system with MFA, logging and scoped permissions.
  3. Connect to the protected server through an open RDP port-forward on a public router.
  4. Borrow an existing administrator laptop on the sensitive VLAN and use its unattended signed-in session.

Explanation

Correct Answer

B:

A controlled jump host can restrict management access to authorized administrators without exposing the server to public networks. Directly opening RDP to all office devices creates a broad attack path into a sensitive segment.

Incorrect Answers

A:

This removes the intended network boundary and exposes the server to more devices.

C:

A public port-forward circumvents the approved gateway and monitoring controls.

D:

An unmanaged shared session defeats identity attribution, MFA and scoped authorization.

Question 778

A Linux administrator connects to a newly rebuilt server and receives a host-key-changed warning. Which response directly addresses the documented problem?

  1. Validate the expected fingerprint through a trusted out-of-band source before accepting it.
  2. Disable SSH host-key checking permanently because servers are commonly rebuilt.
  3. Accept the new fingerprint from the warning dialog without checking whether the rebuild was authorized.
  4. Delete the entire known_hosts file and reconnect without recording the old or expected identity.

Explanation

Correct Answer

A:

A changed host key can be legitimate after reinstallation but may also indicate interception or a wrong destination. Blindly trusting a changed key can expose commands and credentials to a man-in-the-middle attacker.

Incorrect Answers

B:

Disabling verification makes later man-in-the-middle attacks difficult to detect.

C:

The warning may signal an intercepted or unexpected endpoint rather than a legitimate rebuild.

D:

Removing every trusted host key discards useful evidence and does not independently authenticate this server.

Question 779

A support script logs into Linux servers using a shared password embedded in a text file. How should the support team proceed?

  1. Keep the shared password but encrypt the plaintext file using a key stored next to the script.
  2. Use a single root private key copied to every support workstation for convenience.
  3. Turn off SSH password authentication only after granting unrestricted anonymous logins to the service account.
  4. Use approved individual SSH keys or certificates with secure storage and least-privilege accounts.

Explanation

Correct Answer

D:

A reusable shared password is difficult to revoke per technician and is exposed by the script file. Exposure of the shared password can permit unauthorized login to every managed server.

Incorrect Answers

A:

Co-located decryption material does not remove shared-secret exposure and poor attribution.

B:

A widely distributed root key creates excessive privilege and a shared compromise point.

C:

Anonymous access would be less controlled than the current password model, not a secure replacement.

Question 780

A technician launches remote control of an employee's workstation while the user is working with private payroll data. Which remote-access practice should the technician use?

  1. Capture the entire screen and upload a recording to an external vendor before asking the employee.
  2. Continue controlling the session while the user changes payroll passwords, relying on the technicians discretion.
  3. Ask for consent, pause sensitive content, log support activity and end the session when done.
  4. Grant the technician permanent remote control of the workstation so future payroll issues can be solved faster.

Explanation

Correct Answer

C:

A supervised assistance session requires appropriate notice, permission and privacy boundaries. An unexpected control session can disclose private information and undermine user trust.

Incorrect Answers

A:

This may collect protected payroll details without user permission or approved handling.

B:

Sensitive fields must be hidden or paused; visible credentials should not be exposed during support.

D:

Persistent access greatly exceeds the specific supervised support request.

CompTIA A+ Certification Exam: Core 2 (220-1202) Practice Tests