PAS-C01 Technology Practice Question
Exhibit
Refer to the exhibit.
```
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "ec2:RunInstances",
"Resource": "*",
"Condition": {
"StringEquals": {
"ec2:InstanceType": ["r5.4xlarge", "r5.8xlarge"]
}
}
},
{
"Effect": "Allow",
"Action": "ec2:RunInstances",
"Resource": "arn:aws:ec2:*:*:volume/*",
"Condition": {
"StringEquals": {
"ec2:VolumeType": "gp3"
}
}
},
{
"Effect": "Allow",
"Action": "ec2:RunInstances",
"Resource": "arn:aws:ec2:*:*:network-interface/*"
}
]
}
```Refer to the exhibit. An SAP administrator is creating an IAM policy for launching EC2 instances. Which instance type will the policy allow?
⚠ Common exam trap
It's easy for candidates to think the condition allows a range of instance sizes (e.g., all r5 variants) due to the 'ForAllValues' wording, but it actually performs an exact match against the listed types, so only r5.4xlarge and r5.8xlarge are permitted.
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
✓
r5.4xlarge and r5.8xlarge
The IAM policy allows ec2:RunInstances with a condition that restricts instance types to those matching 'r5.4xlarge' or 'r5.8xlarge' via a ForAllValues:StringEquals condition on ec2:InstanceType. Since the condition uses a wildcard-free list, only the explicitly listed instance types are permitted. Options A, B, and C are not in the list, so they are denied.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
r5.16xlarge
Why it's wrong here
Not allowed by the policy.
- ✗
r5.xlarge
Why it's wrong here
Not included in the allowed instance types.
- ✗
r5.2xlarge
Why it's wrong here
The policy only allows r5.4xlarge and r5.8xlarge.
- ✓
r5.4xlarge and r5.8xlarge
Why this is correct
These are the only instance types allowed by the condition.
Go deeper
Related to this question
About these practice questions
This PAS-C01 question is part of Courseiva's 1,616-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 →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This PAS-C01 practice question is part of Courseiva's free Amazon Web Services 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 PAS-C01 exam.