PAS-C01 Operations and Maintenance Practice Question
Exhibit
Refer to the exhibit.
CloudFormation template snippet:
Resources:
SAPApplicationServer:
Type: AWS::EC2::Instance
Properties:
InstanceType: m5.large
ImageId: ami-0abcdef1234567890
SecurityGroupIds:
- !Ref SecurityGroup
UserData:
Fn::Base64: !Sub |
#!/bin/bash
yum install -y s3fs-fuse
mkdir /mnt/sap
s3fs my-sap-bucket /mnt/sap
Tags:
- Key: Name
Value: SAP-APPAn administrator deploys the CloudFormation stack above. The EC2 instance launches but the s3fs mount fails. Which TWO actions are needed to fix the issue? (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
✓
Create an IAM role with permissions to access the S3 bucket and attach it to the EC2 instance.
Options A and B are correct. The EC2 instance needs an IAM role with S3 bucket permissions (A) and the role must be attached via an IAM instance profile in the CloudFormation template (B). Option C is incorrect because outbound HTTPS is already allowed by default security group rules and S3 uses HTTPS. Option D is incorrect because bucket region does not affect access; cross-region access works. Option E is incorrect because the UserData script runs as root, so 'sudo' is unnecessary and may cause the command to fail if sudo is not configured.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Create an IAM role with permissions to access the S3 bucket and attach it to the EC2 instance.
Why this is correct
s3fs requires IAM credentials; an instance profile provides them.
- ✓
Add an IAM instance profile to the EC2 instance resource in the CloudFormation template.
Why this is correct
The instance profile is needed to associate the IAM role with the instance.
- ✗
Modify the security group to allow outbound HTTPS traffic.
Why it's wrong here
S3 access uses HTTPS, but security group outbound is typically open by default.
- ✗
Ensure the S3 bucket is in the same region as the EC2 instance.
Why it's wrong here
S3 is global; region does not affect access.
- ✗
Add 'sudo' before the s3fs command in the UserData script.
Why it's wrong here
UserData runs as root, so sudo is unnecessary.
Quick reference
AWS S3 Storage Class Comparison
| Storage Class | Min Duration | Retrieval | Use Case |
|---|---|---|---|
| S3 Standard | None | Immediate | Frequently accessed data |
| S3 Standard-IA | 30 days | Immediate | Infrequent access, rapid retrieval |
| S3 One Zone-IA | 30 days | Immediate | Non-critical infrequent data |
| S3 Intelligent-Tiering | None | Immediate–hours | Unknown or changing access patterns |
| S3 Glacier Instant | 90 days | Milliseconds | Archive with instant retrieval |
| S3 Glacier Flexible | 90 days | Minutes–hours | Archive, flexible retrieval |
| S3 Glacier Deep Archive | 180 days | Hours | Long-term compliance archive |
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.