Courseiva
Implementing VPC InstancesmediumMultiple SelectObjective-mapped

PCNE Implementing VPC Instances Practice Question

An organization wants to enforce that only instances with specific service accounts can be accessed via SSH (TCP 22) from the internet. Which two attributes should be used in the firewall rule to achieve this? (Choose two.)

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

--source-ranges 0.0.0.0/0

To target instances based on service account, use --target-service-accounts. To specify the source from internet, use --source-ranges with 0.0.0.0/0.

Answer analysis

Option-by-option breakdown

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

  • --source-service-accounts

    Why it's wrong here

    Source service accounts are for ingress rules based on the sender's service account, not the target.

  • --source-ranges 0.0.0.0/0

    Why this is correct

    Correct. Allows traffic from any source (internet).

  • --target-tags

    Why it's wrong here

    Tags are not service accounts.

  • --destination-ranges

    Why it's wrong here

    Destination ranges are used for egress rules.

  • --target-service-accounts

    Why this is correct

    Correct. Specifies which service accounts the rule applies to.

About these practice questions

This PCNE question is part of Courseiva's 961-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This PCNE practice question is part of Courseiva's free Google Cloud 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 PCNE exam.