Question 110 of 750
Scripting BasicsmediumMultiple ChoiceObjective-mapped

Quick Answer

The answer is to set the execution policy to AllSigned. This is the correct choice because it requires that every PowerShell script, whether downloaded from the internet or written locally on the machine, must be digitally signed by a trusted publisher before it can execute. By enforcing this AllSigned security measure, you directly block any unsigned PowerShell scripts from running, which prevents the exact type of unauthorized script execution that led to the data exfiltration in the incident. On the CompTIA A+ Core 2 220-1202 exam, this concept tests your understanding of PowerShell security controls and how they map to real-world threats; a common trap is confusing AllSigned with RemoteSigned, which only requires signatures for scripts from remote sources but allows local unsigned scripts to run. Remember the memory tip: "All means all—every script needs a signature."

220-1102 Scripting Basics Practice Question

This 220-1202 practice question tests your understanding of scripting basics. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A security incident occurs where an unauthorized PowerShell script was executed on a server, exfiltrating data. The IT manager wants to prevent any unsigned PowerShell scripts from running on all domain computers. Which scripting security measure should be implemented?

Question 1mediummultiple choice
Full question →

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Set the execution policy to AllSigned

Option B is correct because setting the execution policy to AllSigned requires that all PowerShell scripts, including those written locally, be digitally signed by a trusted publisher before they can run. This directly addresses the requirement to prevent any unsigned PowerShell scripts from executing on domain computers, as it blocks both remote and local unsigned scripts.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Set the execution policy to Restricted

    Why it's wrong here

    Incorrect. Restricted prevents all scripts from running, which may break legitimate administrative scripts. The requirement is to block only unsigned scripts.

  • Set the execution policy to AllSigned

    Why this is correct

    Correct. AllSigned requires all scripts to be digitally signed by a trusted publisher. This blocks unsigned scripts while allowing signed, trusted scripts to run.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Set the execution policy to RemoteSigned

    Why it's wrong here

    Incorrect. RemoteSigned only requires signatures for scripts downloaded from the internet. Locally created unsigned scripts would still run, which doesn't meet the requirement.

  • Disable PowerShell using Group Policy

    Why it's wrong here

    Incorrect. Disabling PowerShell entirely would break many administrative tasks and is not a targeted solution for script signing.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often confuse RemoteSigned with AllSigned, assuming that blocking internet-sourced scripts is sufficient, but they overlook that locally created unsigned scripts (e.g., written by an attacker after gaining access) remain a threat.

Detailed technical explanation

How to think about this question

The execution policy is not a security boundary but a user preference that helps prevent accidental script execution; it can be overridden by a user with appropriate permissions. In a domain environment, Group Policy can enforce the AllSigned policy via Computer Configuration > Administrative Templates > Windows Components > Windows PowerShell, ensuring that even local scripts require a trusted digital signature, which is verified against the local certificate store. A real-world scenario where this matters is when an attacker gains local access and attempts to run a PowerShell script to escalate privileges—AllSigned blocks it unless the script is signed by a trusted CA.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A practitioner preparing for the 220-1202 exam encounters this exact type of scenario on the job. The correct answer here is not the most general option — it is the best answer for the specific constraint described. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Real exam questions reward reading the full scenario before eliminating options, because the constraint defines which answer fits.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related 220-1202 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free 220-1202 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this 220-1202 question test?

Scripting Basics — This question tests Scripting Basics — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Set the execution policy to AllSigned — Option B is correct because setting the execution policy to AllSigned requires that all PowerShell scripts, including those written locally, be digitally signed by a trusted publisher before they can run. This directly addresses the requirement to prevent any unsigned PowerShell scripts from executing on domain computers, as it blocks both remote and local unsigned scripts.

What should I do if I get this 220-1202 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Keep practising

More 220-1202 practice questions

Last reviewed: Jun 24, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This 220-1202 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 220-1202 exam.